/* Mobile-First Base Styles */
* {
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* =============================================
   HERO V2 STYLES
   ============================================= */

/* Grid background */
.hero-grid-overlay {
    background-image:
        linear-gradient(rgba(37, 99, 235,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235,0.07) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Title gradient */
.hero-title-gradient {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 25%, #ffffff 55%, #e2e8f0 80%, #bfdbfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 60px rgba(96, 165, 250,0.35));
}

/* Info pills */
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.hero-pill:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}
.hero-pill-sep {
    width: 4px;
    height: 4px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.25);
}

/* Countdown V2 */
.countdown-item-v2 {
    position: relative;
    min-width: 80px;
    padding: 16px 12px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: all 0.3s ease;
}
.countdown-item-v2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250,0.8), transparent);
}
.countdown-item-v2:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.countdown-value-v2 {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #93c5fd, #60a5fa 50%, #bfdbfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.countdown-label-v2 {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}
.countdown-sep-v2 {
    color: rgba(96, 165, 250,0.4);
    font-size: 2rem;
    font-weight: 900;
    align-self: center;
    padding-bottom: 18px;
}

/* Stats */
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.hero-stat:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}
.hero-stat-num {
    font-size: 1.75rem;
    font-weight: 900;
    color: #60a5fa;
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

/* CTA Buttons */
.hero-btn-primary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(37, 99, 235,0.35);
    text-decoration: none;
}
.hero-btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 50px rgba(37, 99, 235,0.55);
    background: linear-gradient(135deg, #60a5fa, #2563eb);
}
.hero-btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    border-radius: 9999px;
}
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.2);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    text-decoration: none;
}
.hero-btn-secondary:hover {
    background: rgba(37, 99, 235,0.12);
    border-color: rgba(96, 165, 250,0.6);
    color: #93c5fd;
    transform: translateY(-2px);
}
.hero-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 9999px;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.hero-btn-ghost:hover {
    color: rgba(255,255,255,0.9);
}

@media (max-width: 640px) {
    .countdown-item-v2 { min-width: 64px; padding: 12px 8px 10px; }
    .countdown-value-v2 { font-size: 1.6rem; }
    .countdown-sep-v2 { font-size: 1.4rem; }
    .hero-stat-num { font-size: 1.4rem; }
}



/* Custom Animations */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

@keyframes zoom-slow {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animate-zoom-slow {
    animation: zoom-slow 8s ease-in-out infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar Scroll Effect */
#navbar.scrolled {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.97) 0%, rgba(15, 23, 42, 0.97) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(96, 165, 250, 0.12);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(96, 165, 250, 0.08) inset;
}

/* Swiper Custom Styles */
.tracksSwiper {
    padding-bottom: 60px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #2563eb;
    opacity: 0.5;
}

/* Countdown Timer Styles */
.countdown-item {
    background: rgba(37, 99, 235, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid #2563eb;
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 80px;
    text-align: center;
    transition: all 0.3s ease;
}

.countdown-item:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.countdown-value {
    font-size: 2rem;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
}

.countdown-label {
    font-size: 0.85rem;
    color: #bfdbfe;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-separator {
    color: #2563eb;
    font-size: 2rem;
    font-weight: 800;
    align-self: center;
    opacity: 0.6;
}

@media (max-width: 640px) {
    .countdown-item {
        padding: 8px 10px;
        min-width: 60px;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
    }
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #2563eb;
}

.swiper-button-next,
.swiper-button-prev {
    color: #2563eb;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 30px;
}

/* Custom Hover Effects */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Timeline Responsive */
@media (max-width: 768px) {
    .timeline-vertical .timeline-item {
        flex-direction: column;
    }
}

/* FAQ Accordion Styles */
.faq-answer {
    max-height: 1000px;
    overflow: hidden;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.faq-answer.hidden {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 1000px;
    }
    to {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
}

.faq-question i:last-child {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question.active i:last-child {
    transform: rotate(180deg);
}

/* Button Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.pulse-button {
    animation: pulse 2s infinite;
}

/* FAQ Accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
}

/* Search Input Focus */
input:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
}

/* Custom Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
    
    /* Improve button padding on mobile */
    button, a[class*="btn"], a[class*="px-8"] {
        font-size: 1rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    /* Responsive padding for sections */
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Fix navigation padding */
    nav {
        padding: 0;
    }
    
    /* Better text sizing for descriptions */
    p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    /* Reduce gap on grid items for tablets */
    .grid {
        gap: 1.5rem;
    }
    
    /* Adjust flex directions */
    .flex-col {
        margin-bottom: 1rem;
    }
    
    /* Better spacing for components */
    .space-y-4 > * + * {
        margin-top: 0.75rem;
    }
}

@media (max-width: 1024px) {
    /* Optimize max-width containers */
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Improved mobile menu styling */
@media (max-width: 768px) {
    #mobile-menu {
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
        opacity: 0;
    }
    
    #mobile-menu.block {
        display: block;
        max-height: 500px;
        opacity: 1;
    }
    
    #mobile-menu.open {
        display: block;
        max-height: 500px;
        opacity: 1;
    }
    
    /* Mobile menu items */
    #mobile-menu a {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #mobile-menu a:last-child {
        border-bottom: none;
    }
}

