﻿/* ==========================================================================
   GLOBALGATE INTERNATIONAL - ENGINE CORE STYLESHEET (2026 PRODUCTION BUILD)
   ========================================================================== */

:root {
    /* Color Palette Configurations */
    --brand-primary: #550292;
    --brand-secondary: #ff000e;
    --brand-accent: #f8c200;
    --brand-dark-matte: #0F172A;
    --brand-gradient: linear-gradient(135deg, #550292 0%, #ff000e 60%, #f8c200 100%);
    --brand-gradient-reverse: linear-gradient(135deg, #ff000e 0%, #550292 100%);
    /* Segment Background Design Colors */
    --bg-main: #F8FAFC;
    --bg-custom-grid: #F1F5F9; /* Light distinct backdrop for static grid */
    --bg-custom-services: #FFFFFF; /* Clean card layout wrap */
    --bg-custom-events: #F8FAFC; /* Subtle tint shift for event components */
    --bg-custom-form: #E2E8F0; /* Rich structural tracking form contrast background */

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --shadow-premium: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 20px 40px -10px rgba(255, 0, 14, 0.25);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--bg-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==========================================================================
   TYPOGRAPHY CONFIGURATIONS
   ========================================================================== */
p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.small, small {
    font-size: 0.85rem !important;
}

.form-label {
    font-size: 0.9rem;
    color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

h1 {
    font-size: 3rem !important;
}

h2 {
    font-size: 2.25rem !important;
}

h3 {
    font-size: 1.75rem !important;
}

h4 {
    font-size: 1.5rem !important;
}

h5 {
    font-size: 1.25rem !important;
}

/* ==========================================================================
   ROW & SECTION BACKGROUND CONFIGURATIONS
   ========================================================================== */
.bg-custom-grid {
    background-color: var(--bg-custom-grid);
}

.bg-custom-services {
    background-color: var(--bg-custom-services);
}

.bg-custom-events {
    background-color: var(--bg-custom-events);
}

.bg-custom-form {
    background-color: var(--bg-custom-form);
}

.bg-dark-matte-strip {
    background-color: var(--brand-dark-matte);
}

/* ==========================================================================
   UTILITY & STRUCTURAL MATRIX DESIGNS
   ========================================================================== */
.text-primary-purple {
    color: var(--brand-primary) !important;
}

.text-secondary-crimson {
    color: var(--brand-secondary) !important;
}

.text-brand-accent {
    color: var(--brand-accent) !important;
}

.text-gradient {
    background: linear-gradient(135deg, #550292 0%, #ff000e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-premium);
}

.hover-hardware {
    transition: var(--transition-smooth);
    will-change: transform, box-shadow;
}

    .hover-hardware:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-glow);
    }

/* ==========================================================================
   NAVBAR ENGINE LAYER
   ========================================================================== */
.custom-navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(85, 2, 146, 0.1);
    transition: var(--transition-smooth);
    z-index: 1050;
}

    .custom-navbar.scrolled-dock {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-premium);
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

.btn-nav-action {
    background: var(--brand-gradient);
    color: #ffffff !important;
    border: none;
    font-weight: 700;
}

.btn-primary-purple {
    background: var(--brand-primary);
    color: #ffffff !important;
    border: none;
}

/* ==========================================================================
   HERO CANVAS STYLING & FULL-BLEED MOBILE SLIDER RESPONSIVE GATES
   ========================================================================== */
.hero-kinetic-canvas {
    padding: 110px 0 60px 0;
    background: #ffffff;
}

.kinetic-stage {
    position: relative;
    width: 100%;
}

.globe-3d-fallback {
    max-width: 440px;
    height: auto;
    border-radius: 50%;
    animation: constantRotation 50s linear infinite;
}

.floating-jet-vector {
    position: absolute;
    top: 15%;
    left: 5%;
    font-size: 3rem;
    color: var(--brand-secondary);
    animation: spatialFloat 5s ease-in-out infinite alternate;
}

.floating-pill {
    position: absolute;
    z-index: 15;
}

.mobile-hero-slider-mask {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.mobile-slider-media {
    height: 260px;
    object-fit: cover;
    width: 100%;
}

.carousel-caption-dark {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding-top: 20px;
    padding-bottom: 25px;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.85) 100%);
    text-align: center;
    z-index: 10;
}

.mobile-hero-slider-mask .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 5px;
    margin-right: 5px;
    background-color: #ffffff;
    opacity: 0.5;
}

