/* Theme Variables & Tokens */
:root {
    --primary: #5865F2;             /* Discord Blurple for core actions */
    --primary-hover: #4752C4;
    --secondary: #57F287;           /* Accent Green */
    --accent-yellow: #FEE75C;
    --accent-red: #ED4245;
    
    /* Tech Blue Palette (User requested blue gradients, no purple) */
    --tech-blue: #00A8FC;           /* Bright Tech Blue */
    --tech-blue-glow: rgba(0, 168, 252, 0.15);
    --blue-gradient: linear-gradient(135deg, #0052D4, #4364F7, #6FB1FC);
    --dark-blue-glow: radial-gradient(circle, rgba(0,82,212,0.3) 0%, rgba(67,100,247,0.05) 50%, rgba(0,0,0,0) 100%);
    --cyan-glow: radial-gradient(circle, rgba(0,210,255,0.2) 0%, rgba(0,168,252,0.05) 60%, rgba(0,0,0,0) 100%);

    /* Surface depths from discord-DESIGN.md */
    --canvas: #313338;              /* Base dark background */
    --surface-1: #2B2D31;           /* Elevated panels & cards */
    --surface-2: #1E1F22;           /* Darkest elements like Nav header */
    --surface-3: #111214;           /* Deep drop shadows & details */
    --border: #3F4147;
    
    /* Ink colors */
    --ink: #DBDEE1;                 /* Primary text */
    --ink-muted: #949BA4;           /* Muted text */
    --ink-light: #FFFFFF;           /* High contrast text */

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-pill: 9999px;

    /* Typo */
    --font-display: "Outfit", "Inter", -apple-system, sans-serif;
    --font-body: "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--canvas);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink-light);
    line-height: 1.25;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
    outline: none;
}

a {
    color: var(--tech-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: #ffffff;
}

/* 1. Glowing Background Blobs (Blue Gradients only, no purple) */
.glow-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-sphere {
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.45;
}

.glow-1 {
    top: -100px;
    right: -100px;
    background: var(--dark-blue-glow);
}

.glow-2 {
    top: 45%;
    left: -200px;
    background: var(--cyan-glow);
    width: 600px;
    height: 600px;
    opacity: 0.35;
}

/* 2. Navigation Header */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(30, 31, 34, 0.85); /* Surface-2 with transparency */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-normal), background-color var(--transition-normal);
}

.navbar-content {
    max-width: 1200px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--ink-light);
}
.logo-icon {
    color: var(--tech-blue);
    font-size: 22px;
}
.logo-suffix {
    color: var(--tech-blue);
    font-weight: 500;
}

.mobile-nav-toggle {
    display: none;
    font-size: 24px;
    color: var(--ink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-muted);
    position: relative;
    padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--ink-light);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--tech-blue);
    transition: width var(--transition-fast);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Nav Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.nav-dropdown-btn {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition-normal);
}
.nav-dropdown-btn:hover {
    color: var(--ink-light);
}
.nav-dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-width: 180px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1100;
    padding: 6px 0;
}
.nav-dropdown-content::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--border);
}
.nav-dropdown-content::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--surface-1);
    margin-bottom: -1px;
}
.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-content a {
    font-family: var(--font-display);
    color: var(--ink-muted);
    padding: 10px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    white-space: nowrap;
}
.nav-dropdown-content a i {
    font-size: 12px;
    width: 14px;
    text-align: center;
}
.nav-dropdown-content a:hover {
    background-color: var(--surface-2);
    color: var(--ink-light);
}

.nav-btn {
    background-color: var(--primary);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
}
.nav-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Sections Containers */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}
.section-subtitle {
    color: var(--tech-blue);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}
.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}
.section-description {
    color: var(--ink-muted);
    font-size: 16px;
}

