/* CSS Variables - 2024 Ultra-Modern */
:root {
    /* Core Brand Colors */
    --primary-color: #3b82f6;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    
    /* 2024 Pantone Inspired - Mocha Mousse System */
    --mocha-mousse: #ad8b73;
    --mocha-light: #ceab93;
    --mocha-dark: #8d6e63;
    --mocha-cream: #f4f0e8;
    --mocha-shadow: #6d5a4f;
    
    /* Nature-Inspired Enhanced Palette */
    --sage-green: #87a96b;
    --sage-light: #b8c99b;
    --forest-deep: #2d5016;
    --forest-medium: #4a6b2a;
    --ocean-blue: #0ea5e9;
    --ocean-deep: #0369a1;
    --coral-accent: #ff6b6b;
    --coral-soft: #ffa8a8;
    
    /* 2025 Trend Colors */
    --digital-lime: #84cc16;
    --electric-purple: #8b5cf6;
    --cyber-cyan: #06b6d4;
    --warm-amber: #f59e0b;
    --rose-gold: #f43f5e;
    
    /* Background System */
    --background-color: #0a0f1c;
    --background-secondary: #0f172a;
    --surface-color: #1e293b;
    --surface-elevated: #334155;
    --surface-glass: rgba(30, 41, 59, 0.8);
    
    /* Text System */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-accent: var(--primary-light);
    --border-color: #334155;
    
    /* Advanced Gradients - 2024 Enhanced */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, var(--electric-purple) 50%, var(--cyber-cyan) 100%);
    --gradient-secondary: linear-gradient(135deg, #1e293b, #334155);
    --gradient-ai: linear-gradient(45deg, #667eea 0%, #764ba2 50%, var(--mocha-mousse) 100%);
    --gradient-hero: radial-gradient(ellipse at center, #0a0f1c 0%, #1e293b 50%, #0f172a 100%);
    --gradient-mocha: linear-gradient(135deg, var(--mocha-dark) 0%, var(--mocha-mousse) 50%, var(--mocha-light) 100%);
    --gradient-nature: linear-gradient(45deg, var(--sage-green) 0%, var(--ocean-blue) 50%, var(--digital-lime) 100%);
    --gradient-orb-1: radial-gradient(circle, var(--cyber-cyan) 0%, transparent 70%);
    --gradient-orb-2: radial-gradient(circle, var(--electric-purple) 0%, transparent 70%);
    --gradient-orb-3: radial-gradient(circle, var(--coral-accent) 0%, transparent 70%);
    --gradient-orb-4: radial-gradient(circle, var(--mocha-mousse) 0%, transparent 70%);
    
    /* Dynamic Time-Based Gradients */
    --gradient-dynamic-1: linear-gradient(45deg, var(--primary-color), var(--coral-accent), var(--digital-lime), var(--ocean-blue));
    --gradient-dynamic-2: conic-gradient(from 0deg, var(--mocha-mousse), var(--sage-green), var(--electric-purple), var(--cyber-cyan), var(--mocha-mousse));
    --gradient-mesh: radial-gradient(at 20% 30%, var(--primary-color) 0px, transparent 50%), radial-gradient(at 80% 20%, var(--electric-purple) 0px, transparent 50%), radial-gradient(at 40% 70%, var(--cyber-cyan) 0px, transparent 50%), radial-gradient(at 90% 40%, var(--mocha-mousse) 0px, transparent 50%);
    
    /* Advanced Glassmorphism */
    --glass-bg: rgba(30, 41, 59, 0.08);
    --glass-bg-strong: rgba(30, 41, 59, 0.15);
    --glass-bg-light: rgba(248, 250, 252, 0.05);
    --glass-border: rgba(148, 163, 184, 0.12);
    --glass-border-strong: rgba(148, 163, 184, 0.2);
    --glass-blur: blur(24px);
    --glass-blur-strong: blur(40px);
    --glass-blur-subtle: blur(16px);
    
    /* Neumorphism 2.0 */
    --neomorph-light: rgba(255, 255, 255, 0.05);
    --neomorph-dark: rgba(0, 0, 0, 0.4);
    --neomorph-bg: var(--surface-color);
    --neomorph-shadow-1: inset 8px 8px 16px var(--neomorph-dark), inset -8px -8px 16px var(--neomorph-light);
    --neomorph-shadow-2: 8px 8px 16px var(--neomorph-dark), -8px -8px 16px var(--neomorph-light);
    --neomorph-pressed: inset -8px -8px 16px var(--neomorph-dark), inset 8px 8px 16px var(--neomorph-light);
    
    /* Shadows & Depth */
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
    --shadow-neumorphic: 
        8px 8px 16px rgba(0, 0, 0, 0.3),
        -8px -8px 16px rgba(255, 255, 255, 0.02);
    
    /* Animation Variables */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.6s ease;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Typography - 2024 Ultra-Modern */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Dramatic Typography Hierarchy */
h1 { 
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 0.9;
}

h2 { 
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
}

h3 { 
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 500;
}

h4 { 
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 500;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Kinetic Typography Classes */
.title-line {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease forwards;
}

.title-highlight {
    display: block;
    background: var(--gradient-dynamic-1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 300%;
    animation: dynamicGradient 8s ease-in-out infinite, slideUpFade 0.8s ease forwards 0.3s;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes dynamicGradient {
    0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
    25% { background-position: 100% 50%; filter: hue-rotate(90deg); }
    50% { background-position: 100% 100%; filter: hue-rotate(180deg); }
    75% { background-position: 0% 100%; filter: hue-rotate(270deg); }
    100% { background-position: 0% 50%; filter: hue-rotate(360deg); }
}

@keyframes meshGradient {
    0%, 100% { 
        background: radial-gradient(at 20% 30%, var(--primary-color) 0px, transparent 50%), 
                   radial-gradient(at 80% 20%, var(--electric-purple) 0px, transparent 50%), 
                   radial-gradient(at 40% 70%, var(--cyber-cyan) 0px, transparent 50%), 
                   radial-gradient(at 90% 40%, var(--mocha-mousse) 0px, transparent 50%);
    }
    33% { 
        background: radial-gradient(at 70% 20%, var(--digital-lime) 0px, transparent 50%), 
                   radial-gradient(at 30% 80%, var(--coral-accent) 0px, transparent 50%), 
                   radial-gradient(at 60% 40%, var(--sage-green) 0px, transparent 50%), 
                   radial-gradient(at 10% 60%, var(--rose-gold) 0px, transparent 50%);
    }
    66% { 
        background: radial-gradient(at 40% 80%, var(--ocean-blue) 0px, transparent 50%), 
                   radial-gradient(at 90% 10%, var(--warm-amber) 0px, transparent 50%), 
                   radial-gradient(at 20% 20%, var(--electric-purple) 0px, transparent 50%), 
                   radial-gradient(at 80% 70%, var(--mocha-light) 0px, transparent 50%);
    }
}

@keyframes orbitingGradient {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Buttons */
/* Ultra-Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-bounce);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    min-width: 180px;
    justify-content: center;
}

.btn::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 ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        var(--shadow-glow),
        0 20px 40px -12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.btn-icon {
    font-size: 1.25rem;
    transition: transform var(--transition-medium);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* Navigation - Enhanced Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border-strong);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 1rem 1rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.nav-logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -0.5rem;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section - Ultra-Modern 2024 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

/* Animated Mesh Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    background-size: 400% 400%;
    animation: meshGradient 25s ease-in-out infinite;
    opacity: 0.6;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="%23334155" stroke-width="0.5" opacity="0.2"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(0.5deg); }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Hero Content Styling */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-accent);
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.8s ease forwards 0.1s;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.hero-title {
    margin-bottom: 2rem;
    perspective: 1000px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 90%;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease forwards 0.5s;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease forwards 0.7s;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 0.25rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease forwards 0.9s;
}

/* AI Demo Chat Bubble */
.hero-ai-demo {
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease forwards 1.1s;
}

.ai-chat-bubble {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    max-width: 400px;
    position: relative;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

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

.ai-message {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Hero Visual Section */
.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 600px;
    transform-style: preserve-3d;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: var(--gradient-orb-1);
    top: 10%;
    right: 20%;
    animation-delay: 0s;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: var(--gradient-orb-2);
    bottom: 20%;
    left: 10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 120px;
    height: 120px;
    background: var(--gradient-orb-3);
    top: 40%;
    left: 60%;
    animation-delay: -14s;
}

.orb-4 {
    width: 160px;
    height: 160px;
    background: var(--gradient-orb-4);
    top: 70%;
    right: 40%;
    animation-delay: -21s;
    animation: floatOrb 18s ease-in-out infinite, orbitingGradient 12s linear infinite;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* 3D Hero Cards */
.hero-cards-3d {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 3;
}

.hero-card-modern {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border: 1px solid var(--glass-border-strong);
    border-radius: 2rem;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-bounce);
    transform-style: preserve-3d;
    cursor: pointer;
    box-shadow: 
        var(--neomorph-shadow-2),
        0 0 60px rgba(59, 130, 246, 0.1);
}

.hero-card-large {
    grid-row: span 2;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-medium);
    pointer-events: none;
}

.hero-card-modern:hover .card-glow {
    opacity: 0.1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-card-modern:hover {
    transform: translateY(-15px) rotateY(8deg) rotateX(8deg);
    box-shadow: 
        var(--neomorph-shadow-2),
        0 30px 80px -12px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(59, 130, 246, 0.3);
    background: var(--glass-bg-light);
    border-color: var(--mocha-light);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-icon {
    margin-bottom: 1rem;
}

.icon-bg {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transform: translateZ(20px);
    transition: transform var(--transition-medium);
}

.hero-card-modern:hover .icon-bg {
    transform: translateZ(40px) rotateY(180deg);
}

.icon-bg i {
    font-size: 1.5rem;
    color: white;
}

.hero-card-modern h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.hero-card-modern p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.card-metrics {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--coral-accent);
    line-height: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.shape-1, .shape-2, .shape-3 {
    position: absolute;
    opacity: 0.1;
    animation: shapeFloat 15s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 15%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--coral-accent), transparent);
    border-radius: 50%;
    bottom: 25%;
    right: 25%;
    animation-delay: -5s;
}

.shape-3 {
    width: 100px;
    height: 40px;
    background: linear-gradient(45deg, var(--ocean-blue), transparent);
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    top: 60%;
    left: 5%;
    animation-delay: -10s;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.1; }
    50% { transform: translate(20px, -20px) rotate(180deg); opacity: 0.2; }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--background-color);
}

/* Modern Bento Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-template-rows: repeat(auto-fit, minmax(280px, auto));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Bento Grid Specific Layouts */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, minmax(280px, auto));
    }
    
    /* Featured large cards */
    .service-card:nth-child(2) { /* AI/ML & LLM Solutions */
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .service-card:nth-child(5) { /* Mobile App Development */
        grid-column: span 2;
    }
    
    /* Regular sized cards maintain default sizing */
}

.service-card {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 2.5rem;
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 
        var(--neomorph-shadow-2),
        0 0 40px rgba(59, 130, 246, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-dynamic-1);
    background-size: 200% 200%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    border-radius: 2rem 2rem 0 0;
    animation: gradientShift 3s ease-in-out infinite;
}

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

.service-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
    box-shadow: 
        var(--neomorph-shadow-2),
        0 20px 60px -12px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(59, 130, 246, 0.2);
    background: var(--glass-bg-light);
    border-color: var(--mocha-mousse);
}

/* Featured Large Cards Styling */
.service-card:nth-child(2) { /* AI/ML & LLM Solutions - Featured */
    background: linear-gradient(135deg, var(--glass-bg-strong), var(--glass-bg-light));
    border: 2px solid var(--mocha-mousse);
    position: relative;
}

.service-card:nth-child(2)::after {
    content: 'FEATURED';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-mocha);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.service-card:nth-child(5) { /* Mobile App Development - Featured */
    background: linear-gradient(135deg, var(--glass-bg-strong), var(--glass-bg-light));
    border: 2px solid var(--cyber-cyan);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-dynamic-1);
    background-size: 200% 200%;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: gradientShift 4s ease-in-out infinite;
    box-shadow: 
        0 8px 32px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotateY(10deg);
    animation-duration: 2s;
}

