@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Cinzel:wght@500;600;700;800&family=Montserrat:wght@400;500;600&display=swap');

.font-logo {
    font-family: 'Cinzel', serif;
}

.font-tabs {
    font-family: 'Montserrat', sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333333;
    overflow-x: hidden;
    background-color: #fcf8f5; /* Very subtle warm background */
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Playfair Display', serif;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}
.loader {
    border: 3px solid #f9e4d4;
    border-radius: 50%;
    border-top: 3px solid #e5989b;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Search Overlay Transition */
#search-overlay {
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

/* Custom dropdown transition */
.group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-right {
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dropdown-menu-right.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Utilities */
.hover-color:hover {
    color: #e5989b;
    transition: color 0.3s;
}

/* Hide scrollbar for cleaner look if desired, but keep it accessible */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Entry Animations for Full Pages */
@keyframes fade-in-left {
    0% { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes fade-in-right {
    0% { opacity: 0; transform: translateX(40px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-left {
    animation: fade-in-left 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-fade-in-right {
    animation: fade-in-right 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-fade-in-up {
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Form Styles for Login/Register */
.auth-input {
    transition: all 0.3s ease;
}
.auth-input:focus {
    border-color: #e5989b;
    box-shadow: 0 4px 14px 0 rgba(229, 152, 155, 0.2);
    transform: translateY(-1px);
}
.auth-btn {
    transition: all 0.3s ease;
}
.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(0,0,0,0.3);
}

/* Vertical Text Carousel */
@keyframes vertical-carousel {
    0%, 20% { transform: translateY(0); }
    28%, 48% { transform: translateY(-80px); }
    56%, 76% { transform: translateY(-160px); }
    84%, 100% { transform: translateY(-240px); }
}
.animate-vertical-carousel {
    animation: vertical-carousel 15s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* Horizontal Marquee (Hollow Text) */
.text-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
}
.text-outline-black {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.8);
}

@keyframes horizontal-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-horizontal-marquee {
    display: inline-block;
    white-space: nowrap;
    animation: horizontal-marquee 25s linear infinite;
}

/* Sliding Auth Overlay Animation Styles */
.auth-container {
    position: relative;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}
.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base (Mobile) Styles */
.sign-in-container, .sign-up-container {
    width: 100%;
    left: 0;
}
.sign-in-container {
    transform: translateX(0);
    z-index: 2;
    opacity: 1;
}
.sign-up-container {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}
.auth-container.right-panel-active .sign-in-container {
    transform: translateX(-100%);
    opacity: 0;
}
.auth-container.right-panel-active .sign-up-container {
    transform: translateX(0);
    opacity: 1;
    z-index: 5;
    animation: show-mobile 0.7s;
}

@keyframes show-mobile {
    0%, 49.99% { opacity: 0; z-index: 1; }
    50%, 100% { opacity: 1; z-index: 5; }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .sign-in-container, .sign-up-container {
        width: 50%;
    }
    .sign-in-container {
        transform: translateX(0);
    }
    .sign-up-container {
        transform: translateX(0);
    }
    .auth-container.right-panel-active .sign-in-container {
        transform: translateX(100%);
        opacity: 0;
    }
    .auth-container.right-panel-active .sign-up-container {
        transform: translateX(100%);
        opacity: 1;
        z-index: 5;
        animation: show-desktop 0.7s;
    }
}

@keyframes show-desktop {
    0%, 49.99% { opacity: 0; z-index: 1; }
    50%, 100% { opacity: 1; z-index: 5; }
}
.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}
.auth-container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}
.overlay {
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-container.right-panel-active .overlay {
    transform: translateX(50%);
}
.overlay-panel {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    height: 100%;
    width: 50%;
    padding: 0 5rem 5rem 5rem;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.overlay-left {
    transform: translateX(-20%);
}
.auth-container.right-panel-active .overlay-left {
    transform: translateX(0);
}
.overlay-right {
    right: 0;
    transform: translateX(0);
}
.auth-container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

@keyframes slide-in-right-to-left {
    0% { opacity: 0; transform: translateX(60px); }
    100% { opacity: 1; transform: translateX(0); }
}
.animate-slide-in-right-to-left {
    animation: slide-in-right-to-left 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Swiper Hero Animations & Overrides */
.swiper-slide-active img {
    animation: kenBurns 7s ease-out forwards;
}
@keyframes kenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

/* Typing/Reveal effect from left to right */
.ani-type-reveal {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
}

.swiper-slide-active .ani-type-reveal {
    animation: typeReveal 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes typeReveal {
    0% {
        clip-path: inset(0 100% 0 0);
        opacity: 1;
    }
    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

.hero-swiper .swiper-pagination-bullet {
    background-color: white;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}
.hero-swiper .swiper-pagination-bullet-active {
    background-color: white;
    opacity: 1;
    width: 32px;
    border-radius: 6px;
}
.hero-swiper .swiper-button-prev, 
.hero-swiper .swiper-button-next {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hero-swiper .swiper-button-prev:hover {
    transform: translateX(-5px);
}
.hero-swiper .swiper-button-next:hover {
    transform: translateX(5px);
}
/* Scrolled Header Overrides */
.scrolled-header {
    background-color: #000 !important;
}
.scrolled-header a, 
.scrolled-header button, 
.scrolled-header i, 
.scrolled-header .font-logo,
.scrolled-header nav span {
    color: #fff !important;
}
.scrolled-header span.bg-black {
    background-color: #fff !important;
}
.scrolled-header .dropdown-menu a,
.scrolled-header .dropdown-menu-right a {
    color: #4b5563 !important; /* text-gray-600 for dropdowns */
}
.scrolled-header .dropdown-menu a:hover,
.scrolled-header .dropdown-menu-right a:hover {
    color: #000 !important;
}
.scrolled-header .text-gray-500 {
    color: #cbd5e1 !important; /* Lighter text for logo subtitle */
}

/* Header Fade Animation on Scroll */
.fixed-header-fade {
    animation: fadeIn 0.4s ease-out forwards;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
