/* -------------------------------------------------------------
   IDALIA LANDING PAGE - BRAND SYSTEM & STYLES
   ------------------------------------------------------------- */

/* Reset & Base Rules */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

:root {
    --bg-dark: #000209;
    --bg-card: rgba(6, 11, 25, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Global Brand Gradients */
    --gradient-gold: linear-gradient(135deg, #ff7300, #ff007f);
    
    /* Font */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: linear-gradient(to right, #ff00a2, #ff8400);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Typography & Accent Elements */
.highlight-text {
    background: linear-gradient(90deg, #f59e0b, #fde047);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none !important;
    filter: none !important;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #0a192f, #00bcd4) !important;
    color: #ffffff !important;
    color: #030712;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    box-shadow: 0 4px 25px rgba(245, 158, 11, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 35px rgba(245, 158, 11, 0.6);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #000411;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    padding: 1.1rem 2.4rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: #03071c;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    transition: var(--transition-smooth);
}

.btn-primary:hover .btn-icon {
    transform: translateX(3px);
}

.btn-secondary:hover .btn-icon {
    transform: translateX(4px);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #0082b4, #5a238c) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    height: 48px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.idalia-logo-svg {
    height: 100%;
    width: auto;
    display: block;
}

.logo-letters {
    fill: #ffffff;
    transition: fill 0.3s ease;
}

.logo-o-ring {
    fill: #00c6ff; /* Clean cyan matches highlights */
    transition: fill 0.3s ease;
}

.logo-star {
    fill: #ffffff;
}

.logo-star-group {
    /* Uses exact centroid of traced star contour for smooth rotation */
    animation: spin-logo-star 12s linear infinite;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

.logo:hover .logo-letters {
    fill: #00c6ff;
}

.logo:hover .logo-o-ring {
    fill: #0072ff;
}

@keyframes spin-logo-star {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: #ffffff;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff7300;
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: #ff7300;
}

.nav-link:hover::after {
    width: 100%;
}


/* Hero Section */
.hero-section {
    background: transparent;
    position: relative;
    padding-top: 105px;
    padding-bottom: 40px;
    overflow: hidden;
}

/* Background overlay lines and dots like flyer */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: repeating-linear-gradient(-45deg, rgba(0, 198, 255, 0.02) 0px, rgba(0, 198, 255, 0.02) 2px, transparent 2px, transparent 24px);
    z-index: 1;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 25%;
    right: 6%;
    width: 240px;
    height: 240px;
    background-image: radial-gradient(rgba(245, 158, 11, 0.18) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(1.05);
}

.hero-img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    z-index: 2;
    
}

.hero-image-glow { display: none; }

@keyframes float-mascot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-content {
    transform: translateX(-20%); /* Move left */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.3rem;
    z-index: 5;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #0a192f;
    max-width: 450px;
    font-weight: 400;
}


/* Services Section */
.services-section {
    background: linear-gradient(to right, #05162a, #008b8b) !important;
    padding: 40px 0 20px 0;
    position: relative;
    
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff 40%, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* Services Grid (Desktop - 5 Columns x 2 Rows) */
.services-grid-desktop {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin: 0 0 3rem 0;
}

/* Service Nodes (Cards with Colored Borders) */
.service-node {
    position: relative;
    width: 100%;
    min-height: 280px;
    padding: 2rem 1.25rem 1.5rem 1.25rem;
    border-radius: 20px;
    background: linear-gradient(to bottom, rgba(5, 10, 24, 0.85) 60%, rgba(var(--color-theme-rgb), 0.1) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 2px solid var(--color-theme);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    z-index: 5;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--color-theme-rgb), 0.1);
}

/* Circular Badges like flyer */
.node-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-theme);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
}

.node-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: var(--transition-smooth);
}

.node-icon svg {
    width: 36px;
    height: 36px;
    color: var(--color-theme);
}

.node-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05rem;
    color: #fff;
    line-height: 1.25;
}

.service-node .node-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-self: stretch;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1rem;
    margin-top: auto;
}

.service-node .node-list li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.3;
}

.service-node .node-list li::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-theme);
    box-shadow: 0 0 6px var(--color-theme);
    flex-shrink: 0;
}

