@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Inter:wght@100..900&display=swap');

:root {
    --forest-green: #1A2F23;
    --sage: #8A9A5B;
    --ivory: #FAF9F6;
    --gold: #D4AF37;
    --soft-shadow: 0 10px 40px rgba(26, 47, 35, 0.08);
    --glass-bg: rgba(250, 249, 246, 0.85);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--ivory);
    color: var(--forest-green);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: 'Playfair Display', serif;
}

/* Premium Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Carousel Styles Refined */
.carousel-container {
    overflow: visible;
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .carousel-track {
        gap: 3rem;
    }
}

.carousel-slide {
    flex: 0 0 70vw;
    /* Responsive width for better centering on mobile */
    min-width: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.15;
    transform: scale(0.85);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

@media (min-width: 768px) {
    .carousel-slide {
        flex: 0 0 400px;
    }

    .carousel-slide.active {
        transform: scale(1.1);
    }
}

.carousel-btn {
    position: absolute;
    bottom: -4rem;
    /* Move below carousel on mobile */
    top: auto;
    z-index: 20;
    width: 3rem;
    height: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
    .carousel-btn {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }
}

.carousel-btn:hover {
    background: var(--forest-green);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--ivory);
}

::-webkit-scrollbar-thumb {
    background: var(--sage);
    border-radius: 10px;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1.2s ease forwards;
}

/* Mobile Menu Styles */
#mobile-menu.active {
    transform: translateY(0);
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    transition-delay: calc(var(--i) * 0.1s);
}

#mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

/* Philosophy Section Mobile/Tablet Optimization */
@media (max-width: 1023px) {

    /* Reduce gap between cards */
    .philosophy-card {
        gap: 2rem !important;
    }

    /* Increase image size and reduce padding */
    .philosophy-card .aspect-square,
    .philosophy-card .aspect-\[4\/5\] {
        padding: 0.5rem !important;
        max-width: 280px;
        margin: 0 auto;
    }

    /* Reduce spacing in philosophy section */
    #philosophy .flex.flex-col.space-y-48 {
        gap: 3rem !important;
    }
}

/* Tablet specific adjustments */
@media (min-width: 640px) and (max-width: 1023px) {

    .philosophy-card .aspect-square,
    .philosophy-card .aspect-\[4\/5\] {
        max-width: 350px;
    }
}