/* =========================================
   1. VARIABLES GLOBALES (TEMA)
   ========================================= */
:root {
    --bg-color: #050a14;
    /* Fondo Principal */
    --primary-color: #006EB7;
    /* Azul Corporativo */
    /* BITCOM Blue (Official) */
    --secondary-color: #0091ea;
    /* Azul Secundario */
    /* Lighter Blue */
    --accent-color: #ff9900;
    /* Naranja Contraste */
    /* Contrast Orange */
    --text-color: #e0e6ed;
    /* Color Texto */
    --glass-bg: rgba(0, 110, 183, 0.05);
    /* Fondo Cristal */
    --glass-border: rgba(0, 110, 183, 0.2);
    --card-hover: rgba(0, 110, 183, 0.15);
}

/* =========================================
   2. RESETEO BASE (Normalización)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================
   3. ESTILOS GENERALES (Body)
   ========================================= */
body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================
   4. FONDO ANIMADO (Canvas)
   ========================================= */
/* Canvas Background */
#neuro-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
    /* Slight fade so content is readable */
}

/* Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    /* Match body bg */
    z-index: 2000;
    /* Above navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 2s ease-out;
    /* Slower fade out (Atenuación lenta) */
}

#intro-logo {
    width: 600px;
    /* Much Bigger start */
    max-width: 80%;
    opacity: 0;
    transform: scale(0.5);
    animation: fadeInZoom 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    /* Slower entrance */

    /*
       TRICK: Invert colors to turn Black text to White
       Then Hue Rotate 180deg to flip colored parts back to original (roughly)
       Contrast/Brightness bump to pop
    */
    filter: invert(1) hue-rotate(180deg) contrast(1.2);
}