.service-icon i {
    font-size: 1.75rem;
    color: white;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* About Section - Enhanced Scrollytelling */
.about {
    padding: 8rem 0;
    background: var(--surface-color);
    position: relative;
    overflow: hidden;
}

.scrollytelling-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.scroll-progress-bar {
    width: 100px;
    height: 4px;
    background: var(--glass-border);
    border-radius: 2px;
    margin: 2rem auto;
    overflow: hidden;
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Scroll Reveal Animation System */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Story Sections */
.story-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
    position: relative;
}

.story-section[data-story]::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-dynamic-1);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.story-section.active::before {
    opacity: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-bar {
    width: 100%;
    height: 6px;
    background: var(--glass-border);
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: var(--gradient-mocha);
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-subtle);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.feature:hover {
    background: var(--glass-bg-light);
    transform: translateX(10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-nature);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-progress {
    width: 100%;
    height: 4px;
    background: var(--glass-border);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.feature-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-nature);
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

.feature i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.feature h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-muted);
}

/* Timeline Section */
.about-timeline {
    margin-top: 6rem;
    position: relative;
    padding: 2rem 0;
}

.about-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-dynamic-1);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 3rem;
    margin-left: 0;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: var(--gradient-mocha);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 0 8px var(--surface-color),
        0 0 0 12px var(--glass-border),
        0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-marker::after {
    content: '';
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
}

