@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0a1628;
    --secondary: #1e3a5f;
    --accent: #ec111a;
    --accent-light: #ec111a;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --ocean-dark: #0c4a6e;
    --ocean-light: #0ea5e9;
    --success: #10b981;
    --danger: #ef4444;
    /* Form input font size — configurable via Admin Settings */
    --form-input-size: 1.05rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--primary);
}

/* ============================================
   NAVIGATION
============================================ */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

nav .logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:not(.btn):hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--accent);
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, #b90e14 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(236, 17, 26, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(236, 17, 26, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--primary);
}

/* ============================================
   HERO SECTION
============================================ */
#hero {
    min-height: auto;
    background: linear-gradient(180deg, var(--primary) 0%, #0f2847 50%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

/* Stars background */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200px 200px;
    animation: twinkle 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes twinkle {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Video Background */
/* Video Background Area */
.video-background {
    position: relative;
    /* Change from absolute to relative */
    width: 100%;
    height: 70vh;
    /* Takes up top 70% of screen */
    overflow: hidden;
    z-index: 1;
    background: #0a1628;
    /* Fallback for missing video */
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.1);
    /* Zoom to hide watermarks */
    object-fit: cover;
    opacity: 1;
    filter: brightness(1.1) contrast(1.05);
    /* Restore sharpness & brightness */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.2);
    /* Very light overlay for max brightness */
    z-index: 2;
}

/* Network Overlay */
.network-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align map to top */
    padding-top: 5vh;
    /* Give slight breathing room at top */
    overflow: hidden;
}

.map-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    /* Subtle map background */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align SVG to top */
    padding-top: 2%;
    /* Nudge it down a tiny bit */
}

.map-layer svg {
    width: 100%;
    height: auto;
    max-height: 80vh;
    /* Don't let it overlap text area */
    max-width: 1920px;
}

.map-layer path {
    fill: #1e3a5f;
    stroke: #334155;
    stroke-width: 0.5px;
    transition: fill 0.3s;
}

/* Highlight specific countries if desirable, but generic is fine */

.connections-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: 1920px;
    z-index: 4;
}

.route-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: shippingRoute 4s ease-out infinite;
    filter: drop-shadow(0 0 5px var(--accent));
}

.route-line.delay-1 {
    animation-delay: 1.0s;
}

.route-line.delay-2 {
    animation-delay: 2.0s;
}

.route-line.delay-3 {
    animation-delay: 3.0s;
}

@keyframes shippingRoute {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

.location-dot {
    fill: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent));
    animation: dotPulse 2s infinite;
}

.location-dot.destination {
    fill: #10b981;
    /* Green for Canada */
    filter: drop-shadow(0 0 10px #10b981);
    r: 6;
}

@keyframes dotPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Hero Content - Positioned at Bottom */
/* Hero Content - Positioned Below Video */
.hero-content {
    position: relative;
    /* In document flow */
    width: 100%;
    max-width: 100%;
    padding: 3rem 2rem;
    text-align: center;
    background: #0a1628;
    /* Solid dark background matching theme */
    color: #ffffff;
    z-index: 10;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    /* Shadow separating from video */
    border: none;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}


/* ============================================
   ANIMATED PLANES - SVG Based
============================================ */
.animated-plane {
    position: absolute;
    z-index: 20;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    pointer-events: none;
    opacity: 0;
    will-change: transform, left, top;
    overflow: visible;
    /* CRITICAL: Allows engine glow outside viewBox */
}

.animated-plane .engine-glow {
    animation: enginePulse 0.15s ease-in-out infinite alternate;
}

@keyframes enginePulse {
    0% {
        opacity: 0.5;
        rx: 3;
    }

    100% {
        opacity: 1;
        rx: 5;
    }
}

/* ============================================
   ANIMATED SHIP - SVG Based
============================================ */
.animated-ship {
    position: absolute;
    z-index: 15;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
    pointer-events: none;
    opacity: 0;
    will-change: transform, left, top;
    overflow: visible;
    /* CRITICAL: Allows smoke to rise outside viewBox */
}

.animated-ship .wake-effect {
    animation: wakeAnimation 0.8s ease-in-out infinite alternate;
}

@keyframes wakeAnimation {
    0% {
        rx: 12;
        opacity: 0.2;
    }

    100% {
        rx: 18;
        opacity: 0.4;
    }
}

.animated-ship .smoke-puff {
    animation: smokePuffAnim 2s ease-out infinite;
}

.animated-ship .smoke-puff.delay {
    animation-delay: 0.5s;
}

@keyframes smokePuffAnim {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translateY(-15px) scale(2);
        opacity: 0;
    }
}