/* 3. Hero Section */
.hero-section {
    padding-top: 140px; /* Offset sticky header */
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.badge {
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-primary {
    background-color: rgba(0, 168, 252, 0.1);
    color: var(--tech-blue);
    border: 1px solid rgba(0, 168, 252, 0.2);
}
.badge-secondary {
    background-color: rgba(87, 242, 135, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(87, 242, 135, 0.2);
}

.hero-headline {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-subheadline {
    font-size: 18px;
    color: var(--ink-muted);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
}

.hero-cta-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-filled {
    background-color: var(--tech-blue);
    color: #ffffff;
}
.btn-filled:hover {
    background-color: #0093dd;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 168, 252, 0.25);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--ink-light);
    background-color: var(--surface-1);
}
.btn-outline:hover {
    border-color: var(--tech-blue);
    background-color: rgba(0, 168, 252, 0.05);
    transform: translateY(-2px);
}

/* Avatar Graphic */
.hero-graphic-content {
    display: flex;
    justify-content: center;
}
.graphic-avatar-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graphic-glow-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--blue-gradient);
    opacity: 0.15;
    filter: blur(10px);
    animation: rotateGlow 8s linear infinite;
}
@keyframes rotateGlow {
    100% { transform: rotate(360deg); }
}

.hero-avatar {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 4px solid var(--surface-1);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    background-color: var(--surface-1);
}

.avatar-status-pill {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.avatar-status-pill .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
}
.avatar-status-pill .status-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    font-family: var(--font-display);
    text-transform: uppercase;
}

/* 4. Experience Timeline */
.timeline-container {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding-left: 32px;
}

/* Timeline Vertical Line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 8px;
    width: 2px;
    height: calc(100% - 24px);
    background-color: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 12px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--canvas);
    border: 3px solid var(--tech-blue);
    z-index: 2;
    transition: background-color var(--transition-fast);
}
.timeline-item:hover .timeline-dot {
    background-color: var(--tech-blue);
    box-shadow: 0 0 10px var(--tech-blue);
}

.timeline-date {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--tech-blue);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.timeline-card {
    background-color: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.timeline-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 168, 252, 0.4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 168, 252, 0.2);
}

.card-header {
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}
.role-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink-light);
    margin-bottom: 4px;
}
.company-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-right: 12px;
    display: inline-block;
}
.job-location {
    font-size: 13px;
    color: var(--ink-muted);
    display: inline-block;
}

.card-body {
    font-size: 15px;
    color: var(--ink);
}
.card-body p {
    margin-bottom: 12px;
}

.job-project-group {
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 2px solid var(--border);
}
.job-project-group:last-child {
    margin-bottom: 0;
}
.job-project-group h4 {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 4px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.card-tag {
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

/* 5. Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.skill-card {
    background-color: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.skill-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 168, 252, 0.4);
    box-shadow: 0 16px 36px rgba(0,0,0,0.3);
}

/* Skill card colored pill/top-border mimicking Discord Embeds */
.skill-card-pill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
}
.skill-card-pill.secondary { background-color: var(--secondary); }
.skill-card-pill.info { background-color: var(--tech-blue); }
.skill-card-pill.credentials { background-color: var(--accent-yellow); }

.skill-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--surface-2);
    color: var(--tech-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--ink-light);
}

.skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    color: var(--ink-muted);
}

/* 6. Education Grid */
.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.education-card {
    background-color: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color var(--transition-normal), transform var(--transition-normal);
}
.education-card:hover {
    border-color: rgba(0,168,252,0.3);
    transform: translateY(-2px);
}

.edu-header {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}
.edu-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--surface-2);
    color: var(--tech-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.edu-logo-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ffffff; /* White circular background makes logos stand out */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.edu-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.edu-title-group h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink-light);
    margin-bottom: 2px;
}
.university-name {
    font-size: 14px;
    color: var(--ink-muted);
}

.edu-body {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}
.edu-date {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--tech-blue);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}
.edu-body p {
    font-size: 14px;
    color: var(--ink-muted);
}

/* 7. Teaser Section (Projects & Benchmarks) */
.teasers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.teaser-card {
    background-color: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.linkable-card {
    color: inherit !important;
}
.linkable-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 168, 252, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.civil-card {
    background-color: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.civil-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 168, 252, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.teaser-icon {
    font-size: 32px;
    color: var(--tech-blue);
}

.teaser-title {
    font-size: 22px;
    color: #ffffff;
}
.teaser-desc {
    font-size: 15px;
    color: var(--ink-muted);
    flex-grow: 1;
}

.teaser-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    width: fit-content;
}
.tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.tag-dot.progress {
    background-color: var(--accent-yellow);
    box-shadow: 0 0 6px var(--accent-yellow);
}
.tag-dot.scheduled {
    background-color: var(--accent-red);
    box-shadow: 0 0 6px var(--accent-red);
}

/* 8. Contact Section */
.contact-section {
    padding-bottom: 120px;
}
.contact-box {
    background-color: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 64px 32px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 100px var(--tech-blue-glow); /* Glowing Blue shadow */
    max-width: 900px;
    margin: 0 auto;
}

.contact-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}
.contact-header p {
    color: var(--ink-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 32px auto;
}

.contact-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.email-display-card {
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 8px 8px 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: 440px;
}

.email-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.email-label {
    font-size: 9px;
    font-weight: 800;
    color: var(--tech-blue);
    letter-spacing: 1px;
}
.email-address {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-light);
}

.copy-btn {
    background-color: var(--primary);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}
.copy-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.02);
}

.social-links-row {
    display: flex;
    gap: 16px;
}
.social-icon-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--ink-muted);
    transition: all var(--transition-fast);
}
.social-icon-link:hover {
    color: var(--ink-light);
    border-color: var(--tech-blue);
    background-color: rgba(0, 168, 252, 0.1);
    transform: translateY(-2px);
}

