:root {
    --neutral--100: #030712;
    --neutral--90: #111827;
    --neutral--80: #1f2937;
    --neutral--70: #374151;
    --neutral--60: #4b5563;
    --neutral--50: #6b7280;
    --neutral--40: #b6bcc6;
    --neutral--30: #d1d5db;
    --neutral--20: #e5e7eb;
    --neutral--10-101: #f9fafb;
    --neutral--0: #ffffff;
    --accent: #6C5CE7;
    --accent-2: #FF7A59;
    --muted: var(--neutral--60);
    --container: 1440px;
}

/* Dark mode variables - Premium Navy & Teal Theme */
body.dark-mode {
    --neutral--100: #ffffff;
    --neutral--90: #f1f5f9;
    --neutral--80: #e2e8f0;
    --neutral--70: #cbd5e1;
    --neutral--60: #94a3b8;
    --neutral--50: #64748b;
    --neutral--40: #475569;
    --neutral--30: #334155;
    --neutral--20: #1e293b;
    --neutral--10-101: #0f172a;
    --neutral--0: #020617;
    --accent: #10b981;
    --accent-2: #34d399;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: 'Inter Tight', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--neutral--100);
    background: var(--neutral--10-101);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: 72px;
    padding-right: 72px;
}

.site-header {
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(250, 250, 254, 0.45));
    border-bottom: 1px solid rgba(15, 17, 26, 0.04);
    z-index: 3;
}

body.dark-mode .site-header {
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px
}

.brand {
    font-weight: 700;
    letter-spacing: 0.2px;
    font-family: 'Inter Tight', Inter, system-ui;
    font-size: 18px
}

.nav a {
    margin-left: 20px;
    color: var(--neutral--100);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter Tight', Inter, system-ui;
    font-size: 13px;
    letter-spacing: 1.6px;
    text-transform: uppercase
}

.nav a:hover {
    color: var(--accent)
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(15, 17, 26, 0.1);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 20px;
    position: relative;
    padding: 0;
    vertical-align: middle;
}

.theme-toggle:hover {
    background: rgba(15, 17, 26, 0.05);
    border-color: var(--accent);
}

.theme-toggle svg {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

body.dark-mode .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

body.dark-mode .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

body.dark-mode .theme-toggle {
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

body.dark-mode .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav .cta-talk {
    margin-left: 28px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--neutral--100);
    text-decoration: none;
    background: transparent;
    color: var(--neutral--100);
    font-weight: 600
}

.nav .cta-talk:hover {
    background: var(--neutral--100);
    color: var(--neutral--0)
}

.hero {
    min-height: calc(100vh - 72px);
    padding: 0;
    position: relative;
    overflow: visible;
    background: transparent;
    display: flex;
    align-items: center;
}

.hero-inner {
    max-width: 1440px;
    width: 100%
}

.hero-inner {
    position: relative;
    z-index: 2
}

.headline {
    font-family: 'Inter Tight', Inter, system-ui;
    font-size: 104px;
    line-height: 1;
    margin: 0 0 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--neutral--100);
}

.headline .break {
    display: block
}


.headline .muted-light {
    color: var(--neutral--40);
    font-weight: 700;
}

.hero-grid {
    display: block
}

.hero-left {
    padding-right: 0
}


.hero-subwrap {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 24px;
}

.hero-subrule {
    flex: 0 0 384px;
    height: 1px;
    background: var(--neutral--30);
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px
}

/* Hide mobile action buttons on desktop */
.hero-mobile-actions {
    display: none;
}

.hero-links a {
    margin-right: 24px;
    color: var(--neutral--100);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.6px
}

.hero-links a .ext {
    opacity: 0.55;
    margin-left: 8px;
    font-weight: 600
}


.projects {
    margin-top: 80px;
    margin-bottom: 80px
}

@media (max-width:900px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px
    }


    .hero-links a {
        margin-right: 12px
    }
}

.subhead {
    color: var(--neutral--70);
    font-size: 18px;
    margin: 0;
    line-height: 1.6;
    max-width: 760px;
}

.section-title {
    font-size: 28px;
    margin: 0 0 6px
}

.section-sub {
    color: var(--muted);
    margin: 0 0 24px
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    background: linear-gradient(180deg, var(--neutral--0), #fcfcff);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(12, 15, 20, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(15, 17, 26, 0.06);
}

body.dark-mode .project-card {
    background: var(--neutral--10-101);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.project-card a {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(12, 15, 20, 0.12);
    border-color: rgba(108, 92, 231, 0.2);
}

body.dark-mode .project-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    border-color: rgba(16, 185, 129, 0.3);
}

.will-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.project-screenshot {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(255, 122, 89, 0.1));
    display: block;
    overflow: hidden;
    flex: 0 0 auto;
    border-bottom: 1px solid rgba(15, 17, 26, 0.04);
}

