* {
    box-sizing: border-box;
}

body {
    background: #ffffff;
    color: #0f0f0f;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === SPACE INTRO (BLACK) === */
#intro-overlay {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 1.2s ease, visibility 1.2s;
}

.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    opacity: 0;
}

.intro-logo {
    position: relative;
    z-index: 10;
    transform: scale(0);
    opacity: 0;
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === HERO BACKGROUND === */
#hero-canvas-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.6;
}

/* === GLASS CARDS (PROFESSIONAL) === */
.glass-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    border-color: #d1d5db;
}

/* === HERO BACKGROUND === */
.hero-bg {
    background-color: #f8fafc;
    background-image:
        linear-gradient(#e2e8f0 1px, transparent 1px),
        linear-gradient(to right, #e2e8f0 1px, transparent 1px);
    background-size: 40px 40px;
}

/* === GRADIENT TEXT (PROFESSIONAL) === */
.text-gradient {
    color: #000000;
}

/* === NAVBAR === */

/* === NAVBAR === */
.nav-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* === SCROLLING TRACKS === */
.pause-on-hover:hover .scroll-track {
    animation-play-state: paused;
}

.scroll-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
}

/* === FAB MENU === */
.fab-menu-item {
    transform: scale(0) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-menu.open .fab-menu-item {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.fab-menu.open .fab-menu-item:nth-child(1) {
    transition-delay: 0.05s;
}

.fab-menu.open .fab-menu-item:nth-child(2) {
    transition-delay: 0.1s;
}

.fab-menu.open .fab-menu-item:nth-child(3) {
    transition-delay: 0.15s;
}

.fab-menu.open .fab-menu-item:nth-child(4) {
    transition-delay: 0.2s;
}

.fab-menu.open .fab-menu-item:nth-child(5) {
    transition-delay: 0.25s;
}

.fab-menu.open .fab-menu-item:nth-child(6) {
    transition-delay: 0.3s;
}

/* === CHATBOT === */
.chatbot-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    height: 500px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.12), 0 8px 16px -8px rgba(0, 0, 0, 0.08);
}

.chatbot-container.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* === RADIAL FAB MENU === */
.fab-menu {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    z-index: 150;
}

.fab-menu-item {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.fab-menu.open .fab-menu-item {
    opacity: 1;
    transform: scale(1);
}

/* === PREMIUM BUTTON === */
.btn-premium {
    background: #0f172a;
    color: white;
    transition: all 0.3s ease;
}

.btn-premium:hover {
    background: #6ba4ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* === ICON CONTAINER === */
.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: #f1f5f9;
    color: #000000;
}

/* === PREMIUM TYPOGRAPHY === */
.heading-premium {
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.subheading-premium {
    letter-spacing: -0.01em;
}

/* === SMOOTH TRANSITIONS === */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === CONFETTI CANVAS === */
#confetti-canvas {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
}

/* === HIDDEN INITIALLY === */
.intro-hidden {
    opacity: 0;
    visibility: hidden;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
        /* Start from left (off-screen sort of) moving right */
    }

    100% {
        transform: translateX(0);
    }
}

.animate-scroll {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
    /* Slower for better readability */
}

.animate-scroll-reverse {
    display: flex;
    width: max-content;
    animation: scroll-reverse 40s linear infinite;
    /* Opposite direction */
}

.animate-scroll:hover,
.animate-scroll-reverse:hover {
    animation-play-state: paused;
}

/* Direction Control Classes */
.scroll-forward {
    animation-direction: normal !important;
}

.scroll-backward {
    animation-direction: reverse !important;
}
