/* SYNTEXA Premium Light Theme */
:root {
    --primary-500: #3b82f6;
    --primary-400: #60a5fa;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --purple-500: #8b5cf6;
    --green-500: #10b981;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary-500), var(--cyan-500));
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); font-size: 1rem; line-height: 1.6; color: var(--gray-700); background: var(--gray-50); overflow-x: hidden; }
h1, h2, h3, h4 { font-weight: 700; color: var(--gray-900); line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
a { color: var(--primary-500); text-decoration: none; transition: 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Background Effects */
.bg-gradient { position: fixed; inset: 0; background: radial-gradient(ellipse 80% 50% at 20% -20%, rgba(59,130,246,0.15), transparent 50%), radial-gradient(ellipse 60% 40% at 80% 0%, rgba(6,182,212,0.1), transparent 50%), linear-gradient(180deg, var(--white), var(--gray-50)); z-index: -3; }
.bg-grid { position: fixed; inset: 0; background-image: linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px); background-size: 60px 60px; z-index: -2; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 70%); }
.bg-glow { position: fixed; width: 600px; height: 600px; border-radius: 50%; filter: blur(120px); opacity: 0.4; z-index: -1; animation: float 20s ease-in-out infinite; }
.bg-glow-1 { top: -200px; left: 10%; background: var(--primary-500); }
.bg-glow-2 { top: 40%; right: -200px; background: var(--cyan-500); animation-delay: -10s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -30px) scale(1.05); } }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1rem 0; background: rgba(255,255,255,0.8); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,0.05); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.25rem; color: var(--gray-900); }
.logo-icon { width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; background: var(--gradient); color: var(--white); border-radius: 0.75rem; font-weight: 700; }
.nav-menu { display: flex; align-items: center; gap: 2.5rem; }
.nav-menu a { font-weight: 500; color: var(--gray-600); }
.nav-menu a:hover, .nav-menu a.active { color: var(--gray-900); }
.nav-cta { background: var(--gray-900) !important; color: var(--white) !important; padding: 0.75rem 1.5rem !important; border-radius: 0.75rem; }
.nav-cta:hover { background: var(--primary-500) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: 0.3s; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 1.75rem; font-weight: 600; font-size: 1rem; border-radius: 0.75rem; border: none; cursor: pointer; transition: all 0.3s; }
.btn-icon { width: 18px; height: 18px; transition: transform 0.3s; }
.btn:hover .btn-icon { transform: translateX(4px); }
.btn-primary { background: var(--gradient); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(59,130,246,0.4); color: var(--white); }
.btn-glow { box-shadow: 0 4px 20px rgba(59,130,246,0.3); }
.btn-secondary { background: var(--white); color: var(--gray-700); border: 1px solid var(--gray-200); }
.btn-secondary:hover { border-color: var(--primary-500); color: var(--primary-500); }
.btn-ghost { background: transparent; color: var(--gray-700); }
.btn-ghost:hover { color: var(--primary-500); }
.btn-ghost-light { background: transparent; color: rgba(255,255,255,0.8); }
.btn-ghost-light:hover { color: var(--white); }
.btn-white { background: var(--white); color: var(--gray-900); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); color: var(--gray-900); }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 8rem 1.5rem 4rem; max-width: 1200px; margin: 0 auto; gap: 4rem; }
.hero-content { flex: 1; max-width: 600px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); border-radius: 100px; font-size: 0.875rem; font-weight: 500; color: var(--primary-500); margin-bottom: 1.5rem; }
.badge-dot { width: 8px; height: 8px; background: var(--primary-500); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.hero-title { margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.25rem; color: var(--gray-600); margin-bottom: 2rem; max-width: 500px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.stat-item { text-align: left; }
.stat-value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.stat-label { font-size: 0.875rem; color: var(--gray-500); }
.stat-divider { width: 1px; background: var(--gray-200); }

/* Hero Visual */
.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; }
.visual-wrapper { position: relative; width: 100%; max-width: 500px; height: 500px; }

/* Code Window */
.code-window { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 380px; background: var(--gray-900); border-radius: 1rem; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.3); }
.code-header { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; background: var(--gray-800); border-bottom: 1px solid rgba(255,255,255,0.05); }
.code-dots { display: flex; gap: 0.5rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.code-title { margin-left: auto; font-size: 0.75rem; color: var(--gray-500); font-family: var(--font-mono); }
.code-body { padding: 1.5rem; font-family: var(--font-mono); font-size: 0.9rem; line-height: 1.8; }
.code-body .line { display: block; }
.code-body .ln { display: inline-block; width: 1.5rem; color: var(--gray-600); margin-right: 1rem; user-select: none; }
.code-keyword { color: #c678dd; }
.code-var { color: #e06c75; }
.code-prop { color: #61afef; }
.code-string { color: #98c379; }
.code-func { color: #e5c07b; }
.code-success { color: #28c840; }

/* Floating Cards */
.floating-card { position: absolute; display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1.25rem; background: var(--white); border-radius: 1rem; box-shadow: 0 10px 40px rgba(0,0,0,0.1); font-size: 0.9rem; font-weight: 500; color: var(--gray-700); animation: floatCard 6s ease-in-out infinite; z-index: 10; }
.floating-card .card-icon { width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; border-radius: 0.75rem; }
.floating-card .card-icon svg { width: 1.25rem; height: 1.25rem; }
.floating-card .card-icon.blue { background: rgba(59,130,246,0.1); color: var(--primary-500); }
.floating-card .card-icon.cyan { background: rgba(6,182,212,0.1); color: var(--cyan-500); }
.floating-card .card-icon.purple { background: rgba(139,92,246,0.1); color: var(--purple-500); }
.card-1 { top: 5%; left: 0; animation-delay: 0s; }
.card-2 { top: 25%; right: -10%; animation-delay: -2s; }
.card-3 { bottom: 15%; left: -5%; animation-delay: -4s; }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Deco Rings */
.deco-ring { position: absolute; border: 1px solid rgba(59,130,246,0.1); border-radius: 50%; }
.ring-1 { width: 400px; height: 400px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ring-2 { width: 550px; height: 550px; top: 50%; left: 50%; transform: translate(-50%, -50%); border-style: dashed; animation: rotate 60s linear infinite; }
@keyframes rotate { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Animations */
.animate-in { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Tech Section */
.tech-section { padding: 3rem 0; border-bottom: 1px solid var(--gray-100); }
.tech-label { text-align: center; font-size: 0.875rem; color: var(--gray-500); margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.tech-logos { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.tech-item { font-size: 0.9rem; font-weight: 500; color: var(--gray-400); transition: 0.3s; }
.tech-item:hover { color: var(--gray-700); }

/* Section Styles */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 4rem; }
.section-badge { display: inline-block; padding: 0.375rem 0.875rem; background: rgba(59,130,246,0.1); color: var(--primary-500); font-size: 0.8rem; font-weight: 600; border-radius: 100px; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.section-title { margin-bottom: 1rem; }
.section-subtitle { font-size: 1.125rem; color: var(--gray-600); }
.section-cta { text-align: center; margin-top: 3rem; }

/* Services Section */
.services-section { padding: 7rem 0; background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card { position: relative; padding: 2rem; background: var(--white); border: 1px solid var(--gray-100); border-radius: 1rem; transition: all 0.3s; overflow: hidden; }
.service-card:hover { border-color: transparent; transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.service-glow { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient); opacity: 0; transition: 0.3s; }
.service-glow.cyan { background: linear-gradient(90deg, var(--cyan-500), var(--primary-500)); }
.service-glow.purple { background: linear-gradient(90deg, var(--purple-500), var(--primary-500)); }
.service-glow.green { background: linear-gradient(90deg, var(--green-500), var(--cyan-500)); }
.service-card:hover .service-glow { opacity: 1; }
.service-icon { width: 3.5rem; height: 3.5rem; display: flex; align-items: center; justify-content: center; background: rgba(59,130,246,0.1); color: var(--primary-500); border-radius: 1rem; margin-bottom: 1.5rem; }
.service-icon svg { width: 1.5rem; height: 1.5rem; }
.service-icon.cyan { background: rgba(6,182,212,0.1); color: var(--cyan-500); }
.service-icon.purple { background: rgba(139,92,246,0.1); color: var(--purple-500); }
.service-icon.green { background: rgba(16,185,129,0.1); color: var(--green-500); }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 1.5rem; }
.service-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: 0.9rem; color: var(--primary-500); }
.service-link svg { width: 16px; height: 16px; transition: transform 0.3s; }
.service-link:hover svg { transform: translateX(4px); }

/* Why Section */
.why-section { padding: 7rem 0; background: linear-gradient(180deg, var(--gray-50), var(--white)); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.why-content .section-badge { margin-bottom: 0.75rem; }
.why-content .section-title { margin-bottom: 2rem; text-align: left; }
.why-list { display: flex; flex-direction: column; gap: 1.5rem; }
.why-item { display: flex; gap: 1rem; }
.why-icon { flex-shrink: 0; width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; background: rgba(16,185,129,0.1); color: var(--green-500); border-radius: 0.75rem; }
.why-icon svg { width: 1.25rem; height: 1.25rem; }
.why-text h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.why-text p { color: var(--gray-600); font-size: 0.95rem; margin: 0; }

/* Glass Card */
.why-visual { display: flex; justify-content: center; }
.glass-card { background: rgba(255,255,255,0.8); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.5); border-radius: 1.5rem; padding: 2rem; box-shadow: 0 20px 40px rgba(0,0,0,0.1); min-width: 320px; }
.glass-header { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--gray-700); margin-bottom: 1.5rem; }
.pulse-dot { width: 10px; height: 10px; background: var(--green-500); border-radius: 50%; animation: pulse 2s infinite; }
.glass-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.glass-stat { text-align: center; }
.glass-value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.glass-label { font-size: 0.75rem; color: var(--gray-500); }
.glass-progress span { font-size: 0.875rem; color: var(--gray-600); margin-bottom: 0.5rem; display: block; }
.progress-bar { height: 8px; background: var(--gray-100); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--gradient); border-radius: 100px; animation: fillProgress 2s ease forwards 0.5s; }
@keyframes fillProgress { to { width: 92%; } }

/* Portfolio Section */
.portfolio-section { padding: 7rem 0; background: var(--white); }
.portfolio-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; background: linear-gradient(135deg, var(--gray-900), #0a0f1a); border-radius: 2rem; padding: 4rem; }
.portfolio-content { color: var(--white); }
.portfolio-type { display: inline-block; font-size: 0.8rem; font-weight: 500; color: var(--cyan-400); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.portfolio-content h3 { color: var(--white); font-size: 2rem; margin-bottom: 1rem; }
.portfolio-content p { color: var(--gray-300); margin-bottom: 1.5rem; }
.portfolio-features { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.feature-tag { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--gray-300); }
.feature-tag svg { width: 16px; height: 16px; color: var(--green-500); }
.portfolio-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.portfolio-tech span { padding: 0.375rem 0.75rem; background: rgba(255,255,255,0.1); border-radius: 0.5rem; font-size: 0.8rem; color: var(--gray-300); }

/* Phone Mockups */
.portfolio-visual { position: relative; height: 400px; display: flex; justify-content: center; align-items: center; }
.phone-mockup { position: absolute; width: 200px; height: 400px; background: var(--gray-800); border-radius: 2rem; padding: 0.5rem; box-shadow: 0 25px 50px rgba(0,0,0,0.4); }
.phone-mockup.main { z-index: 2; transform: translateX(-20px); }
.phone-mockup.secondary { z-index: 1; transform: translateX(60px) scale(0.9); opacity: 0.8; }
.phone-notch { width: 80px; height: 24px; background: var(--gray-800); border-radius: 0 0 1rem 1rem; margin: 0 auto; position: relative; z-index: 3; }
.phone-screen { height: calc(100% - 12px); background: var(--gray-700); border-radius: 1.5rem; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.phone-placeholder { text-align: center; color: var(--gray-500); }
.phone-placeholder svg { width: 48px; height: 48px; margin-bottom: 0.5rem; opacity: 0.5; }
.phone-placeholder span { font-size: 0.875rem; }

/* CTA Section */
.cta-section { padding: 7rem 0; }
.cta-card { position: relative; background: var(--gradient); border-radius: 2rem; padding: 4rem; text-align: center; overflow: hidden; }
.cta-glow { position: absolute; top: 50%; left: 50%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%); transform: translate(-50%, -50%); pointer-events: none; z-index: 0; }
.cta-card h2 { color: var(--white); margin-bottom: 1rem; position: relative; z-index: 1; }
.cta-card p { color: rgba(255,255,255,0.8); font-size: 1.125rem; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.cta-card .btn { position: relative; z-index: 1; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* Footer */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { margin-top: 1rem; font-size: 0.9rem; line-height: 1.7; }
.footer-brand .nav-logo { margin-bottom: 0.5rem; }
.footer-brand .logo-text { color: var(--white); }
.footer-links h4, .footer-contact h4 { color: var(--white); margin-bottom: 1.25rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: var(--gray-400); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--gray-800); font-size: 0.875rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--gray-400); }
.footer-legal a:hover { color: var(--white); }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--gray-900); color: var(--white); padding: 1.25rem; z-index: 9999; transform: translateY(100%); transition: 0.3s; }
.cookie-banner.visible { transform: translateY(0); }
.cookie-content { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cookie-text strong { display: block; margin-bottom: 0.25rem; }
.cookie-text p { font-size: 0.875rem; color: var(--gray-300); margin: 0; }
.cookie-buttons { display: flex; gap: 0.75rem; }

/* Page Header */
.page-header { padding: 10rem 0 4rem; background: linear-gradient(135deg, var(--gray-900), #0a0f1a); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(59,130,246,0.2), transparent 50%); }
.page-header h1 { color: var(--white); margin-bottom: 1rem; position: relative; }
.page-header p { color: var(--gray-300); font-size: 1.25rem; max-width: 600px; margin: 0 auto; position: relative; }

/* Responsive */
@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; padding-top: 7rem; }
    .hero-content { max-width: 100%; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { margin-top: 2rem; }
    .visual-wrapper { max-width: 400px; height: 400px; }
    .code-window { width: 320px; }
    .floating-card { display: none; }
    .why-grid { grid-template-columns: 1fr; gap: 3rem; }
    .why-content .section-title { text-align: center; }
    .why-content .section-badge { display: block; text-align: center; }
    .portfolio-showcase { grid-template-columns: 1fr; text-align: center; }
    .portfolio-features { justify-content: center; }
    .portfolio-visual { height: 350px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--white); flex-direction: column; padding: 5rem 2rem; gap: 1.5rem; box-shadow: -10px 0 30px rgba(0,0,0,0.1); transition: right 0.3s; }
    .nav-menu.active { right: 0; }
    .nav-toggle { display: flex; z-index: 1001; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .portfolio-showcase { padding: 2.5rem; }
    .cta-card { padding: 3rem 2rem; }
    .cookie-content { flex-direction: column; text-align: center; }
}