/* Professional Light Design System - 2026 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Light Theme Palette */
    --color-bg-light: #ffffff;
    --color-bg-off-white: #f8f9fa;
    --color-primary: #0056b3;
    /* Professional Blue */
    --color-primary-dark: #003d80;
    --color-accent: #00d4ff;
    /* Cyan accent for modernity */
    --color-text-main: #1a1a2e;
    /* Very Dark Blue for text */
    --color-text-muted: #5a6675;
    --shadow-hover: 0 20px 60px rgba(0, 86, 179, 0.1);

    /* Toast Colors */
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-info: #3b82f6;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Toast Container */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 280px;
    max-width: 400px;
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 6px solid #ccc;
    font-weight: 500;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: var(--color-success);
    color: var(--color-success-dark);
}

.toast-error {
    border-left-color: var(--color-error);
    color: var(--color-error-dark);
}

.toast-info {
    border-left-color: var(--color-info);
}

.toast i {
    font-size: 1.2rem;
}

.toast-content {
    flex: 1;
    font-size: 0.9rem;
    color: var(--color-text-main);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

/* Page Loading Concealment - Disabled for progressive loading with spinners */
html.is-loading body {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Gray Spinner Component */
.image-loading-container {
    position: relative !important;
    min-height: 100px;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #ffffff;
    /* Pure White */
    border-radius: 50%;
    animation: img-spin 0.8s linear infinite;
    z-index: 10;
}

@keyframes img-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Instant appearance - removed hidden states */
.dynamic-img-hidden {
    opacity: 1;
}

.dynamic-img-visible {
    opacity: 1 !important;
}

html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    padding: 0;
    position: relative;
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-text-main);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
}

p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Decorative Elements & Animations --- */

/* Mesh Gradient Background */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(at 0% 0%, rgba(0, 86, 179, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 212, 255, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 86, 179, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 212, 255, 0.08) 0px, transparent 50%);
    background-color: var(--color-bg-light);
}

/* Floating Blobs */
.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.05), rgba(0, 212, 255, 0.05));
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
    animation: floatBlob 20s infinite alternate;
    pointer-events: none;
    /* Prevent blobs from being interactive or affecting layout */
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 100px) scale(1.1);
    }
}

/* Floating Bubbles */
.bubble-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 4;
    /* Above overlay and content */
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(0, 86, 179, 0.05);
    border-radius: 50%;
    animation: rise 15s infinite ease-in;
}

@keyframes rise {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.3;
    }

    80% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-1000px) rotate(360deg);
        opacity: 0;
    }
}

/* Smooth Tilt Hover */
.tilt-card {
    transition: var(--transition-smooth);
}

.tilt-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 30px 60px rgba(0, 86, 179, 0.1);
}

/* Animated Button Pulse */
.btn-pulse {
    position: relative;
    overflow: hidden;
}

.btn-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-pulse:hover::after {
    animation: pulse 1s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(40, 40);
        opacity: 0;
    }
}

/* --- Section Dividers --- */
.section-curve {
    position: absolute;
    width: 100%;
    bottom: -1px;
    left: 0;
    height: 100px;
    fill: var(--color-bg-off-white);
}

.section-padding {
    padding: 50px 0;
    background-color: transparent;
    /* Allow mesh-bg to show through */
}

.bg-off-white {
    background-color: rgba(248, 249, 250, 0.6);
    /* Semi-transparent */
    backdrop-filter: blur(5px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    border: none;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 700;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
}

/* Header & Nav */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.03);
}

.mobile-menu-btn {
    display: none;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    position: relative;
    top: 2px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.05));
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-main);
    opacity: 0.7;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--color-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: linear-gradient(to bottom, #e0f0ff, white);
    transform: skewX(-15deg);
    z-index: 0;
    opacity: 0.6;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 24px;
    color: var(--color-text-main);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--color-text-muted);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.glass-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    padding: 40px;
    border-radius: 16px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
    opacity: 0;
    transition: var(--transition-fast);
}

.glass-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 24px;
    background: rgba(0, 86, 179, 0.05);
    /* very light blue bg for icon */
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.glass-card:hover .card-icon {
    background: var(--color-primary);
    color: #ffffff;
}

/* Service List Compact */
.service-list-item {
    display: flex;
    align-items: flex-start;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--color-border);
    margin-bottom: 20px;
    border-radius: 12px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-soft);
}

.service-list-item:hover {
    transform: translateX(10px);
    border-color: var(--color-primary);
}

.service-number {
    font-family: 'Space Grotesk';
    font-weight: 700;
    font-size: 2rem;
    color: var(--color-primary);
    margin-right: 25px;
    opacity: 0.2;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    padding-left: 60px;
    margin-bottom: 60px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 10px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--color-primary);
    z-index: 2;
}

/* Hero Video Styles */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 60vh;
    /* Reduced from 70vh */
    min-height: 400px;
    padding-top: var(--header-height);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.8), rgba(0, 0, 0, 0.4));
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

