:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #00ff88;
    /* Lime Green Neon */
    --secondary-color: #1a1a1a;
    --font-main: 'Outfit', sans-serif;
    --transition-speed: 0.6s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9), transparent);
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.menu-icon {
    width: 30px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

/* Menu Toggle Animation */
.menu-icon.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-icon.active span:nth-child(2) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Fullscreen Overlay Menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.menu-nav {
    text-align: center;
}

.menu-nav ul {
    list-style: none;
    padding: 0;
}

.menu-nav ul li {
    margin: 2rem 0;
    overflow: hidden;
}

.menu-nav ul li a {
    display: inline-block;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    color: var(--text-color);
    text-decoration: none;
    line-height: 1;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(100%);
    opacity: 0;
}

.menu-overlay.open .menu-nav ul li a {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered Entrance */
.menu-overlay.open .menu-nav ul li:nth-child(1) a {
    transition-delay: 0.2s;
}

.menu-overlay.open .menu-nav ul li:nth-child(2) a {
    transition-delay: 0.3s;
}

.menu-overlay.open .menu-nav ul li:nth-child(3) a {
    transition-delay: 0.4s;
}

.menu-overlay.open .menu-nav ul li:nth-child(4) a {
    transition-delay: 0.5s;
}

.menu-nav ul li a:hover {
    color: var(--accent-color);
}

.lang-switch {
    margin-top: 4rem;
    font-size: 1rem;
    letter-spacing: 2px;
    color: #555;
    opacity: 0;
    transition: all 0.6s ease;
    transition-delay: 0.7s;
}

.menu-overlay.open .lang-switch {
    opacity: 1;
}

.lang-switch span {
    cursor: pointer;
    transition: color 0.3s ease;
}

.lang-switch span.active,
.lang-switch span:hover {
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.logo-container {
    display: inline-block;
    padding: 2rem;
    background: #ffffff;
    border-radius: 50px;
    box-shadow:
        0 4px 40px rgba(255, 255, 255, 0.1),
        0 10px 80px rgba(0, 255, 136, 0.2);
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 10;
}

.logo-container:hover {
    transform: scale(1.05) rotate(10deg);
    box-shadow:
        0 6px 60px rgba(255, 255, 255, 0.2),
        0 15px 100px rgba(0, 255, 136, 0.4);
}

.main-logo {
    width: 220px;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
    /* Perfectly removes any background tint from the logo image */
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title .highlight {
    -webkit-text-stroke: 2px var(--accent-color);
    color: transparent;
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #888;
    font-weight: 300;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.5;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background-color: var(--text-color);
}

/* Base Layout for Sections */
section {
    padding: 6rem 1rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* About Section */
.about-section {
    background-color: var(--secondary-color);
}

.text-block h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.text-block p {
    font-size: 1.5rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Project Section */
.project-section .section-title {
    font-size: 15vw;
    opacity: 0.1;
    /* Increased from 0.05 for better visibility */
    position: absolute;
    left: -2rem;
    top: 5rem;
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    color: transparent;
}

.project-section {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    /* Full width carousel needs 0 padding on sides initially */
}

.project-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2rem;
    -webkit-overflow-scrolling: touch;
    z-index: 1;
    position: relative;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
    /* Prevent text selection while dragging */
}

.project-carousel::-webkit-scrollbar {
    display: none;
}

.project-card {
    flex: 0 0 85vw;
    /* Mobile: Show most of one card */
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
    position: relative;
    will-change: transform;
    /* Hardware acceleration */
}

.card-image img {
    width: 100%;
    max-width: 180px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.card-image img:hover {
    transform: scale(1.05) rotate(-2deg);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.tag {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    display: inline-block;
}

.card-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 100%;
    /* Full width button on mobile card */
    display: block;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

/* Contact Section */
.contact-section {
    padding: 10rem 0;
    text-align: center;
    background-color: var(--secondary-color);
}

.contact-section h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.contact-section p {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 3rem;
}

.email-link {
    font-size: clamp(1.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.4s ease;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.4s ease;
}

.email-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.email-link:hover::after {
    width: 100%;
}

.menu-overlay.open .menu-nav ul li:nth-child(5) a {
    transition-delay: 0.6s;
}

/* Footer */
.footer {
    padding: 6rem 1rem;
    text-align: center;
    border-top: 1px solid #222;
    background: #050505;
}

.footer .copyright {
    color: #888;
    margin-bottom: 0.5rem;
}

.business-info {
    color: #555;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.business-info .divider {
    opacity: 0.3;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--text-color);
}

/* Scroll Animation Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop Responsive */
@media (min-width: 768px) {
    .hero-title {
        font-size: 6rem;
    }

    .project-carousel {
        padding: 0 calc(50vw - 300px);
        /* Center the active card initially */
    }

    .project-card {
        flex: 0 0 600px;
        /* Fixed width for desktop cards */
        flex-direction: row;
        text-align: left;
        padding: 4rem;
        gap: 4rem;
    }

    .card-content {
        align-items: flex-start;
        width: auto;
    }

    .btn-primary {
        width: auto;
        display: inline-block;
    }

    .text-block p {
        font-size: 2rem;
    }
}

/* Manifesto Section */
.manifesto-section {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--bg-color) 100%);
    padding: 8rem 1rem;
    position: relative;
    overflow: hidden;
}

.manifesto-block {
    text-align: center;
    margin-bottom: 6rem;
}

.manifesto-label {
    display: block;
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.manifesto-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.manifesto-title .highlight {
    color: var(--accent-color);
    font-style: italic;
}

.manifesto-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
    word-break: keep-all;
    /* Korean word break */
}

.quote-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 6rem 0;
}

.quote-box {
    border-left: 4px solid var(--accent-color);
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease;
}

.quote-box:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
}

.quote-box blockquote {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #fff;
}

.quote-box cite {
    display: block;
    font-size: 1rem;
    color: #888;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.manifesto-final {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-top: 4rem;
    text-transform: uppercase;
}

/* Manifesto Responsive */
@media (min-width: 768px) {
    .manifesto-title {
        font-size: 5rem;
    }

    .quote-container {
        grid-template-columns: 1fr 1fr;
    }

    .manifesto-text {
        font-size: 1.5rem;
    }

    .manifesto-final {
        font-size: 7rem;
    }
}