:root {
            /* Light Theme Variables */
            --bg-primary: #fbfbfd;
            --bg-color: #fbfbfd;
            --text-primary: #1d1d1f;
            --text-secondary: #86868b;
            --nav-bg: rgba(251, 251, 253, 0.8);
            --card-bg: #ffffff;
            --card-border: rgba(0, 0, 0, 0.05);
            --btn-primary-bg: #0071e3;
            --btn-primary-text: #ffffff;
            --btn-primary-hover: #0077ed;
            --btn-secondary-bg: rgba(0, 0, 0, 0.05);
            --btn-secondary-text: #1d1d1f;
            --btn-secondary-hover: rgba(0, 0, 0, 0.08);
            --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
            --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
            --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
            --accent-green: #2ecc71;
            
            /* Typography */
            --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
        }

        [data-theme="dark"] {
            /* Dark Theme Variables */
            --bg-primary: #000000;
            --bg-color: #000000;
            --text-primary: #f5f5f7;
            --text-secondary: #a1a1a6;
            --nav-bg: rgba(0, 0, 0, 0.8);
            --card-bg: #1c1c1e;
            --card-border: rgba(255, 255, 255, 0.05);
            --btn-primary-bg: #f5f5f7;
            --btn-primary-text: #000000;
            --btn-primary-hover: #ffffff;
            --btn-secondary-bg: rgba(255, 255, 255, 0.1);
            --btn-secondary-text: #f5f5f7;
            --btn-secondary-hover: rgba(255, 255, 255, 0.15);
            --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
            --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
            --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
            --accent-green: #34c759;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--bg-color);
            background-image: 
                linear-gradient(var(--card-border) 1px, transparent 1px),
                linear-gradient(90deg, var(--card-border) 1px, transparent 1px);
            background-size: 40px 40px;
            background-attachment: fixed;
            color: var(--text-primary);
            font-family: var(--font-sans);
            line-height: 1.47059;
            font-weight: 400;
            letter-spacing: -0.022em;
            transition: background-color 0.5s ease, color 0.5s ease;
            overflow-x: hidden;
        }

        /* Utility Classes */
        .container {
            max-width: 1040px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Typography */
        h1, h2, h3, h4 {
            font-weight: 600;
            letter-spacing: -0.015em;
        }

        h2.section-headline {
            font-size: 52px;
            line-height: 1.08349;
            font-weight: 600;
            letter-spacing: -0.003em;
            text-align: center;
            margin-bottom: 60px;
        }

        .text-gradient {
            background: linear-gradient(90deg, #ff2e93, #ff8000, #ffcc00);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 48px;
            background: var(--nav-bg);
            backdrop-filter: saturate(180%) blur(20px);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            z-index: 9999;
            border-bottom: 1px solid var(--card-border);
            display: flex;
            justify-content: center;
            transition: background 0.5s ease, border-color 0.5s ease;
        }

        .nav-content {
            width: 100%;
            max-width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
        }

        .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 32px;
    list-style: none;
}

        .nav-links a {
            color: var(--text-primary);
            text-decoration: none;
            font-size: 13.5px;
            letter-spacing: -0.01em;
            opacity: 0.8;
            transition: opacity 0.2s;
        }

        .nav-links a:hover {
            opacity: 1;
        }

        /* Nav Actions */
        .nav-actions {
            flex: 1;
            justify-content: flex-end;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .admin-link {
            font-size: 13.5px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--accent-blue);
            text-decoration: none;
            padding: 4px 10px;
            border: 1px solid var(--accent-blue);
            border-radius: 99px;
            transition: all 0.2s ease;
            opacity: 0.8;
        }
        .admin-link:hover {
            opacity: 1;
            background: rgba(0, 113, 227, 0.1);
        }

        /* Theme Toggle */
        .theme-toggle {
            background: none;
            border: none;
            color: var(--text-primary);
            cursor: pointer;
            padding: 5px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.8;
            transition: opacity 0.2s, transform 0.3s;
        }
        .theme-toggle:hover {
            opacity: 1;
            transform: rotate(15deg);
        }

        /* Hero Background Effects */
        .hero {
            padding-top: 140px;
            padding-bottom: 80px;
            text-align: center;
            min-height: 90vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: visible; /* Changed from hidden to allow bleeding */
        }
        
        /* Pseudo-element for hero base gradients so they can bleed down without hard edges */
        .hero::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 130%; /* Bleed into next section */
            background:
                radial-gradient(ellipse 120% 60% at 50% -10%, rgba(0,113,227,0.22) 0%, transparent 65%),
                radial-gradient(ellipse 80% 50% at 85% 60%, rgba(255,45,147,0.10) 0%, transparent 60%),
                radial-gradient(ellipse 70% 50% at 10% 80%, rgba(52,199,89,0.08) 0%, transparent 55%);
            pointer-events: none;
            z-index: 0;
        }

        .hero-grid {
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 130%; /* Bleed into next section */
            background-image:
                linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
            background-size: 60px 60px;
            pointer-events: none;
            z-index: 0;
            -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 20%, transparent 100%);
            mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 20%, transparent 100%);
        }

        .hero-glow {
            position: absolute;
            border-radius: 50%;
            filter: blur(90px);
            pointer-events: none;
            animation: hero-pulse 7s ease-in-out infinite;
            z-index: 0;
        }
        .hero-glow-1 { width: 600px; height: 500px; background: rgba(0,113,227,0.30); top: -150px; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
        .hero-glow-2 { width: 400px; height: 400px; background: rgba(255,45,147,0.18); top: 25%; right: 0%; animation-delay: 2.5s; }
        .hero-glow-3 { width: 380px; height: 380px; background: rgba(52,199,89,0.15); bottom: -50px; left: -30px; animation-delay: 5s; }
        .hero-glow-4 { width: 300px; height: 300px; background: rgba(120,80,255,0.14); top: 40%; left: 50%; transform: translateX(-50%); animation-delay: 3.5s; filter: blur(110px); }

        @keyframes hero-pulse {
            0%, 100% { opacity: 0.75; }
            50%       { opacity: 1; }
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 100px;
            font-size: 15px;
            font-weight: 500;
            color: var(--text-secondary);
            letter-spacing: 0.01em;
            margin-bottom: 28px;
            backdrop-filter: blur(10px);
        }
        .hero-badge-dot {
            width: 8px; height: 8px;
            border-radius: 50%;
            background: #34c759;
            box-shadow: 0 0 0 3px rgba(52,199,89,0.25);
            animation: hero-dot-pulse 2s ease-in-out infinite;
        }
        @keyframes hero-dot-pulse {
            0%, 100% { box-shadow: 0 0 0 3px rgba(52,199,89,0.25); }
            50%       { box-shadow: 0 0 0 6px rgba(52,199,89,0.1); }
        }

        /* Hero Personal Info Chips */
        .hero-info-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-top: 36px;
        }
        .hero-info-chip {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 9px 16px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 100px;
            font-size: 15px;
            font-weight: 500;
            color: var(--text-secondary);
            backdrop-filter: blur(8px);
            transition: all 0.3s ease;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }
        .hero-info-chip svg { flex-shrink: 0; opacity: 0.7; }
        .hero-info-chip:hover {
            background: rgba(255,255,255,0.07);
            border-color: rgba(255,255,255,0.15);
            color: var(--text-primary);
        }

        .hero h1 {
            font-size: 80px;
            line-height: 1.05;
            font-weight: 700;
            letter-spacing: -0.015em;
            margin-bottom: 20px;
            max-width: 900px;
            position: relative;
            z-index: 1;
        }

        .hero p {
            font-size: 22px;
            line-height: 1.2;
            font-weight: 400;
            letter-spacing: 0.009em;
            color: var(--text-secondary);
            max-width: 620px;
            margin: 0 auto 40px auto;
            position: relative;
            z-index: 1;
        }

        .cta-group {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
            position: relative;
            z-index: 1;
        }

        .btn {
            display: inline-block;
            border-radius: 980px;
            font-size: 17px;
            line-height: 1.17648;
            font-weight: 400;
            letter-spacing: -0.022em;
            padding: 12px 24px;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .btn-primary {
            background-color: var(--btn-primary-bg);
            color: var(--btn-primary-text);
        }
        .btn-primary:hover { background-color: var(--btn-primary-hover); }

        .btn-secondary {
            background-color: var(--btn-secondary-bg);
            color: var(--btn-secondary-text);
        }
        .btn-secondary:hover { background-color: var(--btn-secondary-hover); }

        /* Scroll Animation Setup */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Bento Box Grid */
        .section-padding { padding: 100px 0; }

        /* Bento Section Background */
        #about {
            position: relative;
        }

        #about::after {
            content: '';
            position: absolute;
            width: 600px; height: 600px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(52,199,89,0.07) 0%, transparent 70%);
            top: -100px; right: -150px;
            pointer-events: none;
            z-index: 0;
        }
        #about .container { position: relative; z-index: 1; }
        
        .bento-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            grid-auto-rows: minmax(280px, auto);
        }

        .bento-card {
            background: var(--card-bg);
            background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 20px 20px;
            border-radius: 24px;
            padding: 32px;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--card-border);
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
            transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
        }
        /* Colored top accent line per card */
        .bento-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1), rgba(255,255,255,0.05));
            border-radius: 24px 24px 0 0;
            transition: height 0.35s ease, opacity 0.35s ease;
        }
        .bento-card.accent-green::before { background: linear-gradient(90deg, transparent, #34c759, transparent); }
        .bento-card.accent-blue::before  { background: linear-gradient(90deg, transparent, #0071e3, transparent); }
        .bento-card.accent-orange::before{ background: linear-gradient(90deg, transparent, #ff8000, transparent); }
        .bento-card.accent-purple::before{ background: linear-gradient(90deg, transparent, #bf5af2, transparent); }

        .bento-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-lg), 0 0 20px rgba(255,255,255,0.02) inset;
            border-color: rgba(255,255,255,0.15);
        }
        .bento-card.accent-green:hover { border-color: rgba(52,199,89,0.3); box-shadow: var(--shadow-lg), 0 0 20px rgba(52,199,89,0.05) inset; }
        .bento-card.accent-blue:hover { border-color: rgba(0,113,227,0.3); box-shadow: var(--shadow-lg), 0 0 20px rgba(0,113,227,0.05) inset; }
        .bento-card.accent-orange:hover { border-color: rgba(255,128,0,0.3); box-shadow: var(--shadow-lg), 0 0 20px rgba(255,128,0,0.05) inset; }

        .col-span-2 { grid-column: span 2; }
        .row-span-2 { grid-row: span 2; }

        .card-label {
            font-family: 'SF Mono', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
            font-size: 13.5px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--text-secondary);
            margin-bottom: 10px;
        }
        .card-label::before {
            content: '>';
            margin-right: 6px;
            color: var(--accent-blue);
            opacity: 0.7;
        }

        .card-title {
            font-size: 28px;
            line-height: 1.15;
            font-weight: 700;
            letter-spacing: -0.01em;
            margin-bottom: 12px;
            position: relative;
            display: inline-block;
        }

        .card-desc {
            font-size: 17px;
            line-height: 1.55;
            color: var(--text-secondary);
            flex-grow: 1;
        }

        /* Specific Bento Cards */
        .bento-edu {
            background: linear-gradient(135deg, rgba(52,199,89,0.07) 0%, var(--card-bg) 60%);
        }
        
        .metric-big {
            font-size: 52px;
            font-weight: 800;
            color: var(--accent-green);
            margin-bottom: 4px;
            letter-spacing: -0.03em;
            line-height: 1;
        }

        /* GPAX Progress Bar */
        .gpax-row {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 10px;
        }
        .gpax-label { font-size: 13.5px; color: var(--text-secondary); min-width: 120px; }
        .gpax-bar-track {
            flex: 1;
            height: 6px;
            background: rgba(255,255,255,0.06);
            border-radius: 99px;
            overflow: hidden;
        }
        .gpax-bar-fill {
            height: 100%;
            border-radius: 99px;
            transition: width 1s ease;
        }
        .gpax-val { font-size: 15px; font-weight: 700; min-width: 36px; text-align: right; }

        /* Skill bars */
        .skill-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
        }
        .skill-name { font-size: 12.5px; font-weight: 600; min-width: 90px; color: var(--text-primary); }
        .skill-track {
            flex: 1;
            height: 5px;
            background: rgba(255,255,255,0.06);
            border-radius: 99px;
            overflow: hidden;
        }
        .skill-fill {
            height: 100%;
            border-radius: 99px;
        }
        .skill-level { font-size: 13.5px; color: var(--text-secondary); min-width: 32px; text-align: right; }

        /* Algorithm topic tags in POSN card */
        .algo-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 12px;
            border-radius: 8px;
            font-size: 13.5px;
            font-weight: 600;
            margin: 3px;
        }

        .tech-pill {
            display: inline-flex;
            align-items: center;
            padding: 6px 14px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 100px;
            font-size: 15px;
            font-weight: 500;
            white-space: nowrap;
            color: var(--text-secondary);
            transition: all 0.2s ease;
        }
        .tech-pill:hover {
            background: rgba(255,255,255,0.09);
            color: var(--text-primary);
        }
        
        .tech-container {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 16px;
        }

        /* Section Gradient Fade Zone */
        .section-fade {
            height: 140px;
            background: linear-gradient(to bottom, var(--bg-color) 0%, var(--card-bg) 100%);
            margin: 0;
            position: relative;
            z-index: 1;
        }

        /* SOP Achievement Bar */
        .sop-stats-bar {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 52px;
            position: relative;
            z-index: 1;
        }

        .sop-achieve-card {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 16px 22px;
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 18px;
            backdrop-filter: blur(10px);
            transition: all 0.35s ease;
            cursor: default;
            min-width: 170px;
        }

        .sop-achieve-card:hover {
            background: rgba(255,255,255,0.05);
            border-color: rgba(255,255,255,0.12);
            transform: translateY(-4px);
        }

        .sop-achieve-icon {
            font-size: 24px;
            line-height: 1;
            flex-shrink: 0;
        }

        .sop-achieve-info {
            display: flex;
            flex-direction: column;
        }

        .sop-achieve-value {
            font-size: 18px;
            font-weight: 800;
            letter-spacing: -0.03em;
            line-height: 1.1;
        }

        .sop-achieve-label {
            font-size: 12px;
            font-weight: 500;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--text-secondary);
            margin-top: 2px;
        }

        @media (max-width: 900px) {
            .sop-stats-bar { gap: 10px; }
            .sop-achieve-card { min-width: 140px; padding: 12px 16px; }
        }

        @media (max-width: 600px) {
            .sop-achieve-card { min-width: calc(50% - 8px); }
        }

        /* SOP Section Layout */
        #motivation {
            position: relative;
            overflow: hidden;
        }

        #motivation::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
            background-size: 32px 32px;
            pointer-events: none;
            z-index: 0;
        }

        .sop-wrapper {
            display: grid;
            grid-template-columns: 200px 1fr 200px;
            gap: 40px;
            align-items: start;
            position: relative;
            z-index: 1;
        }

        .sop-deco-col {
            display: flex;
            flex-direction: column;
            gap: 16px;
            padding-top: 32px;
            position: sticky;
            top: 100px;
        }

        .sop-deco-chip {
            font-size: 13.5px;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            padding: 7px 13px;
            border-radius: 100px;
            border: 1px solid rgba(255,255,255,0.07);
            background: rgba(255,255,255,0.02);
            color: var(--text-secondary);
            width: fit-content;
            transition: all 0.3s ease;
            cursor: default;
        }

        .sop-deco-chip:hover {
            background: rgba(255,255,255,0.05);
            border-color: rgba(255,255,255,0.15);
            color: var(--text-primary);
        }

        .sop-deco-chip.blue  { border-color: rgba(0,113,227,0.3);  color: #4da6ff; }
        .sop-deco-chip.orange{ border-color: rgba(255,128,0,0.3);  color: #ffb347; }
        .sop-deco-chip.green { border-color: rgba(52,199,89,0.3);  color: #5ddb7c; }

        .sop-deco-code {
            font-family: 'SF Mono', 'Fira Code', monospace;
            font-size: 12px;
            line-height: 1.7;
            color: rgba(255,255,255,0.2);
            padding: 14px 16px;
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.04);
            border-radius: 12px;
            white-space: pre;
        }

        .sop-deco-stat {
            padding: 16px;
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.05);
            border-radius: 16px;
            text-align: center;
        }

        .sop-deco-stat-num {
            font-size: 28px;
            font-weight: 800;
            letter-spacing: -1px;
        }

        .sop-deco-stat-label {
            font-size: 10px;
            font-weight: 500;
            letter-spacing: 0.07em;
            text-transform: uppercase;
            color: var(--text-secondary);
            margin-top: 2px;
        }

        .sop-deco-divider {
            width: 100%;
            height: 1px;
            background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
            margin: 4px 0;
        }

        /* Ambient glow blobs */
        .sop-blob {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.12;
            pointer-events: none;
            animation: sop-float 8s ease-in-out infinite;
            z-index: 0;
        }
        .sop-blob-1 { width: 300px; height: 300px; background: #0071e3; top: 5%;  left: -80px; animation-delay: 0s; }
        .sop-blob-2 { width: 250px; height: 250px; background: #ff8000; top: 38%; right: -60px; animation-delay: 2.5s; }
        .sop-blob-3 { width: 280px; height: 280px; background: #34c759; top: 68%; left: -50px; animation-delay: 5s; }

        @keyframes sop-float {
            0%, 100% { transform: translateY(0px) scale(1); }
            50%       { transform: translateY(-20px) scale(1.05); }
        }

        @media (max-width: 1200px) {
            .sop-wrapper { grid-template-columns: 1fr; }
            .sop-deco-col { display: none; }
        }

        /* SOP Premium Cards */
        .sop-container {
            display: flex;
            flex-direction: column;
            gap: 32px;
            margin-top: 40px;
        }

        .sop-card {
            background: var(--card-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--card-border);
            border-radius: 28px;
            padding: 40px;
            box-shadow: var(--shadow-sm);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            overflow: hidden;
            display: flex;
            gap: 32px;
        }

        .sop-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-md);
            border-color: rgba(255, 255, 255, 0.1);
        }

        /* Colored Left Border */
        .sop-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 6px;
            height: 100%;
        }

        .sop-card-1::before { background: linear-gradient(to bottom, #0071e3, #33a3ff); }
        .sop-card-2::before { background: linear-gradient(to bottom, #ff8000, #ffcc00); }
        .sop-card-3::before { background: linear-gradient(to bottom, #34c759, #2ecc71); }

        .sop-badge {
            font-family: 'Inter', sans-serif;
            font-size: 52px;
            font-weight: 800;
            line-height: 1;
            opacity: 0.15;
            letter-spacing: -2px;
            min-width: 70px;
        }
        
        .sop-card-1 .sop-badge { color: #0071e3; opacity: 0.35; }
        .sop-card-2 .sop-badge { color: #ff8000; opacity: 0.35; }
        .sop-card-3 .sop-badge { color: #34c759; opacity: 0.35; }

        .sop-content {
            flex-grow: 1;
        }

        .sop-header {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 20px;
            letter-spacing: -0.02em;
            color: var(--text-primary);
        }

        .sop-text {
            font-size: 15.5px;
            line-height: 1.65;
            color: var(--text-secondary);
        }

        /* SOP Subheading & Subcard Grid decoration */
        .sop-subheader {
            font-size: 16.5px;
            font-weight: 600;
            margin-top: 24px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }
        .sop-card-1 .sop-subheader { color: #33a3ff; }
        .sop-card-2 .sop-subheader { color: #ffb300; }
        .sop-card-3 .sop-subheader { color: #34c759; }

        .sop-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 16px;
            margin-top: 14px;
            margin-bottom: 8px;
        }

        .sop-subcard {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.04);
            border-radius: 18px;
            padding: 20px;
            display: flex;
            align-items: flex-start;
            gap: 14px;
            transition: all 0.3s ease;
        }

        .sop-subcard:hover {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.08);
            transform: translateY(-2px);
        }

        .sop-subcard-icon {
            font-size: 22px;
            line-height: 1;
        }

        .sop-subcard-info {
            flex-grow: 1;
        }

        .sop-subcard-title {
            font-size: 16.5px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .sop-subcard-desc {
            font-size: 15px;
            line-height: 1.5;
            color: var(--text-secondary);
        }

        @media (max-width: 768px) {
            .sop-card {
                flex-direction: column;
                gap: 16px;
                padding: 28px;
            }
            .sop-badge {
                font-size: 36px;
                min-width: unset;
            }
            .sop-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Footer */
        footer {
            border-top: 1px solid var(--card-border);
            padding: 40px 0;
            text-align: center;
            color: var(--text-secondary);
            font-size: 13.5px;
        }

        /* Mobile Adjustments */
        /* Mobile / Responsive */
        @media (max-width: 768px) {
            .hero h1 { font-size: 40px; line-height: 1.1; }
            .hero p { font-size: 17px; }
            h2.section-headline { font-size: 32px; }
            .bento-grid { grid-template-columns: 1fr; }
            .col-span-2 { grid-column: span 1; }
            .row-span-2 { grid-row: span 1; }
            .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 32px;
    list-style: none;
}
            .hero-info-bar { gap: 8px; }
            .hero-info-chip { font-size: 13.5px; padding: 7px 12px; }
            .sop-wrapper { grid-template-columns: 1fr; }
            .sop-deco-col { display: none; }
            .sop-card { flex-direction: column; gap: 16px; padding: 24px; }
            .sop-badge { font-size: 32px; min-width: unset; }
            .sop-grid { grid-template-columns: 1fr; }
            .sop-stats-bar { gap: 8px; }
            .sop-achieve-card { min-width: calc(50% - 8px); flex: 1 1 calc(50% - 8px); padding: 12px 14px; gap: 10px; }
            .sop-achieve-value { font-size: 17px; }
            .sop-achieve-label { font-size: 9px; }
            .section-padding { padding: 60px 0; }
        }
        @media (max-width: 480px) {
            .hero h1 { font-size: 32px; }
            .sop-achieve-card { min-width: 100%; flex: 1 1 100%; }
            .btn { font-size: 17px; padding: 10px 20px; }
            .card-title { font-size: 22px; }
        }
        /* Next Page Floating Button */
        .next-page-btn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: var(--btn-primary-bg);
            color: var(--btn-primary-text);
            padding: 12px 24px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 17px;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: var(--shadow-md);
            transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
            z-index: 100;
        }
        .next-page-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
            background: var(--btn-primary-hover);
            color: var(--btn-primary-text);
        }
        
        @media (max-width: 768px) {
            .next-page-btn {
                bottom: 20px;
                right: 20px;
                padding: 10px 20px;
                font-size: 15.5px;
            }
        }

/* Activity Rows (Zigzag) */
.activity-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}
.activity-row.reverse {
    flex-direction: row-reverse;
}
.activity-img-wrapper {
    flex: 1;
    max-width: 45%;
    position: relative;
}
.placeholder-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--card-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 15.5px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.activity-img-wrapper img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.img-tilt-left .placeholder-img, .img-tilt-left img {
    transform: rotate(-3deg);
}
.img-tilt-right .placeholder-img, .img-tilt-right img {
    transform: rotate(3deg);
}
.activity-img-wrapper:hover .placeholder-img, .activity-img-wrapper:hover img {
    transform: rotate(0) scale(1.03);
    box-shadow: var(--shadow-md);
}
.activity-content {
    flex: 1;
}
.activity-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.2;
}
.activity-content p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .activity-row, .activity-row.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
        text-align: center;
    }
    .activity-img-wrapper {
        max-width: 90%;
        margin: 0 auto;
    }
    .img-tilt-left .placeholder-img, .img-tilt-left img,
    .img-tilt-right .placeholder-img, .img-tilt-right img {
        transform: rotate(0);
    }
}

/* Activities Extra Decor */
.act-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    animation: sop-float 10s ease-in-out infinite alternate;
}
.act-blob-1 { width: 350px; height: 350px; background: #ff2e93; top: 15%; left: -150px; }
.act-blob-2 { width: 400px; height: 400px; background: #0071e3; bottom: 10%; right: -150px; animation-delay: -5s; }

.activity-row { position: relative; z-index: 1; }

.activity-content .card-label {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid var(--card-border);
}
.activity-content .card-label::before {
    content: '>_ ';
    opacity: 0.6;
}

/* Image wireframe effect */
.activity-img-wrapper::after {
    content: '';
    position: absolute;
    top: 15px;
    left: -15px;
    right: 15px;
    bottom: -15px;
    border: 2px dashed var(--card-border);
    border-radius: 20px;
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease;
}
.activity-row.reverse .activity-img-wrapper::after {
    left: 15px;
    right: -15px;
}
.img-tilt-left::after { transform: rotate(-3deg); }
.img-tilt-right::after { transform: rotate(3deg); }
.activity-img-wrapper:hover::after {
    transform: rotate(0) scale(1.03);
    border-color: rgba(255, 255, 255, 0.3);
    border-style: solid;
}


/* Custom Cursor & Sound Button */
@media (pointer: fine) {
    body {
        cursor: none;
    }
    a, button {
        cursor: none;
    }
}
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 999999;
    pointer-events: none;
}
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-primary);
    transition: opacity 0.2s;
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-secondary);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}
.cursor-outline.hovering {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

.sound-toggle-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.sound-toggle-btn:hover {
    transform: scale(1.1);
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}
@media (max-width: 768px) {
    .sound-toggle-btn {
        bottom: 20px;
        left: 20px;
        width: 38px;
        height: 38px;
    }
}


/* Hero Slideshow Background */
.hero-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}
.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideFade 15s infinite;
}
.hero-slideshow .slide:nth-child(1) {
    background-color: #1a1a2e; /* Placeholder color if image missing */
    animation-delay: 0s;
}
.hero-slideshow .slide:nth-child(2) {
    background-color: #16213e;
    animation-delay: 5s;
}
.hero-slideshow .slide:nth-child(3) {
    background-color: #0f3460;
    animation-delay: 10s;
}

@keyframes slideFade {
    0% { opacity: 0; transform: scale(1.05); }
    10% { opacity: 0.5; }
    20% { opacity: 0.5; }
    33% { opacity: 0; transform: scale(1); }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    opacity: 0.65; /* Darken the background images to make text readable */
    z-index: 1;
}

/* Ensure hero content stays on top */
.hero .container {
    position: relative;
    z-index: 2;
}


/* AI Chatbot Widget */
#ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100000;
    font-family: var(--font-sans);
}
#ai-chat-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0052d4, #4364f7, #6fb1fc);
    color: white;
    border: none;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(67, 100, 247, 0.4);
    animation: pulseGlow 2s infinite alternate;
}
@keyframes pulseGlow {
    from { box-shadow: 0 0 10px rgba(67, 100, 247, 0.4); }
    to { box-shadow: 0 0 20px rgba(67, 100, 247, 0.8), 0 0 5px rgba(255, 255, 255, 0.5); }
}