/* Service Node Hover & Active States */
.service-node:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px var(--color-theme);
    background: linear-gradient(to bottom, rgba(5, 10, 24, 0.95) 50%, rgba(var(--color-theme-rgb), 0.2) 100%);
    z-index: 8;
}

.service-node:hover .node-number {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--color-theme);
    border-color: #fff;
}

.service-node:hover .node-icon {
    background: var(--color-theme);
    border-color: transparent;
    box-shadow: 0 0 12px var(--color-theme);
}

.service-node:hover .node-icon svg {
    color: #fff;
}

.service-node.active {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px var(--color-theme);
    background: linear-gradient(to bottom, rgba(5, 10, 24, 0.95) 50%, rgba(var(--color-theme-rgb), 0.2) 100%);
    z-index: 9;
}

.service-node.active .node-number {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--color-theme);
    border-color: #fff;
}

.service-node.active .node-icon {
    background: var(--color-theme);
    border-color: transparent;
    box-shadow: 0 0 12px var(--color-theme);
}

.service-node.active .node-icon svg {
    color: #fff;
}

/* Mobile Services View: Carousel */
.mobile-services-carousel {
    display: none;
}

.carousel-dots {
    display: none;
}


/* Why Choose Us Section */
.benefits-section {
    padding: 25px 0 30px 0;
    background: transparent;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
}

.benefits-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 25px;
}

.benefits-logo-container {
    display: inline-block;
    vertical-align: middle;
    height: 1.15em;
    margin-left: 0.35em;
    margin-right: 0.1em;
}

.benefits-logo-container svg {
    height: 100%;
    width: auto;
    display: inline-block;
    vertical-align: top;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.benefit-card {
    position: relative;
    background: rgba(60, 10, 20, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--border-glass);
    border-top: 3px solid var(--benefit-color);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.25rem;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.benefit-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--benefit-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    box-shadow: inset 0 0 10px rgba(255,255,255,0.01);
}

.benefit-icon-wrapper svg {
    width: 28px;
    height: 28px;
}

.benefit-name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glass);
    border-top-color: var(--benefit-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.03);
}

.benefit-card:hover .benefit-icon-wrapper {
    background: var(--benefit-color);
    color: #030712;
    transform: rotateY(180deg);
    box-shadow: 0 0 15px var(--benefit-color);
}