.mobile-hero-slider-mask .carousel-indicators .active {
    background-color: var(--brand-accent);
    opacity: 1;
    transform: scale(1.2);
}

/* ==========================================================================
   STATIC PROMO/BRAND MARQUEE RUNNERS
   ========================================================================== */
.marquee-track-wrapper {
    overflow: hidden;
    width: 100%;
    background: #ffffff;
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.marquee-continuous {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: marqueeLoop 25s linear infinite;
}

.marquee-node {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-dark-matte);
    display: inline-flex;
    align-items: center;
}

/* ==========================================================================
   FEATURED STATIC DESTINATION CARDS
   ========================================================================== */
.destination-scroller-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.destination-image-wrapper {
    position: relative;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

    .destination-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.destination-flag-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 32px;
    height: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 10;
}

/* ==========================================================================
   PAGE 1: DYNAMIC HORIZONTAL CAROUSEL CONFIGURATIONS (HOMEPAGE)
   ========================================================================== */
.carousel-viewport-mask {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding: 15px 5px;
    display: flex;
    position: relative;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .carousel-viewport-mask::-webkit-scrollbar {
        display: none;
    }

.carousel-horizontal-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

.crawl-grid-tile {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    width: 240px;
    height: 170px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--brand-dark-matte);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    white-space: normal;
    flex-shrink: 0;
}

    .crawl-grid-tile img.tile-media-canvas {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.45;
        transition: var(--transition-smooth);
        z-index: 1;
    }

    .crawl-grid-tile:hover img.tile-media-canvas {
        opacity: 0.6;
        transform: scale(1.04);
    }

.tile-glass-overlay {
    position: absolute;
    inset: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.95) 100%);
    z-index: 2;
}

.slider-arrow-trigger {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--brand-gradient);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

    .slider-arrow-trigger:hover {
        background: #ffffff;
        color: var(--brand-primary);
        border-color: var(--brand-accent);
        transform: translateY(-50%) scale(1.1);
    }

.arrow-position-left {
    left: -10px;
}

.arrow-position-right {
    right: -10px;
}

/* ==========================================================================
   PAGE 2: STATIC BRICK GRID ARCHITECTURE (COUNTRIES VIEW PAGE)
   ========================================================================== */
.static-country-grid-box {
    position: relative;
    height: 240px;
    border-radius: 16px;
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

    .static-country-grid-box:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 30px -10px rgba(248, 194, 0, 0.2) !important;
        border-color: var(--brand-accent);
    }

.static-tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    transition: transform 0.5s ease;
}

.static-country-grid-box:hover .static-tile-img {
    transform: scale(1.06);
    opacity: 0.5;
}

.static-tile-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.95) 100%);
    z-index: 5;
}

/* ==========================================================================
   CORE BUSINESS SERVICE & ADMISSION CARDS
   ========================================================================== */
.service-wireframe-card {
    background: #ffffff;
    border: 2px solid rgba(85, 2, 146, 0.05);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
}

    .service-wireframe-card:hover {
        box-shadow: var(--shadow-glow);
        border-color: var(--brand-secondary);
    }

.service-inline-link {
    font-weight: 700;
    color: var(--brand-primary);
    text-decoration: none;
}

.event-timeline-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.event-banner-box {
    position: relative;
    height: 200px;
}

.event-date-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--brand-gradient-reverse);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 6px;
}

.event-action-bar {
    display: flex;
    background-color: var(--brand-dark-matte);
    border-radius: 8px;
    overflow: hidden;
}

