/* CACHE BREAK: 1753121199 */
:root {
    --primary-color: rgba(147, 197, 253, 0.9);
    --secondary-color: rgba(191, 219, 254, 0.8);
    --accent-color: rgba(147, 197, 253, 0.15);
    --primary-solid: #93c5fd;
    --secondary-solid: #bfdbfe;
    
    /* Enhanced glass morphism colors - Pure Frosty Ice Blue */
    --glass-primary: rgba(147, 197, 253, 0.08);
    --glass-secondary: rgba(191, 219, 254, 0.06);
    --glass-accent: rgba(147, 197, 253, 0.15);
    --glass-border: rgba(147, 197, 253, 0.25);
    --glass-hover: rgba(147, 197, 253, 0.15);
    --glass-shadow: rgba(147, 197, 253, 0.4);
    
    /* Enhanced backdrop filter effects */
    --backdrop-filter-light: blur(15px) saturate(180%);
    --backdrop-filter-medium: blur(20px) saturate(180%);
    --backdrop-filter-heavy: blur(25px) saturate(180%);
    --backdrop-filter-ultra: blur(30px) saturate(180%);
    
    /* Enhanced box shadow variations */
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 0 12px var(--glass-shadow);
    --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 0 20px var(--glass-shadow);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 0 30px var(--glass-shadow);
    
    /* Button specific styles */
    --button-primary: linear-gradient(135deg, var(--primary-solid) 0%, var(--secondary-solid) 100%);
    --button-glass: linear-gradient(135deg, var(--glass-primary) 0%, var(--glass-secondary) 100%);
    --button-border: 1px solid var(--glass-border);
    --button-border-light: 1px solid rgba(255, 255, 255, 0.3);
    
    /* Safe area support for modern mobile devices with notches */
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
    
    /* Responsive Typography */
    --font-size-xs: clamp(0.65rem, 2vw, 0.75rem);
    --font-size-sm: clamp(0.75rem, 2.5vw, 0.875rem);
    --font-size-base: clamp(0.85rem, 3vw, 1rem);
    --font-size-lg: clamp(0.95rem, 3.5vw, 1.125rem);
    --font-size-xl: clamp(1rem, 4vw, 1.25rem);
    --font-size-2xl: clamp(1.1rem, 4.5vw, 1.5rem);
    --font-size-3xl: clamp(1.2rem, 5vw, 1.875rem);
    --font-size-4xl: clamp(1.4rem, 6vw, 2.25rem);
    --font-size-5xl: clamp(1.6rem, 7vw, 3rem);
    --font-size-6xl: clamp(1.8rem, 8vw, 3.75rem);
    
    /* Responsive Spacing */
    --spacing-xs: clamp(0.25rem, 1.5vw, 0.5rem);
    --spacing-sm: clamp(0.5rem, 2vw, 0.75rem);
    --spacing-md: clamp(0.75rem, 2.5vw, 1rem);
    --spacing-lg: clamp(1rem, 3vw, 1.5rem);
    --spacing-xl: clamp(1.25rem, 4vw, 2rem);
    --spacing-2xl: clamp(1.5rem, 5vw, 3rem);
    --spacing-3xl: clamp(2rem, 6vw, 4rem);
    --spacing-4xl: clamp(2.5rem, 8vw, 6rem);
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    height: 100vh;
    max-height: 100vh;
    color: #ffffff;
    overflow: hidden;
    position: relative;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Background Elements */
.background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('ring1.jpeg') center 30%/95% no-repeat, #0a0a0a;
    background-attachment: fixed;
    z-index: -10;
    opacity: 1;
}

.background-canvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: -9;
}

.background-canvas::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(147, 197, 253, 0.03) 0%,
        transparent 25%,
        transparent 75%,
        rgba(196, 181, 253, 0.03) 100%
    );
    z-index: -8;
}

/* Blue Wave Effect - Optimized */
.blue-wave {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    background: radial-gradient(
        ellipse at center,
        rgba(147, 197, 253, 0.1) 0%,
        rgba(191, 219, 254, 0.08) 30%,
        rgba(147, 197, 253, 0.05) 60%,
        transparent 100%
    );
    filter: blur(80px);
    transform: translateY(-5%) scale(1.05);
    z-index: -7;
    animation: float 20s ease-in-out infinite;
    mix-blend-mode: normal;
    will-change: transform;
    overflow: hidden;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(-5%) scale(1.05) rotate(0deg);
        opacity: 0.4;
    }
    50% { 
        transform: translateY(-8%) scale(1.08) rotate(1deg);
    opacity: 0.8;
    }
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 149px,
            rgba(147, 197, 253, 0.02) 150px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 149px,
            rgba(147, 197, 253, 0.02) 150px
        );
    pointer-events: none;
    z-index: -6;
}

/* Floating Navigation - Responsive Scaling */
.floating-nav {
    position: fixed;
    top: clamp(8px, 1.5vh, 20px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: var(--safe-area-inset-top) var(--safe-area-inset-right) 0 var(--safe-area-inset-left);
    width: clamp(280px, 85vw, 900px);
}

.nav-content {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    padding: clamp(7px, 1vh, 14px) clamp(14px, 2vw, 20px);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-content::-webkit-scrollbar {
    display: none;
}

.nav-content:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.8vw, 8px);
    font-weight: 700;
    font-size: clamp(16px, 2.2vw, 24px);
    color: #ffffff;
    flex-shrink: 0;
    padding: clamp(6px, 1vw, 10px) clamp(8px, 1.5vw, 12px);
    border-radius: clamp(8px, 1.5vw, 12px);
    transition: all 0.3s ease;
}

.nav-logo span {
    font-size: clamp(16px, 2.2vw, 24px);
}

.nav-logo-img {
    width: clamp(16px, 2.2vw, 24px);
    height: clamp(16px, 2.2vw, 24px);
    border-radius: clamp(4px, 0.6vw, 6px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 20px);
    flex-shrink: 0;
}

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

.dark-mode-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 50px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.dark-mode-toggle svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    stroke-width: 2.5;
}

.dark-mode-toggle:hover svg {
    transform: rotate(45deg);
    stroke-width: 3;
}

