 :root {
    --bg-dark: #1E293B;
    --bg-light: #F8FAFC;
    --card-bg: #FFFFFF;
    --accent: #E05A47;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --text-light: #F1F5F9;
    --border: #E2E8F0;
    --soft-bg: #E2E8F0;
    --shadow: rgba(15, 23, 42, 0.08);
}

body.dark-mode {
    --bg-light: #0B1120;
    --card-bg: #172033;
    --text-dark: #F8FAFC;
    --text-muted: #AAB6C7;
    --border: #2B3A52;
    --soft-bg: #1E293B;
    --shadow: rgba(0, 0, 0, 0.28);
}

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
        }

        body {
            background-color: var(--bg-light);
            color: var(--text-dark);
            transition: background-color 0.35s ease, color 0.35s ease;
            line-height: 1.6;
            scroll-behavior: smooth;
        }

        h1, h2, h3, h4 {
            font-family: 'Poppins', sans-serif;
        }

        .slide {
            min-height: 100vh;
            padding: 4rem 10%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            border-bottom: 1px solid var(--border);
        }

        .slide-dark {
            background-color: var(--bg-dark);
            color: var(--text-light);
        }

        .tag {
            display: inline-block;
            background-color: rgba(224, 90, 71, 0.15);
            color: var(--accent);
            padding: 0.4rem 1rem;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.85rem;
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .slide-dark .tag {
            background-color: var(--accent);
            color: white;
        }

        .title {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            line-height: 1.2;
        }

        .grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2.5rem;
            align-items: center;
        }

        .grid-3 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
        }

        .card {
            background-color: var(--card-bg);
            padding: 1.8rem;
            border-radius: 12px;
            box-shadow: 0 4px 20px var(--shadow);
            border: 1px solid var(--border);
            transition: transform 0.3s ease;
        }

        .card:hover {
            transform: translateY(-5px);
        }

        .card-title {
            font-size: 1.2rem;
            color: var(--accent);
            margin-bottom: 0.5rem;
        }

        ul.custom-list {
            list-style: none;
        }

        ul.custom-list li {
            position: relative;
            padding-left: 1.5rem;
            margin-bottom: 0.5rem;
            font-size: 0.95rem;
        }

        ul.custom-list li::before {
            content: "•";
            color: var(--accent);
            font-weight: bold;
            font-size: 1.2rem;
            position: absolute;
            left: 0;
            top: -2px;
        }

        .hero-title {
            font-size: 3.2rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
        }

        .hero-subtitle {
            font-size: 1.15rem;
            color: var(--accent);
            font-weight: 600;
            margin-bottom: 1.5rem;
        }

        .hero-desc {
            font-size: 1rem;
            opacity: 0.9;
            max-width: 600px;
        }

        .profile-frame {
            width: 100%;
            max-width: 320px;
            aspect-ratio: 3/4;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            border: 4px solid rgba(255, 255, 255, 0.1);
            margin: 0 auto;
        }

        .profile-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        .img-placeholder {
            width: 100%;
            height: 160px;
            background-color: var(--soft-bg);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            font-size: 0.85rem;
            margin-bottom: 1rem;
            overflow: hidden;
            border: 1px dashed var(--border);
        }

        .img-placeholder img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
        }

        .quote-box {
            border-left: 4px solid var(--accent);
            padding-left: 1.5rem;
            margin: 1.5rem 0;
            font-style: italic;
            font-size: 1.1rem;
            color: var(--text-muted);
        }

        @media (max-width: 768px) {
            .grid-2 { grid-template-columns: 1fr; }
            .hero-title { font-size: 2.3rem; }
            .slide { padding: 3rem 6%; }
        }

/* ===== ANIMATIONS ===== */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

.slide {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.slide > * {
    transition: transform 0.7s ease, opacity 0.7s ease;
}

.reveal-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
}

.profile-frame img,
.img-placeholder img {
    transition: transform 0.6s ease;
}

.profile-frame:hover img,
.img-placeholder:hover img {
    transform: scale(1.04);
}

.tag {
    animation: tagPulse 3s ease-in-out infinite;
}

@keyframes tagPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--accent);
    z-index: 9999;
    transition: width 0.08s linear;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.3s ease;
    z-index: 9998;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .slide,
    .reveal-item,
    .card,
    .profile-frame img,
    .img-placeholder img {
        transition: none !important;
        animation: none !important;
    }
}


/* ===== THEME TOGGLE ===== */
.theme-toggle {
    position: fixed;
    top: 18px;
    right: 20px;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-dark);
    cursor: pointer;
    font-size: 20px;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 25px var(--shadow);
    transition: transform .25s ease, background-color .35s ease, color .35s ease, border-color .35s ease;
    z-index: 10000;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.08);
}

.theme-toggle:active {
    transform: scale(.94);
}

body.dark-mode .slide:not(.slide-dark) {
    background: #0B1120;
}

body.dark-mode .slide-dark {
    background: #020617;
}

body.dark-mode .card {
    box-shadow: 0 14px 35px rgba(0,0,0,.25);
}

body.dark-mode .img-placeholder {
    background: #1E293B;
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}

/* ===== NAVBAR ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 5%;
    pointer-events: none;
}

.navbar {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 64px;
    padding: 0.65rem 1rem 0.65rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 18px;
    pointer-events: auto;
    transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}

body.dark-mode .navbar {
    background: rgba(11, 17, 32, 0.88);
    border-color: rgba(43, 58, 82, 0.9);
    box-shadow: 0 10px 35px rgba(0,0,0,.25);
}

.nav-brand {
    color: var(--text-dark);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .5px;
    white-space: nowrap;
}

.nav-brand span { color: var(--accent); }

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .25rem;
}

.nav-link {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    padding: .6rem .7rem;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 600;
    transition: color .25s ease, background-color .25s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
    background: rgba(224, 90, 71, .08);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: .7rem;
    right: .7rem;
    bottom: .28rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}

.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-theme-toggle {
    position: static;
    width: 40px;
    height: 40px;
    margin-left: .35rem;
    border: 1px solid var(--border);
    box-shadow: none;
    flex: 0 0 auto;
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 21px;
    height: 2px;
    border-radius: 10px;
    background: var(--text-dark);
    transition: transform .3s ease, opacity .3s ease;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(224, 90, 71, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: .3s ease;
}

.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 900px) {
    .site-header { padding: 10px 4%; }
    .navbar { border-radius: 15px; }
    .hamburger { display: flex; }
    .nav-menu {
        position: absolute;
        top: calc(100% + 9px);
        left: 0;
        right: 0;
        padding: .65rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: 15px;
        box-shadow: 0 18px 35px var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(.98);
        transform-origin: top;
        transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    }
    .nav-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
    .nav-link { width: 100%; padding: .8rem .9rem; }
    .nav-link::after { left: .9rem; right: auto; width: 35px; bottom: .5rem; }
    .nav-theme-toggle { align-self: flex-start; margin: .35rem 0 .15rem; }
    .slide { padding-top: 7rem; }
}

@media (max-width: 480px) {
    .site-header { padding-left: 3%; padding-right: 3%; }
    .navbar { padding-left: 1rem; }
    .nav-brand { font-size: .9rem; }
    .back-to-top { right: 16px; bottom: 16px; }
}