/* ============================================
   COUNTRY LABELS ON MAP
============================================ */
.country-label {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    fill: var(--accent);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    text-anchor: middle;
}

.country-label.canada {
    font-size: 18px;
    fill: #10b981;
}

/* Route lines - Enhanced */
.route-path {
    fill: none;
    stroke-linecap: round;
    animation: routeDash 15s linear infinite;
}

.route-glow {
    fill: none;
    pointer-events: none;
}

@keyframes routeDash {
    to {
        stroke-dashoffset: -200;
    }
}

/* ============================================
   SERVICES SECTION
============================================ */
#services {
    padding: 6rem 10%;
    background: linear-gradient(180deg, var(--secondary) 0%, var(--primary) 100%);
}

#services h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#services .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(236, 17, 26, 0.15);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card-content {
    padding: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
    display: block;
    transform: scale(1.0);
    /* Removed 1.1 zoom to prevent clipping top */
}

.video-center {
    object-position: center !important;
}

.service-card:hover .service-video {
    transform: scale(1.05);
    /* Subtler zoom on hover */
}

/* ============================================
   ABOUT SECTION
============================================ */
#about {
    padding: 6rem 10%;
    background: var(--primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ============================================
   FOOTER WITH VIDEO BACKGROUND
============================================ */
footer {
    position: relative;
    background: var(--ocean-dark);
    padding-top: 150px;
    overflow: hidden;
}

/* Video Background for Footer */
.footer-video-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    overflow: hidden;
    z-index: 1;
}

.footer-video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.footer-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--ocean-dark) 0%, rgba(12, 74, 110, 0.7) 50%, rgba(12, 74, 110, 0.4) 100%);
    z-index: 2;
}


/* Footer Cargo Ships */
.footer-ship {
    position: absolute;
    bottom: 60px;
    z-index: 10;
    animation: footerShipSail 25s linear infinite;
}

.footer-ship:nth-child(2) {
    animation-delay: -12s;
    transform: scale(0.7);
    bottom: 80px;
}

@keyframes footerShipSail {
    0% {
        left: -15%;
        transform: rotate(2deg);
    }

    50% {
        transform: rotate(-2deg);
    }

    100% {
        left: 110%;
        transform: rotate(2deg);
    }
}

/* Footer Content */
.footer-content {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding: 0 10% 4rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col p,
.footer-col a {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.contact-icon {
    width: 20px;
    height: 20px;
    fill: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 10%;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 20;
}

/* ============================================
   AUTH PAGES
============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 2rem;
}

.auth-container {
    display: flex;
    gap: 3rem;
    max-width: 900px;
    width: 100%;
}

.auth-box {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.auth-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.auth-box h2 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.auth-box p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.auth-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    fill: var(--accent);
}

/* Login Form */
.login-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-light);
    font-size: var(--form-input-size, 1.05rem);
    transition: all 0.3s;
}

/* Password eye-toggle wrapper */
.pw-wrap {
    position: relative;
}
.pw-wrap input {
    padding-right: 3rem !important;
}
.pw-eye {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    z-index: 5;
}
.pw-eye:hover { color: var(--accent); }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(236, 17, 26, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* ============================================
   DASHBOARD
============================================ */
.dashboard-page {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    padding-top: 100px;
}

.dashboard-container {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-muted);
}

/* Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.card:hover {
    border-color: rgba(236, 17, 26, 0.3);
}

.card h2,
.card h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Order Status Steps */
.status-tracker {
    margin: 2rem 0;
}

.status-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 1rem;
}

.status-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: var(--glass-border);
    border-radius: 2px;
    z-index: 1;
}

.status-steps::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    height: 4px;
    background: linear-gradient(90deg, var(--success), var(--accent));
    border-radius: 2px;
    z-index: 2;
    transition: width 0.5s ease;
}

.step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary);
    border: 3px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s;
}

.step.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step.active .step-circle {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.step-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 80px;
}

.step.completed .step-label,
.step.active .step-label {
    color: var(--text-light);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
}

.data-table th {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 1px solid var(--glass-border);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent);
}

