/* ============================================
                   GLOBAL RESET & BASE
                   ============================================ */
        *,
        *::before,
        *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #0F172A;
            --accent: #2563EB;
            --secondary: #14B8A6;
            --success: #10B981;
            --bg-light: #ffffff;
            --bg-dark: #0a0e1a;
            --text-light: #1e293b;
            --text-dark: #e2e8f0;
            --glass-light: rgba(255, 255, 255, 0.15);
            --glass-dark: rgba(15, 23, 42, 0.6);
            --radius: 16px;
            --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
            --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
            --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        }

        html {
            scroll-behavior: smooth;
            scroll-padding-top: 80px;
        }

        body {
            font-family: var(--font);
            background: var(--bg-light);
            color: var(--text-light);
            transition: background 0.4s, color 0.4s;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden;
        }

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

        a {
            text-decoration: none;
            color: inherit;
        }
        img {
            max-width: 100%;
            display: block;
        }
        ul {
            list-style: none;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* ============================================
                   SCROLLBAR
                   ============================================ */
        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        ::-webkit-scrollbar-thumb {
            background: var(--accent);
            border-radius: 10px;
        }

        /* ============================================
                   GLASSMORPHISM UTILITY
                   ============================================ */
        .glass {
            background: var(--glass-light);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: var(--radius);
        }
        .dark .glass {
            background: var(--glass-dark);
            border-color: rgba(255, 255, 255, 0.04);
        }

        /* ============================================
                   BUTTONS
                   ============================================ */
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 14px 32px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.95rem;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            font-family: var(--font);
            position: relative;
            overflow: hidden;
        }

        .btn-primary {
            background: var(--accent);
            color: #fff;
            box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
        }
        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
        }

        .btn-outline {
            background: transparent;
            color: var(--text-light);
            border: 2px solid var(--text-light);
        }
        .dark .btn-outline {
            color: var(--text-dark);
            border-color: var(--text-dark);
        }
        .btn-outline:hover {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
            transform: translateY(-3px);
        }

        .btn-secondary {
            background: var(--secondary);
            color: #fff;
            box-shadow: 0 8px 30px rgba(20, 184, 166, 0.3);
        }
        .btn-secondary:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 40px rgba(20, 184, 166, 0.4);
        }

        .btn-success {
            background: var(--success);
            color: #fff;
            box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
        }
        .btn-success:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
        }

        .btn-sm {
            padding: 10px 22px;
            font-size: 0.85rem;
        }

        .cv-download-btn.is-downloaded {
            background: var(--success);
            box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
        }

        .cv-download-btn.is-downloaded:hover {
            box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
        }

        .cv-download-btn.is-busy {
            pointer-events: none;
            opacity: 0.75;
        }

        /* ============================================
                   SECTION HEADERS
                   ============================================ */
        .section-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--accent);
            font-weight: 600;            margin-bottom: 8px;
        }

        .section-title {
            font-size: clamp(2rem, 4vw, 3.2rem);
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 16px;
        }

        .section-subtitle {
            font-size: 1.1rem;
            opacity: 0.7;
            max-width: 600px;
        }

        /* ============================================
                   NAVBAR
                   ============================================ */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            padding: 16px 0;
            transition: var(--transition);
        }
        .navbar.scrolled {
            background: rgba(255, 255, 255, 0.72);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
            padding: 10px 0;
        }
        .dark .navbar.scrolled {
            background: rgba(10, 14, 26, 0.8);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
        }

        .navbar .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .nav-logo {
            font-weight: 800;
            font-size: 1.3rem;
            letter-spacing: -0.02em;
            color: var(--text-light);
        }
        .dark .nav-logo {
            color: var(--text-dark);
        }
        .nav-logo span {
            color: var(--accent);
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .nav-links a {
            padding: 8px 16px;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 500;
            transition: var(--transition);
            position: relative;
            color: var(--text-light);
            opacity: 0.7;
        }
        .dark .nav-links a {
            color: var(--text-dark);
        }
        .nav-links a:hover,
        .nav-links a.active {
            opacity: 1;
            background: rgba(37, 99, 235, 0.08);
        }
        .dark .nav-links a:hover,
        .dark .nav-links a.active {
            background: rgba(37, 99, 235, 0.15);
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .theme-toggle {
            background: none;
            border: none;
            font-size: 1.2rem;
            cursor: pointer;
            color: var(--text-light);
            padding: 8px;
            border-radius: 50%;
            transition: var(--transition);
            width: 42px;
            height: 42px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.04);
        }
        .dark .theme-toggle {
            color: var(--text-dark);
            background: rgba(255, 255, 255, 0.06);
        }
        .theme-toggle:hover {
            background: rgba(37, 99, 235, 0.12);
        }

        .nav-hamburger {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 6px;
        }
        .nav-hamburger span {
            display: block;
            width: 26px;
            height: 2.5px;
            border-radius: 4px;
            background: var(--text-light);
            transition: var(--transition);
        }
        .dark .nav-hamburger span {
            background: var(--text-dark);
        }
        .nav-hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }
        .nav-hamburger.active span:nth-child(2) {
            opacity: 0;
        }
        .nav-hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }

        /* Mobile Nav */
        .mobile-nav {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(20px);
            z-index: 999;
            padding: 100px 32px 40px;
            flex-direction: column;
            align-items: center;
            gap: 20px;
            overflow-y: auto;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s;
        }
        .dark .mobile-nav {
            background: rgba(10, 14, 26, 0.96);
        }
        .mobile-nav.open {
            opacity: 1;
            pointer-events: all;
        }
        .mobile-nav a {
            font-size: 1.3rem;
            font-weight: 500;
            color: var(--text-light);
            padding: 8px 0;
            transition: var(--transition);
        }
        .dark .mobile-nav a {
            color: var(--text-dark);
        }
        .mobile-nav a:hover {
            color: var(--accent);
        }

        @media (max-width: 992px) {
            .nav-links {
                display: none;
            }
            .nav-hamburger {
                display: flex;
            }
            .mobile-nav {
                display: flex;
            }
        }

        /* ============================================
                   HERO
                   ============================================ */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 120px 0 80px;
            position: relative;
            overflow: hidden;
        }

        .hero-bg {
            position: absolute;
            inset: 0;
            z-index: 0;
            pointer-events: none;
            overflow: hidden;
        }

        .hero-bg .orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(100px);
            opacity: 0.15;
        }
        .hero-bg .orb:nth-child(1) {
            width: 500px;
            height: 500px;
            background: var(--accent);
            top: -100px;
            right: -100px;
        }
        .hero-bg .orb:nth-child(2) {
            width: 400px;
            height: 400px;
            background: var(--secondary);
            bottom: -100px;
            left: -100px;
        }
        .dark .hero-bg .orb {
            opacity: 0.2;
        }

        .hero .container {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .hero-content h1 {
            font-size: clamp(2.4rem, 5vw, 4.2rem);
            font-weight: 800;
            line-height: 1.05;
            letter-spacing: -0.03em;
            margin-bottom: 12px;
        }
        .hero-content h1 span {
            color: var(--accent);
        }

        .hero-typing {
            font-size: clamp(1.1rem, 1.5vw, 1.5rem);
            font-weight: 500;
            color: var(--secondary);
            min-height: 2.4rem;
            margin-bottom: 20px;
        }

        .hero-description {
            font-size: 1.05rem;
            opacity: 0.7;
            max-width: 500px;
            margin-bottom: 32px;
        }

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

        .hero-image {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .hero-image .avatar {
            width: 320px;
            height: 320px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent), var(--secondary));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 6rem;
            color: #fff;
            font-weight: 700;
            box-shadow: 0 30px 80px rgba(37, 99, 235, 0.2);
            position: relative;
            overflow: hidden;
        }
        .hero-image .avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .hero-image .avatar-ring {
            position: absolute;
            inset: -6px;
            border-radius: 50%;
            border: 2px solid rgba(37, 99, 235, 0.15);
            animation: spin 20s linear infinite;
        }
        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* floating tech icons */
        .float-icons {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 0;
        }
        .float-icons .icon {
            position: absolute;
            font-size: 2rem;
            opacity: 0.08;
            animation: float 8s ease-in-out infinite;
        }
        .dark .float-icons .icon {
            opacity: 0.12;
        }
        .float-icons .icon:nth-child(1) {
            top: 10%;
            left: 5%;
            animation-delay: 0s;
        }
        .float-icons .icon:nth-child(2) {
            top: 20%;
            right: 8%;
            animation-delay: 1.5s;
            font-size: 2.6rem;
        }
        .float-icons .icon:nth-child(3) {
            bottom: 30%;
            left: 8%;
            animation-delay: 3s;
        }
        .float-icons .icon:nth-child(4) {
            bottom: 20%;
            right: 5%;
            animation-delay: 4.5s;
            font-size: 2.8rem;
        }
        .float-icons .icon:nth-child(5) {
            top: 50%;
            left: 50%;
            animation-delay: 2s;
            font-size: 3rem;
            opacity: 0.04;
        }

        @keyframes float {
            0%,
            100% {
                transform: translateY(0) rotate(0deg);
            }
            50% {
                transform: translateY(-20px) rotate(8deg);
            }
        }

        @media (max-width: 900px) {
            .hero .container {
                grid-template-columns: 1fr;
                text-align: center;
            }
            .hero-description {
                margin-left: auto;
                margin-right: auto;
            }
            .hero-actions {
                justify-content: center;
            }
            .hero-image .avatar {
                width: 220px;
                height: 220px;
                font-size: 4rem;
            }
        }

        /* ============================================
                   SECTION BASE
                   ============================================ */
        section {
            padding: 80px 0;
            position: relative;
        }

        /* ============================================
                   ABOUT
                   ============================================ */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            margin-top: 40px;
        }
        .about-text p {
            margin-bottom: 16px;
            opacity: 0.8;
            font-size: 1.05rem;
        }
        .about-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-top: 32px;
        }
        .about-stats .stat {
            text-align: center;
            padding: 24px 16px;
            border-radius: var(--radius);
            background: rgba(0, 0, 0, 0.02);
            border: 1px solid rgba(0, 0, 0, 0.04);
        }
        .dark .about-stats .stat {
            background: rgba(255, 255, 255, 0.02);
            border-color: rgba(255, 255, 255, 0.04);
        }
        .about-stats .stat .number {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--accent);
        }
        .about-stats .stat .label {
            font-size: 0.85rem;
            opacity: 0.6;
            margin-top: 4px;
        }

        .about-interests {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 20px;
        }
        .about-interests .tag {
            padding: 6px 18px;
            border-radius: 50px;
            background: rgba(37, 99, 235, 0.08);
            color: var(--accent);
            font-size: 0.85rem;
            font-weight: 500;
            border: 1px solid rgba(37, 99, 235, 0.06);
        }
        .dark .about-interests .tag {
            background: rgba(37, 99, 235, 0.12);
            border-color: rgba(37, 99, 235, 0.08);
        }

        @media (max-width: 768px) {
            .about-grid {
                grid-template-columns: 1fr;
                gap: 32px;
            }
            .about-stats {
                grid-template-columns: repeat(3, 1fr);
                gap: 12px;
            }
            .about-stats .stat {
                padding: 16px 8px;
            }
            .about-stats .stat .number {
                font-size: 1.6rem;
            }
        }

        /* ============================================
                   SERVICES
                   ============================================ */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 24px;
            margin-top: 40px;
        }
        .service-card {
            padding: 32px 24px;
            border-radius: var(--radius);
            background: rgba(0, 0, 0, 0.01);
            border: 1px solid rgba(0, 0, 0, 0.04);
            transition: var(--transition);
            cursor: default;
        }
        .dark .service-card {
            background: rgba(255, 255, 255, 0.01);
            border-color: rgba(255, 255, 255, 0.04);
        }
        .service-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow);
            border-color: var(--accent);
        }
        .service-card .icon {
            font-size: 2.2rem;
            color: var(--accent);
            margin-bottom: 16px;
        }
        .service-card h3 {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 8px;
        }
        .service-card p {
            font-size: 0.9rem;
            opacity: 0.7;
        }

        /* ============================================
                   SKILLS
                   ============================================ */
        .skills-section {
            background: rgba(0, 0, 0, 0.01);
        }
        .dark .skills-section {
            background: rgba(255, 255, 255, 0.01);
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 40px;
        }
        .skill-group {
            padding: 20px 20px 24px;
            border-radius: var(--radius);
            background: rgba(0, 0, 0, 0.01);
            border: 1px solid rgba(0, 0, 0, 0.04);
        }
        .dark .skill-group {
            background: rgba(255, 255, 255, 0.01);
            border-color: rgba(255, 255, 255, 0.04);
        }
        .skill-group h4 {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            opacity: 0.5;
            margin-bottom: 12px;
            font-weight: 600;
        }
        .skill-group .skill-items {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .skill-group .skill-items .skill {
            padding: 4px 14px;
            border-radius: 50px;
            background: rgba(37, 99, 235, 0.06);
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--accent);
            border: 1px solid rgba(37, 99, 235, 0.04);
            transition: var(--transition);
        }
        .dark .skill-group .skill-items .skill {
            background: rgba(37, 99, 235, 0.1);
            border-color: rgba(37, 99, 235, 0.06);
        }
        .skill-group .skill-items .skill:hover {
            background: var(--accent);
            color: #fff;
            transform: scale(1.04);
        }

        /* ============================================
                   PROJECTS
                   ============================================ */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        .project-card {
            border-radius: var(--radius);
            overflow: hidden;
            border: 1px solid rgba(0, 0, 0, 0.04);
            transition: var(--transition);
            background: rgba(0, 0, 0, 0.01);
        }
        .dark .project-card {
            border-color: rgba(255, 255, 255, 0.04);
            background: rgba(255, 255, 255, 0.01);
        }
        .project-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow);
            border-color: var(--accent);
        }
        .project-card .thumb {
            height: 200px;
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(20, 184, 166, 0.08));
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        .project-card .thumb::before {
            content: '';
            position: absolute;
            width: 160px;
            height: 160px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            pointer-events: none;
        }
        .project-card .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .project-thumb-inner {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
            z-index: 1;
        }
        .project-icon {
            width: 92px;
            height: 92px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            font-size: 2.6rem;
            color: var(--accent);
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(37, 99, 235, 0.22);
            box-shadow:
                0 0 24px rgba(37, 99, 235, 0.35),
                0 0 48px rgba(20, 184, 166, 0.18),
                inset 0 0 20px rgba(255, 255, 255, 0.06);
            transition: var(--transition);
            position: relative;
        }
        .dark .project-icon {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(37, 99, 235, 0.35);
        }
        .project-icon::after {
            content: '';
            position: absolute;
            inset: -10px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, transparent 68%);
            z-index: -1;
            animation: projectIconGlow 3s ease-in-out infinite;
        }
        .project-icon.icon-edu {
            color: #3b82f6;
            box-shadow:
                0 0 24px rgba(59, 130, 246, 0.4),
                0 0 48px rgba(20, 184, 166, 0.2),
                inset 0 0 20px rgba(255, 255, 255, 0.06);
        }
        .project-icon.icon-pay {
            color: #14b8a6;
            box-shadow:
                0 0 24px rgba(20, 184, 166, 0.45),
                0 0 48px rgba(37, 99, 235, 0.15),
                inset 0 0 20px rgba(255, 255, 255, 0.06);
        }
        .project-icon.icon-api {
            color: #8b5cf6;
            box-shadow:
                0 0 24px rgba(139, 92, 246, 0.4),
                0 0 48px rgba(37, 99, 235, 0.15),
                inset 0 0 20px rgba(255, 255, 255, 0.06);
        }
        .project-icon.emoji {
            font-size: 3.4rem;
            line-height: 1;
            filter: drop-shadow(0 0 14px rgba(37, 99, 235, 0.55));
        }
        .project-card:hover .project-icon {
            transform: scale(1.1) translateY(-2px);
            box-shadow:
                0 0 32px rgba(37, 99, 235, 0.55),
                0 0 64px rgba(20, 184, 166, 0.28),
                inset 0 0 24px rgba(255, 255, 255, 0.08);
        }
        .project-label {
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            opacity: 0.55;
        }
        @keyframes projectIconGlow {
            0%,
            100% {
                opacity: 0.55;
                transform: scale(1);
            }
            50% {
                opacity: 1;
                transform: scale(1.08);
            }
        }
        .project-card .thumb .placeholder {
            font-size: 0.85rem;
            font-weight: 500;
            opacity: 0.3;
            letter-spacing: 0.02em;
        }
        .project-card .body {
            padding: 24px;
        }
        .project-card .body h3 {
            font-size: 1.15rem;
            font-weight: 600;
            margin-bottom: 6px;
        }
        .project-card .body p {
            font-size: 0.9rem;
            opacity: 0.7;
            margin-bottom: 12px;
        }
        .project-card .body .techs {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 16px;
        }
        .project-card .body .techs span {
            font-size: 0.7rem;
            padding: 2px 12px;
            border-radius: 50px;
            background: rgba(0, 0, 0, 0.04);
            font-weight: 500;
        }
        .dark .project-card .body .techs span {
            background: rgba(255, 255, 255, 0.04);
        }
        .project-card .body .links {
            display: flex;
            gap: 12px;
        }
        .project-card .body .links a {
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--accent);
            transition: var(--transition);
        }
        .project-card .body .links a:hover {
            opacity: 0.6;
        }

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

        /* ============================================
                   EXPERIENCE (TIMELINE)
                   ============================================ */
        .timeline {
            margin-top: 40px;
            position: relative;
            padding-left: 32px;
            border-left: 2px solid rgba(37, 99, 235, 0.15);
        }
        .timeline-item {
            padding-bottom: 40px;
            position: relative;
        }
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -38px;
            top: 6px;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: var(--accent);
            border: 3px solid var(--bg-light);
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
        }
        .dark .timeline-item::before {
            border-color: var(--bg-dark);
        }
        .timeline-item .date {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--accent);
            letter-spacing: 0.02em;
        }
        .timeline-item h3 {
            font-size: 1.15rem;
            font-weight: 600;
            margin: 4px 0 2px;
        }
        .timeline-item .role {
            font-weight: 500;
            opacity: 0.6;
            font-size: 0.95rem;
        }
        .timeline-item p {
            font-size: 0.9rem;
            opacity: 0.7;
            margin-top: 6px;
            max-width: 500px;
        }

        /* ============================================
                   TESTIMONIALS
                   ============================================ */
        .testimonials-carousel {
            margin-top: 40px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 24px;
        }
        .testimonial-card {
            padding: 28px 24px;
            border-radius: var(--radius);
            border: 1px solid rgba(0, 0, 0, 0.04);
            background: rgba(0, 0, 0, 0.01);
            transition: var(--transition);
        }
        .dark .testimonial-card {
            border-color: rgba(255, 255, 255, 0.04);
            background: rgba(255, 255, 255, 0.01);
        }
        .testimonial-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow);
        }
        .testimonial-card .stars {
            color: #f59e0b;
            font-size: 0.9rem;
            margin-bottom: 12px;
            letter-spacing: 2px;
        }
        .testimonial-card blockquote {
            font-style: italic;
            font-size: 0.95rem;
            opacity: 0.8;
            margin-bottom: 12px;
        }
        .testimonial-card .author {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .testimonial-card .author .initials {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--accent);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 0.9rem;
        }
        .testimonial-card .author .name {
            font-weight: 600;
            font-size: 0.9rem;
        }
        .testimonial-card .author .title {
            font-size: 0.8rem;
            opacity: 0.5;
        }

        /* ============================================
                   BLOG
                   ============================================ */
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        .blog-card {
            border-radius: var(--radius);
            overflow: hidden;
            border: 1px solid rgba(0, 0, 0, 0.04);
            transition: var(--transition);
            background: rgba(0, 0, 0, 0.01);
        }
        .dark .blog-card {
            border-color: rgba(255, 255, 255, 0.04);
            background: rgba(255, 255, 255, 0.01);
        }
        .blog-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow);
            border-color: var(--accent);
        }
        .blog-card .thumb {
            height: 160px;
            background: linear-gradient(135deg, rgba(20, 184, 166, 0.06), rgba(37, 99, 235, 0.06));
            display: flex;            align-items: center;
            justify-content: center;
            font-size: 2.4rem;
            color: var(--secondary);
        }
        .blog-card .body {
            padding: 20px 24px 24px;
        }
        .blog-card .body .category {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--accent);
            font-weight: 600;
        }
        .blog-card .body h3 {
            font-size: 1.05rem;
            font-weight: 600;
            margin: 6px 0 8px;
        }
        .blog-card .body p {
            font-size: 0.9rem;
            opacity: 0.7;
        }
        .blog-card .body .meta {
            margin-top: 12px;
            font-size: 0.8rem;
            opacity: 0.4;
        }

        /* ============================================
                   PUBLICATIONS
                   ============================================ */
        .publication-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 24px;
        }
        .publication-filters button {
            padding: 6px 18px;
            border-radius: 50px;
            border: none;
            background: rgba(0, 0, 0, 0.04);
            font-size: 0.8rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            font-family: var(--font);
            color: var(--text-light);
        }
        .dark .publication-filters button {
            background: rgba(255, 255, 255, 0.04);
            color: var(--text-dark);
        }
        .publication-filters button.active,
        .publication-filters button:hover {
            background: var(--accent);
            color: #fff;
        }

        .publications-list {
            margin-top: 32px;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .publication-item {
            padding: 20px 24px;
            border-radius: var(--radius);
            border: 1px solid rgba(0, 0, 0, 0.04);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
            transition: var(--transition);
        }
        .dark .publication-item {
            border-color: rgba(255, 255, 255, 0.04);
        }
        .publication-item:hover {
            border-color: var(--accent);
            box-shadow: var(--shadow);
        }
        .publication-item .info h4 {
            font-weight: 600;
            font-size: 1rem;
        }
        .publication-item .info .journal {
            font-size: 0.85rem;
            opacity: 0.6;
        }
        .publication-item .info .doi {
            font-size: 0.75rem;
            color: var(--accent);
            font-weight: 500;
        }
        .publication-item .actions {
            display: flex;
            gap: 12px;
        }
        .publication-item .actions a {
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--accent);
            transition: var(--transition);
        }
        .publication-item .actions a:hover {
            opacity: 0.6;
        }

        /* ============================================
                   DONATE
                   ============================================ */
        .donate-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            margin-top: 40px;
        }
        .donate-card {
            padding: 36px 32px;
            border-radius: var(--radius);
            border: 1px solid rgba(0, 0, 0, 0.04);
            background: rgba(0, 0, 0, 0.01);
        }
        .dark .donate-card {
            border-color: rgba(255, 255, 255, 0.04);
            background: rgba(255, 255, 255, 0.01);
        }
        .donate-card h3 {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 6px;
        }
        .donate-card .sub {
            opacity: 0.6;
            font-size: 0.95rem;
            margin-bottom: 20px;
        }
        .donate-card .till-box {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 16px 20px;
            border-radius: 12px;
            background: rgba(0, 0, 0, 0.02);
            border: 1px dashed rgba(0, 0, 0, 0.08);
            margin: 16px 0;
        }
        .dark .donate-card .till-box {
            background: rgba(255, 255, 255, 0.02);
            border-color: rgba(255, 255, 255, 0.06);
        }
        .donate-card .till-box .till {
            font-size: 1.6rem;
            font-weight: 700;
            letter-spacing: 2px;
            color: var(--accent);
        }
        .donate-card .till-box button {
            margin-left: auto;
            padding: 8px 20px;
            border-radius: 50px;
            border: none;
            background: var(--accent);
            color: #fff;
            font-weight: 600;
            font-size: 0.8rem;
            cursor: pointer;
            transition: var(--transition);
            font-family: var(--font);
        }
        .donate-card .till-box button:hover {
            opacity: 0.8;
        }
        .donate-card .qr-placeholder {
            width: 120px;
            height: 120px;
            border-radius: 12px;
            background: rgba(0, 0, 0, 0.04);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            opacity: 0.4;
            border: 2px dashed rgba(0, 0, 0, 0.06);
            margin: 16px 0;
        }
        .dark .donate-card .qr-placeholder {
            background: rgba(255, 255, 255, 0.02);
            border-color: rgba(255, 255, 255, 0.04);
        }
        .donate-card .steps {
            font-size: 0.9rem;
            opacity: 0.7;            line-height: 1.8;
        }
        .donate-card .steps li {
            list-style: decimal;
            margin-left: 20px;
        }

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

        /* ============================================
                   CONTACT
                   ============================================ */
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;          gap: 50px;
            margin-top: 40px;
        }
        .contact-info .item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 14px 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        }
        .dark .contact-info .item {
            border-bottom-color: rgba(255, 255, 255, 0.04);
        }
        .contact-info .item .icon {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(37, 99, 235, 0.06);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent);
            font-size: 1.1rem;
            flex-shrink: 0;
        }
        .contact-info .item .text .label {
            font-size: 0.75rem;
            opacity: 0.4;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            font-weight: 600;
        }
        .contact-info .item .text .value {
            font-weight: 500;
        }
        .contact-form {
            display: flex;           
            flex-direction: column;
            gap: 16px;
        }
        .contact-form input,
        .contact-form textarea {
            padding: 14px 18px;
            border-radius: 12px;
            border: 1px solid rgba(0, 0, 0, 0.06);
            font-family: var(--font);
            font-size: 0.95rem;
            transition: var(--transition);
            background: rgba(0, 0, 0, 0.01);
            color: var(--text-light);
        }
        .dark .contact-form input,
        .dark .contact-form textarea {
            border-color: rgba(255, 255, 255, 0.06);
            background: rgba(255, 255, 255, 0.01);
            color: var(--text-dark);
        }
        .contact-form input:focus,
        .contact-form textarea:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.06);
        }
        .contact-form textarea {
            min-height: 140px;
            resize: vertical;
        }

        @media (max-width: 768px) {
            .contact-grid {
                grid-template-columns: 1fr;
                gap: 32px;
            }
        }

        /* ============================================
                   FOOTER
                   ============================================ */
        .footer {
            padding: 60px 0 30px;
            border-top: 1px solid rgba(0, 0, 0, 0.04);
            margin-top: 40px;
        }
        .dark .footer {
            border-top-color: rgba(255, 255, 255, 0.04);
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 40px;
            margin-bottom: 40px;
        }
        .footer-brand p {
            opacity: 0.6;
            margin-top: 8px;
            max-width: 300px;
            font-size: 0.9rem;
        }
        .footer-col h4 {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            opacity: 0.4;
            font-weight: 600;
            margin-bottom: 12px;
        }
        .footer-col a {
            display: block;
            padding: 4px 0;
            font-size: 0.9rem;
            opacity: 0.7;
            transition: var(--transition);
        }
        .footer-col a:hover {
            opacity: 1;
            color: var(--accent);
        }
        .footer-bottom {
            border-top: 1px solid rgba(0, 0, 0, 0.04);
            padding-top: 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
            font-size: 0.85rem;
            opacity: 0.5;
        }
        .dark .footer-bottom {
            border-top-color: rgba(255, 255, 255, 0.04);
        }
        .footer-socials {
            display: flex;
            gap: 12px;
        }
        .footer-socials a {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.02);
            transition: var(--transition);
            font-size: 1rem;
            color: var(--text-light);
        }
        .dark .footer-socials a {
            background: rgba(255, 255, 255, 0.02);
            color: var(--text-dark);
        }
        .footer-socials a:hover {
            background: var(--accent);
            color: #fff;
            transform: translateY(-3px);
        }

        @media (max-width: 768px) {
            .footer-grid {
                grid-template-columns: 1fr 1fr;
                gap: 32px;
            }
        }
        @media (max-width: 500px) {
            .footer-grid {
                grid-template-columns: 1fr;
            }
            .footer-bottom {
                flex-direction: column;
                text-align: center;
            }
        }

        /* ============================================
                   BACK TO TOP
                   ============================================ */
        .back-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            border: none;
            background: var(--accent);
            color: #fff;
            font-size: 1.2rem;
            cursor: pointer;
            box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
            transition: var(--transition);
            opacity: 0;
            pointer-events: none;
            transform: translateY(20px);
            z-index: 100;
        }
        .back-top.visible {
            opacity: 1;
            pointer-events: all;
            transform: translateY(0);
        }
        .back-top:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
        }

        /* ============================================
                   RESPONSIVE TWEAKS
                   ============================================ */
        @media (max-width: 600px) {
            .hero-content h1 {
                font-size: 2rem;
            }
            .hero-actions .btn {
                padding: 12px 22px;
                font-size: 0.85rem;
            }
            section {
                padding: 60px 0;
            }
            .container {
                padding: 0 16px;
            }
            .service-card {
                padding: 24px 18px;
            }
            .publication-item {
                flex-direction: column;
                align-items: flex-start;
            }
            .publication-item .actions {
                width: 100%;
                justify-content: flex-start;
            }
        }

        /* ============================================
                   ANIMATION HELPERS (scroll reveal)
                   ============================================ */
        .reveal {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }
        .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .reveal-left {
            opacity: 0;
            transform: translateX(-40px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }
        .reveal-left.visible {
            opacity: 1;
            transform: translateX(0);
        }
        .reveal-right {
            opacity: 0;
            transform: translateX(40px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }
        .reveal-right.visible {
            opacity: 1;
            transform: translateX(0);
        }

        /* ============================================
                   COUNTER ANIMATION (JS handles)
                   ============================================ */
        .counter {
            display: inline-block;
        }