.event-action-btn {
    flex-grow: 1;
    background: transparent;
    color: #ffffff !important;
    font-weight: 700;
    padding: 14px 20px;
    border: none;
    text-decoration: none;
}

.event-action-arrow {
    background-color: var(--brand-secondary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
}

/* ==========================================================================
   BLUEPRINT COMPLIANCE METRIC DESIGNS
   ========================================================================== */
.blueprint-metrics-strip {
    background-color: var(--brand-primary);
    padding: 80px 0;
    width: 100%;
}

.blueprint-metric-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 40px 20px;
    transition: var(--transition-smooth);
    height: 100%;
}

    .blueprint-metric-card:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: var(--brand-accent);
        transform: translateY(-5px);
    }

.blueprint-icon-wrap {
    font-size: 2.25rem;
    color: var(--brand-accent) !important;
    margin-bottom: 20px;
}

.blueprint-metric-card h3 {
    font-size: 2.5rem !important;
    font-weight: 800;
    color: var(--brand-accent) !important;
    margin-bottom: 12px;
}

.blueprint-metric-card p {
    font-size: 1.1rem !important;
    font-weight: 600;
    color: #ffffff !important;
}

/* ==========================================================================
   FLOATING ACTION BUTTON TILES
   ========================================================================== */
.floating-action-cluster {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1000;
}

.action-trigger-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.trigger-whatsapp {
    background-color: #25D366;
}

.trigger-phone {
    background-color: var(--brand-primary);
}

.action-trigger-circle:hover {
    transform: scale(1.1) rotate(8deg);
    color: #ffffff;
}

.scroll-top-hardware {
    position: fixed;
    bottom: 172px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--brand-dark-matte);
    color: white !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    z-index: 999;
    text-decoration: none;
}

    .scroll-top-hardware.is-active {
        opacity: 1;
        transform: translateY(0);
    }

/* ==========================================================================
   RUNTIME KEYFRAME ENGINE PIPELINES
   ========================================================================== */
@keyframes marqueeLoop {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes spatialFloat {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-16px);
    }
}

@keyframes constantRotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE VIEWPORT BREAKPOINTS)
   ========================================================================== */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 84px;
    }

    .custom-navbar {
        position: fixed !important;
        top: 0;
        width: 100%;
    }

    .navbar-collapse-mobile-hidden {
        display: none !important;
    }

    .mobile-app-navigation-dock {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 74px;
        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(24px);
        border-top: 3px solid var(--brand-accent);
        z-index: 1060;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-dock-node {
        text-decoration: none !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        color: rgba(255, 255, 255, 0.6);
        font-weight: 600;
        font-size: 0.75rem;
    }

        .mobile-dock-node i {
            font-size: 1.35rem;
            margin-bottom: 4px;
            transition: var(--transition-smooth);
        }

        .mobile-dock-node.is-active {
            color: var(--brand-accent);
        }

            .mobile-dock-node.is-active i {
                transform: translateY(-4px) scale(1.1);
            }

    .floating-action-cluster {
        bottom: 96px !important;
        right: 24px !important;
    }

    .scroll-top-hardware {
        bottom: 236px !important;
        right: 24px !important;
    }

    /* Edge-To-Edge Full Bleed Slider Layout Corrections */
    .hero-kinetic-canvas {
        padding-top: 70px !important;
        padding-bottom: 20px !important;
    }

    .mobile-hero-slider-mask {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

        .mobile-hero-slider-mask .carousel-inner {
            border-radius: 0px !important;
        }

    .mobile-slider-media {
        height: 280px !important;
        width: 100% !important;
    }
}

@media (max-width: 767.98px) {
    .slider-arrow-trigger {
        display: none !important;
    }

    .carousel-viewport-mask {
        padding-left: 0;
        padding-right: 0;
    }

    .crawl-grid-tile {
        width: 200px;
        height: 150px;
    }
}