/* Ensure dark-mode-toggle maintains consistent sizing across all screen sizes */
@media (max-width: 768px) {
    .dark-mode-toggle {
        padding: 10px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .dark-mode-toggle svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .dark-mode-toggle {
        padding: 8px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .dark-mode-toggle svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 360px) {
    .dark-mode-toggle {
        padding: 6px;
        min-width: 32px;
        min-height: 32px;
    }
    
    .dark-mode-toggle svg {
        width: 14px;
        height: 14px;
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(12px, 1.4vw, 14px);
    padding: clamp(6px, 0.8vh, 8px) clamp(8px, 1.2vw, 16px);
    border-radius: clamp(12px, 2vw, 24px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-height: clamp(32px, 4vh, 40px);
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(147, 197, 253, 0.2);
    border: 1px solid rgba(147, 197, 253, 0.3);
}

.nav-cta {
    padding: clamp(8px, 1vh, 12px) clamp(16px, 2vw, 20px);
    background: linear-gradient(135deg, var(--primary-solid) 0%, var(--secondary-solid) 100%);
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(12px, 1.4vw, 14px);
    border-radius: clamp(12px, 2vw, 24px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(147, 197, 253, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(147, 197, 253, 0.4);
}

/* Responsive Navigation Scroll Indicator */
.floating-nav::before {
    content: '←';
    position: absolute;
    left: clamp(-8px, -1vw, -6px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: clamp(16px, 2vw, 20px);
    height: clamp(16px, 2vw, 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(8px, 1.2vw, 12px);
    color: #333;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 1001;
}

.floating-nav::after {
    content: '→';
    position: absolute;
    right: clamp(-8px, -1vw, -6px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: clamp(16px, 2vw, 20px);
    height: clamp(16px, 2vw, 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(8px, 1.2vw, 12px);
    color: #333;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 1001;
}

.floating-nav:hover::before {
    opacity: var(--left-arrow-opacity, 0.8);
}

.floating-nav:hover::after {
    opacity: var(--right-arrow-opacity, 0.8);
}

@media (max-width: 360px) {
    .floating-nav {
        top: 6px;
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100vw - 40px);
        width: auto;
    }
    
    .nav-content {
        gap: 4px;
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .nav-link {
        padding: 2px 4px;
        font-size: 10px;
    }
    
    .nav-logo {
        font-size: 12px;
        padding: 3px 6px;
        flex-shrink: 0;
    }
    
    .nav-logo span {
        font-size: 12px;
    }
    
    .nav-logo-img {
        width: 12px;
        height: 12px;
    }
    
    .nav-cta {
        padding: 2px 4px;
        font-size: 9px;
        margin-left: 2px;
    }
    
    .floating-nav::before {
        content: '←';
        position: absolute;
        left: -4px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 9px;
        color: #333;
        pointer-events: auto;
        opacity: 0;
        transition: opacity 0.3s ease;
        cursor: pointer;
        z-index: 1001;
    }
    
    .floating-nav::after {
        content: '→';
        position: absolute;
        right: -4px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 9px;
        color: #333;
        pointer-events: auto;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .floating-nav:hover::before {
        opacity: var(--left-arrow-opacity, 0.8);
    }
    
    .floating-nav:hover::after {
        opacity: var(--right-arrow-opacity, 0.8);
    }
}

/* 3D Sparkles and Animations */
.sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -5;
}

.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, #ddd6fe, #93c5fd);
    border-radius: 50%;
    box-shadow: 
        0 0 10px rgba(147, 197, 253, 0.6),
        0 0 20px rgba(147, 197, 253, 0.4);
    animation: sparkle 6s infinite;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.sparkle-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 25%;
    right: 15%;
    animation-delay: 0s;
}

.sparkle-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 0s;
}

.sparkle-4 {
    bottom: 20%;
    right: 25%;
    animation-delay: 0s;
}

/* Shining Dots */
.shining-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, #ffffff, #93c5fd);
    border-radius: 50%;
    box-shadow: 
        0 0 8px rgba(255, 255, 255, 0.9),
        0 0 16px rgba(147, 197, 253, 0.7),
        0 0 24px rgba(147, 197, 253, 0.5);
    animation: shine 3s infinite;
}

.dot-1 {
    top: 8%;
    left: 25%;
    animation-delay: 0s;
}

.dot-2 {
    top: 35%;
    right: 20%;
    animation-delay: 0s;
}

.dot-3 {
    bottom: 40%;
    left: 15%;
    animation-delay: 0s;
}

.dot-4 {
    bottom: 15%;
    right: 30%;
    animation-delay: 0s;
}

.dot-5 {
    top: 45%;
    left: 8%;
    animation-delay: 0s;
}

.dot-6 {
    top: 65%;
    right: 12%;
    animation-delay: 0s;
}

/* Shooting Stars */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, #ffffff, #93c5fd);
    border-radius: 50%;
    box-shadow: 
        0 0 6px rgba(255, 255, 255, 0.9),
        0 0 12px rgba(147, 197, 253, 0.8),
        0 0 18px rgba(147, 197, 253, 0.6);
}

.star-1 {
    top: 10%;
    left: -50px;
    animation: shootingStar 8s linear infinite;
    animation-delay: 0s;
}

.star-2 {
    top: 30%;
    left: -50px;
    animation: shootingStar 6s linear infinite;
    animation-delay: 0s;
}

.star-3 {
    top: 60%;
    left: -50px;
    animation: shootingStar 10s linear infinite;
    animation-delay: 0s;
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 0.2;
        transform: scale(0.8) rotate(0deg);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

@keyframes shine {
    0%, 100% { 
        opacity: 0.1;
        transform: scale(0.5);
    }
    50% { 
        opacity: 1;
        transform: scale(1.5);
    }
}

@keyframes shootingStar {
    0% {
        transform: translateX(0px) translateY(0px) rotate(45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(-200px) rotate(45deg);
        opacity: 0;
    }
}

/* Enhanced Star Field for Dark Space */
.star-field {
    position: fixed;
    top: 60%;
    left: 0;
    width: 100%;
    height: 40%;
    pointer-events: none;
    z-index: -4;
    overflow: hidden;
}

/* Twinkling Stars */
.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 4s infinite;
}

.star-small {
    width: 1px;
    height: 1px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.star-medium {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 10px rgba(147, 197, 253, 0.9);
}

.star-large {
    width: 3px;
    height: 3px;
    box-shadow: 
        0 0 12px rgba(196, 181, 253, 1),
        0 0 24px rgba(196, 181, 253, 0.5);
}

/* Star positions - scattered across bottom area */
.star-1 { top: 10%; left: 5%; animation-delay: 0s; }
.star-2 { top: 25%; left: 15%; animation-delay: 0s; }
.star-3 { top: 40%; left: 8%; animation-delay: 0s; }
.star-4 { top: 15%; left: 25%; animation-delay: 0s; }
.star-5 { top: 35%; left: 32%; animation-delay: 0s; }
.star-6 { top: 20%; left: 45%; animation-delay: 0s; }
.star-7 { top: 50%; left: 38%; animation-delay: 0s; }
.star-8 { top: 30%; left: 55%; animation-delay: 0s; }
.star-9 { top: 45%; left: 62%; animation-delay: 0s; }
.star-10 { top: 18%; left: 70%; animation-delay: 0s; }
.star-11 { top: 38%; left: 75%; animation-delay: 0s; }
.star-12 { top: 28%; left: 85%; animation-delay: 0s; }
.star-13 { top: 42%; left: 92%; animation-delay: 0s; }
.star-14 { top: 12%; left: 88%; animation-delay: 0s; }
.star-15 { top: 48%; left: 82%; animation-delay: 0s; }

/* Enhanced Shooting Stars for bottom area */
.shooting-star-bottom {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, transparent, #ffffff, transparent);
    border-radius: 50%;
}

.shooting-star-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 1px;
}

.shooting-star-bottom::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40px;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.6), transparent);
    border-radius: 1px;
}

.shooting-1 {
    top: 20%;
    left: -50px;
    animation: shootAcross 8s infinite;
    animation-delay: 0s;
}

.shooting-2 {
    top: 35%;
    left: -50px;
    animation: shootAcross 10s infinite;
    animation-delay: 0s;
}

.shooting-3 {
    top: 50%;
    left: -50px;
    animation: shootAcross 12s infinite;
    animation-delay: 0s;
}

/* Pulsing Stars */
.pulse-star {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff, #93c5fd);
    animation: pulse 3s infinite;
}

.pulse-1 {
    top: 22%;
    left: 18%;
    width: 4px;
    height: 4px;
    animation-delay: 0s;
}

.pulse-2 {
    top: 44%;
    left: 48%;
    width: 3px;
    height: 3px;
    animation-delay: 0s;
}

.pulse-3 {
    top: 16%;
    left: 78%;
    width: 5px;
    height: 5px;
    animation-delay: 0s;
}

/* Floating Nebula Effect */
.nebula {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(147, 197, 253, 0.1) 0%,
        rgba(196, 181, 253, 0.05) 50%,
        transparent 100%
    );
    filter: blur(20px);
    animation: nebulaFloat 15s infinite;
}

.nebula-1 {
    top: 25%;
    left: 12%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.nebula-2 {
    top: 35%;
    right: 15%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
}

/* Keyframe Animations */
@keyframes twinkle {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes shootAcross {
    0% {
        transform: translateX(-50px) translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 50px)) translateY(-20px);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
        box-shadow: 
            0 0 15px rgba(255, 255, 255, 0.9),
            0 0 30px rgba(147, 197, 253, 0.6);
    }
}

@keyframes nebulaFloat {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translateX(20px) translateY(-10px) scale(1.1);
        opacity: 0.5;
    }
    66% {
        transform: translateX(-15px) translateY(5px) scale(0.9);
        opacity: 0.4;
    }
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 10;
    padding: 60px 20px;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.hero-section {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 5vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px !important; /* Force 5px spacing with !important for mobile override */
    width: 100%;
}

/* Ultra-specific CSS for stubborn devices */
html body .main-content .hero-section .hero-content {
    gap: 5px !important;
}

html body .main-content .hero-section .hero-title-section {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

html body .main-content .hero-section .screen-studio-section-right {
    margin: 0 !important;
    padding: 0 !important;
}

html body .screen-studio-demo-container {
    margin: 0 !important;
    padding: 0 !important;
}

/* Hero Title Section */
.hero-title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0; /* Remove margin, using gap for spacing */
}

.hero-title {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #ddd6fe 30%,
        #93c5fd 60%,
        #e0e7ff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 100px rgba(147, 197, 253, 0.6);
    filter: drop-shadow(0 0 40px rgba(147, 197, 253, 0.4));
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
}

.logo-o {
    width: 6rem;
    height: 6rem;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(147, 197, 253, 0.4));
    /* Ensure exact alignment with PLAY text */
    vertical-align: baseline;
    margin: 0;
}

.play-text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 6rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #ddd6fe 30%,
        #93c5fd 60%,
        #e0e7ff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    height: 6rem;
    justify-content: center;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(147, 197, 253, 0.8) 50%,
        rgba(255, 255, 255, 0.7) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(147, 197, 253, 0.3));
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -10px;
    width: max-content;
}

/* Screen Studio Demo Container */
.screen-studio-section-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 !important; /* Remove any inherited margins */
    padding: 0 !important; /* Remove any inherited padding */
}

.screen-studio-demo-container {
    position: relative;
    transform: perspective(1200px) rotateY(-8deg) rotateX(5deg);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 !important; /* Remove any inherited margins */
    padding: 0 !important; /* Remove any inherited padding */
}

.screen-studio-demo-container:hover {
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(-10px);
}

/* Demo Browser - Optimized */
.demo-browser {
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.12) 0%,
        rgba(59, 130, 246, 0.1) 25%,
        rgba(147, 197, 253, 0.06) 50%,
        rgba(219, 234, 254, 0.04) 75%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(25px) saturate(120%);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 10px 20px rgba(30, 58, 138, 0.2),
        0 0 80px rgba(59, 130, 246, 0.3);
    width: 100%;
    height: clamp(500px, 70vh, 800px);
    transition: transform 0.3s ease;
    border: 2px solid rgba(59, 130, 246, 0.2);
    position: relative;
    z-index: 2;
    transform: translateZ(0);
    will-change: transform;
}

.demo-browser:hover {
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.8),
        0 25px 50px rgba(30, 58, 138, 0.4),
        0 0 180px rgba(59, 130, 246, 0.6),
        inset 0 4px 0 rgba(147, 197, 253, 0.4),
        inset 0 -4px 0 rgba(30, 58, 138, 0.3),
        inset 0 0 0 1px rgba(59, 130, 246, 0.3);
}

/* Browser Header */
.browser-header {
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.2) 0%,
        rgba(59, 130, 246, 0.15) 50%,
        rgba(147, 197, 253, 0.1) 100%
    );
    backdrop-filter: blur(30px);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
    box-shadow: 
        inset 0 2px 0 rgba(147, 197, 253, 0.3),
        inset 0 -2px 0 rgba(30, 58, 138, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

.browser-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27ca3f; }

/* Browser Content */
.browser-content {
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.08) 0%,
        rgba(59, 130, 246, 0.06) 30%,
        rgba(147, 197, 253, 0.04) 60%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(35px);
    height: calc(clamp(500px, 70vh, 800px) - 42px);
    min-height: calc(clamp(500px, 70vh, 800px) - 42px);
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 
        inset 0 4px 20px rgba(30, 58, 138, 0.3),
        inset 0 -4px 15px rgba(147, 197, 253, 0.2);
}

/* AI Chat Interface */
.ai-chat-interface {
    display: flex;
    height: 100%;
    background: transparent;
    position: relative;
    z-index: 1;
    max-height: 100%;
    min-height: 100%;
    flex: 1;
    overflow: hidden;
}

/* Chat Sidebar */
.chat-sidebar {
    width: 300px;
    background: linear-gradient(135deg, 
        var(--glass-primary) 0%,
        var(--glass-secondary) 50%,
        var(--glass-accent) 100%
    );
    backdrop-filter: blur(40px) saturate(140%);
    border-right: 2px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    box-shadow: 
        inset -2px 0 0 var(--glass-secondary),
        inset 2px 0 0 var(--glass-accent),
        6px 0 25px var(--glass-accent);
    position: relative;
}

.sidebar-header {
    padding: 12px 16px;
    border-bottom: 2px solid var(--glass-border);
    background: linear-gradient(135deg, 
        var(--glass-primary) 0%,
        var(--glass-secondary) 50%,
        var(--glass-accent) 100%
    );
    box-shadow: 
        inset 0 2px 0 var(--glass-secondary),
        0 2px 8px var(--glass-accent);
}

.top-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.9) 0%, rgba(99, 102, 241, 0.9) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 0 15px rgba(147, 197, 253, 0.5);
}

.oplay-logo-small {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #ddd6fe 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-small {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(147, 197, 253, 0.3));
}



.window-controls {
    display: flex;
    align-items: center;
}

.window-control {
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.window-control::after {
    content: "☰";
}

/* Mobile menu toggle - hidden on desktop, visible on mobile */
.mobile-menu-toggle {
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10000;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.9) 0%, 
        rgba(147, 197, 253, 0.8) 100%
    );
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 12px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(147, 197, 253, 0.3);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Active state when sidebar is open (X icon) */
.mobile-menu-toggle.active {
    background: linear-gradient(135deg, 
        rgba(147, 197, 253, 0.9) 0%, 
        rgba(191, 219, 254, 0.8) 100%
    );
    border: 1px solid rgba(147, 197, 253, 0.3);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 12px rgba(147, 197, 253, 0.3);
    transform: rotate(90deg);
}

.mobile-menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 6px 16px rgba(59, 130, 246, 0.4);
}

.mobile-menu-toggle.active:hover {
    transform: rotate(90deg) translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 6px 16px rgba(147, 197, 253, 0.4);
}