/* Glassmorphism for Hero */
.hero-glass-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Visual Timeline */
.timeline-visual {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
}

.timeline-visual-item {
    display: flex;
    gap: 50px;
    margin-bottom: 80px;
    align-items: center;
}

.timeline-visual-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-visual-img {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 5px solid #fff;
    height: 300px;
}

.timeline-visual-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-visual-content {
    flex: 1;
}

.timeline-visual-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.1;
    line-height: 1;
    margin-bottom: -15px;
}

.timeline-visual-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.timeline-visual-content p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Connectors (Desktop only) */
@media (min-width: 992px) {
    .timeline-visual::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 100%;
        background: linear-gradient(to bottom, var(--color-primary) 0%, transparent 100%);
        opacity: 0.1;
        z-index: -1;
    }
}

@media (max-width: 768px) {

    .timeline-visual-item,
    .timeline-visual-item:nth-child(even) {
        flex-direction: column;
        gap: 20px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-video-container {
        height: auto;
        min-height: 100vh;
        padding: 100px 0;
        margin-bottom: -60px;
        /* Cut video bottom */
    }

    .responsive-header {
        font-size: 1.8rem !important;
        white-space: nowrap;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.7);
        /* Deep cinematic dimming for floating text */
    }

    .hero-glass-card h1,
    .hero-glass-card p {
        color: #fff !important;
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9) !important;
    }

    .hero-glass-card {
        padding: 30px;
        margin: 0 15px;
        background: none !important;
        border: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .logo img {
        height: 220px !important;
        /* Extremely big logo but contained */
        top: 0 !important;
    }

    .overlap-section {
        position: relative;
        z-index: 10;
        margin-top: -60px;
        background: #fff;
        border-top-left-radius: 40px;
        border-top-right-radius: 40px;
        box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.05);
    }
}

/* Modern FAQ */
.faq-question {
    background: #fff;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 15px;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-question:hover {
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question h4 {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-main);
    font-size: 1.1rem;
}

.faq-question h4 i {
    color: var(--color-primary);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-question {
    border-color: var(--color-primary);
    background: #f8fbff;
}

.faq-item.active h4 i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 10px 25px 25px;
    opacity: 1;
}

.support-box {
    background: var(--color-primary);
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.2);
}

.support-box h3 {
    color: #fff;
    margin-bottom: 15px;
}

.support-box p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

/* Pricing Cards */
#pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.pricing-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: var(--transition-fast);
    width: 100%;
    max-width: 300px;
    flex: 0 1 300px;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.pricing-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    font-weight: 700;
}

.pricing-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 5px;
}

.pricing-currency {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: normal;
}

.pricing-features {
    list-style: none;
    margin: 15px 0;
    flex-grow: 1;
    text-align: left;
}

.pricing-features li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--color-primary);
    margin-right: 10px;
}

/* Visual Service Cards */
.service-card-visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: var(--transition-base);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-card-visual:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 1;
}

.service-card-visual:hover .service-card-bg {
    transform: scale(1.1);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.service-card-content {
    position: relative;
    z-index: 3;
    color: #fff;
}

.service-card-content h3 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.service-card-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.service-icon-box {
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.2rem;
}

/* Form */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-fast);
    margin-bottom: 20px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #fff;
    padding: 80px 0 30px;
}

footer p {
    color: #8f9bb3;
}

footer h4 {
    color: #fff;
    margin-bottom: 20px;
}

footer a {
    color: #cfd9e6;
}

footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* Mobile Helper Classes */
.mobile-hide {
    display: inherit;
}

@media (max-width: 768px) {
    .mobile-hide {
        display: none !important;
    }

    .text-center-mobile {
        text-align: center !important;
    }
}

/* --- Responsive Design Overhaul --- */