/* Touch-friendly sizes for mobile */
@media (max-width: 640px) {
    /* Touch targets for real buttons / CTA links only — never inline text links.
       (The old rule forced display:flex on every <a>, which broke inline links
       inside paragraphs by stacking them on their own 44px-tall line.) */
    button,
    a[class*="btn"],
    a[class*="rounded-full"],
    a[class*="rounded-xl"],
    a[class*="rounded-2xl"],
    #mobile-menu a {
        min-height: 44px;
    }

    /* Input fields touch target. 16px font prevents iOS zoom-on-focus. */
    input, textarea, select {
        min-height: 48px;
        font-size: 16px;
    }
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Better hero section on mobile */
@media (max-width: 640px) {
    .hero-content {
        padding: 1rem;
    }
    
    /* Fix countdown layout on small screens */
    .countdown-item {
        min-width: 50px;
        padding: 6px 8px;
    }
    
    .countdown-separator {
        display: none;
    }
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Swiper responsive adjustments */
@media (max-width: 640px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    
    .swiper-pagination {
        bottom: 10px;
    }
}

/* Print Styles */
@media print {
    nav, footer, .no-print {
        display: none;
    }
}

/* Landscape mode adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        height: 100vh;
    }
    
    section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* Ultra-small screens (< 320px) */
@media (max-width: 320px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 0.875rem;
    }
    
    .max-w-7xl {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Improved container queries for better responsiveness */
@supports (container-type: inline-size) {
    @container (max-width: 640px) {
        .grid {
            grid-template-columns: 1fr;
        }
    }
}

/* ============================================
   GLOBAL MOBILE RESPONSIVE FIXES
   ============================================ */

/* --- Navbar mobile --- */
@media (max-width: 767px) {
    /* Hide vertical dividers between logos on mobile to save space */
    #navbar .w-px {
        display: none;
    }
    /* Mobile menu backdrop */
    #mobile-menu {
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    #mobile-menu a {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        font-weight: 500;
    }
    #mobile-menu a:last-child { border-bottom: none; }
}

/* --- Section padding: reduce on mobile --- */
@media (max-width: 640px) {
    section[class*="py-28"],
    section[class*="py-32"] {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    /* Hero countdown - smaller boxes */
    .countdown-item-v2 {
        min-width: 58px;
        padding: 10px 8px 8px;
    }
    .countdown-value-v2 { font-size: 1.65rem; }
    .countdown-sep-v2   { font-size: 1.5rem; }

    /* Hero stats: tighter */
    .hero-stat { padding: 12px 6px; }
    .hero-stat-num { font-size: 1.3rem; }
    .hero-stat-label { font-size: 0.6rem; }

    /* Hero pills: smaller font on tiny screens */
    .hero-pill { font-size: 0.78rem; padding: 7px 12px; }

    /* Section headings scale down */
    h2.text-5xl  { font-size: clamp(1.7rem, 7.5vw, 3rem); }
    h2.text-6xl  { font-size: clamp(1.9rem, 8vw, 3.75rem); }

    /* About image: don't force huge height */
    .h-\[540px\] { height: 260px; }

    /* Gallery mb spacing */
    .mb-20 { margin-bottom: 2.5rem; }

    /* CTA buttons: full-width */
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        max-width: 320px;
    }

    /* Footer 4-col → 2-col on small mobile */
    .md\:grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .md\:col-span-2  { grid-column: span 2; }
}

/* Prevent horizontal scroll caused by decorative blobs */
body { overflow-x: hidden; }
.animate-blob {
    max-width: 100vw;
    overflow: hidden;
}