/* Show mobile menu toggle ONLY on mobile devices (768px and below) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 10001 !important;
    }
    
    /* Ensure proper positioning on mobile screens */
    .mobile-menu-toggle {
        top: 15px !important;
        left: 15px !important;
        width: 42px !important;
        height: 42px !important;
    }
    
    /* Hide mobile menu toggle when sidebar is open */
    .ai-chat-interface:has(.chat-sidebar.mobile-open) .mobile-menu-toggle,
    .ai-chat-interface:has(.mobile-overlay.active) .mobile-menu-toggle {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateX(-100px) !important;
        transition: all 0.3s ease !important;
    }
    
    /* Fallback for browsers that don't support :has() */
    @supports not (selector(:has(*))) {
        .mobile-menu-toggle.hide-toggle {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            transform: translateX(-100px) !important;
            transition: all 0.3s ease !important;
        }
    }
}

@media (max-width: 480px) {
    .mobile-menu-toggle {
        top: 12px !important;
        left: 12px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }
}

/* Ensure menu toggle is completely hidden on tablet and desktop */
@media (min-width: 769px) {
    .mobile-menu-toggle,
    .mobile-menu-toggle.active,
    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:focus {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transform: none !important;
    }
}

/* App Toolbar */
.app-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.app-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-icon.linkedin { background: rgba(10, 102, 194, 0.9); }
.app-icon.gmail { background: rgba(234, 67, 53, 0.9); }
.app-icon.sheets { background: rgba(15, 157, 88, 0.9); }
.app-icon.docs { background: rgba(66, 133, 244, 0.9); }
.app-icon.plus { 
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-icon.linkedin::after { content: "in"; }
.app-icon.gmail::after { content: "✉"; }
.app-icon.sheets::after { content: "📊"; }
.app-icon.docs::after { content: "📄"; }
.app-icon.plus::after { content: "+"; }

/* Sidebar Content */
.sidebar-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    -webkit-overflow-scrolling: touch; /* iOS */
    scroll-behavior: smooth;
    transform: translateZ(0);
    will-change: scroll-position;
}

/* Hide scrollbar for webkit browsers */
.sidebar-content::-webkit-scrollbar {
    display: none;
}

.search-bar {
    position: relative;
    margin-top: 12px;
    margin-bottom: 16px;
}

.search-bar input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 32px 10px 12px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    outline: none;
    backdrop-filter: blur(10px);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-bar input:focus {
    border-color: rgba(147, 197, 253, 0.4);
    box-shadow: 0 0 15px rgba(147, 197, 253, 0.3);
}

.chat-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-btn:hover {
    color: rgba(147, 197, 253, 0.9);
}

/* Chat List */
.chat-list {
    margin-top: 12px;
    max-height: calc(100vh - 300px); /* Adjust based on sidebar header height */
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    -webkit-overflow-scrolling: touch; /* iOS */
    padding-right: 5px; /* Add small padding to prevent content cutoff */
    scroll-behavior: smooth;
    transform: translateZ(0);
    will-change: scroll-position;
}

/* Hide scrollbar for webkit browsers */
.chat-list::-webkit-scrollbar {
    display: none;
}

.chat-item {
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(59, 130, 246, 0.15);
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.08) 0%,
        rgba(59, 130, 246, 0.06) 50%,
        rgba(147, 197, 253, 0.04) 100%
    );
    backdrop-filter: blur(20px);
    box-shadow: 
        inset 0 1px 0 rgba(147, 197, 253, 0.2),
        0 2px 8px rgba(30, 58, 138, 0.3);
}

.chat-item:hover {
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.15) 0%,
        rgba(59, 130, 246, 0.12) 50%,
        rgba(147, 197, 253, 0.08) 100%
    );
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.chat-item.active {
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.2) 0%,
        rgba(59, 130, 246, 0.15) 50%,
        rgba(147, 197, 253, 0.1) 100%
    );
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
}

.chat-title {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.chat-preview {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.chat-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

/* Chat Main Area */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, 
        var(--glass-primary, rgba(147, 197, 253, 0.08)) 0%,
        var(--glass-secondary, rgba(191, 219, 254, 0.06)) 50%,
        var(--glass-accent, rgba(147, 197, 253, 0.15)) 100%
    );
    backdrop-filter: var(--backdrop-filter-medium, blur(20px) saturate(180%));
    position: relative;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid var(--glass-border, rgba(147, 197, 253, 0.25));
}

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 30px 30px 100px 30px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(135deg, 
        var(--glass-primary, rgba(147, 197, 253, 0.08)) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        var(--glass-primary, rgba(147, 197, 253, 0.08)) 100%
    );
    backdrop-filter: var(--backdrop-filter-light, blur(15px) saturate(180%));
    box-shadow: 
        inset 0 2px 10px var(--glass-primary, rgba(147, 197, 253, 0.08)),
        inset 0 -2px 8px var(--glass-secondary, rgba(191, 219, 254, 0.06)),
        var(--shadow-medium, 0 4px 16px rgba(0, 0, 0, 0.2));
    gap: 20px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    max-height: calc(100% - 100px);
    min-height: calc(100% - 100px);
    box-sizing: border-box;
    transform: translateZ(0);
    will-change: scroll-position;
    border-radius: 0 12px 12px 0;
}

.chat-messages.empty {
    justify-content: center;
    align-items: center;
}

.chat-messages.empty::before {
    content: "Start typing to see the magic happen...";
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    font-style: italic;
    text-align: center;
}

/* Message Bubbles */
.message-bubble {
    max-width: 80%;
    padding: 18px 22px;
    border-radius: 20px;
    backdrop-filter: blur(25px) saturate(140%);
    position: relative;
    animation: messageSlideIn 0.5s ease-out;
    z-index: 10;
}

.user-message {
    align-self: flex-end;
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.2) 0%,
        rgba(59, 130, 246, 0.15) 50%,
        rgba(147, 197, 253, 0.1) 100%
    );
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        inset 0 2px 0 rgba(147, 197, 253, 0.3),
        inset 0 -2px 0 rgba(30, 58, 138, 0.2),
        0 4px 20px rgba(30, 58, 138, 0.4);
    border-bottom-right-radius: 8px;
}

.ai-message {
    align-self: flex-start;
    background: linear-gradient(135deg, 
        var(--glass-primary) 0%,
        var(--glass-secondary) 50%,
        var(--glass-accent) 100%
    );
    border: 2px solid var(--glass-border);
    box-shadow: 
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 var(--glass-secondary),
        0 4px 20px var(--glass-accent);
    border-bottom-left-radius: 8px;
}

.message-content {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
}

.message-content p {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 400;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.98);
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.message-content em {
    color: rgba(147, 197, 253, 0.9);
    font-style: italic;
    font-weight: 500;
}

.user-message .message-content {
    text-align: right;
}

.ai-message .message-content {
    text-align: left;
}

@keyframes messageSlideIn {
    from {
        opacity: 1; /* Start visible */
        transform: translateY(0); /* No sliding */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing Animation */
.typing-indicator {
    position: relative;
}

.typing-indicator::after {
    content: '|';
    animation: blink 1s infinite;
    color: rgba(147, 197, 253, 0.8);
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* AI Typing Indicator */
.ai-typing {
    align-self: flex-start;
    max-width: 80%;
    padding: 18px 22px;
    border-radius: 20px;
    backdrop-filter: blur(25px) saturate(140%);
    background: linear-gradient(135deg, 
        var(--glass-primary) 0%,
        var(--glass-secondary) 50%,
        var(--glass-accent) 100%
    );
    border: 2px solid var(--glass-border);
    box-shadow: 
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 var(--glass-secondary),
        0 4px 20px var(--glass-accent);
    border-bottom-left-radius: 8px;
    animation: messageSlideIn 0.5s ease-out;
    position: relative;
    z-index: 10;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: typingDot 1.5s infinite;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    30% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Input Container positioned directly */

.input-container {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: calc(100% - 32px);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, 
        var(--glass-primary) 0%,
        var(--glass-secondary) 50%,
        var(--glass-accent) 100%
    );
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 16px 20px;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-sizing: border-box;
    backdrop-filter: blur(30px) saturate(140%);
    box-shadow: 
        inset 0 1px 0 var(--glass-secondary),
        0 4px 20px var(--glass-accent);
}

.input-container:hover {
    border-color: var(--glass-hover);
    box-shadow: 
        inset 0 1px 0 var(--glass-secondary),
        0 4px 20px var(--glass-accent);
}

.input-container input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    outline: none;
    margin: 0 8px;
    min-width: 0;
    font-weight: 400;
    backdrop-filter: blur(5px) saturate(120%);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.input-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    font-weight: 300;
}

.input-container input:focus {
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    box-shadow: none;
}

/* Send Button */
.send-btn {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%
    );
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 8px var(--glass-border);
}

.send-btn:hover {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%
    );
    transform: translateY(-1px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 4px 12px var(--glass-hover);
}

.send-btn:active {
    transform: translateY(0);
}

.send-btn svg {
    transition: transform 0.2s ease;
}

.send-btn:hover svg {
    transform: translateX(1px);
}

/* Signup Button */
.signup-btn {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.9) 0%, 
        rgba(147, 197, 253, 0.8) 100%
    );
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    backdrop-filter: blur(15px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 12px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(147, 197, 253, 0.3);
}

.signup-btn:hover {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 1) 0%, 
        rgba(147, 197, 253, 0.9) 100%
    );
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 6px 16px rgba(59, 130, 246, 0.4);
}

.signup-btn:active {
    transform: translateY(0);
}

/* Survey Buttons */
.survey-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.survey-btn {
    padding: 10px 20px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    backdrop-filter: blur(10px);
    flex: 1;
    min-width: 120px;
}

.survey-btn.yes-btn {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.9) 0%, 
        rgba(74, 222, 128, 0.8) 100%
    );
    color: #ffffff;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 12px rgba(34, 197, 94, 0.3);
}

.survey-btn.yes-btn:hover {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 1) 0%, 
        rgba(74, 222, 128, 0.9) 100%
    );
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 6px 16px rgba(34, 197, 94, 0.4);
}

.survey-btn.no-btn {
    background: linear-gradient(135deg, 
        rgba(107, 114, 128, 0.9) 0%, 
        rgba(156, 163, 175, 0.8) 100%
    );
    color: #ffffff;
    border: 1px solid rgba(107, 114, 128, 0.3);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 12px rgba(107, 114, 128, 0.3);
}

.survey-btn.no-btn:hover {
    background: linear-gradient(135deg, 
        rgba(107, 114, 128, 1) 0%, 
        rgba(156, 163, 175, 0.9) 100%
    );
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 6px 16px rgba(107, 114, 128, 0.4);
}

.survey-btn:active {
    transform: translateY(0);
}

/* Survey Form */
.survey-form-bubble {
    max-width: 95%;
    z-index: 10 !important;
}

.survey-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Form Sections */
.form-section {
    background: linear-gradient(135deg, 
        var(--glass-accent) 0%,
        var(--glass-accent) 100%
    );
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.form-section h4 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Checkbox Groups */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, 
        var(--glass-accent) 0%,
        var(--glass-accent) 100%
    );
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
}

.checkbox-label:hover {
    background: linear-gradient(135deg, 
        var(--glass-primary) 0%,
        var(--glass-secondary) 100%
    );
    border-color: var(--glass-hover);
    transform: translateY(-1px);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary-color);
    border-radius: 4px;
}