.timeline-content {
    flex: 1;
    max-width: 400px;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    margin-left: 3rem;
    position: relative;
}

.timeline-content h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.timeline-content p {
    color: var(--text-muted);
    margin: 0;
}

/* Contact Section - Simple Design */
.contact {
    padding: 6rem 0;
    background: var(--background-color);
}

.contact-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-container {
    width: 100%;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    width: 100%;
}

.simple-contact-form input,
.simple-contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid var(--glass-border-strong);
    border-radius: 0.75rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-subtle);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.simple-contact-form input::placeholder,
.simple-contact-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.simple-contact-form input:focus,
.simple-contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--glass-bg-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.simple-contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-send {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    min-width: 160px;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

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

.contact-info-simple {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

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

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 4rem;
        flex-direction: column;
        background: var(--surface-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        border-top: 1px solid var(--border-color);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info-simple {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }

    .service-card,
    .hero-card {
        padding: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-visual {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Scroll animations */
.service-card,
.feature,
.contact-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.service-card.animate,
.feature.animate,
.contact-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Modern Cursor System */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--gradient-dynamic-1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.custom-cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s ease;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.custom-cursor.active,
.custom-cursor-outline.active {
    opacity: 1;
}

/* Cursor interactions */
.custom-cursor.hover {
    width: 8px;
    height: 8px;
    background: var(--coral-accent);
}

.custom-cursor-outline.hover {
    width: 60px;
    height: 60px;
    border-color: var(--mocha-mousse);
}

.custom-cursor.click {
    width: 12px;
    height: 12px;
    background: var(--digital-lime);
}

/* Hide default cursor on interactive elements */
body.cursor-enabled {
    cursor: none;
}

.cursor-enabled a,
.cursor-enabled button,
.cursor-enabled .service-card,
.cursor-enabled .hero-card-modern,
.cursor-enabled .btn {
    cursor: none;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}