/* ============================================
   KA Software - Laravel Theme
   Color Scheme: Orange & Red - Energetic, Bold
   ============================================ */

/* CSS Variables */
:root {
    /* Primary Colors - Orange */
    --primary-50: #fff7ed;
    --primary-100: #ffedd5;
    --primary-200: #fed7aa;
    --primary-300: #fdba74;
    --primary-400: #fb923c;
    --primary-500: #f97316;
    --primary-600: #ea580c;
    --primary-700: #c2410c;
    --primary-800: #9a3412;
    --primary-900: #7c2d12;
    
    /* Secondary Colors - Red */
    --secondary-400: #f87171;
    --secondary-500: #ef4444;
    --secondary-600: #dc2626;
    --secondary-700: #b91c1c;
    
    /* Accent Colors */
    --accent-yellow: #fbbf24;
    --accent-amber: #f59e0b;
    --accent-rose: #fb7185;
    
    /* Gray Scale - Warm Dark Theme */
    --gray-50: #fafaf9;
    --gray-100: #f5f5f4;
    --gray-200: #e7e5e4;
    --gray-300: #d6d3d1;
    --gray-400: #a8a29e;
    --gray-500: #78716c;
    --gray-600: #57534e;
    --gray-700: #3d3d5c;
    --gray-800: #2a2a45;
    --gray-900: #1e1e3a;
    --gray-950: #1a1a35;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #f97316 0%, #ef4444 50%, #dc2626 100%);
    --gradient-secondary: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    --gradient-warm: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #ef4444 100%);
    --gradient-dark: linear-gradient(135deg, #252547 0%, #1e1e3a 50%, #16162a 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 40px rgba(249, 115, 22, 0.3);
    --shadow-glow-red: 0 0 40px rgba(239, 68, 68, 0.3);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Poppins', var(--font-sans);
}

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-300);
    background: var(--gray-950);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; color: white; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Styles */
.section-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-400);
    margin-bottom: 1rem;
}
.section-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.section-description { font-size: 1.125rem; color: var(--gray-400); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5); 
}
.btn-outline { 
    background: transparent; 
    color: white; 
    border: 2px solid rgba(255, 255, 255, 0.2); 
}
.btn-outline:hover { 
    background: rgba(255, 255, 255, 0.1); 
    border-color: rgba(255, 255, 255, 0.3); 
}
.btn-white { 
    background: white; 
    color: var(--primary-600); 
}
.btn-white:hover { 
    background: var(--gray-100); 
    transform: translateY(-2px); 
}
.btn-outline-white { 
    background: transparent; 
    color: white; 
    border: 2px solid rgba(255, 255, 255, 0.3); 
}
.btn-outline-white:hover { 
    background: rgba(255, 255, 255, 0.1); 
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(22, 22, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}
#header.scrolled { 
    background: rgba(22, 22, 42, 0.95); 
    box-shadow: var(--shadow-lg); 
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-icon svg { width: 40px; height: 40px; }
.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-link { 
    font-size: 0.9375rem; 
    font-weight: 500; 
    color: var(--gray-300); 
    position: relative; 
    padding: 0.5rem 0; 
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: white; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { padding: 0.625rem 1.25rem; }
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-menu-btn span { 
    display: block; 
    width: 24px; 
    height: 2px; 
    background: white; 
    border-radius: 2px; 
    transition: var(--transition); 
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-gradient { position: absolute; inset: 0; background: var(--gradient-dark); }
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f97316' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-glow { 
    position: absolute; 
    border-radius: 50%; 
    filter: blur(100px); 
    opacity: 0.4; 
}
.hero-glow-1 { 
    top: 10%; 
    right: 10%; 
    width: 500px; 
    height: 500px; 
    background: var(--primary-500); 
}
.hero-glow-2 { 
    bottom: 10%; 
    left: 10%; 
    width: 400px; 
    height: 400px; 
    background: var(--secondary-500); 
}
.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--primary-300);
    margin-bottom: 1.5rem;
}
.badge-icon { font-size: 1rem; }
.hero-title { 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
}
.hero-description { 
    font-size: 1.125rem; 
    color: var(--gray-400); 
    margin-bottom: 2rem; 
    max-width: 540px; 
}
.hero-buttons { display: flex; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: flex; align-items: center; gap: 2rem; }
.hero-stat { text-align: center; }
.stat-number { display: block; font-size: 1.5rem; font-weight: 800; color: white; }
.stat-label { font-size: 0.875rem; color: var(--gray-500); }
.hero-stat-divider { width: 1px; height: 40px; background: var(--gray-700); }