@keyframes fadeInZoom {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-transition {
    /* Slower movement to corner */
    transition: all 1.5s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Navbar Logo */
.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0;
    /* Hidden initially, shown after intro */
    transition: opacity 1s;
    /* Apply same filter to the final nav logo */
    filter: invert(1) hue-rotate(180deg) contrast(1.2);
}

/* =========================================
   5. TIPOGRAFÍA
   ========================================= */
/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* =========================================
   6. BARRA DE NAVEGACIÓN
   ========================================= */
/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(5, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-link {
    display: flex;
    align-items: center;
}



.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::before {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.hero-content {
    z-index: 1;
}

.glitch {
    font-size: 4rem;
    font-weight: 900;
    position: relative;
    color: white;
}

.sub-glitch {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #a0aab5;
}

.cta-button {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    display: inline-block;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transition: left 0.3s;
}

.cta-button:hover {
    color: var(--bg-color);
}

.cta-button:hover::before {
    left: 0;
}

/* Sections */
.section-padding {
    padding: 6rem 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Glass Cards (About & Services) */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.15);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.icon-large {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Shared Card Styles */
.service-card,
.pricing-card {
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.1);
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.service-card:hover,
.pricing-card:hover {
    background: rgba(10, 25, 47, 0.9);
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s;
    transform-origin: bottom;
}

.service-card:hover::before {
    transform: scaleY(1);
}

.icon-box {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.service-card h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #bdc6d1;
}

/* Contact Form */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: white;
    background: transparent;
    border: none;
    border-bottom: 1px solid #555;
    outline: none;
    font-family: inherit;
    transition: border-color 0.3s;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #999;
    pointer-events: none;
    transition: 0.3s;
}

.input-group input:focus,
.input-group input:valid,
.input-group textarea:focus,
.input-group textarea:valid {
    border-bottom-color: var(--primary-color);
}

.input-group input:focus~label,
.input-group input:valid~label,
.input-group textarea:focus~label,
.input-group textarea:valid~label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: #02040a;
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid #111;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.legal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s;
    background: transparent;
    /* Transparent default */
}

.legal-link:hover {
    background: rgba(0, 243, 255, 0.1);
    /* Very subtle tint */
    color: #fff;
    /* White text for max readability */
    border-color: #fff;
    /* White border */
    box-shadow: none;
    /* No glare */
}



/* Partners Marquee */
/* Partners Marquee */
.partners-section {
    padding: 3rem 0;
    /* Transparent background to blend with site theme */
    background: transparent;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.partners-title {
    text-align: center;
    color: #ffffff;
    /* White for max contrast on dark top */
    font-size: 1.3rem;
    /* Balanced size */
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    position: relative;
    z-index: 11;
    font-family: 'Orbitron', sans-serif;
    /* Use the tech font */
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    /* Cyan glow */
}

.marquee {
    position: relative;
    width: 100vw;
    max-width: 100%;
    height: 160px;
    /* Increased height for 120px logos */
    overflow-x: hidden;
}

.track {
    position: absolute;
    white-space: nowrap;
    will-change: transform;
    animation: marquee 25s linear infinite;
    /* Slower smooth scroll */
    display: flex;
    gap: 4rem;
    align-items: center;
}

.partner-logo {
    height: 120px;
    width: 200px;
    /* Box constraint to balance all logos */
    object-fit: contain;
    background: transparent;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s;
    /* White Glow Effect */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)) brightness(1.2);
}

/* ==========================================================
   HOMOGENEIZACIÓN DE TAMAÑOS DE LOGOS
   Ajustes específicos para compensar los márgenes internos 
   de las imágenes PNG y sus proporciones extremas.
   ========================================================== */

/* Logos medianamente grandes (Cisco) */
.partner-logo[src*="logo8.png"] {
    padding: 25px; /* Reduce the visible image */
}

/* Logos DEMASIADO grandes (Lenovo, AXIS, F5) */
.partner-logo[src*="logo9.png"],
.partner-logo[src*="logo10.png"],
.partner-logo[src*="logo11.png"] {
    padding: 22px; /* Ajuste intermedio: ni 35px (muy pequeño) ni 0px (muy grande) */
}

/* Logos demasiado pequeños (Fortinet, Panduit, Extreme) */
/* Aplicamos un scale inicial en su estado de reposo para que se vean más grandes */
.partner-logo[src*="logo1.png"],
.partner-logo[src*="logo6.png"],
.partner-logo[src*="logo12.png"] {
    transform: scale(1.4); 
}

/* IMPORTANTE: Compensación del efecto hover para los logos que escalamos por defecto */
.partner-logo:hover {
    transform: scale(1.3);
    /* Significant enlargement */
    z-index: 12;
    cursor: pointer;
    /* Stronger White Glow on Hover */
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 1)) brightness(1.4);
}

/* Sobrescribimos el hover para los logos pequeños (para que crezcan a partir de su nuevo tamaño base) */
.partner-logo[src*="logo1.png"]:hover,
.partner-logo[src*="logo6.png"]:hover,
.partner-logo[src*="logo12.png"]:hover {
    transform: scale(1.7); /* 1.4 base * ~1.2 scale up */
}

/* Logos inside Service/Partner Cards */
.partner-logo-container {
    height: 200px;
    /* Fixed height to match tallest logo (Fortinet) */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.partner-card-logo {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    /* Ensure it fits in container */
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)) brightness(1.2);
    /* White Destello */
    transition: transform 0.3s, filter 0.3s;
}

.service-card:hover .partner-card-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 1)) brightness(1.4);
    /* Super White Glow on Hover */
}

/* Mix Blend Mode to hide white backgrounds on light bg */
.multiply-blend {
    mix-blend-mode: multiply;
}



