/* ===== QWEN-IMAGE PREMIUM STYLES ===== */
/* Optimized for Core Web Vitals and SEO Performance */

/* Critical CSS for above-the-fold content */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Prevent layout shift */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Optimize font loading */
@font-face {
    font-family: 'Inter';
    font-display: swap;
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
}

/* Reduce CLS (Cumulative Layout Shift) */
.image-card {
    aspect-ratio: 16/10;
    contain: layout style paint;
}

/* GPU acceleration for animations */
.hover-lift, .fade-in, .slide-in-left, .slide-in-right {
    will-change: transform, opacity;
    transform: translateZ(0);
}

:root {
    --primary-blue: #007AFF;
    --primary-purple: #764ba2;
    --primary-pink: #f093fb;
    --dark-gray: #1D1D1F;
    --light-gray: #F5F5F7;
    --text-color: #515154;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-light: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-medium: 0 20px 40px rgba(0,0,0,0.15);
    --shadow-heavy: 0 30px 60px rgba(0,0,0,0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background: var(--white);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== HERO SECTION WITH FULLSCREEN IMAGE ===== */
.hero-fullscreen {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.8) saturate(1.4) contrast(1.1);
    transition: all 0.8s ease;
    transform: scale(1.05);
    animation: backgroundShift 20s infinite alternate;
}

@keyframes backgroundShift {
    0% { transform: scale(1.05) translateX(0); filter: brightness(0.8) saturate(1.4) hue-rotate(0deg); }
    50% { transform: scale(1.08) translateX(-20px); filter: brightness(0.9) saturate(1.6) hue-rotate(5deg); }
    100% { transform: scale(1.05) translateX(20px); filter: brightness(0.8) saturate(1.4) hue-rotate(-5deg); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.3) 0%,
        rgba(118, 75, 162, 0.4) 50%,
        rgba(240, 147, 251, 0.3) 100%
    );
    z-index: 1;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(15, 23, 42, 0.85) 25%,
        rgba(30, 41, 59, 0.75) 50%,
        rgba(51, 65, 85, 0.8) 75%,
        rgba(0, 0, 0, 0.85) 100%
    );
    background-size: 400% 400%;
    animation: darkGradientShift 20s ease infinite;
    z-index: 1;
    backdrop-filter: blur(2px);
}