/* Call to Action Section with Lime Green to Yellow Gradient like flyer */
.cta-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta-container {
    background: linear-gradient(135deg, #059669 0%, #10b981 30%, #eab308 100%);
    backdrop-filter: none;
    border: none;
    border-radius: 36px;
    padding: 4.5rem;
    display: grid;
    grid-template-columns: 0.85fr 1.3fr 0.85fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.cta-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-mascot-img {
    max-width: 105%;
    height: auto;
    filter: drop-shadow(0 20px 35px rgba(0,0,0,0.6));
    animation: float-mascot 5s infinite ease-in-out;
}

.cta-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: #022c22; /* Dark teal-green text for contrast */
}

.cta-center h2 {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.cta-center p {
    font-size: 1.25rem;
    font-weight: 500;
    opacity: 0.9;
    max-width: 500px;
}

.cta-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-mockup-img {
    max-width: 105%;
    height: auto;
    filter: drop-shadow(0 20px 35px rgba(0,0,0,0.5));
    transition: var(--transition-smooth);
}

.cta-mockup-img:hover {
    transform: scale(1.05) rotate(2deg);
}


/* Footer */


.footer-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5rem;
    margin-bottom: 50px;
}



.footer-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.footer-icon svg {
    width: 22px;
    height: 22px;
}

.footer-contact-item:hover {
    color: #fff;
}

.footer-contact-item:hover .footer-icon {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: #030712;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.55);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* -------------------------------------------------------------
   RESPONSIVE DESIGN (Media Queries)
   ------------------------------------------------------------- */

/* Large Desktop Adjustments */
@media (max-width: 1400px) {
    .wheel-outer-wrapper {
        min-height: 900px;
    }
    .wheel-container {
        width: 800px;
        height: 800px;
    }
    .service-node {
        width: 210px;
        padding: 1.1rem;
    }
    .wheel-center {
        width: 270px;
        height: 270px;
    }
    .wheel-center-img-wrapper {
        width: 150px;
        height: 150px;
    }
    .wheel-center-text h3 {
        font-size: 1.5rem;
    }
}

/* Medium Desktop / Tablet Landscape */
@media (max-width: 1150px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content {
    transform: translateX(-20%); /* Move left */
        align-items: center;
    }
    
    .hero-image-wrapper {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.1rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cta-container {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        gap: 3rem;
    }
    
    .cta-left {
        max-width: 250px;
        margin: 0 auto;
        order: -2;
    }
    
    .cta-right {
        max-width: 300px;
        margin: 0 auto;
        order: -1;
    }
}

/* Switch from Circular Wheel to Swipeable List on Tablets & Phones */
@media (max-width: 1024px) {
    .services-grid-desktop {
        display: none;
    }
    
    /* Reveal Mobile Services Grid/List */
    .mobile-services-carousel {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 30px 0;
        width: 100%;
    }
    
    @media (min-width: 640px) {
        .mobile-services-carousel {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    .mobile-service-card {
        background: linear-gradient(to bottom, rgba(5, 10, 24, 0.85) 60%, rgba(var(--color-theme-rgb), 0.08) 100%);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        border: 2px solid var(--color-theme);
        border-radius: 24px;
        padding: 2.5rem 2rem;
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--color-theme-rgb), 0.08);
        transition: var(--transition-smooth);
        overflow: hidden;
    }
    
    .card-glow {
        position: absolute;
        top: -100px;
        left: -100px;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, var(--color-theme) 0%, rgba(3,7,18,0) 70%);
        opacity: 0.15;
        pointer-events: none;
        transition: var(--transition-smooth);
    }
    
    .mobile-service-card:hover .card-glow {
        opacity: 0.3;
        transform: scale(1.2);
    }
    
    .card-header-main {
        display: flex;
        align-items: center;
        gap: 1.25rem;
        position: relative;
    }
    
    .card-number {
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--color-theme);
    }
    
    .card-icon-wrapper {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        background: var(--color-theme);
        border-color: transparent;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 0 12px var(--color-theme);
        transition: var(--transition-smooth);
    }
    
    .card-icon-wrapper svg {
        width: 24px;
        height: 24px;
    }
    
    .mobile-service-card h3 {
        font-size: 1.35rem;
        font-weight: 900;
        letter-spacing: 0.02em;
        color: #fff;
    }
    
    .card-list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        border-top: 1px solid rgba(255,255,255,0.06);
        padding-top: 1.25rem;
    }
    
    .card-list li {
        font-size: 1rem;
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }
    
    .card-list li::before {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--color-theme);
        box-shadow: 0 0 8px var(--color-theme);
    }
    
    .mobile-service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 20px var(--color-theme);
    }
    
    /* Carousel Indicator Dots - Hidden in traditional grid layout */
    .carousel-dots {
        display: none;
    }
    
    .dot {
        display: none;
    }
}