@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Animations / Scroll Reveal */
.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-button i {
    color: white;
    font-size: 35px;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

.whatsapp-chat-window {
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 20px;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.whatsapp-header {
    background-color: #075e54;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex-shrink: 0; /* Previene que el flexbox lo deforme */
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
}

.wa-info h4 {
    margin: 0;
    font-size: 0.85rem; /* Letra un poco más pequeña para que encaje bien */
    line-height: 1.2;
}

.wa-info p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

.whatsapp-body {
    background-color: #e5ddd5;
    padding: 20px;
    height: 280px; /* Aumentado para evitar el scrolling */
    overflow-y: auto;
    background-image: url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png");
    /* WA Standard BG Pattern */
}

.wa-message {
    background: white;
    padding: 10px;
    border-radius: 0 10px 10px 10px;
    width: fit-content;
    max-width: 80%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    color: #333;
}

.wa-time {
    display: block;
    font-size: 0.7rem;
    color: #999;
    text-align: right;
    margin-top: 5px;
}

.whatsapp-input-area {
    padding: 10px;
    background: #f0f0f0;
    display: flex;
    gap: 10px;
}

.whatsapp-input-area input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 20px;
    outline: none;
}

.wa-send-btn {
    background: #075e54;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lead Form Styles */
.wa-welcome-text {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 15px;
    text-align: center;
}

.wa-field {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.wa-start-btn {
    width: 100%;
    padding: 10px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.wa-start-btn:hover {
    background: #128c7e;
}

/* Chat Message Styles */
.wa-message-out {
    background: #dcf8c6;
    /* WhatsApp outgoing green */
    align-self: flex-end;
    /* Right align (requires flex column on parent) */
    margin-left: auto;
    /* Fallback */
    border-radius: 10px 0 10px 10px;
}

.wa-message-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Impact/Stats Section */
.stats-section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, transparent, rgba(10, 25, 47, 0.8));
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    min-width: 250px;
    flex: 1;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
    border-color: var(--primary-color);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: inline-block;
    /* Changed to inline for unit */
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.stat-unit {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.stat-label {
    font-size: 1.2rem;
    color: #fff;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-desc {
    font-size: 0.9rem;
    color: #aaa;
}

/* Pricing/Tiers Section */
.pricing-section {
    padding: 4rem 2rem;
    background: transparent;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Removed duplicate .pricing-card styles in favor of shared definition above */

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s;
    transform-origin: bottom;
}

.pricing-card:hover::before {
    transform: scaleY(1);
}

.pricing-card.highlight-card {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
    background: rgba(10, 25, 47, 0.9);
}

.tier-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.tier-desc {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tier-features {
    list-style: none;
    text-align: left;
    padding: 0;
}

.tier-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #eee;
    font-size: 0.9rem;
}

.tier-features li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .nav-links {
        display: flex;
        /* Re-enable flex for formatting */
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        border-left: 1px solid var(--glass-border);
        padding-top: 2rem;
        z-index: 999;
    }

    .nav-links li {
        opacity: 0;
    }

    .hamburger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .glitch {
        font-size: 2.5rem;
    }

    .sub-glitch {
        font-size: 1.5rem;
    }

    .navbar {
        padding: 1rem;
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Centered Grid (Flexbox) for balanced sections like Cyber 360 */
.centered-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.centered-grid .service-card {
    flex: 1 1 280px;
    /* Base width 280px, allow grow and shrink */
    max-width: 350px;
    /* Match generic card max width */
}

/* Modal Styles */
/* Modal Styles */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    /* Darker backdrop */
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
}

.modal-content-box {
    background: transparent;
    /* Transparent container */
    border: none;
    width: 95%;
    /* Almost full screen */
    max-width: none;
    height: 95%;
    /* Almost full screen */
    position: relative;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-content-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #00f3ff;
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 0 15px #00f3ff;
    z-index: 10000;
    /* Ensure on top */
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-body {
    flex: 1;
    padding: 0;
    /* No padding */
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
    /* The "Sheet" */
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.modal-content-box {
    background: #0a192f;
    border: 1px solid #00f3ff;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    height: 80%;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-content-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    background: #00f3ff;
    color: #0a192f;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 0 10px #00f3ff;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-body {
    flex: 1;
    padding: 20px;
    width: 100%;
    height: 100%;
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
    border-radius: 5px;
}