@keyframes darkGradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 75%; }
    50% { background-position: 0% 100%; }
    75% { background-position: 100% 25%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content-fullscreen {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 1200px;
    padding: 0 2rem;
    width: 100%;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.badge-text {
    color: #ffd700;
}

.badge-version {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Hero Title */
.hero-title-large {
    margin-bottom: 2rem;
}

.title-main {
    display: block;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    line-height: 0.9;
    background: linear-gradient(45deg, #ffffff, #ffd700, #ff69b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 8px 16px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.title-sub {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Hero Description */
.hero-description-large {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-description-large strong {
    color: #ffd700;
    font-weight: 700;
}

/* Clean Hero Design - Full Screen Image with White Text */
.hero-content-clean {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title-clean {
    margin-bottom: 2rem;
}

.title-main-clean {
    display: block;
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(
        45deg,
        #00f5ff 0%,
        #00d4ff 20%,
        #0099ff 40%,
        #0066ff 60%,
        #00ccff 80%,
        #00f5ff 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: techTextShimmer 3s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(0, 245, 255, 0.6),
                 0 0 80px rgba(0, 200, 255, 0.4),
                 0 0 120px rgba(0, 150, 255, 0.3),
                 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    letter-spacing: -2px;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
}

@keyframes techTextShimmer {
    0%, 100% { 
        background-position: 0% 50%; 
        filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5)) brightness(1);
    }
    50% { 
        background-position: 100% 50%; 
        filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.8)) brightness(1.2);
    }
}

.title-main-clean::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    animation: shine 2s infinite;
}

@keyframes textShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.title-sub-clean {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-description-clean {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.6;
    margin-bottom: 3rem;
    color: white;
    max-width: 800px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Clean Buttons */
.hero-buttons-clean {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn-clean {
    padding: 1.2rem 3rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-primary-clean {
    background: linear-gradient(45deg, #0f172a, #1e293b, #334155);
    background-size: 300% 300%;
    animation: techGradientMove 3s ease infinite;
    color: #00f5ff;
    border: 2px solid #00f5ff;
    box-shadow: 0 8px 32px rgba(0, 245, 255, 0.3),
                0 4px 16px rgba(0, 200, 255, 0.2),
                inset 0 1px 0 rgba(0, 245, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-primary-clean::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary-clean:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 245, 255, 0.5),
                0 8px 20px rgba(0, 200, 255, 0.3),
                inset 0 1px 0 rgba(0, 245, 255, 0.2);
    border-color: #00ccff;
    color: #ffffff;
    background: linear-gradient(45deg, #1e293b, #334155, #475569);
}

.btn-primary-clean:hover::before {
    left: 100%;
}

.btn-secondary-clean {
    background: rgba(0, 0, 0, 0.4);
    color: #64748b;
    border: 2px solid #475569;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-secondary-clean::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.btn-secondary-clean:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: #00f5ff;
    color: #00f5ff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 245, 255, 0.2);
}

.btn-secondary-clean:hover::before {
    transform: translateX(100%);
}

@keyframes techGradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Floating Particles */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(0,245,255,0.9) 0%, rgba(0,200,255,0.6) 50%, transparent 100%);
    border-radius: 50%;
    animation: techFloat 8s infinite linear;
    box-shadow: 0 0 10px rgba(0,245,255,0.5), 0 0 20px rgba(0,200,255,0.3);
}

@keyframes techFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
        box-shadow: 0 0 10px rgba(0,245,255,0.5);
    }
    10% {
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 20px rgba(0,245,255,0.8), 0 0 40px rgba(0,200,255,0.5);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
        box-shadow: 0 0 5px rgba(0,245,255,0.3);
    }
}

.particle:nth-child(1) {
    left: 10%;
    animation: techFloat 8s infinite linear;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 20%;
    animation: techFloat 10s infinite linear;
    animation-delay: -2s;
    width: 6px;
    height: 6px;
}

.particle:nth-child(3) {
    left: 30%;
    animation: techFloat 12s infinite linear;
    animation-delay: -4s;
}

.particle:nth-child(4) {
    left: 40%;
    animation: techFloat 9s infinite linear;
    animation-delay: -6s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(5) {
    left: 50%;
    animation: techFloat 11s infinite linear;
    animation-delay: -8s;
    width: 5px;
    height: 5px;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: -10s;
    animation-duration: 7s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: -12s;
    animation-duration: 13s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: -14s;
    animation-duration: 9s;
    width: 7px;
    height: 7px;
}

.particle:nth-child(9) {
    left: 90%;
    animation-delay: -16s;
    animation-duration: 10s;
}

.particle:nth-child(10) {
    left: 95%;
    animation-delay: -18s;
    animation-duration: 8s;
    width: 3px;
    height: 3px;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Simple Scroll Indicator */
.scroll-indicator-clean {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 4;
}

.scroll-arrow-clean {
    font-size: 2rem;
    color: white;
    opacity: 0.8;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Large Buttons */
.hero-buttons-large {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn-primary-large, .btn-secondary-large {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
}

.btn-primary-large {
    background: linear-gradient(45deg, #007AFF, #0056b3);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
}

.btn-primary-large:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 122, 255, 0.6);
}

.btn-secondary-large {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
}

.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.btn-primary-large:hover .btn-arrow {
    transform: translateX(5px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: #ffd700;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    color: white;
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card-2 {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.floating-card-3 {
    bottom: 25%;
    left: 15%;
    animation-delay: 4s;
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Legacy Hero Styles (keeping for compatibility) */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    max-width: 1000px;
    padding: 0 2rem;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary-blue);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== SECTIONS ===== */
.section {
    padding: 6rem 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== GALLERY SECTION ===== */
.gallery {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.image-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-light);
}

.image-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.image-card:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.image-card:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.image-overlay p {
    opacity: 0.9;
    font-size: 1rem;
}

/* ===== FEATURES SECTION ===== */
.features {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 2rem;
    border-radius: 25px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* ===== PERFORMANCE SECTION ===== */
.performance {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.performance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.performance-stats {
    display: grid;
    gap: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.stat-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.performance-visual {
    text-align: center;
}

.performance-chart {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chart-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.chart-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.metric {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== CTA SECTION ===== */
.cta {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-gray);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #999;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .performance-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== PARTICLE BACKGROUND ===== */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ===== DEMO SECTION ===== */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.demo-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 2rem;
    border-radius: 25px;
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.demo-card:hover::before {
    transform: scaleX(1);
}

.demo-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.demo-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    position: relative;
}

.demo-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.demo-content {
    color: var(--text-color);
}

.demo-prompt {
    font-style: italic;
    background: rgba(102, 126, 234, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-blue);
    font-size: 1.1rem;
    line-height: 1.6;
}

.demo-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

/* ===== LOADING ANIMATION ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===== ADVANCED EFFECTS ===== */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    filter: blur(20px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::after {
    opacity: 0.7;
}

/* ===== GLASS MORPHISM ===== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== LEGAL & INFO PAGES STYLES ===== */
.legal-page, .about-page, .help-page, .blog-page {
    min-height: 100vh;
    padding-top: 80px;
}

.legal-header, .about-hero, .help-hero, .blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.legal-header h1, .about-hero h1, .help-hero h1, .blog-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.legal-subtitle, .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.legal-intro {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.legal-content, .about-mission, .help-section, .blog-posts {
    padding: 3rem 0;
}

.legal-section {
    margin-bottom: 3rem;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.legal-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.legal-section h3 {
    color: #34495e;
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
}

.legal-section ul, .legal-section ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* Navigation for secondary pages */
.nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 900;
    color: #007AFF;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #007AFF;
}

/* Footer for secondary pages */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #ecf0f1;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Lazy loading images */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
    background: #f0f0f0;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Reduce layout shift */
.gallery-image, .demo-image {
    aspect-ratio: 4/3;
    object-fit: cover;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Optimize animations for performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* GPU acceleration for smooth animations */
.hero-bg-image,
.floating-card,
.btn-clean,
.gallery-image {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimize critical rendering path */
.above-fold {
    contain: layout style paint;
}

/* Resource hints for faster loading */
.preload-hint::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    background-image: url('./merge3.jpg');
    background-position: -9999px -9999px;
}

/* Loading states */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* Optimize font loading */
.font-loading {
    font-display: swap;
    font-synthesis: none;
}

/* Critical CSS optimization */
.critical-content {
    contain: layout;
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* ===== ENHANCED MOBILE STYLES ===== */
@media (max-width: 768px) {
    /* Clean Hero Fullscreen Mobile */
    .hero-fullscreen {
        height: 100vh;
        padding: 0 1rem;
    }
    
    .hero-content-clean {
        padding: 0 1.5rem;
    }
    
    .title-main-clean {
        font-size: clamp(3rem, 12vw, 4.5rem);
    }
    
    .title-sub-clean {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }
    
    .hero-description-clean {
        font-size: clamp(1rem, 4vw, 1.3rem);
        margin-bottom: 2.5rem;
    }
    
    .hero-buttons-clean {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 3rem;
        width: 100%;
    }
    
    .btn-clean {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .scroll-indicator-clean {
        bottom: 2rem;
    }
    
    /* Other mobile styles */
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .demo-card {
        padding: 2rem 1.5rem;
    }
    
    .demo-prompt {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* ===== TABLET STYLES ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-stats {
        gap: 2rem;
    }
    
    .floating-card-1 {
        left: 5%;
    }
    
    .floating-card-2 {
        right: 5%;
    }
    
    .floating-card-3 {
        left: 5%;
    }
}

/* ===== LARGE SCREEN OPTIMIZATIONS ===== */
@media (min-width: 1400px) {
    .hero-content-fullscreen {
        max-width: 1400px;
    }
    
    .title-main {
        font-size: 8rem;
    }
    
    .title-sub {
        font-size: 3rem;
    }
    
    .hero-description-large {
        font-size: 2rem;
    }
}