/* ==========================================
   Chatbot Styles
   ========================================== */

/* Container */
#chatbot-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

/* Toggle Button */
#chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #0284c7);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

#chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.5);
}

#chatbot-toggle:active {
    transform: scale(0.95);
}

.chatbot-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.chatbot-toggle-icon.hidden {
    display: none;
}

.chatbot-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    filter: brightness(0) invert(1);
}

.chatbot-logo-icon {
    font-size: 28px;
    color: #ffffff;
}

.chatbot-header-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.chatbot-header-icon {
    font-size: 20px;
    color: #ffffff;
}

.chatbot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: chatbot-pulse 2s infinite;
}

.chatbot-badge.hidden {
    display: none;
}

@keyframes chatbot-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Chat Window */
#chatbot-window {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 380px;
    max-height: 560px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

#chatbot-window.chatbot-hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

#chatbot-window.chatbot-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

/* Header */
#chatbot-header {
    background: linear-gradient(135deg, #2563eb, #0284c7);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.chatbot-status {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chatbot-status-dot {
    width: 7px;
    height: 7px;
    background: #bfdbfe;
    border-radius: 50%;
    display: inline-block;
    animation: chatbot-blink 2s infinite;
}

@keyframes chatbot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

#chatbot-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#chatbot-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Messages Area */
#chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 280px;
    max-height: 340px;
    scroll-behavior: smooth;
}

#chatbot-messages::-webkit-scrollbar {
    width: 5px;
}

#chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

#chatbot-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

/* Message Bubbles */
.chatbot-message {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s ease;
}

.chatbot-message-visible {
    opacity: 1;
    transform: translateY(0);
}

.chatbot-message-bot {
    align-items: flex-start;
}

.chatbot-message-user {
    align-items: flex-end;
}

.chatbot-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 13.5px;
    line-height: 1.55;
    word-wrap: break-word;
}

.chatbot-bubble-bot {
    background: #eff6ff;
    color: #1f2937;
    border-bottom-left-radius: 6px;
    border: 1px solid #dbeafe;
}

.chatbot-bubble-user {
    background: linear-gradient(135deg, #2563eb, #0284c7);
    color: white;
    border-bottom-right-radius: 6px;
}

.chatbot-bubble a.chatbot-link {
    color: #1d4ed8;
    text-decoration: underline;
    font-weight: 600;
}

.chatbot-bubble-user a.chatbot-link {
    color: #dbeafe;
}

.chatbot-time {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 4px;
    padding: 0 4px;
}

/* Typing Indicator */
.chatbot-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.chatbot-dots span {
    width: 7px;
    height: 7px;
    background: #2563eb;
    border-radius: 50%;
    animation: chatbot-bounce 1.4s infinite ease-in-out;
}

.chatbot-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.chatbot-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes chatbot-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Quick Replies */
#chatbot-quick-replies {
    padding: 0 16px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chatbot-quick-btn {
    padding: 6px 14px;
    border: 1.5px solid #dbeafe;
    background: white;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.chatbot-quick-btn:hover {
    background: #eff6ff;
    border-color: #2563eb;
    transform: translateY(-1px);
}

/* Input Area */
#chatbot-input-area {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
    flex-shrink: 0;
    border-radius: 0 0 20px 20px;
}

#chatbot-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

#chatbot-input {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 24px;
    font-size: 13.5px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    background: white;
}

#chatbot-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#chatbot-input::placeholder {
    color: #9ca3af;
}

#chatbot-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #0284c7);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

#chatbot-send:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    #chatbot-container {
        bottom: 16px;
        right: 16px;
    }

    #chatbot-window {
        width: calc(100vw - 32px);
        max-height: calc(100vh - 120px);
        bottom: 70px;
        right: -8px;
    }

    #chatbot-messages {
        min-height: 200px;
        max-height: calc(100vh - 320px);
    }

    .chatbot-bubble {
        max-width: 90%;
    }
}

/* =============================================
   PROFESSIONAL DESIGN ENHANCEMENTS
   ============================================= */

/* Nav links — refined underline indicator */
.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding-bottom: 4px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #60a5fa, #38bdf8);
    border-radius: 9999px;
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Section label pills — refined */
.section-label {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Deadline & date cards — top glow on hover */
.deadline-card {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.deadline-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.45), 0 0 0 1px rgba(96, 165, 250,0.15);
}