.checkbox-label input[type="checkbox"]:checked + span,
.checkbox-label:has(input[type="checkbox"]:checked) {
    color: rgba(255, 255, 255, 1);
    font-weight: 600;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.form-group select,
.form-group input,
.form-group textarea {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(147, 197, 253, 0.3);
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.1) 0%,
        rgba(59, 130, 246, 0.08) 50%,
        rgba(147, 197, 253, 0.05) 100%
    );
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 
        0 0 0 2px rgba(59, 130, 246, 0.2),
        0 4px 12px rgba(59, 130, 246, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.4;
}

.form-group select option {
    background: rgba(30, 58, 138, 0.9);
    color: #ffffff;
    border: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.survey-submit-btn {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.9) 0%, 
        rgba(147, 197, 253, 0.8) 100%
    );
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    backdrop-filter: blur(15px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 12px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(147, 197, 253, 0.3);
    font-family: inherit;
}

.survey-submit-btn:hover {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 1) 0%, 
        rgba(147, 197, 253, 0.9) 100%
    );
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 6px 16px rgba(59, 130, 246, 0.4);
}

.survey-submit-btn:active {
    transform: translateY(0);
}

/* Color Palette System */
.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, 
        var(--glass-primary) 0%,
        var(--glass-secondary) 100%
    );
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.color-option:hover {
    background: linear-gradient(135deg, 
        var(--glass-primary) 0%,
        var(--glass-secondary) 100%
    );
    border-color: var(--glass-hover);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px var(--glass-border),
        0 0 20px var(--glass-secondary);
}

.color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.color-option span {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.manifestecx-link {
    display: inline-block;
    color: rgba(147, 197, 253, 0.9);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.1) 0%,
        rgba(59, 130, 246, 0.08) 100%
    );
    border: 1px solid rgba(147, 197, 253, 0.3);
    transition: all 0.3s ease;
    margin-top: 8px;
    font-weight: 600;
    font-size: 14px;
}

.manifestecx-link:hover {
    color: rgba(255, 255, 255, 1);
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.2) 0%,
        rgba(147, 197, 253, 0.15) 100%
    );
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Touch and Scroll Optimization */
@media (hover: none) and (pointer: coarse) {
    .demo-browser:hover,
    .screen-studio-demo-container:hover {
        transform: none;
    }
    
    .input-container:hover,
    .send-btn:hover,
    .signup-btn:hover {
        transform: none;
    }
    
    .chat-item:hover {
        transform: none;
    }
    
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    input, button, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Enhanced Mobile-First Responsive Design */

/* Global mobile visual consistency */
@media (max-width: 1024px) {
    /* Ensure all background elements maintain desktop appearance */
    body {
        background: #0a0a0a; /* Consistent background */
    }
    
    /* Preserve all visual effects with optimized performance */
    .background-canvas,
    .blue-wave,
    .grid-overlay,
    .sparkles,
    .star-field {
        display: block !important;
        visibility: visible !important;
    }
    
    /* Maintain browser shadow effects on mobile */
    .demo-browser {
        box-shadow: 
            0 25px 50px rgba(0, 0, 0, 0.4),
            0 10px 20px rgba(30, 58, 138, 0.2),
            0 0 60px rgba(59, 130, 246, 0.25);
    }
    
    /* Keep text gradients and effects */
    .hero-title,
    .play-text {
        background: linear-gradient(
            135deg,
            #ffffff 0%,
            #ddd6fe 30%,
            #93c5fd 60%,
            #e0e7ff 100%
        );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
        text-shadow: 0 0 60px rgba(147, 197, 253, 0.4);
        filter: drop-shadow(0 0 30px rgba(147, 197, 253, 0.3));
    }
    
    .hero-subtitle {
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(147, 197, 253, 0.8) 50%,
            rgba(255, 255, 255, 0.7) 100%
        );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(0 0 15px rgba(147, 197, 253, 0.2));
    }
}

/* Mobile touch optimization */
@media (hover: none) and (pointer: coarse) {
    /* Improve touch targets */
    .send-btn, .signup-btn, .survey-btn, .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 12px;
    }
    
    .chat-item {
        padding: 16px 12px;
        min-height: 56px;
    }
    
    .window-control {
        width: 16px;
        height: 16px;
    }
    
    /* Disable hover effects on touch devices */
    .demo-browser:hover,
    .send-btn:hover,
    .signup-btn:hover,
    .survey-btn:hover,
    .input-container:hover,
    .color-option:hover,
    .chat-item:hover {
        transform: none;
        box-shadow: inherit;
    }
    
    /* Better touch feedback */
    .send-btn:active,
    .signup-btn:active,
    .survey-btn:active,
    .mobile-menu-toggle:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* Tablets and small laptops - Preserve visual consistency */
@media (max-width: 1024px) {
    .blue-wave {
        animation: float 20s ease-in-out infinite;
        opacity: 0.5;
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        top: 0;
        left: 0;
        transform: translateY(-5%) scale(1.05);
    }
    
    /* Reduce sparkles intensity but keep them visible */
    .sparkles {
        opacity: 0.7;
    }
    
    /* Maintain star field prominence */
    .star-field {
        top: 60%;
        height: 40%;
    }
    
    .star-large {
        width: 2.5px;
        height: 2.5px;
        box-shadow: 0 0 10px rgba(196, 181, 253, 0.8);
    }
    
    .nebula {
        filter: blur(12px);
        opacity: 0.8;
    }
    
    /* Keep grid overlay visible */
    .grid-overlay {
        opacity: 0.6;
    }
    
    .screen-studio-demo-container {
        transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
    }
    
    .demo-browser {
        height: 650px;
    backdrop-filter: blur(15px);
    }
    
    .browser-content {
        height: 580px;
    }
    
    .ai-chat-interface {
        height: 580px;
    }
}