/* 9. Footer */
.footer-container {
    background-color: var(--surface-2);
    border-top: 1px solid rgba(255,255,255,0.03);
    padding: 40px 24px;
    text-align: center;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--ink-muted);
}
.footer-meta {
    font-size: 12px;
    opacity: 0.6;
}

/* Responsive & Mobile styles */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-badge-row {
        justify-content: center;
    }
    .hero-cta-row {
        justify-content: center;
    }
    .hero-subheadline {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-headline {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background-color: var(--surface-2);
        flex-direction: column;
        padding-top: 48px;
        gap: 32px;
        transition: left var(--transition-normal);
        z-index: 999;
    }
    
    .nav-links.mobile-open {
        left: 0;
    }
    
    /* Mobile Dropdown Override */
    .nav-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .nav-dropdown-btn {
        padding: 8px 0;
        font-size: 15px;
        gap: 6px;
    }
    .nav-dropdown-content {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background: none;
        width: auto;
        padding: 4px 0 0 0;
        margin-top: 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .nav-dropdown-content::before, .nav-dropdown-content::after {
        display: none; /* Hide popover triangle on mobile */
    }
    .nav-dropdown-content a {
        padding: 6px 16px;
        font-size: 14px;
        background: none !important;
        color: var(--ink-muted);
    }
    .nav-dropdown-content a:hover {
        color: var(--ink-light);
    }
    
    .section-container {
        padding: 60px 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .education-grid, .teasers-grid {
        grid-template-columns: 1fr;
    }
    
    .email-display-card {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 16px;
        gap: 16px;
        width: 100%;
    }
    .email-details {
        align-items: center;
    }
    .copy-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Accessibility: reduce motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* Bilingual Language Toggling & Button Styles */
html[lang="en"] .lang-zh {
    display: none !important;
}
html[lang="zh"] .lang-en {
    display: none !important;
}

.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-muted);
    transition: all var(--transition-fast);
    background-color: var(--surface-1);
}
.lang-toggle-btn:hover {
    color: var(--ink-light);
    border-color: var(--tech-blue);
    background-color: rgba(0, 168, 252, 0.08);
}

/* Benchmark Page Layout Styles */
.benchmark-page-main {
    padding-top: 72px; /* Navbar offset */
    min-height: calc(100vh - 120px);
}

.benchmark-explorer-container {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* Prompt Box */
.prompt-box-card {
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.prompt-box-header {
    background-color: var(--surface-3);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--tech-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.prompt-header-lang {
    color: var(--ink-muted);
}
.prompt-box-body {
    padding: 20px;
    background-color: #111214; /* Deep dark codebox */
}
.prompt-box-body pre {
    font-family: "Fira Code", monospace;
    font-size: 14px;
    color: var(--ink);
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.6;
}

/* Benchmark Workspace Grid */
.benchmark-workspace {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    margin-top: 40px;
}

/* Sidebar Model Selector */
.model-sidebar {
    background-color: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: fit-content;
    position: sticky;
    top: 96px; /* Offset sticky header + spacing */
}

.model-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.model-group-title {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--tech-blue);
    letter-spacing: 1px;
    margin-bottom: 4px;
    padding-left: 8px;
}
.model-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.model-item-btn {
    padding: 8px 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink-muted);
    width: 100%;
    text-align: left;
    transition: all var(--transition-fast);
}
.model-item-btn:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--ink-light);
}
.model-item-btn.active {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
}

.model-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--ink-muted);
    transition: background-color var(--transition-fast);
}
.model-item-btn:hover .model-indicator {
    background-color: var(--tech-blue);
}
.model-item-btn.active .model-indicator {
    background-color: #ffffff;
    box-shadow: 0 0 6px #ffffff;
}

/* Right Iframe Viewport Container */
.viewport-container {
    background-color: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.viewport-header {
    padding: 16px 24px;
    background-color: var(--surface-2);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.viewport-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.viewport-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.viewport-dot.online {
    background-color: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
}
.current-model-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-light);
}

.action-link-btn {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--tech-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
}
.action-link-btn:hover {
    color: #ffffff;
}

.iframe-wrapper {
    background-color: #ffffff;
    height: 750px;
    width: 100%;
}
#benchmark-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile adjustments for workspace */
@media (max-width: 900px) {
    .benchmark-workspace {
        grid-template-columns: 1fr;
    }
    .model-sidebar {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding: 16px;
        gap: 24px;
        width: 100%;
        scroll-snap-type: x mandatory;
    }
    .model-group {
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    .model-list {
        flex-direction: row;
    }
    .model-item-btn {
        width: auto;
        white-space: nowrap;
    }
    .iframe-wrapper {
        height: 600px;
    }
}