/* Track swiper cards — premium shadow on hover */
.tracksSwiper .swiper-slide > div:hover {
    box-shadow: 0 24px 56px rgba(37, 99, 235,0.10), 0 2px 8px rgba(0,0,0,0.08);
}

/* Hero divider line — extra polish */
.hero-divider {
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, transparent, #60a5fa 40%, #38bdf8 60%, transparent);
    border-radius: 9999px;
    margin: 0 auto;
}

/* CTA "Submit Paper" button — professional slate */
.cta-submit-btn {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(148,163,184,0.2);
    transition: all 0.3s ease;
}
.cta-submit-btn:hover {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    border-color: rgba(148,163,184,0.4);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

/* Footer link hover glow */
footer a:hover {
    text-shadow: 0 0 12px rgba(96, 165, 250,0.35);
}

/* Smooth image hover zoom */
.img-zoom {
    overflow: hidden;
    border-radius: inherit;
}
.img-zoom img {
    transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.img-zoom:hover img {
    transform: scale(1.07);
}

/* Indexing banner tags — subtle lift */
.index-tag {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.index-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235,0.15);
}

/* =============================================
   RESPONSIVE & PROFESSIONAL POLISH  (v2 — all pages)
   ============================================= */

/* --- Prevent any element from causing horizontal scroll --- */
html, body { max-width: 100%; }
img, svg, video, iframe { max-width: 100%; }

/* --- Floating buttons: keep Back-to-Top clear of the chatbot --- */
#backToTop {
    bottom: 6rem;
    right: 1.5rem;
    z-index: 9998;
}
@media (max-width: 480px) {
    #backToTop {
        bottom: 5.5rem;
        right: 1rem;
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* --- Fluid, professional heading scale on phones/tablets --- */
@media (max-width: 768px) {
    h1, h2, h3 { word-break: break-word; overflow-wrap: anywhere; hyphens: auto; }

    .text-7xl,
    .md\:text-7xl { font-size: clamp(2.1rem, 8.5vw, 4rem) !important; line-height: 1.1 !important; }
    .text-6xl,
    .md\:text-6xl { font-size: clamp(1.95rem, 7.8vw, 3.4rem) !important; line-height: 1.12 !important; }
    .text-5xl,
    .md\:text-5xl { font-size: clamp(1.7rem, 6.6vw, 2.85rem) !important; line-height: 1.15 !important; }
    .text-4xl,
    .sm\:text-4xl { font-size: clamp(1.5rem, 5.6vw, 2.2rem) !important; line-height: 1.2 !important; }
}

/* Hero title — controlled scale so it never overflows tiny screens */
@media (max-width: 640px) {
    .hero-title-gradient { font-size: clamp(3.2rem, 17vw, 5rem) !important; }
}

/* --- Navbar logos: large & prominent on every screen (3-logo strip) --- */
#navbar img { height: 4.5rem !important; }
#navbar .h-20 { min-height: 5.5rem; }            /* a touch taller so big logos breathe */
@media (max-width: 767px) {
    #navbar .h-14 { height: 4.75rem; }
    #navbar img { height: 3.6rem !important; }
    #navbar .gap-1\.5,
    #navbar .gap-2 { gap: 0.6rem; }
}
@media (max-width: 380px) {
    #navbar img { height: 2.9rem !important; }
    #navbar .gap-1\.5,
    #navbar .gap-2 { gap: 0.4rem; }
}

/* --- Comfortable section rhythm on phones --- */
@media (max-width: 640px) {
    section[class*="py-16"] { padding-top: 2.75rem; padding-bottom: 2.75rem; }
    section[class*="py-24"] { padding-top: 3.25rem; padding-bottom: 3.25rem; }
    section[class*="py-28"],
    section[class*="py-32"] { padding-top: 3.5rem; padding-bottom: 3.5rem; }

    /* tighten oversized vertical margins between blocks */
    .mb-24 { margin-bottom: 3rem; }
    .mb-20 { margin-bottom: 2.5rem; }
    .mb-16 { margin-bottom: 2rem; }
    .mb-12 { margin-bottom: 1.75rem; }

    /* card padding: p-8 / p-12 are too tight to the edge on phones */
    .p-8  { padding: 1.5rem; }
    .p-12 { padding: 1.75rem; }

    /* keep gutters consistent */
    .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl {
        padding-left: 1.125rem;
        padding-right: 1.125rem;
    }
}

/* --- Body copy: easier to read on phones --- */
@media (max-width: 640px) {
    .text-xl  { font-size: 1.0625rem !important; }
    .text-2xl { font-size: 1.25rem !important; }
    .text-lg  { font-size: 1rem !important; }
    p { line-height: 1.65; }
}

/* --- Full-width primary CTAs on phones (easier to tap) --- */
@media (max-width: 480px) {
    a[class*="rounded-2xl"][class*="px-10"],
    a[class*="rounded-full"][class*="px-8"],
    a[class*="rounded-full"][class*="px-10"] {
        width: 100%;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Swiper / track cards: never let a card exceed the viewport --- */
@media (max-width: 640px) {
    .swiper-slide > div { height: auto; }
    .tracksSwiper { padding-bottom: 48px; }
}

/* --- Tap highlight + smoother momentum scroll on iOS --- */
* { -webkit-tap-highlight-color: rgba(37, 99, 235,0.15); }
body { -webkit-overflow-scrolling: touch; }

/* --- Respect notch / safe areas --- */
@supports (padding: max(0px)) {
    #chatbot-container { right: max(24px, env(safe-area-inset-right)); }
}

/* --- Fixed-size avatar photos: shrink on very small phones --- */
@media (max-width: 400px) {
    .w-64.h-64 { width: 13.5rem !important; height: 13.5rem !important; }
    .w-56.h-56 { width: 12.5rem !important; height: 12.5rem !important; }
}

/* --- Mobile menu: smoother, scrollable if tall --- */
@media (max-width: 767px) {
    #mobile-menu { max-height: 80vh; overflow-y: auto; }
}

/* --- Keynote speaker flip cards --- */
.speaker-flip {
    perspective: 1200px;
}
.speaker-flip-inner {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
}
.speaker-flip:hover .speaker-flip-inner,
.speaker-flip:focus-within .speaker-flip-inner {
    transform: rotateY(180deg);
}
.speaker-face {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.speaker-back {
    transform: rotateY(180deg);
}
@media (hover: none) {
    /* Touch devices: tap to flip via .is-flipped toggle */
    .speaker-flip.is-flipped .speaker-flip-inner { transform: rotateY(180deg); }
}

/* --- Scroll progress bar --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 9999;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    transition: width 0.1s linear;
    pointer-events: none;
}

/* --- Hero rotating keyword line --- */
#hero-rotator {
    display: inline-block;
    transition: opacity 0.3s ease;
}

/* --- Hero magnetic buttons --- */
.hero-magnetic {
    transition: transform 0.15s ease-out, box-shadow 0.3s ease, background 0.3s ease;
}

/* --- Hero cursor glow / spotlight --- */
#hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(99, 102, 241, 0.08) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.4s ease;
    will-change: left, top;
}
#hero:hover #hero-glow { opacity: 1; }
@media (hover: none) { #hero-glow { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .speaker-flip-inner { transition: none; }
    #hero-glow { display: none; }
}

/* =============================================
   MOBILE RESPONSIVE FIXES
   ============================================= */

/* 1. Kill horizontal scrolling on phones.
   body already hides overflow-x, but iOS Safari also needs html. */
html {
    overflow-x: hidden;
    max-width: 100%;
}

/* 2. AOS side-entrances (fade-left / fade-right) push elements 100px
   sideways before they animate in, which creates a horizontal scrollbar
   on narrow screens. On phones and tablets, slide them up instead. */
@media (max-width: 768px) {
    [data-aos*="left"],
    [data-aos*="right"] {
        transform: translate3d(0, 40px, 0) !important;
    }
    [data-aos*="left"].aos-animate,
    [data-aos*="right"].aos-animate {
        transform: translate3d(0, 0, 0) !important;
    }
}

/* 3. Never let media or embeds burst out of their container. */
img, video, iframe, svg, canvas, table {
    max-width: 100%;
}

/* 4. Long words / emails / URLs wrap instead of stretching the page. */
@media (max-width: 640px) {
    p, li, h1, h2, h3, h4, span, a, td, th {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* 5. Hero readability on phones: the background photo is bright, so darken
   it further on small screens where text sits directly over it. */
@media (max-width: 768px) {
    #hero > .absolute.inset-0.overflow-hidden > img,
    section > .absolute.inset-0.overflow-hidden > img {
        opacity: 0.45 !important;
    }
}

/* 6. Extra scrim behind hero content on phones so every line stays legible
   over the photo (the desktop gradient alone is too light at this size). */
@media (max-width: 768px) {
    #hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,
            rgba(10, 18, 38, 0.72) 0%,
            rgba(10, 18, 38, 0.62) 45%,
            rgba(10, 18, 38, 0.88) 100%);
        z-index: 1;
        pointer-events: none;
    }
    #hero > .relative.z-10 { z-index: 10; }

    /* Lift the dimmer supporting text out of the background */
    #hero .text-white\/70,
    #hero .text-white\/60,
    #hero .text-white\/50 { color: rgba(255, 255, 255, 0.88) !important; }
    #hero .hero-stat-label,
    #hero .countdown-label-v2 { color: rgba(255, 255, 255, 0.75) !important; }
}

/* 7. Registration price rows: on phones the "1499 MAD / 149 €" pair is too
   wide to sit beside its label, so stack them instead of breaking the price. */
@media (max-width: 640px) {
    .price-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.35rem;
    }
    .price-row > div:last-child,
    .price-row > span:last-child {
        white-space: nowrap;
        align-self: flex-start;
        text-align: left !important;
    }
}

/* =============================================
   PERFORMANCE
   ============================================= */

/* Large blurred "glow orbs" are the most expensive thing the browser paints
   (a 600px blur radius forces a huge offscreen buffer). Phones don't have the
   fill rate for them, so swap the blur for a cheap soft radial gradient that
   looks nearly identical at this opacity. */
@media (max-width: 768px) {
    [class*="blur-["] {
        filter: none !important;
        opacity: 0.10 !important;
        background-image: radial-gradient(circle, currentColor 0%, transparent 68%) !important;
    }
    /* The animated particle canvas is decorative; skip it on small screens. */
    #hero-particles { display: none !important; }
    /* Slow infinite background animations keep the GPU awake and drain battery. */
    .animate-blob,
    .animate-zoom-slow { animation: none !important; }
}

/* Respect users who ask for less motion, on every screen size. */
@media (prefers-reduced-motion: reduce) {
    .animate-blob,
    .animate-zoom-slow,
    [class*="animate-"] { animation: none !important; }
}

/* =============================================
   NAVBAR FIT (12 links + 2 logos on one row)
   Twelve links need ~1200px to stay readable; below that the burger wins.
   ============================================= */
@media (min-width: 1250px) {
    #navbar .nav-link { white-space: nowrap; }
    /* max-w-7xl caps usable width at 1216px - use the real viewport instead */
    #navbar > .max-w-7xl { max-width: 100% !important; padding-left: 1rem; padding-right: 1rem; }
    /* the markup uses md:gap-8, not gap-8 */
    #navbar .md\:gap-8 { gap: 1rem !important; }
    #navbar .h-20 { min-height: 4rem; }
}
@media (min-width: 1500px) {
    #navbar img { height: 3.3rem !important; }
    #navbar .nav-link { font-size: 0.9rem; }
    #navbar .space-x-6 > * + * { margin-left: 1.1rem !important; }
}
@media (min-width: 1366px) and (max-width: 1499px) {
    #navbar img { height: 2.8rem !important; }
    #navbar .nav-link { font-size: 0.78rem; }
    #navbar .space-x-6 > * + * { margin-left: 0.62rem !important; }
}
@media (min-width: 1250px) and (max-width: 1365px) {
    #navbar img { height: 2.2rem !important; }
    #navbar .nav-link { font-size: 0.7rem; }
    #navbar .space-x-6 > * + * { margin-left: 0.32rem !important; }
    #navbar .md\:gap-8 { gap: 0.5rem !important; }
    #navbar .px-3 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
    #navbar .gap-1\.5 { gap: 0.3rem !important; }
    #navbar > .max-w-7xl { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
}
/* Below 1200px: burger menu (every link, including Expo, lives in there). */
@media (max-width: 1249px) {
    #navbar .hidden.md\:flex { display: none !important; }
    #navbar .md\:hidden:not(#mobile-menu) { display: block !important; }
    #navbar .md\:justify-center { justify-content: space-between !important; }
    #mobile-menu:not(.hidden) { display: block !important; }
    #navbar img { height: 2.9rem !important; }
}

/* Dropdown panel must be fully opaque - it sits over a photo. */
#mobile-menu {
    background-color: #0f172a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