@media (max-width: 1024px) {
    :root {
        --container-width: 95%;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.95rem;
    }

    .section-padding {
        padding: 40px 0;
    }

    /* Header & Mobile Nav */
    /* Header & Mobile Nav - Foolproof Layout */
    header {
        height: 60px;
        /* Further minimized header height */
        width: 100%;
        max-width: 100vw;
        padding: 0;
        margin: 0;
        overflow: visible;
        /* Allow logo to pop out professionally */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        display: block;
        /* Reset potential flex on header itself */
    }

    header .container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        /* Critical for left/right separation */
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        padding: 0 15px !important;
        /* Safe padding from edges */
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    /* Left Element: Logo */
    .logo {
        position: static !important;
        display: flex !important;
        align-items: center;
        height: 100%;
        flex-shrink: 0;
        z-index: 1002;
    }

    .logo img {
        height: 38px !important;
        /* Smaller logo for professional mobile look */
        width: auto !important;
        max-width: 140px;
        object-fit: contain;
        position: static !important;
        top: auto;
        transform: none !important;
        margin: 0 !important;
    }

    .logo-text {
        font-size: 0.85rem !important;
        /* Balanced with the smaller logo */
        letter-spacing: -0.01em;
    }

    .logo {
        gap: 8px !important;
        /* Tighter gap */
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        padding: 0 !important;
        margin: 0 !important;
        position: static !important;
        z-index: 10002;
        /* Higher than nav-links (10001) */
        background: transparent;
        border: none;
        color: var(--color-primary);
        font-size: 1.8rem;
        cursor: pointer;
    }

    /* Sidebar Navigation Panel */
    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0;
        right: 0;
        width: 75% !important;
        max-width: 280px;
        height: 100vh !important;
        overflow-y: auto !important;
        background: #fff !important;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        padding: 40px 20px 200px;
        /* Links go up, massive space at bottom for professional look */
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10001;
        visibility: visible !important;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.25rem;
        /* Larger for fingers */
        font-weight: 600;
        width: 100%;
        text-align: center;
        padding: 12px;
        color: var(--color-text-main);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a.active {
        color: var(--color-primary);
        background: rgba(0, 86, 179, 0.05);
        border-radius: 8px;
    }

    /* Hero Video Section Optimized for Mobile */
    .hero-video-container {
        height: 70vh;
        /* Minimized height for mobile */
        min-height: 450px;
        padding-top: 70px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .hero-glass-card {
        padding: 20px;
        margin: 0 auto;
        width: 95%;
        text-align: center;
        background: none !important;
        border: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .hero-glass-card h1 {
        font-size: 1.8rem !important;
        margin-bottom: 10px !important;
    }

    .hero-glass-card p {
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-glass-card div {
        justify-content: center;
        flex-direction: column;
        gap: 10px !important;
    }

    .hero-glass-card .btn {
        width: 100%;
        padding: 12px 20px;
    }

    /* Grids & Layouts */
    .card-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .glass-card {
        padding: 25px;
    }

    /* ISS Approach Layout (Hero 2) */
    .section-padding .container>div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 40px !important;
    }

    div[style*="flex: 1; min-width: 320px"] {
        min-width: 100% !important;
    }

    /* Timeline Adjustments */
    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 45px;
        margin-bottom: 40px;
    }

    .timeline-dot {
        left: 6px;
    }

    /* Visual Timeline (Process) */
    .timeline-visual-item {
        flex-direction: column !important;
        gap: 15px;
        text-align: center;
        margin-bottom: 50px;
    }

    .timeline-visual-img {
        height: 200px;
        width: 100%;
    }

    .timeline-visual-number {
        font-size: 3rem;
        margin-bottom: -10px;
    }

    .contact-card-mobile {
        padding: 25px !important;
    }

    /* Footer */
    footer {
        padding: 50px 0 20px;
        text-align: center;
    }

    footer .container>div:first-child {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .footer-bottom div {
        justify-content: center !important;
        text-align: center;
        display: none !important;
        /* Hide policy links as requested */
    }

    /* Contact Page Layout Fix */
    #contact-page-container {
        display: flex !important;
        flex-direction: column !important;
    }

    #contact-info-column {
        display: contents !important;
    }

    #contact-info-card {
        order: 1 !important;
    }

    #contact-form-column {
        order: 2 !important;
    }

    #contact-map-card {
        order: 3 !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    /* Logo styling handled in main mobile query */

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}

/* Instant appearance - no scroll delays */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.reveal.active {
    opacity: 1;
    transform: none;
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--color-error);
}

.modal-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--color-text-main);
}

.modal-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.modal-actions .btn {
    flex: 1;
    padding: 12px;
}

/* --- Professional Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay {
    transition-delay: 0.5s;
}

/* --- Mobile Layout Fixes --- */
body,
html {
    overflow-x: hidden;
    width: 100%;
}

.contact-card-mobile {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Pricing Grid Improvements */
.pricing-features li {
    font-size: 0.95rem;
    /* Reduced from default */
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    /* Ensure long words don't overflow */
}

/* Desktop Specific Adjustments */
@media (min-width: 992px) {
    .pricing-price {
        font-size: 2.2rem;
        /* Reduced for cleaner look */
    }

    .pricing-title {
        font-size: 1.3rem;
    }
}

/* Ensure Contact Page Columns fit on mobile */
@media (max-width: 768px) {
    #contact-page-container {
        flex-direction: column;
        padding-right: 0;
        padding-left: 0;
        width: 100%;
    }

    #contact-info-column,
    #contact-form-column {
        min-width: 100%;
        width: 100%;
    }

    .glass-card,
    #contact-form {
        padding: 25px !important;
        /* Reduce padding on mobile */
    }

    /* Fix Contact Info Text Wrapping */
    .dynamic-phone,
    .dynamic-email,
    .dynamic-location {
        word-break: break-all;
        /* Force break if needed (e.g. long emails) */
        word-wrap: break-word;
        white-space: normal;
        font-size: 0.95rem !important;
        /* Smaller font for mobile */
        display: block;
        /* Ensure they take their own block context for wrapping */
        line-height: 1.4;
    }
}