.project-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.project-card:hover .project-screenshot img {
    transform: scale(1.05);
}

.project-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-body h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Inter Tight', Inter, system-ui;
    color: var(--neutral--100);
    letter-spacing: -0.01em;
}

.muted {
    color: var(--neutral--70);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 16px;
    flex-grow: 1;
}

.tags {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.3px;
}


.site-footer {
    padding: 28px 0;
    border-top: 1px solid rgba(15, 17, 26, 0.04)
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.footer-links a {
    color: var(--muted);
    text-decoration: none
}

/* responsive tweaks */
@media (max-width:720px) {
    .headline {
        font-size: 32px
    }

    .site-header .container {
        height: 56px
    }

    /* Hide nav links on mobile, keep theme toggle */
    .nav a {
        display: none;
    }

    .theme-toggle {
        margin-left: 0;
    }

    .hero-subwrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hero-subrule {
        display: none;
    }

    .container {
        padding-left: 28px;
        padding-right: 28px;
    }

    /* Mobile-only action buttons below hero */
    .hero-mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 32px;
    }

    .hero-mobile-actions a {
        display: block;
        padding: 14px 20px;
        text-align: center;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .hero-mobile-actions .btn-resume {
        background: transparent;
        border: 1px solid var(--neutral--100);
        color: var(--neutral--100);
    }

    .hero-mobile-actions .btn-resume:hover {
        background: rgba(15, 17, 26, 0.05);
    }

    body.dark-mode .hero-mobile-actions .btn-resume:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .hero-mobile-actions .btn-contact {
        background: var(--neutral--100);
        color: var(--neutral--0);
        border: 1px solid var(--neutral--100);
    }

    .hero-mobile-actions .btn-contact:hover {
        background: var(--accent);
        border-color: var(--accent);
    }
}

@media (max-width:720px) {
    .hero {
        min-height: calc(100vh - 56px)
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .footer-links {
        order: -1;
    }
}

@media (max-width:900px) {
    .about-inner {
        flex-direction: column;
        padding: 24px
    }

}

/* Featured Projects Section */
.featured-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--neutral--0) 0%, var(--neutral--10-101) 100%);
}

.featured-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    background: linear-gradient(180deg, var(--neutral--0), #fcfcff);
    border-radius: 20px;
    padding: 48px;
    margin-top: 32px;
    box-shadow: 0 8px 24px rgba(12, 15, 20, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(15, 17, 26, 0.06);
}

body.dark-mode .featured-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(12, 15, 20, 0.12);
}

body.dark-mode .featured-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 24px 60px -12px rgba(16, 185, 129, 0.2), 0 12px 30px -10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.featured-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.08) 0%, rgba(255, 122, 89, 0.08) 100%);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(15, 17, 26, 0.04);
}

.featured-icon {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(108, 92, 231, 0.15));
    transition: transform 0.4s ease;
}

.featured-card:hover .featured-icon {
    transform: scale(1.05) rotate(2deg);
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-header {
    margin-bottom: 16px;
}

.featured-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.featured-title {
    font-family: 'Inter Tight', Inter, system-ui;
    font-size: 36px;
    font-weight: 800;
    margin: 0;
    color: var(--neutral--100);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.featured-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--neutral--70);
    margin: 0 0 24px;
    max-width: 600px;
}

.featured-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.featured-stack span {
    padding: 6px 14px;
    background: var(--neutral--10-101);
    border: 1px solid rgba(15, 17, 26, 0.08);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--neutral--70);
    transition: all 0.25s ease;
}

.featured-stack span:hover {
    background: rgba(108, 92, 231, 0.08);
    border-color: rgba(108, 92, 231, 0.2);
    color: var(--accent);
    transform: translateY(-2px);
}

.featured-actions {
    display: flex;
    gap: 12px;
}

.btn-featured {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--neutral--100);
    color: var(--neutral--0);
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border: 1px solid var(--neutral--100);
}

.btn-featured:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.25);
}

.btn-featured .ext {
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.btn-featured:hover .ext {
    opacity: 1;
    transform: translateX(2px);
}

/* Responsive Featured Section */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 36px;
    }

    .featured-visual {
        padding: 32px;
    }

    .featured-icon {
        width: 100px;
        height: 100px;
    }

    .featured-title {
        font-size: 32px;
    }
}

@media (max-width: 720px) {
    .featured-section {
        padding: 48px 0;
    }

    .featured-card {
        padding: 28px 20px;
    }

    .featured-title {
        font-size: 28px;
    }

    .featured-desc {
        font-size: 15px;
    }
}

@media (max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }


    .headline {
        font-size: 64px
    }
}