#ai-chat-window {
    position: fixed;
    top: 75px;
    right: 30px;
    width: 350px;
    height: 500px;
    max-height: calc(100vh - 100px);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s, transform 0.3s;
    transform-origin: top right;
    z-index: 100000;
}
#ai-chat-window.hidden {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}
.chat-header {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 8px #2ecc71;
}
#ai-chat-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-primary);
}
.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14.5px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}
.ai-message {
    align-self: flex-start;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}
.user-message {
    align-self: flex-end;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-bottom-right-radius: 4px;
}
.ai-message a {
    color: var(--btn-primary-bg);
    text-decoration: underline;
}
.chat-input-area {
    padding: 15px;
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 10px;
}
#chat-input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-sans);
}
#chat-input:focus {
    border-color: var(--btn-primary-bg);
}
#chat-send {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}
.qr-btn {
    background: transparent;
    border: 1px solid var(--btn-primary-bg);
    color: var(--btn-primary-bg);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.qr-btn:hover {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

/* Typing animation */
.typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 12px 18px;
}
.typing span {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}
.typing span:nth-child(1) { animation-delay: -0.32s; }
.typing span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 480px) {
    #ai-chat-window {
    position: fixed;
    top: 75px;
    right: 30px;
    width: 350px;
    height: 500px;
    max-height: calc(100vh - 100px);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s, transform 0.3s;
    transform-origin: top right;
    z-index: 100000;
}
    #ai-chat-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0052d4, #4364f7, #6fb1fc);
    color: white;
    border: none;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(67, 100, 247, 0.4);
    animation: pulseGlow 2s infinite alternate;
}
@keyframes pulseGlow {
    from { box-shadow: 0 0 10px rgba(67, 100, 247, 0.4); }
    to { box-shadow: 0 0 20px rgba(67, 100, 247, 0.8), 0 0 5px rgba(255, 255, 255, 0.5); }
}

}


