:root {
    --primary-color: #06B6D4;
    --primary-rgb: 6, 182, 212;
    --secondary-color: #F59E0B;
    --secondary-rgb: 245, 158, 11;
    --accent-color: #8B5CF6;
    --accent-rgb: 139, 92, 246;
}

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

/* Ensure HTML and BODY have no default spacing */
html, body { margin: 0; padding: 0; }

/* CRITICAL: Eliminate 1px seams between header/nav and hero */
/* Only the .navbar is fixed; header/nav containers remain static */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--neutral-light, #ffffff);
  z-index: 10000; /* ensure nav overlays all content */
}
header, .site-header, nav {
  position: static;
  margin: 0; padding: 0; border: 0; box-shadow: none; outline: 0;
  background: transparent;
}

/* Main content offset is determined at runtime if nav overlays; fallback remains zero-gap safe */
main { padding-top: var(--nav-height, 0px); margin: 0; }

/* Hero must start flush under nav */
.hero, .hero-section, #hero, [data-section="hero"] { margin-top: 0; border-top: 0; }

/* Avoid decorative separators that create 1px lines at the top */
nav, .navbar, .site-header { border-bottom: none !important; box-shadow: none !important; }
.hero, .hero-section { border-top: none !important; }

/* Navigation layout and CTA button */
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; }
.brand { font-weight: 700; color: var(--text-color, #111); text-decoration: none; }
.nav-menu { display: flex; align-items: center; gap: 20px; }
.nav-menu a { color: var(--text-color, #111); text-decoration: none; }
.nav-cta a, .nav-cta button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 999px;
  background: var(--primary-color); color: #fff; border: none; text-decoration: none;
  transition: background 0.2s ease;
}
.nav-cta a:hover, .nav-cta button:hover { background: rgba(var(--primary-rgb), 0.9); }

/* Toggle (burger) */
.nav-toggle { display: none; flex-direction: column; gap: 4px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-color, #111); }

/* Mobile navigation behavior */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: fixed; top: var(--nav-height, 64px); left: 0; right: 0;
    background: var(--neutral-light, #ffffff);
    flex-direction: column; gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.12);
  }
  .nav-menu.active { display: flex; }
  .navbar__inner { padding: 10px 16px; }
  .nav-cta { margin-left: 8px; }
}

/* Desktop */
@media (min-width: 769px) {
  .nav-toggle { display: none; }
}

body {
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.6;
    color: #1E293B;
    background: #ffffff;
}

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

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background-color: #D97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Sections */
section {
    padding: 100px 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0891B2 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./assets/images/hero_1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.7s forwards;
}

.hero-content .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

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

/* Problem-Solution Section */
.problem-solution {
    background: #ffffff;
    padding: 80px 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.problem-side {
    position: relative;
    padding: 40px;
    background: #F8FAFC;
    border-radius: 12px;
    border-left: 4px solid #EF4444;
}

.solution-side {
    position: relative;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color), #0891B2);
    color: #ffffff;
    border-radius: 12px;
}

.bridge-element {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.bridge-element::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: -10px;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Services Section */
.services-section {
    background: #F8FAFC;
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), #A855F7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #ffffff;
}

/* Process Timeline */
.process-section {
    background: #ffffff;
    padding: 90px 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
    transform: translateY(-50%);
}

.timeline-step {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 200px;
}

.timeline-step:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-step:nth-child(even) .step-card {
    transform: translateY(-120px);
}

.timeline-step:nth-child(odd) .step-card {
    transform: translateY(120px);
}

.step-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 2;
}

.step-card {
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 100px;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), #0891B2);
    color: #ffffff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    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 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-value {
    font-size: 4rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Testimonials Section */
.testimonials-section {
    background: #ffffff;
    padding: 90px 0;
}

.testimonial-spotlight {
    max-width: 800px;
    margin: 60px auto 0;
    text-align: center;
    position: relative;
}

.testimonial-quote {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 40px;
    position: relative;
    padding: 0 40px;
}

.testimonial-quote::before,
.testimonial-quote::after {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    top: -20px;
}

.testimonial-quote::before {
    left: 0;
}

.testimonial-quote::after {
    right: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.author-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-info p {
    color: #64748B;
    margin: 0;
}

/* About/Expertise Section */
.about-section {
    background: #F8FAFC;
    padding: 70px 0;
}

.zigzag-layout {
    display: grid;
    gap: 70px;
}

.expertise-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.expertise-item:nth-child(even) {
    direction: rtl;
}

.expertise-item:nth-child(even) > * {
    direction: ltr;
}

.expertise-content {
    padding: 40px;
}

.expertise-visual {
    height: 300px;
    background: linear-gradient(135deg, var(--secondary-color), #D97706);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ffffff;
}

/* Contact Section */
.contact-section {
    background: #1E293B;
    color: #ffffff;
    padding: 120px 0;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 60px auto 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 60px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 30px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
footer {
    background: #0F172A;
    color: #ffffff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 30px;
    text-align: center;
    color: #94A3B8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.25rem;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .bridge-element {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline-step {
        flex-direction: column !important;
        margin-bottom: 60px;
    }
    
    .timeline-step:nth-child(even) .step-card,
    .timeline-step:nth-child(odd) .step-card {
        transform: translateY(0);
        margin: 20px 0 0 0;
    }
    
    .timeline::before {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .expertise-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .expertise-item:nth-child(even) {
        direction: ltr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form {
        padding: 40px 20px;
        margin: 40px 16px 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states */
.btn:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
