@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --primary-blue: #263C8D;
    --primary-green: #48A82C;
    --bg-light: #F7F9FC;
    --white: #FFFFFF;
    --text-dark: #1E293B;
    --text-slate: #64748B;
    --border-light: rgba(38, 60, 141, 0.08);
    --shadow-sm: 0 4px 20px -2px rgba(38, 60, 141, 0.03);
    --shadow-md: 0 12px 30px -5px rgba(38, 60, 141, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Outfit', sans-serif;
}

/* Custom Web Scrollbar (hidden on mobile swipe) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* App-like Horizontal Swiper for Mobile */
.swipe-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 10px 4px 20px 4px;
}
/* Hide scrollbar utility for clean swiping */
.swipe-container::-webkit-scrollbar {
    display: none;
}
.swipe-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.swipe-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 85vw; /* Almost full viewport width on mobile */
}

@media (min-width: 768px) {
    .swipe-container {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
        padding: 0;
        gap: 24px;
    }
    .swipe-card {
        width: auto;
        scroll-snap-align: none;
    }
}

/* Sticky Bottom Mobile CTA Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    display: none;
    padding: 10px 16px;
    box-shadow: 0 -10px 30px rgba(38, 60, 141, 0.05);
}

@media (max-width: 640px) {
    .mobile-sticky-bar {
        display: flex;
        gap: 12px;
        align-items: center;
    }
    body {
        padding-bottom: 76px; /* Offset for sticky bar height */
    }
}

/* Premium Light Glassmorphism Card (Apple style) */
.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(38, 60, 141, 0.15);
    box-shadow: var(--shadow-md);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

/* Light Cinematic Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
}

.loader-glow-circle {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(38, 60, 141, 0.05);
    box-shadow: 0 4px 30px rgba(38, 60, 141, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    background: var(--bg-light);
}

.loader-glow-circle::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary-blue);
    border-bottom-color: var(--primary-green);
    animation: loader-spin 1.8s linear infinite;
}

@keyframes loader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Glow effects (Light Mode) */
.glow-text-blue {
    text-shadow: 0 2px 15px rgba(38, 60, 141, 0.1);
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.floating-element {
    animation: float 5s ease-in-out infinite;
}

/* Bubbles (Light Mode, very subtle) */
.bubble {
    position: absolute;
    bottom: -20px;
    background: linear-gradient(180deg, rgba(38, 60, 141, 0.06) 0%, rgba(72, 168, 44, 0.02) 100%);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(38, 60, 141, 0.03) inset;
    animation: rise 9s infinite ease-in-out;
}

@keyframes rise {
    0% {
        bottom: -20px;
        transform: translateX(0) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: 110%;
        transform: translateX(60px) scale(1.1);
        opacity: 0;
    }
}

/* WhatsApp pulse effect */
.whatsapp-pulse {
    position: relative;
    box-shadow: 0 4px 20px rgba(72, 168, 44, 0.35);
}

.whatsapp-pulse::before, .whatsapp-pulse::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid var(--primary-green);
    border-radius: 50%;
    opacity: 0;
    animation: pulse-ring 2s infinite ease-out;
}

.whatsapp-pulse::after {
    animation-delay: 0.5s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    50% {
        opacity: 0.35;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Map Highlight Style */
.map-region {
    transition: fill 0.3s ease, stroke 0.3s ease, filter 0.3s ease;
}

.map-region:hover {
    filter: drop-shadow(0 4px 12px rgba(38, 60, 141, 0.15));
    cursor: pointer;
}

/* ThreeJS Hero Container styling */
#three-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}