/* Mobile devices (768px and below) - Maintain desktop visual consistency */
@media (max-width: 768px) {
    body {
    font-size: 14px;
    }
    
    /* Preserve desktop-like typography scaling */
    .hero-title {
        font-size: clamp(3rem, 8vw, 4rem);
        gap: clamp(15px, 4vw, 20px);
    margin-bottom: 16px;
}

    .logo-o {
        width: clamp(3rem, 8vw, 4rem);
        height: clamp(3rem, 8vw, 4rem);
    }
    
    .play-text {
        font-size: clamp(3rem, 8vw, 4rem);
        height: clamp(3rem, 8vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 3vw, 1rem);
        margin-top: -10px;
        padding: 0 20px;
    text-align: center;
    }
    
    /* Maintain desktop-like spacing ratios */
    .main-content {
        padding: 60px 20px;
        padding-top: 12vh;
    }
    
    .hero-section {
        margin-top: 3vh;
        gap: 50px;
    }
    
    .hero-content {
        gap: 5px !important; /* Force 5px spacing for mobile */
    }
    
    /* Preserve background consistency */
    .background-canvas {
        background-size: 100%;
        background-position: center 25%;
        opacity: 1;
    }
    
    /* Keep blue wave effect similar to desktop */
    .blue-wave {
        opacity: 0.6;
        animation: float 20s ease-in-out infinite;
    }
    
    /* Preserve 3D transform effects but scale appropriately */
    .screen-studio-demo-container {
        transform: perspective(1000px) rotateX(3deg) rotateY(-5deg);
        max-width: 95%;
        margin: 0 auto;
    }
    
    /* Keep desktop-like browser appearance */
    .demo-browser {
        height: clamp(700px, 85vh, 900px);
        border-radius: 28px;
        border: 2px solid rgba(59, 130, 246, 0.2);
        backdrop-filter: blur(20px);
        background: linear-gradient(135deg, 
            rgba(30, 58, 138, 0.12) 0%,
            rgba(59, 130, 246, 0.1) 25%,
            rgba(147, 197, 253, 0.06) 50%,
            rgba(219, 234, 254, 0.04) 75%,
            rgba(255, 255, 255, 0.02) 100%
        );
    }
    
    .browser-content {
        height: clamp(630px, 75vh, 830px);
    }
    
    .ai-chat-interface {
        height: clamp(630px, 75vh, 830px);
        flex-direction: row;
    position: relative;
}

    /* Maintain star field visibility on mobile */
    .star-field {
        top: 60%;
        height: 40%;
        opacity: 0.8;
    }
    
    /* Keep sparkles but reduce intensity */
    .sparkles {
        opacity: 0.6;
    }
    
    /* Preserve grid overlay */
    .grid-overlay {
        opacity: 0.5;
    }
    
    .chat-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100%;
        background: linear-gradient(135deg, 
            rgba(30, 58, 138, 0.4) 0%,
            rgba(59, 130, 246, 0.35) 30%,
            rgba(147, 197, 253, 0.3) 60%,
            rgba(191, 219, 254, 0.25) 100%
        );
        backdrop-filter: blur(60px) saturate(180%);
        z-index: 1000;
        transition: left 0.3s ease;
        border-right: 2px solid rgba(147, 197, 253, 0.4);
        box-shadow: 
            inset 0 2px 10px rgba(59, 130, 246, 0.2),
            inset 0 -2px 8px rgba(147, 197, 253, 0.15),
            0 0 40px rgba(147, 197, 253, 0.1);
        overflow-y: auto;
    }
    
    .chat-sidebar.mobile-open {
        left: 0;
    }
    
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile menu positioned to not interfere with main design */
    .mobile-menu-toggle {
        position: absolute;
        top: 25px;
        left: 25px;
        background: linear-gradient(135deg, 
            rgba(59, 130, 246, 0.95) 0%, 
            rgba(147, 197, 253, 0.9) 100%
        );
        border: none;
        color: #ffffff;
        font-size: 18px;
        cursor: pointer;
        padding: 12px;
        border-radius: 16px;
        z-index: 10000 !important;
        transition: all 0.3s ease;
        backdrop-filter: blur(20px);
        box-shadow: 
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 6px 20px rgba(59, 130, 246, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(147, 197, 253, 0.4);
        min-width: 48px;
        min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    .mobile-menu-toggle:hover {
        background: linear-gradient(135deg, 
            rgba(59, 130, 246, 1) 0%, 
            rgba(147, 197, 253, 0.9) 100%
        );
        transform: translateY(-2px);
    box-shadow: 
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 6px 16px rgba(59, 130, 246, 0.4);
    }
    
        .sidebar-header {
        padding: 10px 12px;
        border-bottom: 2px solid rgba(147, 197, 253, 0.4);
        position: relative;
        background: linear-gradient(135deg, 
            rgba(30, 58, 138, 0.5) 0%,
            rgba(59, 130, 246, 0.45) 30%,
            rgba(147, 197, 253, 0.4) 60%,
            rgba(191, 219, 254, 0.35) 100%
        );
        box-shadow: 
            inset 0 2px 0 rgba(59, 130, 246, 0.2),
            0 2px 8px rgba(147, 197, 253, 0.15),
            0 0 30px rgba(147, 197, 253, 0.1);
        backdrop-filter: blur(60px) saturate(180%);
    }
    
    .top-section {
        margin-bottom: 12px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
    font-size: 14px;
}

    .oplay-logo-small {
    font-size: 16px;
        gap: 3px;
    }
    
    .logo-small {
        width: 16px;
        height: 16px;
    }
    
    .app-toolbar {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .app-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .sidebar-content {
        padding: 15px;
        padding-top: 0;
    }
    
    .chat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .chat-item {
        min-width: auto;
        flex-shrink: 1;
    }
    
    .chat-main {
    flex: 1;
    width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }
    
    .chat-messages {
        padding: 60px 20px 140px 20px;
        min-height: calc(100% - 140px);
        max-height: calc(100% - 100px);
        box-sizing: border-box;
    }
    

    
    .background-canvas {
        background-size: 120%;
        background-position: center 30%;
        background-attachment: scroll;
        opacity: 0.8;
        z-index: -10;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .input-container {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.12) 50%,
            rgba(255, 255, 255, 0.08) 100%
        );
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        padding: 16px 20px;
    transition: all 0.3s ease;
    width: 100%;
        box-sizing: border-box;
        backdrop-filter: blur(30px) saturate(140%);
        box-shadow: 
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 4px 20px rgba(0, 0, 0, 0.2);
        min-height: 56px;
        touch-action: manipulation;
    }
    
    .message-bubble {
        max-width: 85%;
        padding: 16px 20px;
    }
    
    .survey-form-bubble {
        max-width: 95%;
    }
    
    .survey-buttons {
    flex-direction: column;
    gap: 8px;
}

    .survey-btn {
        min-width: auto;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .form-group select,
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .survey-submit-btn {
    font-size: 16px;
        padding: 16px 24px;
    }
    
    .color-palette {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        max-width: 100%;
    }
    
    .color-option {
        padding: 10px 12px;
    gap: 8px;
}

    .color-circle {
        width: 20px;
        height: 20px;
    }
    
    .color-option span {
        font-size: 12px;
    }
    
    /* Enhanced mobile input and interaction */
    .input-container {
        left: 15px;
        right: 15px;
        max-width: calc(100% - 30px);
        min-height: 56px;
        border-radius: 20px;
    padding: 16px 20px;
        touch-action: manipulation;
        border: 1px solid var(--glass-border);
        outline: none;
        box-shadow: 
            inset 0 1px 0 var(--glass-secondary),
            0 4px 20px var(--glass-accent);
    }
    
    .input-container:focus-within {
        outline: none;
        border-color: var(--glass-border);
        box-shadow: 
            inset 0 1px 0 var(--glass-secondary),
            0 4px 20px var(--glass-accent);
    }
    
    .input-container input {
        font-size: 16px; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        appearance: none;
        outline: none;
        border: none;
    }
    
    .input-container input:focus {
        outline: none;
        border: none;
        box-shadow: none;
    }
    
    .send-btn {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        touch-action: manipulation;
    }
    
    .message-bubble {
        padding: 14px 18px;
        border-radius: 18px;
        max-width: 82%;
        font-size: 15px;
        line-height: 1.6;
        word-break: break-word;
    }
    
    .message-content h3 {
        font-size: 17px;
        margin-bottom: 7px;
    }
    
    .message-content p {
        font-size: 15px;
        margin-bottom: 9px;
    }
    
    .ai-typing {
        padding: 14px 18px;
        border-radius: 18px;
        max-width: 82%;
    }
    
    /* Better mobile scrolling */
    .chat-messages {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 16px 12px 160px 12px;
        max-height: calc(100% - 120px);
        box-sizing: border-box;
    }
    

    
    /* Mobile star field optimizations */
    .star-field {
        top: 70%;
        height: 30%;
    }
    
    /* Reduce star animations on mobile for performance */
    .pulse-star, .nebula {
        animation-duration: 6s;
        will-change: transform;
    }
    
    .shooting-star-bottom {
        animation-duration: 15s;
        will-change: transform;
    }
    
    /* Performance optimizations while preserving effects */
    .blue-wave, .sparkles, .star-field {
        will-change: auto;
        transform: translateZ(0);
    }
    
    /* Ensure background consistency with desktop */
    .background-canvas {
        background-size: 95%;
        background-position: center 30%;
        background-attachment: scroll; /* Better for mobile performance */
        opacity: 1;
    }
    
    /* Override any mobile reductions to maintain visual fidelity */
    .blue-wave {
        filter: blur(60px); /* Slightly less blur for mobile performance */
    }
    
    .grid-overlay {
        background: 
            repeating-linear-gradient(
                90deg,
                transparent,
                transparent 149px,
                rgba(147, 197, 253, 0.015) 150px
            ),
            repeating-linear-gradient(
                0deg,
                transparent,
                transparent 149px,
                rgba(147, 197, 253, 0.015) 150px
            );
    }
}

/* Comprehensive fix for ALL devices in 400-768px range */
@media (min-width: 400px) and (max-width: 768px) {
    .main-content .hero-section .hero-content {
        gap: 5px !important; /* Force 5px spacing with higher specificity */
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-content .hero-section .hero-title-section {
        margin-bottom: 0 !important; /* Remove any conflicting margins */
        margin-top: 0 !important;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Force remove spacing from demo section */
    .screen-studio-section-right {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .screen-studio-demo-container {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Additional fallback with different selector */
    body .hero-content {
        gap: 5px !important;
    }
    
    body .hero-title-section {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }
    
    body .screen-studio-section-right {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Specific fix for 430px range devices */
@media (min-width: 415px) and (max-width: 480px) {
    .hero-content {
        gap: 5px !important; /* Force 5px spacing for 430px range */
    }
    
    .hero-title-section {
        margin-bottom: 0 !important;
    }
    
    /* Ensure logo and PLAY text are exactly the same size */
    .logo-o {
        width: clamp(2.8rem, 7.5vw, 3.2rem);
        height: clamp(2.8rem, 7.5vw, 3.2rem);
    }
    
    .play-text {
        font-size: clamp(2.8rem, 7.5vw, 3.2rem);
        height: clamp(2.8rem, 7.5vw, 3.2rem);
    }
}

/* Small mobile devices - Preserve desktop visual style */
@media (max-width: 480px) {
    /* Scale typography while maintaining desktop proportions */
    .hero-title {
        font-size: clamp(2.5rem, 7vw, 3rem);
        gap: clamp(8px, 2vw, 12px);
        flex-direction: row;
    align-items: center;
    justify-content: center;
    }
    
    .logo-o {
        width: clamp(2.5rem, 7vw, 3rem);
        height: clamp(2.5rem, 7vw, 3rem);
        margin-bottom: 0;
    }
    
    .play-text {
        font-size: clamp(2.5rem, 7vw, 3rem);
        height: clamp(2.5rem, 7vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.7rem, 2.5vw, 0.8rem);
        margin-top: -8px;
        padding: 0 16px;
        line-height: 1.4;
    }
    
    /* Maintain desktop-like layout proportions */
    .main-content {
        padding: 40px 16px;
        padding-top: 10vh;
    }
    
    .hero-content {
        gap: 5px !important; /* Force 5px spacing for small mobile */
    }
    
    .hero-title-section {
        margin-bottom: 0; /* Remove margin for consistent spacing */
    }
    
    /* Keep 3D effect but scale down */
    .screen-studio-demo-container {
        transform: perspective(800px) rotateX(2deg) rotateY(-3deg);
        max-width: 98%;
        margin: 0 !important; /* Force no margins on mobile */
        padding: 0 !important; /* Force no padding on mobile */
    }
    
    .demo-browser {
        height: clamp(500px, 75vh, 600px);
        border-radius: 24px;
    }
    
    .browser-content {
        height: clamp(430px, 65vh, 530px);
    }
    
    .ai-chat-interface {
        height: clamp(430px, 65vh, 530px);
    }
    
    .screen-studio-demo-container {
        transform: perspective(600px) rotateX(0deg) rotateY(0deg);
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .demo-browser {
        height: clamp(450px, 60vh, 650px);
        border-radius: 20px;
        border: 1px solid rgba(59, 130, 246, 0.1);
        backdrop-filter: blur(8px);
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .browser-content {
        height: calc(clamp(450px, 60vh, 650px) - 42px);
        min-height: calc(clamp(450px, 60vh, 650px) - 42px);
        display: flex;
        flex-direction: column;
    }
    
    .ai-chat-interface {
        height: 100%;
        min-height: 100%;
        flex: 1;
        position: relative;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .chat-messages {
        padding: 14px 14px 100px 14px;
        max-height: calc(100% - 100px);
        min-height: calc(100% - 100px);
    }
    
    .input-container {
        bottom: 16px;
        left: 16px;
        right: 16px;
        max-width: calc(100% - 32px);
    }
    
        .chat-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 260px;
        height: 100%;
        background: linear-gradient(135deg, 
            rgba(30, 58, 138, 0.45) 0%,
            rgba(59, 130, 246, 0.4) 30%,
            rgba(147, 197, 253, 0.35) 60%,
            rgba(191, 219, 254, 0.3) 100%
        );
        backdrop-filter: blur(65px) saturate(180%);
        z-index: 1000;
        transition: left 0.3s ease;
        border-right: 2px solid rgba(147, 197, 253, 0.45);
        box-shadow: 
            inset 0 2px 10px rgba(59, 130, 246, 0.25),
            inset 0 -2px 8px rgba(147, 197, 253, 0.2),
            0 0 45px rgba(147, 197, 253, 0.12);
        overflow-y: auto;
    }
    
    .chat-sidebar.mobile-open {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    font-size: 16px;
        padding: 10px;
        position: absolute;
        top: 18px;
        left: 18px;
        z-index: 10000 !important;
    }
    
        .sidebar-header {
        padding: 8px 10px;
        border-bottom: 2px solid rgba(147, 197, 253, 0.45);
        position: relative;
        background: linear-gradient(135deg, 
            rgba(30, 58, 138, 0.55) 0%,
            rgba(59, 130, 246, 0.5) 30%,
            rgba(147, 197, 253, 0.45) 60%,
            rgba(191, 219, 254, 0.4) 100%
        );
        box-shadow: 
            inset 0 2px 0 rgba(59, 130, 246, 0.25),
            0 2px 8px rgba(147, 197, 253, 0.2),
            0 0 35px rgba(147, 197, 253, 0.12);
        backdrop-filter: blur(65px) saturate(180%);
    }
    
    .top-section {
        margin-bottom: 10px;
    }
    
    .user-avatar {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }
    
    .oplay-logo-small {
        font-size: 15px;
        gap: 2px;
    }
    
    .logo-small {
        width: 15px;
        height: 15px;
    }
    
    .app-toolbar {
        gap: 5px;
        margin-bottom: 10px;
    }
    
    .app-icon {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
    
    .sidebar-content {
        padding: 12px;
        padding-top: 0;
    }
    
    .chat-item {
    padding: 10px;
        min-width: auto;
    }
    
    .chat-title {
    font-size: 12px;
    }
    
    .chat-preview {
        font-size: 11px;
    }
    
    .chat-messages {
        padding: 50px 15px 130px 15px;
        min-height: calc(100% - 130px);
        max-height: calc(100% - 100px);
        box-sizing: border-box;
        gap: 15px;
    }
    

    
    .message-bubble {
        max-width: 90%;
        padding: 12px 16px;
    }
    
    .survey-form-bubble {
        max-width: 95%;
    }
    
    .survey-buttons {
    flex-direction: column;
        gap: 6px;
    }
    
    .survey-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .form-group {
        gap: 4px;
    }
    
    .form-group label {
        font-size: 12px;
    }
    
    .form-group select,
    .form-group input,
    .form-group textarea {
        padding: 8px 12px;
    font-size: 16px;
    }
    
    .survey-submit-btn {
        font-size: 15px;
    padding: 12px 20px;
    }
    
    .color-palette {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        max-width: 100%;
    }
    
    .color-option {
        padding: 8px 10px;
        gap: 6px;
    }
    
    .color-circle {
        width: 18px;
        height: 18px;
    }
    
    .color-option span {
        font-size: 11px;
    }
    
    .message-content h3 {
    font-size: 16px;
}

    .message-content p {
        font-size: 13px;
    }
    
    /* Form sections mobile styling */
    .form-section {
        padding: 12px;
    margin-bottom: 12px;
}

    .form-section h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .checkbox-label {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
    
    .signup-btn {
        padding: 10px 18px;
        font-size: 12px;
    }
    
    .input-container {
        left: 12px;
        right: 12px;
        max-width: calc(100% - 24px);
        padding: 10px 14px;
    }
    
    .send-btn {
        min-width: 28px;
        height: 28px;
        padding: 6px;
    }
    
    .background-canvas {
        background-attachment: scroll;
        background-size: 130%;
        background-position: center 25%;
        opacity: 0.9;
        z-index: -10;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .hero-section {
        padding: 10vh 0;
    }
    
    /* Further optimize star field for small screens */
    .star-field {
        top: 75%;
        height: 25%;
    }
    
    /* Hide complex animations on very small screens */
    .pulse-star {
        animation: none;
        opacity: 0.6;
    }
    
    .nebula {
        display: none;
    }
    
    .shooting-star-bottom {
        animation: none;
    }
}

/* Very small mobile devices - Maintain core design */
@media (max-width: 320px) {
    .hero-title {
        font-size: clamp(2rem, 9vw, 2.5rem);
        gap: clamp(6px, 2vw, 10px);
        flex-direction: row;
    align-items: center;
    justify-content: center;
    }
    
    .logo-o {
        width: clamp(2rem, 9vw, 2.5rem);
        height: clamp(2rem, 9vw, 2.5rem);
    }
    
    .play-text {
        font-size: clamp(2rem, 9vw, 2.5rem);
        height: clamp(2rem, 9vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.6rem, 2.5vw, 0.7rem);
        margin-top: -6px;
        padding: 0 12px;
    }
    
    /* Maintain visual hierarchy */
    .main-content {
        padding: 30px 12px;
        padding-top: 8vh;
    }
    
    .screen-studio-demo-container {
        transform: perspective(600px) rotateX(1deg) rotateY(-2deg);
        max-width: 100%;
    }
    
    .demo-browser {
        height: 480px;
        border-radius: 16px;
    }
    
    .browser-content {
        height: 410px;
    }
    
    .ai-chat-interface {
        height: 410px;
    position: relative;
    }
    
        .chat-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 240px;
        height: 100%;
        background: linear-gradient(135deg, 
            rgba(30, 58, 138, 0.5) 0%,
            rgba(59, 130, 246, 0.45) 30%,
            rgba(147, 197, 253, 0.4) 60%,
            rgba(191, 219, 254, 0.35) 100%
        );
        backdrop-filter: blur(70px) saturate(180%);
        z-index: 1000;
        transition: left 0.3s ease;
        border-right: 2px solid rgba(147, 197, 253, 0.5);
        box-shadow: 
            inset 0 2px 10px rgba(59, 130, 246, 0.3),
            inset 0 -2px 8px rgba(147, 197, 253, 0.25),
            0 0 50px rgba(147, 197, 253, 0.15);
        overflow-y: auto;
    }
    
    .chat-sidebar.mobile-open {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        font-size: 14px;
        padding: 8px;
    position: absolute;
        top: 15px;
        left: 15px;
        z-index: 10000 !important;
    }
    
        .sidebar-header {
        padding: 6px 8px;
        border-bottom: 2px solid rgba(147, 197, 253, 0.5);
        position: relative;
        background: linear-gradient(135deg, 
            rgba(30, 58, 138, 0.6) 0%,
            rgba(59, 130, 246, 0.55) 30%,
            rgba(147, 197, 253, 0.5) 60%,
            rgba(191, 219, 254, 0.45) 100%
        );
        box-shadow: 
            inset 0 2px 0 rgba(59, 130, 246, 0.3),
            0 2px 8px rgba(147, 197, 253, 0.25),
            0 0 40px rgba(147, 197, 253, 0.15);
        backdrop-filter: blur(70px) saturate(180%);
    }
    
    .top-section {
        margin-bottom: 8px;
    }
    
    .user-avatar {
        width: 24px;
        height: 24px;
    font-size: 12px;
    }
    
    .oplay-logo-small {
    font-size: 14px;
        gap: 2px;
    }
    
    .logo-small {
        width: 14px;
        height: 14px;
    }
    
    .app-toolbar {
        gap: 4px;
    margin-bottom: 8px;
    }
    
    .app-icon {
    width: 16px;
    height: 16px;
        font-size: 8px;
    }
    
    .sidebar-content {
        padding: 10px;
        padding-top: 0;
    }
    
    .chat-messages {
        padding: 45px 10px 120px 10px;
        min-height: calc(100% - 120px);
        max-height: calc(100% - 80px);
        box-sizing: border-box;
    }
    

    
    .message-bubble {
        padding: 10px 14px;
        border-radius: 16px;
        max-width: 85%;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .message-content h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .message-content p {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    /* AI typing indicator responsive sizing */
    .ai-typing {
        padding: 10px 14px;
        border-radius: 16px;
        max-width: 85%;
    }
    
    .survey-form-bubble {
        max-width: 98%;
    }
    
    .survey-buttons {
        gap: 4px;
    }
    
    .survey-btn {
        padding: 8px 12px;
    font-size: 12px;
    }
    
    .form-group {
        gap: 3px;
    }
    
    .form-group label {
        font-size: 11px;
    }
    
    .form-group select,
    .form-group input,
    .form-group textarea {
        padding: 6px 10px;
        font-size: 16px;
    }
    
    .survey-submit-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .main-content {
        padding: 15px 10px;
    }
    
    /* Minimal star field for tiny screens */
    .star-field {
        top: 80%;
        height: 20%;
    }
    
    /* Only show basic twinkling stars */
    .pulse-star, .nebula, .shooting-star-bottom {
        display: none;
    }
    
    .star {
        animation-duration: 6s;
    }
}

/* Very Small Mobile Devices (360px width phones) */
@media (max-width: 360px) {
    .message-bubble {
        padding: 7px 10px;
        border-radius: 12px;
        max-width: 90%;
        font-size: 12px;
        line-height: 1.3;
    }
    
    .message-content h3 {
        font-size: 14px;
    margin-bottom: 4px;
}

    .message-content p {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    /* AI typing indicator for very small screens */
    .ai-typing {
        padding: 7px 10px;
        border-radius: 12px;
        max-width: 90%;
    }
    
    .typing-dots {
        gap: 2px;
        padding: 4px 0;
    }
    
    .typing-dot {
        width: 5px;
        height: 5px;
    }
}

/* Small Mobile Devices (400px width phones) */
@media (min-width: 361px) and (max-width: 400px) {
    .message-bubble {
        padding: 8px 11px;
        border-radius: 13px;
        max-width: 87%;
        font-size: 13px;
        line-height: 1.4;
    }
    
    .message-content h3 {
    font-size: 14px;
        margin-bottom: 5px;
    }
    
    .message-content p {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .ai-typing {
        padding: 8px 11px;
        border-radius: 13px;
        max-width: 87%;
    }
}

/* Mid-Size Mobile Devices (414px width phones like iPhone 6/7/8 Plus) */
@media (min-width: 401px) and (max-width: 414px) {
    .message-bubble {
        padding: 9px 13px;
        border-radius: 15px;
        max-width: 85%;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .message-content h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .message-content p {
        font-size: 14px;
        margin-bottom: 7px;
    }
    
    .ai-typing {
        padding: 9px 13px;
        border-radius: 15px;
        max-width: 85%;
    }
}

/* Large Desktop Screens */
/* Small Tablets and Large Mobile Devices */
@media (min-width: 668px) and (max-width: 767px) {
    .message-bubble {
        padding: 15px 19px;
        border-radius: 19px;
        max-width: 80%;
        font-size: 15px;
        line-height: 1.6;
    }
    
    .message-content h3 {
        font-size: 17px;
        margin-bottom: 7px;
    }
    
    .message-content p {
        font-size: 15px;
        margin-bottom: 9px;
    }
    
    .ai-typing {
        padding: 15px 19px;
        border-radius: 19px;
        max-width: 80%;
    }
    
    .demo-browser {
        height: clamp(550px, 70vh, 650px);
    }
    
    .browser-content {
        height: calc(clamp(550px, 70vh, 650px) - 42px);
        min-height: calc(clamp(550px, 70vh, 650px) - 42px);
        display: flex;
        flex-direction: column;
    }
    
    .ai-chat-interface {
        height: 100%;
        min-height: 100%;
        flex: 1;
    }
    
    .chat-messages {
        padding: 18px 18px 100px 18px;
        max-height: calc(100% - 100px);
        min-height: calc(100% - 100px);
    }
    
    .input-container {
        bottom: 16px;
        left: 16px;
        right: 16px;
        max-width: calc(100% - 32px);
    }
}

/* iPhone Standard Width (375px) */
@media (min-width: 375px) and (max-width: 375px) {
    .message-bubble {
        padding: 10px 14px;
        border-radius: 16px;
        max-width: 84%;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .message-content h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .message-content p {
        font-size: 14px;
        margin-bottom: 7px;
    }
    
    .ai-typing {
        padding: 10px 14px;
        border-radius: 16px;
        max-width: 84%;
    }
}

/* Modern mobile devices (larger phones) */
@media (min-width: 376px) and (max-width: 667px) {
    .hero-content {
        gap: 5px !important; /* Force 5px spacing for modern mobile */
    }
    
    .hero-title-section {
        margin-bottom: 0 !important;
    }
    
    .hero-title {
        font-size: clamp(2.8rem, 8vw, 3.2rem);
        gap: clamp(10px, 3vw, 16px);
    }
    
    .logo-o {
        width: clamp(2.8rem, 8vw, 3.2rem);
        height: clamp(2.8rem, 8vw, 3.2rem);
    }
    
    .play-text {
        font-size: clamp(2.8rem, 8vw, 3.2rem);
        height: clamp(2.8rem, 8vw, 3.2rem);
    }
    
    .demo-browser {
        height: clamp(600px, 70vh, 750px);
        border-radius: 22px;
    }
    
    .browser-content {
        height: calc(clamp(600px, 70vh, 750px) - 42px);
        min-height: calc(clamp(600px, 70vh, 750px) - 42px);
        display: flex;
        flex-direction: column;
    }
    
    .ai-chat-interface {
        height: 100%;
        min-height: 100%;
        flex: 1;
    }
    
    .chat-messages {
        padding: 16px 16px 100px 16px;
        max-height: calc(100% - 100px);
        min-height: calc(100% - 100px);
    }
    
    .message-bubble {
        padding: 12px 16px;
        border-radius: 17px;
        max-width: 83%;
        font-size: 14px;
    line-height: 1.5;
    }
    
    .message-content h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .message-content p {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .ai-typing {
        padding: 12px 16px;
        border-radius: 17px;
        max-width: 83%;
    }
    
    .input-container {
        left: 16px;
        right: 16px;
        max-width: calc(100% - 32px);
        padding: 18px 20px;
        min-height: 60px;
    }
    
    .send-btn {
        width: 56px;
        height: 56px;
    }
}

/* Tablet portrait mode */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-title {
        font-size: clamp(3.5rem, 6vw, 4rem);
    }
    
    .demo-browser {
        height: 700px;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .browser-content {
        height: 630px;
    }
    
    .ai-chat-interface {
        height: 630px;
    }
    
    .chat-sidebar {
        width: 320px;
    }
}

/* Large screens and desktops */
@media (min-width: 1440px) {
    .demo-browser {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 7rem;
    }
    
    .logo-o {
        width: 7rem;
        height: 7rem;
    }
    
    .play-text {
        font-size: 7rem;
        height: 7rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Ultra-Wide Screens */
@media (min-width: 1920px) {
    .main-content {
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .demo-browser {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 8rem;
    }
    
    .logo-o {
        width: 8rem;
        height: 8rem;
    }
    
    .play-text {
        font-size: 8rem;
        height: 8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Landscape Mobile/Tablet */
@media (max-width: 768px) and (orientation: landscape) {
    .demo-browser {
        height: 400px;
}

.browser-content {
        height: 330px;
    }
    
    .ai-chat-interface {
        height: 330px;
    }
    
    .hero-section {
        padding: 5vh 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .logo-o {
        width: 3rem;
        height: 3rem;
    }
    
    .play-text {
        font-size: 3rem;
        height: 3rem;
    }
}

/* iPad Specific */
@media (min-width: 768px) and (max-width: 1024px) {
    .chat-sidebar {
        width: 300px;
    }
    
    .sidebar-content {
        padding: 18px;
    }
    
    .demo-browser {
        height: clamp(600px, 75vh, 750px);
    }
    
    .browser-content {
        height: calc(clamp(600px, 75vh, 750px) - 42px);
        min-height: calc(clamp(600px, 75vh, 750px) - 42px);
    }
    
    .ai-chat-interface {
        height: 100%;
        min-height: 100%;
    }
    
    .chat-messages {
        padding: 20px 20px 100px 20px;
        max-height: calc(100% - 100px);
        min-height: calc(100% - 100px);
    }
    
    .input-container {
        bottom: 16px;
        left: 16px;
        right: 16px;
    }
}

/* Small Height Screens */
/* Modern iPhone and Android devices */
@media (min-width: 375px) and (max-width: 428px) and (min-height: 812px) {
    /* Latest iPhone models (12, 13, 14 Pro Max) */
    .main-content {
        padding-top: 12vh;
        padding-bottom: 8vh;
    }
    
    .demo-browser {
        height: 650px;
        border-radius: 26px;
    }
    
    .browser-content {
        height: 580px;
    }
    
    .ai-chat-interface {
        height: 580px;
    }
    
    .hero-title {
        font-size: clamp(3rem, 8.5vw, 3.4rem);
    }
    
    .mobile-menu-toggle {
    position: absolute;
        top: calc(env(safe-area-inset-top, 20px) + 5px);
        left: calc(env(safe-area-inset-left, 20px) + 5px);
        z-index: 10000 !important;
    }
    
    .input-container {
        padding-bottom: env(safe-area-inset-bottom, 24px);
    }
}

/* Accessibility and reduced motion */
@media (prefers-reduced-motion: reduce) {
    .blue-wave,
    .sparkle,
    .star,
    .shooting-star-bottom,
    .pulse-star,
    .nebula {
        animation: none;
    }
    
    .demo-browser,
    .send-btn,
    .signup-btn,
    .survey-btn {
        transition: none;
    }
    
    * {
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .demo-browser {
        border: 3px solid rgba(59, 130, 246, 0.8);
        background: rgba(30, 58, 138, 0.2);
    }
    
    .message-bubble {
        border: 2px solid rgba(147, 197, 253, 0.6);
    }
    
    .input-container {
        border: 2px solid rgba(59, 130, 246, 0.8);
    }
}

/* Short screens and landscape phones */
@media (max-height: 600px) {
    .hero-section {
        padding: 3vh 0;
    }
    
    .demo-browser {
        height: 350px;
    }
    
    .browser-content {
        height: 280px;
    }
    
    .ai-chat-interface {
        height: 280px;
    }
    
    .chat-messages {
        padding: 10px 20px 140px 20px;
        max-height: calc(100% - 120px);
        box-sizing: border-box;
    }
}

/* Z-Index Layer Hierarchy - Ensures proper stacking on all devices */

/* Keep message elements below input */
.message-bubble {
    z-index: 10 !important;
}

.ai-typing {
    z-index: 10 !important;
}

.chat-messages {
    z-index: 1 !important;
}

/* Mobile specific elements */
.mobile-overlay {
    z-index: 999 !important;
}

.chat-sidebar {
    z-index: 1000 !important;
}

.mobile-menu-toggle {
    z-index: 10000 !important;
}

/* Game and interactive elements */
/* Game styles removed - only theme functionality available */

/* ========================================
   PERSONALIZATION & THEME OPTIONS
   ======================================== */

/* Personalization Options */
.personalization-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.personalization-btn {
    background: linear-gradient(135deg, var(--primary-color, #38f4d0), var(--secondary-color, #667eea));
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.personalization-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 244, 208, 0.3);
}

.personalization-btn.skip-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
}

/* Theme Grid */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

/* Preserve theme option colors - prevent theming system from overriding */
.theme-grid .theme-option {
    /* Inline styles should take precedence over any theming */
    backdrop-filter: none !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.theme-option {
    border: none;
    border-radius: 15px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-weight: 600;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.theme-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.theme-name {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.theme-desc {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

/* ========================================
   THEME INTERFACE ONLY
   ======================================== */

.game-container {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--glass-primary, rgba(56, 244, 208, 0.1)), var(--glass-secondary, rgba(102, 126, 234, 0.08)));
    border: 2px solid var(--border-color, rgba(56, 244, 208, 0.2));
    border-radius: 16px;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.game-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-color, #ffffff);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color, rgba(56, 244, 208, 0.3));
    border-top: 4px solid var(--primary-color, #38f4d0);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.game-control-btn {
    background: linear-gradient(135deg, var(--glass-primary, rgba(56, 244, 208, 0.15)), var(--glass-secondary, rgba(102, 126, 234, 0.12)));
    border: 2px solid var(--border-color, rgba(56, 244, 208, 0.3));
    color: var(--text-color, #ffffff);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.game-control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 244, 208, 0.2);
    background: linear-gradient(135deg, var(--glass-primary, rgba(56, 244, 208, 0.2)), var(--glass-secondary, rgba(102, 126, 234, 0.17)));
}

.game-fallback {
    padding: 30px;
        text-align: center;
    color: var(--text-color, #ffffff);
}

.game-fallback h4 {
    margin-bottom: 20px;
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary-color, #38f4d0), var(--secondary-color, #667eea));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.demo-apps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.demo-app {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--glass-primary, rgba(56, 244, 208, 0.1)), var(--glass-secondary, rgba(102, 126, 234, 0.08)));
    border: 1px solid var(--border-color, rgba(56, 244, 208, 0.2));
    border-radius: 12px;
    backdrop-filter: blur(10px);
    animation: demoAppPulse 2s ease-in-out infinite;
}

.demo-app:nth-child(1) { animation-delay: 0s; }
.demo-app:nth-child(2) { animation-delay: 0s; }
.demo-app:nth-child(3) { animation-delay: 0s; }
.demo-app:nth-child(4) { animation-delay: 0s; }
.demo-app:nth-child(5) { animation-delay: 0s; }

@keyframes demoAppPulse {
    0%, 80%, 100% { 
        transform: scale(1);
        opacity: 0.8;
    }
    40% { 
        transform: scale(1.05);
        opacity: 1;
    }
}

.demo-app span {
    font-weight: 500;
    color: var(--primary-color, #38f4d0);
}

.post-game-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.personalization-btn.game-btn {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(79, 70, 229, 0.12));
    border-color: rgba(147, 51, 234, 0.3);
}

.personalization-btn.game-btn:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(79, 70, 229, 0.17));
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.2);
}

.highlight-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    backdrop-filter: blur(10px);
}

/* ========================================
   FINAL ACTIONS - DISABLED FOR SECURITY
   ======================================== */

/* Final Actions - Hidden to prevent unauthorized access */
.final-actions {
    display: none !important;
}

.final-btn {
    display: none !important;
}

/* ========================================
   MOBILE RESPONSIVENESS FOR NEW ELEMENTS
   ======================================== */

@media (max-width: 768px) {
    .theme-grid {
        grid-template-columns: 1fr;
    }
    
    .final-actions {
        display: none !important;
    }

    .game-input {
        flex-direction: column;
    }
    
    .game-input input {
        margin-bottom: 10px;
    }
    
    .personalization-btn,
    .game-btn {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .theme-option {
        padding: 16px 12px;
    }
    
    .word-display {
        padding: 16px;
        margin: 12px 0;
    }
    
    /* O Bounce Game Mobile Styles */
    .game-container {
        height: 300px;
        margin: 15px 0;
    }
    
    .game-controls {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }
    
    .game-control-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .game-fallback {
        padding: 20px;
    }
    
    .game-fallback h4 {
        font-size: 20px;
    }
    
    .demo-apps {
        gap: 8px;
        margin: 15px 0;
    }
    
    .demo-app {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .post-game-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .game-bubble {
        padding: 20px;
    }
}

/* Task Game Modal styles removed - only theme functionality available */

/* Mobile Responsive */
@media (max-width: 768px) {
    .task-game-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .task-game-modal-header {
        padding: 15px 20px;
    }
    
    .task-game-modal-header h2 {
        font-size: 20px;
    }
    
    .task-game-container {
        height: 500px;
    }
    
    .game-container {
        height: 400px;
}

    .game-controls {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .game-control-btn {
    width: 100%;
        max-width: 200px;
    }
    
    .task-completed-indicator,
    .jump-instructions {
    position: relative;
        left: auto;
        transform: none;
        margin: 10px auto;
        text-align: center;
        display: block;
    }
}

@media (max-width: 480px) {
    .task-game-modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .task-game-modal-header {
        padding: 10px 15px;
    }
    
    .task-game-modal-header h2 {
        font-size: 18px;
    }
    
    .task-game-container {
        height: calc(100vh - 60px);
        border-radius: 0;
    }
    
    .game-container {
        height: 350px;
    }
}

/* Game Loading States */
.game-loading {
    display: flex;
        flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ffffff;
}

.game-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.game-loading p {
        font-size: 16px;
    opacity: 0.8;
    margin: 0;
}

/* Game Fallback Enhancement */
.game-fallback {
    padding: 40px;
        text-align: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    margin: 20px;
}

.game-fallback h4 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.game-fallback p {
        font-size: 16px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.game-fallback .demo-apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.game-fallback .demo-app {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.2s ease;
}

.game-fallback .demo-app:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.game-fallback .demo-app span {
    display: block;
        font-size: 24px;
    margin-bottom: 5px;
}

/* Theme Integration */
.task-game-modal[data-theme="blue"] .task-game-modal-content {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.25);
}

.task-game-modal[data-theme="purple"] .task-game-modal-content {
    background: rgba(147, 51, 234, 0.05);
    border-color: rgba(147, 51, 234, 0.25);
}

.task-game-modal[data-theme="green"] .task-game-modal-content {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.25);
}

.task-game-modal[data-theme="orange"] .task-game-modal-content {
    background: rgba(251, 146, 60, 0.05);
    border-color: rgba(251, 146, 60, 0.25);
}

.task-game-modal[data-theme="red"] .task-game-modal-content {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.25);
}

/* Enhanced Text Readability for Frosty Effects */
.ai-message .message-content,
.user-message .message-content {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.ai-message .message-content h3,
.user-message .message-content h3 {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    font-weight: 600;
}

.ai-message .message-content p,
.user-message .message-content p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.ai-message .message-content em {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Enhanced Form Elements with Frosty Effect (excluding main chat input) */
.form-group input,
.form-group select,
.form-group textarea {
    color: #ffffff;
    background: var(--button-glass);
    border: var(--button-border);
    backdrop-filter: var(--backdrop-filter-light);
    box-shadow: var(--shadow-small);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: var(--shadow-medium);
    border-color: var(--glass-hover);
}

/* Enhanced Button Styling */
.personalization-btn,
.theme-option,
.game-control-btn,
.signup-btn,
.survey-submit-btn {
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.personalization-btn:hover,
.theme-option:hover,
.game-control-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.signup-btn:hover,
.survey-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

/* Enhanced Chat Item Styling */
.chat-item {
    background: var(--button-glass);
    border: var(--button-border);
    backdrop-filter: var(--backdrop-filter-light);
    box-shadow: var(--shadow-small);
    transition: all 0.3s ease;
}

.chat-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateX(4px);
}

.chat-item.active {
    background: var(--button-glass);
    border-color: var(--glass-hover);
    box-shadow: var(--shadow-medium);
}

/* Enhanced Search Bar */
.search-bar {
    background: var(--button-glass);
    border: var(--button-border);
    backdrop-filter: var(--backdrop-filter-medium);
    box-shadow: var(--shadow-small);
}

.search-bar input {
    background: transparent;
    border: none;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Enhanced Sidebar */
.chat-sidebar {
    background: var(--button-glass);
    border: var(--button-border);
    backdrop-filter: var(--backdrop-filter-heavy);
    box-shadow: var(--shadow-large);
}

.ai-chat-interface {
    background: var(--button-glass);
    border: var(--button-border);
    backdrop-filter: var(--backdrop-filter-heavy);
    box-shadow: var(--shadow-large);
}

/* Enhanced Loading Spinner */
.loading-spinner {
    border-color: rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-solid);
    box-shadow: 0 0 20px var(--glass-shadow);
}

/* Enhanced Color Options */
.color-option {
    background: var(--button-glass);
    border: var(--button-border);
    backdrop-filter: var(--backdrop-filter-light);
    box-shadow: var(--shadow-small);
    transition: all 0.3s ease;
}

.color-option:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

/* Specific styling for OPLAY text in AI responses */
.ai-message .message-content h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    filter: contrast(1.2) brightness(1.1) !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    background-color: transparent !important;
}

/* Override any inherited styles that might affect OPLAY text */
.ai-message .message-content h3,
.ai-message .message-content h3 * {
    color: #ffffff !important;
    background: none !important;
    background-color: transparent !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: text !important;
}

/* Mobile Input Container Alignment Fixes */
@media (max-width: 768px) {
    .input-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 20px;
        min-height: 64px;
        box-sizing: border-box;
    }
    
    .input-container input {
        flex: 1;
        padding: 12px 16px;
        margin: 0;
        border-radius: 12px;
        font-size: 16px;
        line-height: 1.2;
        display: flex;
        align-items: center;
        height: 24px;
        box-sizing: border-box;
    }
    
    .send-btn {
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        padding: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        margin: 0;
    }
    
    .send-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .input-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 16px;
        min-height: 56px;
        box-sizing: border-box;
    }
    
    .input-container input {
        flex: 1;
        padding: 10px 14px;
        margin: 0;
        border-radius: 10px;
        font-size: 16px;
        line-height: 1.2;
        height: 20px;
        box-sizing: border-box;
    }
    
    .send-btn {
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        margin: 0;
    }
    
    .send-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 320px) {
    .input-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 10px 14px;
        min-height: 52px;
        box-sizing: border-box;
    }
    
    .input-container input {
        flex: 1;
        padding: 8px 12px;
        margin: 0;
        border-radius: 8px;
        font-size: 16px;
        line-height: 1.2;
        height: 18px;
        box-sizing: border-box;
    }
    
    .send-btn {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        margin: 0;
    }
    
    .send-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ==============================
   GLOBAL SMOOTH SCROLLING & PERFORMANCE OPTIMIZATIONS
   ============================== */

/* Optimize scrollable elements for smooth performance */
[data-scroll="smooth"] {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
    transform: translateZ(0);
}

/* Optimize chat elements specifically for better performance */
.chat-item {
    will-change: transform;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.message-bubble {
    will-change: transform;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Optimize transitions for interactive elements */
.send-btn,
.survey-btn,
.personalization-btn,
.color-option,
.mobile-menu-toggle,
.chat-item {
    transition-property: transform, opacity, background-color, box-shadow, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.2s;
}

/* Optimize hover states for better performance */
.chat-item:hover,
.send-btn:hover,
.survey-btn:hover,
.personalization-btn:hover,
.color-option:hover {
    transform: translateZ(0);
    will-change: transform;
}

/* Ensure smooth scrolling on all elements */
html,
body,
* {
    -webkit-overflow-scrolling: touch;
}

/* Performance optimizations for animations */
@media (prefers-reduced-motion: no-preference) {
    .chat-item {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .message-bubble {
        animation: messageSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Optimize for 60fps performance */
.chat-messages,
.chat-list,
.sidebar-content {
    contain: layout style paint;
    will-change: scroll-position;
}

/* Comprehensive Responsive Styles for Index.html */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
        min-height: 70vh;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 5px !important; /* Force 5px spacing for responsive design */
    }
    
    .hero-title-section {
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .play-text {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-top: 8px;
    }
    
    .logo-o {
        width: 60px;
        height: 60px;
    }
    
    .screen-studio-section-right {
        width: 100%;
        max-width: none;
    }
    
    .screen-studio-demo-container {
        margin: 0;
        transform: none;
        scale: 0.9;
    }
    
    .demo-browser {
        border-radius: 20px;
    }
    
    .browser-header {
        padding: 12px 16px;
    }
    
    .sidebar {
        width: 240px;
    }
    
    .sidebar-content {
        padding: 16px;
    }
    
    .search-bar {
        margin-bottom: 16px;
    }
    
    .search-bar input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .chat-item {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .chat-title {
        font-size: 14px;
    }
    
    .chat-preview {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .chat-time {
        font-size: 11px;
    }
    
    .chat-main {
        padding: 20px 16px;
    }
    
    .input-container {
        padding: 12px 16px;
    }
    
    .input-container input {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .send-btn {
        width: 36px;
        height: 36px;
    }
    
    .floating-nav {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 30px 16px;
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .play-text {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-top: 6px;
    }
    
    .logo-o {
        width: 50px;
        height: 50px;
    }
    
    .screen-studio-demo-container {
        scale: 0.8;
        margin: 20px 0;
    }
    
    .demo-browser {
        border-radius: 16px;
        min-height: 400px;
    }
    
    .browser-header {
        padding: 10px 14px;
    }
    
    .browser-controls {
        gap: 6px;
    }
    
    .control {
        width: 10px;
        height: 10px;
    }
    
    .sidebar {
        width: 200px;
    }
    
    .sidebar-content {
        padding: 12px;
    }
    
    .search-bar input {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .plus-btn {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .chat-item {
        padding: 10px;
        margin-bottom: 6px;
        border-radius: 8px;
    }
    
    .chat-title {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .chat-preview {
        font-size: 11px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .chat-time {
        font-size: 10px;
        margin-top: 4px;
    }
    
    .chat-main {
        padding: 16px 12px;
    }
    
    .input-container {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .input-container input {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 16px;
    }
    
    .send-btn {
        width: 32px;
        height: 32px;
        border-radius: 16px;
    }
    
    .send-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .floating-nav {
        padding: 0 12px;
    }
}

@media (max-width: 360px) {
    .hero-section {
        padding: 24px 12px;
        min-height: 50vh;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .play-text {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        margin-top: 4px;
    }
    
    .logo-o {
        width: 40px;
        height: 40px;
    }
    
    .screen-studio-demo-container {
        scale: 0.7;
        margin: 16px 0;
    }
    
    .demo-browser {
        border-radius: 12px;
        min-height: 350px;
    }
    
    .sidebar {
        width: 180px;
    }
    
    .sidebar-content {
        padding: 10px;
    }
    
    .search-bar input {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .chat-item {
        padding: 8px;
        margin-bottom: 4px;
    }
    
    .chat-title {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .chat-preview {
        font-size: 10px;
        line-height: 1.2;
        -webkit-line-clamp: 2;
    }
    
    .chat-time {
        font-size: 9px;
        margin-top: 3px;
    }
    
    .chat-main {
        padding: 12px 8px;
    }
    
    .input-container {
        padding: 8px 10px;
        gap: 6px;
    }
    
    .input-container input {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 14px;
    }
    
    .send-btn {
        width: 28px;
        height: 28px;
        border-radius: 14px;
    }
    
    .send-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .floating-nav {
        padding: 0 8px;
    }
}

/* Large tablet specific styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section {
        padding: 60px 40px;
    }
    
    .hero-content {
        gap: 5px !important; /* Force 5px spacing for tablets */
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .screen-studio-demo-container {
        scale: 0.95;
    }
    
    .sidebar {
        width: 280px;
    }
    
    .floating-nav {
        padding: 0 32px;
    }
    
    .demo-browser {
        height: clamp(650px, 70vh, 750px);
    }
    
    .browser-content {
        height: calc(clamp(650px, 70vh, 750px) - 42px);
        min-height: calc(clamp(650px, 70vh, 750px) - 42px);
    }
    
    .ai-chat-interface {
        height: 100%;
        min-height: 100%;
    }
    
    .chat-messages {
        padding: 25px 25px 100px 25px;
        max-height: calc(100% - 100px);
        min-height: calc(100% - 100px);
    }
    
    .input-container {
        bottom: 16px;
        left: 16px;
        right: 16px;
    }
}

/* Desktop and large screens (1025px and above) */
@media (min-width: 1025px) {
    .demo-browser {
        height: clamp(650px, 70vh, 800px);
    }
    
    .browser-content {
        height: calc(clamp(650px, 70vh, 800px) - 42px);
        min-height: calc(clamp(650px, 70vh, 800px) - 42px);
    }
    
    .ai-chat-interface {
        height: 100%;
        min-height: 100%;
    }
    
    .chat-messages {
        padding: 30px 30px 100px 30px;
        max-height: calc(100% - 100px);
        min-height: calc(100% - 100px);
    }
    
    .input-container {
        bottom: 16px;
        left: 16px;
        right: 16px;
        max-width: calc(100% - 32px);
    }
}