:root {
    /* Liquid Glass Palette */
    --bg-primary: #010204;
    --bg-secondary: #050810;
    --accent-blue: #0ea5e9;    /* Fallback/light teal shade */
    --accent-lightblue: #38bdf8; /* Bright light blue */
    --accent-purple: #059669;  /* Darker emerald shade */
    --accent-emerald: #10b981; /* Main vibrant emerald */
    --accent-yellow: #fcd34d;  /* New warm yellow accent */
    --text-primary: #e2e8f0;   /* Slightly dimmer white for readability on regular text */
    --text-secondary: #94a3b8;
    
    /* New Global Text Gradient */
    --text-gradient-main: linear-gradient(135deg, var(--accent-yellow), var(--accent-emerald), var(--accent-lightblue), var(--accent-blue));
    
    /* Liquid Glass Spec */
    --liquid-bg: rgba(255, 255, 255, 0.03);
    --liquid-border: rgba(255, 255, 255, 0.1);
    --liquid-shine: rgba(255, 255, 255, 0.15);
    --liquid-blur: 25px;
    
    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Mouse Props */
    --mouse-x: 50%;
    --mouse-y: 50%;
}

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


body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Global Pointer Restored */
a, button, [role="button"], .magnetic, .card, .chatbot-link, .ai-chat-fab, .scroll-top, .drawer-close {
    cursor: pointer !important;
}

/* Navbar Pointer */
.island-nav-links a {
    cursor: pointer !important;
}


/* Noise Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* Optimized Mathematical Grid */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    /* Use simpler opacity for better performance than complex masks if lagging */
    opacity: 0.5;
}

.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    filter: blur(60px); /* Lower blur for better performance */
}

.mesh-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    opacity: 0.15;
    will-change: transform;
}

.blob-1 { background: var(--accent-blue); top: -20%; left: -20%; }
.blob-2 { background: var(--accent-yellow); bottom: -20%; right: -20%; }
.blob-3 { background: #fef3c7; top: 30%; right: 10%; }



/* Mobile Nav - Hidden by default globally */
.mobile-nav {
    display: none;
}

/* Dynamic Island Navigation */
.nav-island-container {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    width: auto;
    display: flex;
    justify-content: center;
}

.dynamic-island {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.8rem 2rem;
    border-radius: 28px;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    transition: transform 0.2s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    will-change: transform;
    transform: translateZ(0);
    cursor: default;
}

.island-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -1px;
    background: var(--text-gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.island-nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.island-nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.15s;
    cursor: pointer;
}

.island-nav-links a:hover { 
    background: var(--text-gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.island-cta {
    background: white;
    color: black;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    transition: transform 0.3s;
    cursor: pointer;
}

.island-cta:hover { transform: scale(1.05); }

/* Floating AI Chat FAB */
.ai-chat-fab {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--liquid-border);
    border-radius: 100px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    will-change: transform;
    transform: translateZ(0);
    cursor: pointer !important;
}

.ai-chat-fab::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(45deg, var(--accent-emerald), var(--accent-lightblue), var(--accent-yellow));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.ai-chat-fab svg {
    color: var(--accent-emerald);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-chat-fab:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.ai-chat-fab:hover svg {
    transform: rotate(12deg) scale(1.2);
}

@media (max-width: 768px) {
    .ai-chat-fab {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.8rem;
    }
    .fab-label {
        display: none;
    }
}

/* Chatbot Drawer Styles */
.chatbot-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    height: 100vh;
    background: rgba(1, 2, 4, 0.85);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-left: 1px solid var(--liquid-border);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
}

.chatbot-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--liquid-border);
}

.drawer-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--text-gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.drawer-title svg {
    color: var(--accent-emerald);
}

.drawer-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--liquid-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    transform: rotate(90deg);
}

.drawer-body {
    flex: 1;
    overflow: hidden;
}

.drawer-body iframe {
    width: 100%;
    height: 100%;
    background: transparent;
}

@media (max-width: 480px) {
    .chatbot-drawer {
        width: 100%;
    }
}

/* Mobile Menu Toggle in Island */
.menu-toggle {
    display: none;
    width: 24px;
    height: 14px;
    position: relative;
}

.menu-toggle span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { bottom: 0; }

.menu-toggle.active span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { bottom: 45%; transform: rotate(-45deg); }

/* Liquid Glass Elements */
.card, .liquid-glass {
    background: var(--liquid-bg);
    backdrop-filter: blur(var(--liquid-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--liquid-blur)) saturate(180%);
    border: 1px solid var(--liquid-border);
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px var(--liquid-shine);
    border-radius: 32px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
    transform: translateZ(0);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px var(--liquid-shine),
        0 0 40px rgba(59, 130, 246, 0.15);
}