/* Hero Visual */
.hero-visual { position: relative; }
.hero-visual-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    backdrop-filter: blur(20px);
}
.visual-code { 
    background: var(--gray-900); 
    border-radius: var(--radius-xl); 
    overflow: hidden; 
}
.code-header { 
    display: flex; 
    gap: 0.5rem; 
    padding: 1rem 1.25rem; 
    background: rgba(30, 30, 58, 0.5); 
}
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #fbbf24; }
.code-dot.green { background: #22c55e; }
.code-body { padding: 1.5rem; }
.code-body code {
    display: block;
    white-space: pre;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
}
.code-keyword { color: #f97316; }
.code-var { color: #fb923c; }
.code-func { color: #fbbf24; }
.code-string { color: #4ade80; }
.code-comment { color: #78716c; font-style: italic; }

.floating-cards { position: absolute; inset: 0; pointer-events: none; }
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}
.floating-card .card-icon { font-size: 1.25rem; }
.floating-card .card-text { font-size: 0.875rem; font-weight: 600; color: var(--gray-800); }
.card-1 { top: -20px; right: 20px; animation-delay: 0s; }
.card-2 { bottom: 60px; left: -30px; animation-delay: 2s; }
.card-3 { bottom: -10px; right: 60px; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); }
.scroll-indicator { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 0.5rem; 
    color: var(--gray-500); 
    font-size: 0.875rem; 
}
.scroll-icon { animation: bounce 2s infinite; }
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Services */
.services { padding: 8rem 0; background: var(--gray-950); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card {
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: var(--shadow-glow);
}
.service-card.featured {
    border-color: rgba(249, 115, 22, 0.3);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
}
.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}
.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    color: white;
}
.service-title { font-size: 1.25rem; margin-bottom: 0.75rem; }
.service-description { color: var(--gray-400); margin-bottom: 1.25rem; font-size: 0.9375rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--primary-300);
}
.service-link { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    color: var(--primary-400); 
    font-weight: 600; 
    font-size: 0.875rem; 
}
.service-link:hover { color: var(--primary-300); gap: 0.75rem; }

/* AI Features */
.ai-features {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(180deg, #1a1a35 0%, #252550 100%);
    overflow: hidden;
}
.ai-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ai-circle { 
    position: absolute; 
    border-radius: 50%; 
    border: 1px solid rgba(249, 115, 22, 0.1); 
}
.ai-circle-1 { width: 600px; height: 600px; top: -200px; right: -200px; }
.ai-circle-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; }
.ai-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(249, 115, 22, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(249, 115, 22, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}
.ai-features .section-container { position: relative; z-index: 1; }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ai-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition);
}
.ai-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.05);
}
.ai-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: rgba(249, 115, 22, 0.1);
    border-radius: var(--radius-xl);
}
.icon-emoji { font-size: 2.5rem; }
.ai-title { font-size: 1.125rem; margin-bottom: 0.75rem; }
.ai-description { color: var(--gray-400); font-size: 0.9375rem; }

/* Stats */
.stats { 
    padding: 5rem 0; 
    background: var(--gradient-primary); 
    position: relative; 
}
.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stats-container { 
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 0 1.5rem; 
    position: relative; 
    z-index: 1; 
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-item { text-align: center; }
.stat-item .stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    color: white;
}
.stat-item .stat-number { font-size: 3rem; font-weight: 800; color: white; display: inline; }
.stat-item .stat-suffix { font-size: 2rem; font-weight: 700; color: rgba(255, 255, 255, 0.8); }
.stat-item .stat-label { display: block; margin-top: 0.5rem; font-size: 1rem; color: rgba(255, 255, 255, 0.8); }