/* Mobile Navigation & Responsive Fixes */
@media (max-width: 768px) {
    /* Hamburger menu */
    .hamburger-menu { display: flex !important; align-items: center; justify-content: center; }
    
    /* Mobile nav dropdown */
    .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 32px;
    list-style: none;
}
    [data-theme="light"] .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 32px;
    list-style: none;
}
    .nav-links.active { display: flex; }
    .nav-links li { margin: 12px 0; }
    .nav-actions {
            flex: 1;
            justify-content: flex-end; display: flex; align-items: center; }
    
    /* Hero section - allow scroll on mobile */
    .hero {
        min-height: auto !important;
        padding-top: 80px !important;
        padding-bottom: 40px !important;
    }
    
    /* Hero info bar - stack for mobile */
    .hero-info-bar {
        gap: 6px !important;
    }
    .hero-info-chip {
        font-size: 11px !important;
        padding: 5px 8px !important;
    }
    
    /* Footer - make it flow naturally, not absolute, and add padding to avoid fixed buttons */
    footer {
        position: relative !important;
        bottom: auto !important;
        padding: 20px 0 80px 0 !important;
    }
    
    /* Next page button - smaller on mobile */
    .next-page-btn {
        bottom: 16px !important;
        right: 16px !important;
        font-size: 14px !important;
        padding: 10px 18px !important;
    }
    
    /* AI Chat window - full width on mobile */
    #ai-chat-window {
        width: 90vw !important;
        max-width: 360px !important;
        right: 5vw !important;
    }
    
    /* AI toggle button text - hide text, show icon only */
    #ai-chat-toggle {
        font-size: 0 !important;
        padding: 6px 10px !important;
        gap: 0 !important;
    }
    #ai-chat-toggle svg {
        width: 18px;
        height: 18px;
    }
}

.nav-logo {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}