.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, var(--accent-lightblue), var(--accent-blue), var(--accent-yellow), var(--accent-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(auto-fill, minmax(300px, auto));
    gap: 1.5rem;
}

.bento-item { grid-column: span 1; grid-row: span 1; }
.item-large { grid-column: span 2; grid-row: span 2; }
.item-wide { grid-column: span 2; }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
}

@keyframes textShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 7rem);
    line-height: 0.9;
    letter-spacing: -4px;
    margin-bottom: 2rem;
    font-weight: 900;
    
    background: linear-gradient(
        to right,
        var(--accent-emerald) 0%,
        var(--accent-lightblue) 16.6%,
        var(--accent-blue) 33.3%,
        var(--accent-yellow) 50%,
        var(--accent-purple) 66.6%,
        var(--accent-yellow) 83.3%,
        var(--accent-emerald) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 5s linear infinite;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.3));
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3.5rem;
}

.hero-actions { 
    display: flex; 
    gap: 1.5rem; 
    margin-top: 1rem;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}

.cta-btn {
    position: relative;
    padding: 1.1rem 2.8rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    backdrop-filter: blur(10px);
    text-align: center;
    white-space: nowrap;
}

.cta-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.cta-btn.outline {
    background: rgba(255, 255, 255, 0.02);
}

/* Sections */
section { padding: 10rem 10%; }

/* Stats Section */
.stats-section {
    padding: 2rem 10% 5rem;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    border-top: 1px solid var(--liquid-border);
    border-bottom: 1px solid var(--liquid-border);
    padding: 4rem 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-item h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #888888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.section-title { margin-bottom: 6rem; }
.section-title h2, .bento-item h3 {
    background: var(--text-gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: -2px;
}

/* Contact Redesign */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--liquid-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-emerald);
}

.info-text h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    background: var(--text-gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-form-container {
    padding: 3rem;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--liquid-border);
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-emerald);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

.shine-hover span { position: relative; z-index: 1; }
.shine-hover::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}

.shine-hover:hover::after {
    left: 100%;
}

/* Dynamic Glassy Footer */
.dynamic-footer {
    position: relative;
    margin: 2rem 5% 4rem;
    padding: 4rem 2rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.45);
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.5s ease;
}

.dynamic-footer:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--liquid-shine);
}

.dynamic-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-lightblue), var(--accent-emerald), var(--accent-yellow), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    max-width: 500px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--accent-yellow);
}

.footer-logo span {
    color: var(--accent-emerald);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-socials h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--text-gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.social-link:hover {
    color: var(--accent-emerald);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--liquid-border);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.scroll-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    border: 1px solid var(--liquid-border);
    transition: all 0.15s ease;
}

.scroll-top:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Achievement Marquee Removed */

/* Mobile & Tablet */
@media (max-width: 1024px) {
    .cursor, .cursor-follower { display: none !important; }
    
    .nav-island-container { width: 90%; top: 1.5rem; }
    .dynamic-island { width: 100%; justify-content: space-between; padding: 0.8rem 1.5rem; }
    .island-nav-links, .desktop-only { display: none; }
    .menu-toggle { display: block; }
    
    /* Reduce Background Intensity on Mobile */
    .bg-mesh { filter: blur(60px); }
    .mesh-blob { opacity: 0.08; width: 400px; height: 400px; }
    
    /* Mobile Nav Overlay */
    .mobile-nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(1, 2, 4, 0.98);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        align-items: center;
        justify-content: center;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: all 0.25s cubic-bezier(0.19, 1, 0.22, 1);
    }
    
    .mobile-nav.active { 
        opacity: 1; 
        pointer-events: auto; 
    }
    
    .mobile-nav ul { list-style: none; text-align: center; }
    .mobile-nav ul li { margin-bottom: 2rem; }
    .mobile-nav ul li a {
        font-family: var(--font-display);
        font-size: 2.5rem;
        font-weight: 800;
        color: white;
        text-decoration: none;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }
    .stat-item {
        min-width: auto;
    }
    .stat-item h2 {
        font-size: 2.2rem;
    }
    .stat-item p {
        font-size: 0.75rem;
    }

    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .item-large, .item-wide { grid-column: span 1; }
    .card { padding: 2.5rem; }
    
    .hero h1 { font-size: 4.5rem; margin-bottom: 1rem; }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-container {
        padding: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-actions { 
        flex-direction: column; 
        align-items: center;
    }
    .cta-btn {
        width: 100%;
        max-width: 320px;
    }
    section { padding: 6rem 5%; }
}
