* {
            -webkit-tap-highlight-color: transparent;
        }

        :root {
            --g1: #059669;
            --g2: #10b981;
            --g3: #34d399;
            --g4: #6ee7b7;
            --dark: #030a06;
            --surface: #0d1a12;
            --surface2: #122018;
            --border: rgba(52, 211, 153, 0.12);
            --border-hover: rgba(52, 211, 153, 0.35);
            --text: #f0fdf4;
            --text-muted: #86efac;
            --text-dim: #4b7a5e;
            --glow: rgba(16, 185, 129, 0.2);
            --glow-strong: rgba(16, 185, 129, 0.45);
            --card-bg: rgba(13, 26, 18, 0.85);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'DM Sans', sans-serif;
            background: var(--dark);
            color: var(--text);
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Ambient BG */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            z-index: 0;
            background: radial-gradient(ellipse 80% 60% at 10% 10%, rgba(5, 150, 105, 0.18) 0%, transparent 60%), radial-gradient(ellipse 60% 80% at 90% 80%, rgba(16, 185, 129, 0.12) 0%, transparent 55%);
            pointer-events: none;
        }

        body::after {
            content: '';
            position: fixed;
            inset: 0;
            z-index: 0;
            background-image: linear-gradient(rgba(52, 211, 153, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(52, 211, 153, 0.025) 1px, transparent 1px);
            background-size: 48px 48px;
            pointer-events: none;
        }

        /* NAVBAR */
        .navbar {
            position: sticky;
            top: 0;
            z-index: 1000;
            height: 68px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 5%;
            background: rgba(3, 10, 6, 0.75);
            backdrop-filter: blur(20px) saturate(180%);
            border-bottom: 1px solid var(--border);
        }

        .nav-logo {
            font-family: 'Syne', sans-serif;
            font-size: 1.35rem;
            font-weight: 800;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            text-decoration: none;
        }

        .nav-logo i {
            width: 34px;
            height: 34px;
            background: linear-gradient(135deg, var(--g1), var(--g3));
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            color: #fff;
            box-shadow: 0 0 14px var(--glow);
        }

        .ai-tag {
            font-size: 0.6rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            background: linear-gradient(90deg, var(--g1), var(--g3));
            padding: 3px 8px;
            border-radius: 20px;
            color: #fff;
        }

        .nav-user-area {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .user-info {
            text-align: right;
            line-height: 1.2;
        }

        .user-info span {
            font-weight: 600;
            font-size: 0.9rem;
            display: block;
            color: var(--text);
        }

        .user-info small {
            font-size: 0.72rem;
            color: var(--text-muted);
        }

        .profile-dropdown {
            position: relative;
        }

        .profile-dropdown::after {
            content: '';
            position: absolute;
            top: 100%;
            right: 0;
            width: 100%;
            height: 16px;
            background: transparent;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            cursor: pointer;
            border: 2px solid var(--border);
            transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
        }

        .user-avatar:hover {
            border-color: var(--g2);
            box-shadow: 0 0 16px var(--glow);
            transform: scale(1.06);
        }

        .dropdown-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            width: 210px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 8px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translateY(-8px) scale(0.97);
            transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
            z-index: 1300;
        }

        .profile-dropdown:hover .dropdown-menu,
        .profile-dropdown:focus-within .dropdown-menu {
            opacity: 1;
            visibility: visible;
            pointer-events: all;
            transform: translateY(0) scale(1);
            transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
        }

        .dropdown-menu a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 9px;
            color: var(--text-muted);
            font-size: 0.875rem;
            font-weight: 500;
            text-decoration: none;
            transition: background 0.18s, color 0.18s;
        }

        .dropdown-menu a:hover {
            background: rgba(52, 211, 153, 0.1);
            color: var(--g3);
        }

        .dropdown-menu a i {
            width: 16px;
            text-align: center;
            opacity: 0.7;
        }

        .dropdown-menu hr {
            border: none;
            border-top: 1px solid var(--border);
            margin: 6px 0;
        }

        .logout-link {
            color: #f87171 !important;
        }

        .logout-link:hover {
            background: rgba(239, 68, 68, 0.1) !important;
        }

        /* PAGE HEADER */
        .page-header {
            position: relative;
            z-index: 1;
            padding: 44px 5% 36px;
            border-bottom: 1px solid var(--border);
            animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            color: var(--text-dim);
            margin-bottom: 14px;
            text-align: left;
        }

        .breadcrumb a {
            color: var(--g3);
            text-decoration: none;
        }

        .page-header h1 {
            font-family: 'Syne', sans-serif;
            font-size: 2.5rem;
            font-weight: 800;
            letter-spacing: -0.03em;
        }

        .highlight {
            background: linear-gradient(120deg, var(--g3), var(--g2));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .model-badge {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--g3);
            background: rgba(52, 211, 153, 0.07);
            border: 1px solid var(--border);
            padding: 5px 12px;
            border-radius: 20px;
            margin-top: 15px;
        }

        /* MAIN LAYOUT */
        .main-container {
            position: relative;
            z-index: 1;
            max-width: 1000px;
            margin: 0 auto;
            padding: 40px 5%;
        }

        .section-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 32px;
            margin-bottom: 24px;
            backdrop-filter: blur(14px);
            animation: fadeUp 0.7s 0.2s both;
            position: relative;
            overflow: hidden;
        }

        .section-title {
            font-family: 'Syne', sans-serif;
            font-size: 1.5rem;
            font-weight: 800;
            margin-bottom: 15px;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .section-title i {
            color: var(--g3);
            font-size: 1.2rem;
        }

        .body-text {
            color: var(--text-muted);
            font-size: 0.92rem;
            line-height: 1.7;
            margin-bottom: 20px;
        }

        /* RESPONSIVE LAYOUT CONTAINERS */
        .team-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-top: 25px;
        }

        .sdg-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-top: 10px;
        }

        .architecture-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-top: 25px;
        }

        .member-container {
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 25px;
            display: flex;
            align-items: center;
            gap: 18px;
        }

        .member-container img {
            width: 65px;
            height: 65px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--border);
        }

        .member-container h4 {
            font-family: 'Syne', sans-serif;
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--text);
        }

        .member-email {
            font-size: 0.82rem;
            color: var(--g3);
            text-decoration: none;
            word-break: break-all;
        }

        /* APPLIANCE SIGNATURE GRID */
        .sig-grid-3x2 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-top: 25px;
        }

        .sig-item {
            background: rgba(255, 255, 255, 0.03);
            padding: 20px 10px;
            border-radius: 12px;
            border: 1px solid var(--border);
            font-size: 0.75rem;
            text-align: center;
            transition: 0.3s;
        }

        .sig-item b {
            color: var(--g3);
            display: block;
            margin-bottom: 6px;
            font-size: 0.9rem;
            font-family: 'Syne', sans-serif;
        }

        .sig-item span {
            color: var(--text-muted);
            opacity: 0.8;
            display: block;
        }

        .sig-badge {
            display: inline-block;
            margin-top: 8px;
            padding: 2px 8px;
            font-size: 0.55rem;
            font-weight: 700;
            border-radius: 4px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .sig-badge.precon {
            background: rgba(16, 185, 129, 0.1);
            color: var(--g3);
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        .sig-badge.physics {
            background: rgba(59, 130, 246, 0.1);
            color: #60a5fa;
            border: 1px solid rgba(59, 130, 246, 0.2);
        }

        .tech-badge {
            display: inline-block;
            font-size: 0.72rem;
            font-weight: 600;
            background: rgba(52, 211, 153, 0.05);
            border: 1px solid var(--border);
            padding: 4px 12px;
            border-radius: 6px;
            color: var(--text-muted);
            margin-right: 6px;
            margin-bottom: 8px;
        }

        /* LINK STYLING */
        .dataset-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--g3);
            text-decoration: none;
            font-weight: 700;
            font-size: 0.85rem;
            padding: 10px 20px;
            border-radius: 10px;
            background: rgba(52, 211, 153, 0.05);
            border: 1px solid var(--border);
            transition: 0.25s;
        }

        .dataset-link:hover {
            background: rgba(52, 211, 153, 0.12);
            transform: translateY(-2px);
            border-color: var(--g2);
        }

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* FOOTER */
        .footer {
            position: relative;
            z-index: 1;
            background: rgba(3, 10, 6, 0.8);
            border-top: 1px solid var(--border);
            padding: 40px 20px;
            text-align: center;
            backdrop-filter: blur(10px);
        }

        .footer-brand {
            font-family: 'Syne', sans-serif;
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--text-muted);
            margin-bottom: 6px;
        }

        .footer-sub {
            color: var(--text-dim);
            font-size: 0.8rem;
            margin-top: 5px;
        }

        .footer-tag {
            display: inline-block;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--g3);
            border: 1px solid var(--border);
            padding: 4px 12px;
            border-radius: 20px;
            background: rgba(52, 211, 153, 0.06);
        }

        /* SCROLL TOP BUTTON */
        .scroll-top {
            position: fixed;
            bottom: 28px;
            right: 28px;
            z-index: 500;
            width: 42px;
            height: 42px;
            background: var(--g1);
            border: none;
            border-radius: 12px;
            color: #fff;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 6px 20px var(--glow);
            opacity: 0;
            pointer-events: none;
            transition: 0.3s;
        }

        .scroll-top.visible {
            opacity: 1;
            pointer-events: all;
        }

        .scroll-top:hover {
            transform: translateY(-3px);
            background: var(--g2);
            box-shadow: 0 8px 25px var(--glow-strong);
        }

        /* ─── DYNAMIC MOBILE BREAKPOINTS ─── */
        @media (max-width: 768px) {
            .sig-grid-3x2 {
                grid-template-columns: repeat(2, 1fr);
                /* 2 in a row on smaller mobile/tablets */
            }
        }

        @media (max-width: 640px) {
            .page-header {
                padding: 28px 5% 20px;
            }

            .page-header h1 {
                font-size: 1.8rem;
            }

            .section-card {
                padding: 20px 16px;
            }

            /* Stack layout cards into a clean 1-column layout on mobile */
            .team-grid,
            .sdg-grid,
            .architecture-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            /* Keeps the load signatures structured neatly 2-by-2 instead of breaking completely */
            .sig-grid-3x2 {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .sig-item {
                padding: 14px 8px;
            }
        }

        @media (max-width: 560px) {
            .nav-logo {
                font-size: 1.05rem;
                gap: 6px;
            }

            .nav-logo i {
                width: 28px;
                height: 28px;
                font-size: 0.75rem;
            }

            .nav-logo span.ai-tag {
                font-size: 0.5rem;
                padding: 2px 6px;
            }

            .user-info span {
                display: none !important;
            }

            .user-info small {
                font-size: 0.65rem;
                letter-spacing: 0.5px;
                text-transform: uppercase;
                color: var(--g3);
                font-weight: 700;
            }
        }
