@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;500;700&family=Outfit:wght@400;500;700;900&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1e3a8a;
    --secondary: #eff6ff;
}

/* 1. TYPOGRAPHY OVERHAUL */
body {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px; /* Larger base size for premium readability */
    line-height: 1.6;
    background-color: #FAFAFA; /* Slightly off-white for warmth */
    color: #334155;
}

h1, h2, h3, h4, h5, h6, .btn-primary, .nav-link {
    font-family: 'Outfit', sans-serif;
}

/* 2. FRIENDLY UI ELEMENTS */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 9999px; /* Pill Shape = Friendly */
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
    background: var(--primary-dark);
}

/* 3. SOFT GLASS NAVIGATION */
.nav-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* 4. PREMIUM CARDS */
.card-premium {
    background: white;
    border-radius: 2rem; /* Super soft corners */
    border: 1px solid #f1f5f9;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.card-premium:hover {
    transform: translateY(-5px);
}

/* 5. ANIMATIONS */
.fade-in {
    animation: fadeIn Up 0.8s ease-out forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Calendar Specifics */
.calendar-day { 
    border-radius: 12px; 
    font-weight: 500;
    height: 45px;
}
.time-slot {
    border-radius: 12px;
    border: 2px solid #f1f5f9;
    font-weight: 600;
}

/* --- INFINITE SCROLL WALL --- */
.wall-mask {
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.marquee-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* gap-6 equivalent */
}

/* Scroll Up Animation */
.scroll-up {
    animation: scrollVertical 60s linear infinite;
}

/* Scroll Down Animation */
.scroll-down {
    animation: scrollVerticalReverse 60s linear infinite;
}

@keyframes scrollVertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes scrollVerticalReverse {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* Pause on Hover (Optional: stops the wall when user hovers to read) */
.wall-container:hover .scroll-up,
.wall-container:hover .scroll-down {
    animation-play-state: paused;
}

/* --- 1. THE EXPANDING "BENTO" GALLERY --- */
/* This makes the gallery items stretch like elastic */
.bento-container {
    display: flex;
    gap: 1rem;
    height: 600px; /* Fixed height for the effect */
    width: 100%;
}

.bento-item {
    position: relative;
    flex: 1; /* Start equal */
    border-radius: 2rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth physics */
    filter: grayscale(100%); /* Start boring/black&white */
}

/* When hovering the container, dim everyone... */
.bento-container:hover .bento-item {
    filter: grayscale(100%) brightness(0.7);
    flex: 1;
}

/* ...EXCEPT the one you are actually hovering */
.bento-item:hover {
    flex: 4 !important; /* GROW HUGE */
    filter: grayscale(0%) brightness(1) !important; /* Full Color */
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Mobile Fallback: Stack them normally */
@media (max-width: 768px) {
    .bento-container { flex-direction: column; height: auto; }
    .bento-item { height: 300px; flex: none; width: 100%; }
    .bento-item:hover { transform: none; }
}


/* --- 2. PREMIUM SCROLL REVEALS --- */
/* The base state (invisible) */
.reveal-up, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 0;
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
    will-change: transform, opacity;
}

/* Different starting positions */
.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-scale { transform: scale(0.9); }

/* The Active State (Visible) - JS adds this class */
.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Staggered Delays (so items don't appear all at once) */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }