:root {
    --primary-dark: #0a1628;
    --primary-blue: #0c2340;
    --accent-orange: #ff6b35;
    --accent-orange-hover: #e55a2b;
    --text-dark: #0a1628;
    --text-gray: #4b5563;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

/* FIX: Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
}

.btn-pill {
    border-radius: 9999px;
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 12px 32px;
    font-size: 14px;
}

.btn-pill:hover {
    opacity: 0.9;
}

.section-padding {
    padding: 80px 0;
}

/* ============================
   HEADER & HAMBURGER MENU
   ============================ */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e6eef7;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px; /* Standardized height */
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-weight: 800;
    font-size: 20px;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
}

.logo-highlight {
    color: var(--primary-blue);
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    color: #5a6b7d;
    font-weight: 500;
    font-size: 16px;
}

.main-nav a:hover {
    color: var(--accent-orange);
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 2000;
    cursor: pointer;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background-color: var(--white);
    z-index: 1500;
    padding: 40px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 1px solid #e6eef7;
    overflow-y: auto;
}

.mobile-menu-overlay.active { transform: translateX(0); }

.mobile-menu-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-link {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

body.menu-open { overflow: hidden; }

@media (max-width: 1024px) {
    .main-nav, .header-cta { display: none; }
    .hamburger { display: flex; }
}

/* ============================
   HERO SECTION
   ============================ */
.hero-section {
    background: linear-gradient(135deg, #0a1628 0%, #152238 50%, #1e2f47 100%);
    position: relative;
    padding: 100px 0;
    overflow: hidden; /* Critical for shapes */
    text-align: center;
    color: var(--white);
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 384px; height: 384px;
    background-color: #ff6b35;
    top: -50px; left: -100px;
}

.shape-2 {
    width: 384px; height: 384px;
    background-color: #3b82f6;
    bottom: -100px; right: -50px;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
}

.hero-subtitle {
    font-size: 18px;
    color: #d1d5db;
    max-width: 768px;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }
    .hero-section { padding: 60px 0; }
}

/* ============================
   INTRO & SERVICES
   ============================ */
.intro-section {
    padding: 60px 0;
    text-align: center;
}

.intro-text {
    font-size: 24px;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 500;
}

@media (max-width: 768px) {
    .intro-text { font-size: 20px; }
}

.services-section {
    padding-bottom: 80px;
}

/* ALTERNATING LAYOUT LOGIC
   Default: Content Left, Image Right 
*/
.service-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
    flex-direction: row; /* Explicit default */
}

/* Reverse: Image Left, Content Right
   Applied to alternate rows
*/
.service-row.reverse {
    flex-direction: row-reverse;
}

/* MOBILE STACKING */
@media (max-width: 992px) {
    .service-row {
        flex-direction: column; /* Stack vertically on mobile */
        gap: 40px;
        margin-bottom: 60px;
    }
    
    /* On mobile, usually you want consistent stacking.
       This resets the 'reverse' so every section stacks the same way:
       Content Top -> Image Bottom. 
    */
    .service-row.reverse {
        flex-direction: column; 
    }
}

.service-content-wrapper { flex: 1; }
.service-image-wrapper { flex: 1; display: flex; justify-content: center; width: 100%; }

.service-card {
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.card-white { background-color: #ffffff; box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.05); }
.card-gray { background-color: #f9fafb; box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.05); }

.icon-box {
    width: 64px; height: 64px;
    background-color: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
}

.icon-box img { width: 30px; height: 30px; }

.service-card h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    margin-top: 0;
}

.service-card p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.service-list { margin-bottom: 40px; }

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #374151;
    font-size: 16px;
}

.check-icon { width: 14px; height: 16px; margin-top: 4px; }

.image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 20px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.service-img { width: 100%; height: auto; display: block; object-fit: cover;}

.gradient-overlay {
    position: absolute;
    top: -14px; left: -14px;
    width: 100%; height: 100%;
    border-radius: 16px;
    opacity: 0.1;
    z-index: -1;
}

.overlay-orange { background: linear-gradient(135deg, #ff6b35 0%, #0a1628 100%); }
.overlay-blue { background: linear-gradient(135deg, #0a1628 0%, #ff6b35 100%); }

/* ============================
   FEATURES (Why Choose Us)
   ============================ */
.features-section {
    background-color: #0a1628;
    padding: 80px 0;
    color: var(--white);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-card {
    background-color: #152238;
    border: 1px solid #2d3748;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.feature-card:hover { transform: translateY(-5px); }

.feature-icon {
    margin-bottom: 24px;
    height: 60px;
    display: flex; align-items: center;
}

.feature-card h3 {
    font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--white);
}

.feature-card p {
    color: #d1d5db; font-size: 16px; line-height: 1.5; margin: 0;
}

@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* ============================
   TRUSTED BY & CTA
   ============================ */
.trusted-section {
    background-color: #f9fafb;
    padding: 80px 0;
    text-align: center;
}

.trusted-title {
    font-size: 30px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px;
}

.trusted-subtitle {
    font-size: 18px; color: var(--text-gray); margin-bottom: 48px;
}

.client-tags {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
}

.client-tag {
    background-color: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 32px;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
    min-width: 200px;
}

.client-tag p { margin: 0; font-weight: 600; color: var(--text-dark); }

.cta-section {
    background: linear-gradient(90deg, #0a1628 0%, #152238 100%);
    padding: 80px 0;
    color: var(--white);
}

.cta-content {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px;
}

.cta-content h2 {
    font-size: 28px; font-weight: 600; color: #d1d5db; max-width: 700px; margin: 0;
}

.cta-btn {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 16px 48px;
    font-size: 18px;
    border-radius: 8px;
}

.cta-btn:hover { background-color: var(--accent-orange-hover); }

/* ============================
   FOOTER
   ============================ */
.site-footer {
    background-color: #0f2746;
    color: #9ca3af;
    padding: 80px 0 40px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-col ul li { margin-bottom: 12px; }
.footer-col a:hover { color: var(--white); }

.social-icons {
    display: flex; gap: 16px; margin-bottom: 32px;
}

.newsletter h4 {
    color: var(--white); font-size: 16px; margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 4px;
}

.newsletter-form input {
    background: none; border: none; color: var(--white);
    padding: 8px 12px; flex: 1; outline: none; min-width: 0;
}

.newsletter-form button {
    background-color: #00d4ff; border-radius: 4px; width: 40px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.footer-locations {
    display: flex; gap: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px; margin-bottom: 40px;
}

.location h4 { color: var(--white); margin-bottom: 12px; }

.location-details { display: flex; gap: 12px; align-items: flex-start; }
.location-details p { margin: 0; color: #d1d5db; line-height: 1.6; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    display: flex; justify-content: space-between; align-items: center;
}

.footer-links { display: flex; gap: 24px; }

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-locations { flex-direction: column; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .footer-links { justify-content: center; }
}