.status-badge.confirmed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.status-badge.review {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.file-upload:hover {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.05);
}

.file-upload input[type="file"] {
    display: none;
}

/* ============================================
   RESPONSIVE — TABLET (≤1024px)
============================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    #services {
        padding: 5rem 5%;
    }

    #about {
        padding: 5rem 5%;
    }
}

/* ============================================
   RESPONSIVE — MOBILE (≤768px)
============================================ */
@media (max-width: 768px) {

    /* --- Navigation --- */
    .menu-toggle {
        display: flex;
    }

    /* Full-width slide-in drawer with dark overlay */
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        /* full-screen width on mobile */
        max-width: 320px;
        /* cap at 320px on larger phones */
        height: 100vh;
        background: rgba(8, 17, 32, 0.99);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 5rem 2rem 3rem;
        z-index: 1000;
        box-shadow: -5px 0 40px rgba(0, 0, 0, 0.7);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul.active {
        right: 0;
    }

    /* Overlay when menu is open */
    nav ul.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    nav ul li:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    nav ul li a {
        font-size: 1.15rem;
        font-weight: 600;
        display: block;
        padding: 1.1rem 1rem;
        letter-spacing: 0.3px;
    }

    nav ul li a.btn {
        margin: 1.5rem auto 0;
        display: inline-block;
        width: auto;
        padding: 0.85rem 2.5rem;
        font-size: 1rem;
        border-bottom: none;
    }

    nav ul li:has(a.btn) {
        border-bottom: none;
    }

    /* Keep hamburger on top of the drawer */
    .menu-toggle {
        z-index: 1100;
        position: relative;
    }

    /* --- Hero --- */
    .video-background {
        height: 56vw;
        /* 16:9 ratio on mobile */
        min-height: 200px;
        max-height: 400px;
        overflow: hidden;
    }

    .video-background video {
        transform: translate(-50%, -50%) scale(1.0);
        /* No extra zoom on mobile */
    }

    .hero-content {
        padding: 2rem 1.25rem;
    }

    .hero-content h1 {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* --- Services --- */
    #services {
        padding: 4rem 1.25rem;
    }

    #services h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-video {
        height: 200px;
        object-position: top;
        transform: scale(1.0);
        /* Remove zoom on mobile to prevent top/bottom clipping */
    }

    .service-card:hover .service-video {
        transform: scale(1.05);
        /* Subtle zoom on hover only */
    }

    /* --- About --- */
    #about {
        padding: 4rem 1.25rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content h2 {
        font-size: 1.9rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    /* --- Newsletter --- */
    #newsletter {
        padding: 3rem 1.25rem !important;
    }

    #newsletter form {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    #newsletter form input[type="email"] {
        width: 100% !important;
    }

    #newsletter form button {
        width: 100%;
        padding: 0.9rem 1.25rem !important;
    }

    /* --- Footer --- */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.25rem 3rem;
    }

    footer {
        padding-top: 80px;
    }

    .footer-video-background {
        height: 200px;
    }

    /* --- Auth --- */
    .auth-page {
        padding-top: 100px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .auth-container {
        flex-direction: column;
        gap: 2rem;
    }

    .auth-box {
        padding: 2rem 1.5rem;
    }

    /* --- Quote Modal --- */
    #quoteModal>div:last-child {
        border-radius: 16px !important;
        max-height: 95vh !important;
    }

    /* Two-column grid inside modal → single column */
    #quoteModal>div:last-child>div>div:last-child {
        grid-template-columns: 1fr !important;
    }

    /* Hide the left info panel on small screens to save space */
    #quoteModal .modal-info-panel {
        display: none !important;
    }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (≤480px)
============================================ */
@media (max-width: 480px) {
    nav {
        padding: 0.85rem 1rem;
    }

    nav .logo {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }

    .stat-number {
        font-size: 2rem;
        min-width: 60px;
    }

    #services h2,
    #about .about-content h2 {
        font-size: 1.75rem;
    }

    .service-video {
        height: 180px;
        object-position: top;
        transform: scale(1.0);
        /* No zoom on small mobile */
    }
}

/* ============================================
   MOBILE NAV — CLOSE BUTTON
   Shown on mobile when menu drawer is open
============================================ */
.nav-close-btn {
    display: none;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1010;
}

@media (max-width: 768px) {
    .nav-close-btn {
        display: flex;
    }
}