:root {
    --primary: #0056b3;
    --primary-accent: #10b981;
    --primary-glow: rgba(0, 86, 179, 0.1);
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent: #10b981;
    --border: #e2e8f0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
header {
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    gap: 4rem; /* Add gap to prevent overlap */
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    z-index: -1;
    filter: blur(80px);
}

.hero-content {
    flex: 1.2; /* Give content slightly more space */
    z-index: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, var(--text-main), var(--primary)); /* Improved contrast */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    width: 100%; /* Changed from 120% to 100% to prevent overlap */
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background: #004494;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2);
}

/* Section Common */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards (Challenges) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card:hover img {
    transform: scale(1.05);
}

.card img {
    transition: transform 0.5s ease;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Flow Section */
.flow-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
}

.flow-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.flow-step::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.1);
    z-index: -1;
}

.flow-step:last-child::after {
    display: none;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: bold;
    color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* AI Strategy */
.strategy-grid {
    display: flex;
    gap: 2rem;
    margin-top: 40px;
}

.strategy-item {
    flex: 1;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.strategy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.strategy-item h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.strategy-item .badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Tech Highlights */
.tech-highlights {
    padding: 100px 0;
}

.highlight-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 120px;
}

.highlight-row.reverse {
    flex-direction: row-reverse;
}

.highlight-image, .highlight-text {
    flex: 1;
}

.highlight-text h2 {
    font-size: 2.5rem;
    margin: 1rem 0 1.5rem;
    color: var(--text-main);
}

.highlight-text .badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.highlight-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.arch-diagram img:hover {
    transform: scale(1.02);
    border-color: var(--primary) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2) !important;
}

/* Animations */
.card, .flow-step, .strategy-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content h1 { 
        font-size: 3.5rem; 
    }
    
    .hero { 
        flex-direction: column; 
        text-align: center; 
        height: auto; 
        padding-top: 120px;
        padding-bottom: 80px; 
        gap: 2rem;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-image { 
        order: 2;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        justify-content: center;
    }
    
    .highlight-row {
        gap: 2rem;
        margin-bottom: 80px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .hero-content h1 { 
        font-size: 2.5rem; 
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .flow-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .flow-step::after {
        display: none;
    }
    
    .strategy-grid {
        flex-direction: column;
    }
    
    .highlight-row, .highlight-row.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .highlight-image {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 { 
        font-size: 2.1rem; 
    }
    
    .nav-links {
        display: none; /* Hide nav links on very small screens for simplicity, or we could use a burger menu */
    }
    
    .logo {
        font-size: 1.2rem;
    }
}

/* Footer */
footer .logo {
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 15px;
}

footer .logo img {
    height: 60px !important;
    margin: 0 !important;
}