/* Tablet Portrait & Mobile */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .main-header {
        height: 70px;
    }
    
    .header-container {
        height: 70px;
    }
    
    .logo {
        height: 40px;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .hero-section {
        padding-top: 95px;
        padding-bottom: 30px;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2.4rem;
        margin-bottom: 0.5rem;
    }

    .services-section {
    background: linear-gradient(to right, #05162a, #008b8b) !important;
        padding: 20px 0 15px 0;
    }

    .benefits-section {
        padding: 20px 0 60px 0;
    }

    .benefits-title {
        font-size: 2.1rem;
        margin-bottom: 15px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .footer-container {
        gap: 2rem;
        flex-direction: column;
        align-items: center;
    }
    
    
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .logo {
        height: 35px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-center h2 {
        font-size: 1.8rem;
    }
}

/* -------------------------------------------------------------
   MODAL WINDOW STYLING
   ------------------------------------------------------------- */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Card */
.modal-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
    color: #1e293b;
    width: 90%;
    max-width: 950px;
    height: 90vh;
    max-height: 680px;
    border-radius: 28px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    transform: translateY(40px) scale(0.95);
    transition: var(--transition-smooth);
}

@keyframes floating-wiggle {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    25% { transform: translateY(-4px) scale(1) rotate(0.8deg); }
    50% { transform: translateY(0) scale(1) rotate(0deg); }
    75% { transform: translateY(4px) scale(1) rotate(-0.8deg); }
}

.modal-overlay.open .modal-card {
    transform: translateY(0) scale(1);
    animation: floating-wiggle 4.5s ease-in-out infinite 0.4s;
}

/* Close button */
.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    opacity: 1;
    transform: scale(1.15) rotate(90deg);
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

/* Header */
.modal-header {
    background: linear-gradient(135deg, var(--header-theme-color, #3b226b) 0%, rgba(12, 6, 30, 0.95) 50%, var(--header-theme-color, #3b226b) 100%);
    background-size: 200% 200%;
    padding: 2rem 2.5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    position: relative;
    overflow: hidden;
    animation: glow-shift-bg 10s ease infinite alternate;
}

.modal-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
    animation: pulse-header-glow 6s ease-in-out infinite alternate;
}

.modal-header-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

.modal-header-bg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 12px);
    animation: flow-header-lines 12s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes glow-shift-bg {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 100%; }
}

@keyframes pulse-header-glow {
    0% {
        opacity: 0.4;
        transform: scale(0.95);
        filter: saturate(1);
    }
    100% {
        opacity: 0.9;
        transform: scale(1.15);
        filter: saturate(1.3);
    }
}

@keyframes flow-header-lines {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.modal-header-icon-circle,
.modal-header-text {
    position: relative;
    z-index: 3;
}

.modal-header-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #081124;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    flex-shrink: 0;
    color: var(--header-theme-color, #3b226b);
}

.modal-header-icon-circle svg {
    width: 32px;
    height: 32px;
}

.modal-header-text h3 {
    font-size: 1.7rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    color: #ffffff;
}

.modal-header-text p {
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Body Split */
.modal-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2.2rem;
    padding: 2rem 2.5rem;
    overflow: hidden;
}

/* Left Column: Prices Table */
.modal-col-left {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    min-height: 0;
}

.modal-table-container {
    flex: 1;
    overflow-y: scroll;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.prices-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.prices-table th {
    background: #f1f5f9;
    padding: 0.9rem 1.25rem;
    font-weight: 800;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    
    z-index: 5;
}

.prices-table td {
    padding: 0.8rem 1.25rem;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}

.prices-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.prices-table tbody tr:hover td {
    background: #f1f5f9;
}

.prices-table tbody tr {
    opacity: 0;
    animation: fadeInRow 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInRow {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-footnote {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 1rem;
}

/* Right Column: Image and Box */
.modal-col-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    justify-content: center;
    min-height: 0;
}

.modal-image-container {
    width: 100%;
    min-height: 300px;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    background: #f1f5f9;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}



@keyframes kenburns-zoom {
    0% {
        transform: scale(1) translate(0, 0);
        filter: saturate(1) contrast(1);
    }
    50% {
        transform: scale(1.15) translate(-1%, -1%);
        filter: saturate(1.18) contrast(1.05);
    }
    100% {
        transform: scale(1) translate(0, 0);
        filter: saturate(1) contrast(1);
    }
}

.modal-info-box {
    background: rgba(59, 34, 107, 0.08); /* Dynamic fallback */
    border-radius: 20px;
    padding: 1.4rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border: 1px solid rgba(59, 34, 107, 0.15);
    flex-grow: 1;
}

.info-box-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    background: #081124;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.info-box-icon svg {
    width: 22px;
    height: 22px;
}

.info-box-content h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.info-box-content p {
    font-size: 0.85rem;
    opacity: 0.95;
    line-height: 1.45;
    font-weight: 500;
}

/* Footer & CTA Button */
.modal-footer {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    background: #081124;
}

.modal-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #3b226b; /* Dynamic fallback */
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    padding: 1.1rem 2.6rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

.modal-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.modal-cta-btn svg {
    width: 20px;
    height: 20px;
}

/* Mobile responsive modal adjustments */
@media (max-width: 768px) {
    .modal-card {
        height: 95vh;
        max-height: none;
    }
    
    .modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .modal-close {
        top: 16px;
        right: 16px;
    }
    
    .modal-header-text h3 {
        font-size: 1.35rem;
    }
    
    .modal-body {
        display: flex;
        flex-direction: column;
        padding: 1.25rem;
        gap: 1.5rem;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-col-left {
        width: 100%;
        height: auto;
        overflow: visible;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
    }
    
    .modal-table-container {
        flex: none;
        width: 100%;
        height: auto;
        overflow: visible;
    }
    
    .modal-col-right {
        width: 100%;
        height: auto;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .modal-image-container {
    width: 100%;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
}
    
    .modal-footer {
        padding: 1rem 1.25rem;
    }
    
    .modal-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* -------------------------------------------------------------
   MODAL NAVIGATION BUTTONS & TRANSITIONS
   ------------------------------------------------------------- */
/* Animations for slide transition */
.modal-transitioning-out-left {
    animation: slideOutLeft 0.22s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-transitioning-out-right {
    animation: slideOutRight 0.22s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-transitioning-in-left {
    animation: slideInLeft 0.22s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-transitioning-in-right {
    animation: slideInRight 0.22s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideOutLeft {
    0% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-30px);
        filter: blur(2px);
    }
}

@keyframes slideOutRight {
    0% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translateX(30px);
        filter: blur(2px);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(30px);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(-30px);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

/* Responsive adjustments for navigation buttons */
@media (max-width: 1024px) {
                }



/* Contact Layout Card */
.contact-section {
    padding: 20px 0 0 0;
    background: linear-gradient(to right, #05162a, #008b8b) !important;
}

.contact-layout-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 20px;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 0 auto;
}

/* Sidebar */


.sidebar-top {
    background: #081124;
    padding: 30px;
    text-align: center;
}

.contact-logo-svg {
    width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sidebar-logo-text {
    color: #ff007f;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 5px;
}

.sidebar-bottom {
    background: linear-gradient(135deg, #ff007f, #b80065);
    flex: 1;
    padding: 30px 25px 0;
    position: relative;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.sidebar-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 20px;
    opacity: 0.95;
}

.sidebar-mascot {
    display: block;
    width: 120%;
    margin-left: -10%;
    margin-top: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

/* Main content */
.contact-main {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.contact-main-header {
    padding: 30px 40px 15px;
}

.contact-icon-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-pin-icon-wrap {
    background: #ffb700;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-pin-icon {
    width: 22px;
    height: 22px;
    color: #fff;
}

.contact-main-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

.contact-main-subtitle {
    color: #94a3b8;
    font-size: 14px;
    margin: 5px 0 0 0;
}

.contact-map {
    width: 100%;
    height: 200px;
    padding: 0 40px;
    margin-bottom: 20px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}


.contact-info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 40px 40px;
}
.contact-info-grid > * {
    flex: 1 1 220px;
    max-width: 350px;
}








@keyframes floating-mascot {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-12px) rotate(1.5deg); }
}

@media (max-width: 900px) {
    
    
}


.info-block {
    color: #ffffff;
}

.info-block-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #ffb700;
}

.info-block-header svg {
    width: 18px;
    height: 18px;
}

.info-block-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.info-block p {
    margin: 0 0 0 26px;
    font-size: 16px;
    line-height: 1.5;
    color: #cbd5e1;
}

.schedule-row {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    margin-left: 26px;
    font-size: 15px;
    color: #cbd5e1;
    margin-bottom: 4px;
}

.schedule-row .closed {
    color: #ffb700;
    font-weight: 600;
}

.contact-cta-box {
    margin-top: 5px;
    background: var(--gradient-gold);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #030712;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.contact-cta-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.contact-cta-box svg {
    width: 24px;
    height: 24px;
    color: #030712;
    flex-shrink: 0;
}

.cta-box-text h5 {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    color: #030712;
}

.cta-box-text p {
    margin: 0;
    font-size: 12px;
    color: #1e293b;
    line-height: 1.2;
}

/* Footer Banner */


.banner-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.contact-footer-banner h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.contact-footer-banner p {
    margin: 10px 0 0 0;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.95;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-layout-card {
        flex-direction: column;
    }
    
    .contact-sidebar, .contact-main {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .contact-main {
        padding-bottom: 0;
    }
    
    .sidebar-mascot {
        max-width: 300px;
        margin: 0 auto;
    }
    
    
.contact-info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 40px 40px;
}
.contact-info-grid > * {
    flex: 1 1 220px;
    max-width: 350px;
}

    
    
}

.contact-sidebar .idalia-logo-svg {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.contact-footer-banner-wide {
    width: 100%;
    background: transparent;
    padding: 15px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0;
    margin-top: 5px;
}

.banner-left {
    flex: 0 0 35%;
    display: flex;
    align-items: center;
}

.banner-left .idalia-logo-svg {
    width: 100%;
    max-width: 150px;
    height: auto;
    display: block;
}

.banner-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #fff;
    text-align: center;
}

.banner-right .banner-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.banner-right h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.banner-right p {
    margin: 5px 0 0 0;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.95;
}

@media (max-width: 900px) {
    .contact-footer-banner-wide {
        flex-direction: column;
        padding: 15px 20px;
        text-align: center;
        gap: 15px;
    }
    
    .banner-left, .banner-right {
        flex: 0 0 100%;
        width: 100%;
        justify-content: center;
    }
    
    .banner-right {
        text-align: center;
        flex-direction: column;
    }
}

/* Contact Links */
.contact-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #ff7300;
}


/* Preloader */
#site-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0b0208;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#site-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-pie {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(var(--gradient-gold-end, #ff007f) var(--pie-percent, 0%), transparent 0);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    transition: background 0.2s linear;
}

.loader-pie::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    background-color: #0b0208;
    border-radius: 50%;
    z-index: 1;
}

.loader-pie img {
    width: 90px;
    height: 90px;
    z-index: 2;
    border-radius: 50%;
}

.loader-text {
    color: #ff007f;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
}


/* Mobile Scroll Indicator */
.mobile-scroll-indicator {
    display: none;
}
@media (max-width: 768px) {
    .mobile-scroll-indicator {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40px;
        background: linear-gradient(to bottom, transparent, rgba(3, 7, 18, 0.95) 90%);
        pointer-events: none;
        z-index: 10;
        color: #ff7300;
        animation: bounce-scroll-arrow 1.5s infinite;
        transition: opacity 0.3s;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        height: 50px;
        background: linear-gradient(to bottom, transparent, rgba(5, 22, 42, 0.98) 80%);
    }
}
@keyframes bounce-scroll-arrow {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(6px); opacity: 1; }
}


/* Image Protection */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}

.idalia-main-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.header-logo:hover .idalia-main-logo {
    transform: scale(1.05);
}
.benefits-logo-container .idalia-main-logo {
    height: 60px;
    vertical-align: middle;
}


/* --- IDALIA CSS LOGO --- */
.idalia-css-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 5px 0;
}

.logo-main {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -1.5px;
    background: linear-gradient(90deg, #ffffff 0%, #e0e7ff 40%, #ffffff 50%, #e0e7ff 60%, #ffffff 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine-logo 3s linear infinite;
    text-shadow: 0px 4px 15px rgba(255,255,255,0.2);
}

.logo-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #e2e8f0;
    margin-top: 2px;
}

@keyframes shine-logo {
    to {
        background-position: 200% center;
    }
}

/* Make sure header background is overridden */


.main-header.scrolled {
    background: linear-gradient(to right, rgba(0, 130, 180, 0.95), rgba(90, 35, 140, 0.95)) !important;
}

/* Mobile reset for hero-content shift */
@media (max-width: 1024px) {
    .hero-content { transform: translateX(0) !important; }
}


/* Hires Logo overrides */
.idalia-main-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    animation: logo-pulse-glow 3s ease-in-out infinite;
    transform-origin: center left;
}
.benefits-logo-container .idalia-main-logo {
    height: 55px;
    vertical-align: middle;
    transform: translateY(-24px);
}
@keyframes logo-pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(255,255,255,0.2)) brightness(1); }
    50% { filter: drop-shadow(0 0 12px rgba(255,255,255,0.8)) brightness(1.2); }
}
