/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Oswald:wght@400;500;700;900&display=swap');

/* --- BASE STYLES --- */
body {
    background-color: #ffffff;
    color: #0f172a;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif; /* Default Font */
}

/* --- CANVAS BACKGROUND (The interactive dots) --- */
#dotCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* --- BENTO BOX HOVER EFFECTS --- */
.bento-box {
    transition: all 0.4s ease;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.bento-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(5, 49, 103, 0.15); /* Blue Shadow */
    border-color: #053167; /* Brand Color Border */
}

/* --- LOADING SCREEN --- */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s ease-in-out, opacity 0.5s ease-out;
}

.loader-bar {
    width: 0%;
    height: 4px;
    background: #053167;
    margin-top: 20px;
    transition: width 1s ease-in-out;
}

/* --- ANIMATIONS --- */
.animate-slide-up {
    animation: slideUp 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes slideUp {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* --- INFINITE RUNNER ANIMATION --- */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.marquee-content {
    display: inline-block;
    animation: marquee 60s linear infinite;
    padding-left: 100%; /* Starts off-screen */
}

/* Pause animation on hover for readability */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- SWIPER CAROUSEL STYLES --- */
.swiper {
    width: 100%;
    height: 100%;
    border-radius: 12px; /* Smooth corners for the slider */
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    position: relative;
}

/* Force the Arrows and Dots to be Gold */
.swiper-button-next,
.swiper-button-prev {
    color: #d4af37 !important; /* Gold */
    transition: transform 0.2s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.2); /* Grow slightly on hover */
}

.swiper-pagination-bullet-active {
    background: #d4af37 !important; /* Gold Dot */
}

/* Dark Gradient Overlay for Text Readability */
.slide-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0) 60%);
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* --- 3D DOOR FLIP CARD --- */
.flip-card {
    background-color: transparent;
    perspective: 1000px; /* Gives the 3D depth */
    height: 400px; /* Fixed height for uniformity */
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

/* The Hover Trigger */
.flip-card:hover .flip-card-inner {
    transform: rotateY(-180deg); /* Flips like a door opening left */
}

/* Front and Back Common Styles */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Front: The Image */
.flip-card-front {
    background-color: #fff;
}

/* Back: The White Details Box (Rotated) */
.flip-card-back {
    background-color: white;
    color: black;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}