:root {
    --primary-color: #1e3a8a;
    --secondary-color: #06b6d4;
    --accent-color: #8b5cf6;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(226, 232, 240, 0.8);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

/* Captcha Styles */
.captcha-question {
    font-weight: 700;
    color: var(--primary-color);
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.captcha-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.captcha-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-align: center; margin-bottom: 4rem; letter-spacing: -0.01em; }
p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.1rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(30, 58, 138, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.01);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 1rem 5%;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 80px;
    background: radial-gradient(circle at 100% 0%, #eff6ff 0%, #ffffff 50%);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 650px;
}

.hero-content h1 {
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-image img {
    width: 100%;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

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

/* Sections */
.section {
    padding: 120px 10%;
}

.section-title {
    max-width: 800px;
    margin: 0 auto 5rem;
    text-align: center;
}

/* Intro Section */
.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.intro-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid #e2e8f0;
}

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

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.bento-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.bento-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: #e2e8f0;
}

.bento-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    display: inline-block;
}

/* Gen AI Cards */
.gen-ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.ai-card {
    background: #f8fafc;
    padding: 3rem;
    border-radius: 24px;
    transition: var(--transition-smooth);
}

.ai-card:hover {
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

/* Success Stories */
.case-study-card {
    background: white;
    border-radius: 40px;
    overflow: hidden;
    margin-bottom: 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: var(--shadow-xl);
}

.case-content {
    padding: 5rem;
}

.case-image {
    background-size: cover;
    background-position: center;
    min-height: 500px;
}

.problem-box { border-left: 4px solid #ef4444; padding-left: 2rem; margin-bottom: 3rem; }
.solution-box { border-left: 4px solid var(--primary-color); padding-left: 2rem; margin-bottom: 3rem; }
.results-box { 
    background: #f0fdf4; 
    padding: 2.5rem; 
    border-radius: 24px; 
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-md);
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-user img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
}

.contact-form-container {
    background: #ffffff;
    padding: 4rem;
    border-radius: 40px;
    box-shadow: var(--shadow-xl);
}

.form-control {
    width: 100%;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 100px 5% 50px;
}

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

.footer-logo .logo-main { color: white; }

/* Page Hero for Subpages */
.page-hero {
    padding: 220px 10% 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    color: white;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.5));
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    margin-bottom: 1rem;
    color: white;
}

.page-hero p {
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Tech Tags for Case Studies */
.tech-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #f1f5f9;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0.25rem;
}

/* Info Item for Contact Page */
.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    background: #f0f9ff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Responsive Design Enhancements */
@media (max-width: 1200px) {
    .section { padding: 100px 7%; }
    .hero-grid, .intro-grid { gap: 3rem; }
}

@media (max-width: 1024px) {
    .hero-grid, .intro-grid, .case-study-card, .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content, .intro-text {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-btns { justify-content: center; }
    .hero-image { order: -1; max-width: 600px; margin: 0 auto; }
    .intro-image { order: -1; max-width: 600px; margin: 0 auto; }
    .intro-text h2 { text-align: center; }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .case-content { padding: 3rem; }
    .case-image { order: -1; min-height: 350px; }
}

@media (max-width: 768px) {
    .section { padding: 80px 5%; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        box-shadow: var(--shadow-xl);
        border-top: 1px solid #f1f5f9;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 2.5rem;
    }
    
    .page-hero {
        padding: 160px 5% 80px;
    }
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title {
        margin-bottom: 3rem;
    }
}
