/* --- THEME VARIABLES --- */
:root {
    --bg-nav: rgba(5, 8, 15, 0.95);
    /* High opacity for readability */
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-input: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(59, 130, 246, 0.5);
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --accent-color: #3b82f6;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* --- BACKGROUND & GLOBAL RESET --- */
html,
body {
    overflow-x: hidden;
    /* Critical Fix for Horizontal Scroll */
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #020617;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E"),
        linear-gradient(125deg, transparent 30%, rgba(255, 255, 255, 0.02) 45%, rgba(255, 255, 255, 0.0) 50%),
        radial-gradient(circle at 10% 10%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        linear-gradient(to bottom, #020617, #0f172a);
    background-attachment: fixed;
    background-size: 200px 200px, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    color: var(--text-main);
    font-family: var(--font-body);
    position: relative;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* --- UTILITIES --- */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0px 0px 20px rgba(59, 130, 246, 0.3));
}

.btn-glow {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    color: white;
}

.btn-glow i,
.glass-card a i {
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-glow:hover i,
.glass-card a:hover i {
    transform: translateX(5px);
}

/* --- NAVBAR & MEGA MENU --- */
.navbar {
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: padding 0.3s;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-main) !important;
}

.nav-link {
    color: var(--text-muted) !important;
    font-size: 0.95rem;
    margin-left: 20px;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-main) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* MEGA MENU STYLES */
.dropdown-menu-mega {
    background: rgba(5, 8, 15, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--accent-color);
    border-radius: 0 0 20px 20px;
    padding: 2rem;
    margin-top: 20px !important;
    /* Spacing for desktop */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    left: 0;
    right: 0;
    position: absolute;
    display: none;
}

/* DESKTOP HOVER LOGIC */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu-mega {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    /* Invisible bridge to keep menu open on mouseover */
    .dropdown-menu-mega::before {
        content: "";
        position: absolute;
        top: -20px;
        left: 0;
        width: 100%;
        height: 20px;
        background: transparent;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-col-title {
    color: white;
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-link {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 0;
    transition: all 0.2s;
    font-size: 0.9rem;
    /* FIX FOR LONG TEXT ON MOBILE: */
    white-space: normal;
    word-break: break-word;
}

.mega-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.mega-link i {
    width: 20px;
    font-size: 0.9rem;
    color: var(--accent-color);
    opacity: 0.8;
}

/* --- PAGE HEADER & HERO --- */
.page-header {
    padding: 240px 0 100px;
    /* High top padding for desktop to clear nav */
    position: relative;
    text-align: center;
}

.hero-section {
    padding: 240px 0 120px;
    /* High top padding for desktop */
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 25px;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

/* --- GLASS CARDS --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.icon-box {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.section-separator {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 60px 0;
}

.service-category-title {
    color: white;
    font-family: var(--font-heading);
    margin-bottom: 40px;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
}

/* --- FORMS --- */
.form-control {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 12px;
    padding: 15px 20px;
    backdrop-filter: blur(10px);
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #3b82f6;
    color: var(--text-main);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1;
}

/* --- FOOTER --- */
footer {
    background: rgba(2, 6, 23, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    margin-top: 120px;
    position: relative;
    backdrop-filter: blur(20px);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.footer-heading {
    font-family: var(--font-heading);
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.footer-link:hover {
    color: #3b82f6;
    transform: translateX(5px);
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    color: white;
    border-color: var(--accent-color);
}

/* --- MOBILE RESPONSIVENESS FIXES (CRITICAL) --- */
@media (max-width: 991px) {

    /* Navbar Collapse Styling */
    .navbar-collapse {
        background: #020617;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 20px;
        margin-top: 10px;
        max-height: 80vh;
        /* Prevent navbar from being taller than screen */
        overflow-y: auto;
        /* Scroll if navbar is too tall */
    }

    /* Fix Big Header Issue: Drastically Reduce Padding */
    .hero-section,
    .page-header {
        padding: 110px 0 60px;
        /* Much smaller top padding */
    }

    /* Mobile Mega Menu */
    .dropdown-menu-mega {
        position: static;
        background: rgba(255, 255, 255, 0.03);
        border: none;
        box-shadow: none;
        margin-top: 0 !important;
        padding: 10px;
        /* SCROLL FIX for Mobile Menu Items */
        max-height: none;
        overflow: visible;
    }

    .mega-col-title {
        margin-top: 1.5rem;
        font-size: 1.1rem;
        color: var(--accent-color);
        border-bottom: none;
    }

    /* Footer Fixes */
    footer {
        text-align: center;
        padding-top: 50px;
    }

    footer .col-6 {
        width: 100%;
        /* Full width to prevent squishing */
        margin-bottom: 30px;
    }

    footer .col-lg-4,
    footer .col-lg-3 {
        margin-bottom: 40px;
    }

    footer .social-btn {
        margin: 0 auto;
    }

    .d-flex.gap-2 {
        justify-content: center;
    }

    /* Hero Fixes */
    .hero-section .d-flex {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* =========================================
   ABOUT PAGE & CARD HOVER STYLES
   ========================================= */

/* --- Value Proposition Cards (Hover Swap Logic) --- */
.value-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 350px;
    /* Keeps grid stable when content swaps */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* The Gradient Background (Hidden by default) */
.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

/* Default State: Icon & Hint Visible */
.card-icon-wrapper,
.hover-hint-wrapper {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Default State: Description Hidden */
.card-description-wrapper {
    display: none;
}

/* --- HOVER STATES --- */
.value-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

.value-card:hover::before {
    opacity: 1;
    /* Show gradient on hover */
}

/* On Hover: Hide Icon & Hint */
.value-card:hover .card-icon-wrapper,
.value-card:hover .hover-hint-wrapper {
    display: none;
}

/* On Hover: Show Description */
.value-card:hover .card-description-wrapper {
    display: block;
    animation: slideUpFade 0.4s ease forwards;
}

/* Text Color Adjustments for Gradient Background */
.value-card:hover h5,
.value-card:hover p {
    color: #ffffff !important;
}

/* --- Animations --- */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Abstract Visuals (Hero Section) --- */
.abstract-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-item {
    position: absolute;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: float 6s infinite ease-in-out;
}

/* =========================================
   CONTACT PAGE STYLES
   ========================================= */

/* --- Contact Info Cards --- */
.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
    /* Brand Blue */
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22d3ee;
    /* Cyan */
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon-box {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* =========================================
   CONTACT PAGE STYLES (FINAL 2.0)
   ========================================= */

/* --- 1. Contact Cards --- */
.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateX(10px);
}

.contact-icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22d3ee;
    font-size: 1.5rem;
}

/* --- 2. Form Fixes (Bulletproof) --- */

/* Force Inputs to be Dark */
.form-floating>.form-control,
.form-floating>.form-select {
    background-color: #0f172a !important;
    /* Dark Blue Background */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    /* White Text */
    border-radius: 12px;
    height: 60px;
}

/* Focus State (When clicking) */
.form-floating>.form-control:focus,
.form-floating>.form-select:focus {
    background-color: #1e293b !important;
    border-color: #22d3ee !important;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
    color: #ffffff !important;
}

/* Dropdown Menu List Items */
.form-select option {
    background-color: #0f172a;
    color: white;
}

/* Label Styling - Transparent Background */
.form-floating>label {
    color: rgba(255, 255, 255, 0.6) !important;
    background-color: transparent !important;
    padding: 1rem 0.75rem;
    pointer-events: none;
    /* Allows clicking through the label */
}

/* Active Label Movement */
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
    color: #22d3ee !important;
    opacity: 1;
    background-color: transparent !important;
    /* Ensures no white box */
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Force Placeholder Invisible */
.form-floating>.form-control::placeholder {
    color: transparent !important;
    opacity: 0;
}

/* Textarea Height */
.form-floating>textarea.form-control {
    height: 150px !important;
}

/* --- 3. Map Visual --- */
.map-visual {
    width: 100%;
    height: 300px;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.map-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 10px #fff;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
    }

    100% {
        box-shadow: 0 0 0 10px rgba(34, 211, 238, 0);
    }
}

/* =========================================
   CUSTOM FORM SUCCESS MODAL
   ========================================= */

.oxy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.oxy-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.oxy-modal-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.15);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.oxy-modal-overlay.active .oxy-modal-card {
    transform: scale(1);
}

.oxy-modal-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 2rem;
    color: white;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.oxy-modal-title {
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.oxy-modal-text {
    color: #94a3b8;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.oxy-modal-btn {
    background: transparent;
    border: 1px solid #22d3ee;
    color: #22d3ee;
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.oxy-modal-btn:hover {
    background: #22d3ee;
    color: #0f172a;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
}