/* Portfolio */
.portfolio { padding: 8rem 0; background: var(--gray-950); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.portfolio-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
}
.portfolio-card:hover { 
    transform: translateY(-8px); 
    border-color: rgba(249, 115, 22, 0.3); 
    box-shadow: var(--shadow-glow); 
}
.portfolio-image { 
    position: relative; 
    height: 200px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
}
.portfolio-icon { font-size: 4rem; opacity: 0.8; }
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 53, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--gray-900);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    transform: translateY(20px);
    transition: var(--transition);
}
.portfolio-card:hover .portfolio-btn { transform: translateY(0); }
.portfolio-content { padding: 1.5rem; }
.portfolio-title { font-size: 1.125rem; margin-bottom: 0.5rem; }
.portfolio-description { color: var(--gray-400); font-size: 0.875rem; margin-bottom: 1rem; }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Contact */
.contact { 
    padding: 8rem 0; 
    background: linear-gradient(180deg, #1a1a35 0%, #252550 100%); 
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info .section-badge { margin-bottom: 1rem; }
.contact-info .section-title { text-align: left; margin-bottom: 1rem; }
.contact-info .section-description { text-align: left; margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; }
.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--radius-lg);
    color: var(--primary-400);
    flex-shrink: 0;
}
.contact-details h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.contact-details p { color: var(--gray-400); font-size: 0.9375rem; }

/* Contact Form */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
}
.form-title { font-size: 1.5rem; margin-bottom: 2rem; text-align: center; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { 
    display: block; 
    font-size: 0.875rem; 
    font-weight: 500; 
    color: var(--gray-300); 
    margin-bottom: 0.5rem; 
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-500); }
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}
.form-group select option { background: var(--gray-900); color: white; }
.form-group textarea { resize: vertical; min-height: 120px; }

/* CTA */
.cta { 
    padding: 6rem 0; 
    position: relative; 
    overflow: hidden; 
    background: var(--gradient-primary); 
}
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-shape { 
    position: absolute; 
    border-radius: 50%; 
    background: rgba(255, 255, 255, 0.1); 
}
.cta-shape-1 { width: 400px; height: 400px; top: -200px; right: -100px; }
.cta-shape-2 { width: 300px; height: 300px; bottom: -150px; left: -50px; }
.cta-container { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 0 1.5rem; 
    position: relative; 
    z-index: 1; 
}
.cta-content { text-align: center; }
.cta-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-description { font-size: 1.125rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 2rem; }
.cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* Footer */
#footer { 
    padding: 5rem 0 2rem; 
    background: var(--gray-950); 
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
}
.footer-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 4rem; }
.footer-section { display: flex; flex-direction: column; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo .logo-icon svg { width: 36px; height: 36px; }
.footer-logo .logo-text { font-size: 1.25rem; }
.footer-description { color: var(--gray-400); font-size: 0.9375rem; margin-bottom: 1.5rem; max-width: 300px; }
.footer-social { display: flex; gap: 1rem; }
.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--gray-400);
    transition: var(--transition);
}
.social-link:hover { 
    background: var(--primary-600); 
    border-color: var(--primary-600); 
    color: white; 
}
.footer-title { font-size: 1rem; margin-bottom: 1.5rem; color: white; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: var(--gray-400); font-size: 0.9375rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary-400); }
.footer-contact { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.footer-contact li { 
    display: flex; 
    gap: 0.75rem; 
    align-items: flex-start; 
    color: var(--gray-400); 
    font-size: 0.9375rem; 
}
.footer-contact svg { flex-shrink: 0; margin-top: 2px; color: var(--primary-400); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.05); text-align: center; }
.footer-bottom p { color: var(--gray-500); font-size: 0.875rem; }
.footer-bottom p:first-child { margin-bottom: 0.5rem; }
.footer-tagline { color: var(--primary-400); }

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 53, 0.9);
    backdrop-filter: blur(10px);
}
.success-modal.active { display: flex; }
.success-modal-content {
    background: var(--gray-900);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    animation: modalSlide 0.3s ease;
}
@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.success-icon svg { width: 40px; height: 40px; color: white; }
.success-modal h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.success-modal p { color: var(--gray-400); margin-bottom: 1.5rem; }

/* Animations */
[data-aos] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .services-grid, .ai-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .contact-info .section-title, .contact-info .section-description { text-align: center; }
    .contact-items { align-items: center; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--gray-900);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1rem;
        transition: var(--transition);
        box-shadow: var(--shadow-xl);
    }
    .nav-links.active { right: 0; }
    .nav-cta { display: none; }
    .mobile-menu-btn { display: flex; }
    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .hero { padding: 6rem 0 3rem; }
    .hero-buttons { flex-direction: column; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .hero-stat-divider { width: 40px; height: 1px; }
    .services-grid, .ai-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .stat-item .stat-number { font-size: 2.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .section-container { padding: 0 1rem; }
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.75rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 1.5rem; }
}
