:root {
    /* Color Palette */
    --color-bg: #F9F9F7;
    /* Warm White */
    --color-text-main: #2C2C2C;
    /* Deep Charcoal */
    --color-text-muted: #6A6A6A;
    --color-accent-primary: #D8C6C8;
    /* Mauve */
    --color-accent-secondary: #C6D8C6;
    /* Sage */
    --color-highlight: #F3E5E5;
    /* Blush Rose */
    --color-white: #FFFFFF;

    /* Font Families */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --backdrop-blur: 15px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Spacing */
    --container-max: 1280px;
    --spacing-section: 120px;
    --spacing-section-mobile: 80px;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-padding {
    padding: var(--spacing-section) 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-text-main);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-text-main);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    transform: translateY(-3px);
}

/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text-main);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links .nav-cta {
    padding: 10px 24px;
    background: var(--color-text-main);
    color: var(--color-white);
    border-radius: 30px;
}

.nav-links .nav-cta::after {
    display: none;
}

.nav-links .nav-cta:hover {
    background: var(--color-accent-primary);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.mobile-menu-btn .bar {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    transition: var(--transition);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text-main);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 60% 40%, rgba(253, 252, 248, 0) 0%, var(--color-bg) 60%),
        radial-gradient(circle at 20% 30%, #F4EBEB 0%, rgba(244, 235, 235, 0) 50%);
}

@keyframes gradientPulse {
    0% {
        background-position: 0% 50%;
        opacity: 0.6;
    }

    100% {
        background-position: 100% 50%;
        opacity: 1;
    }
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 30px;
    color: var(--color-text-main);
}

.hero h1 em {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-accent-primary);
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background-color: var(--color-text-main);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Categories Section */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.category-card {
    position: relative;
    cursor: pointer;
    /* group: hover; removed */
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
    transition: var(--transition);
    position: relative;
    /* Context for slides and controls */
}

/* Carousel Slides */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
    /* Slow zoom effect for auto-play */
}

.carousel-slide.active img {
    transform: scale(1.1);
}

.category-card:hover .card-image-wrapper {
    box-shadow: var(--shadow-hover);
    transform: translateY(-10px);
}

/* Carousel Controls */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    color: var(--color-text-main);
}

.category-card:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav:hover {
    background: #fff;
    color: var(--color-accent-primary);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    transition: var(--transition);
}

.category-card:hover .card-content h3 {
    color: var(--color-accent-primary);
}

.card-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery-grid {
    column-count: 3;
    column-gap: 30px;
}

.gallery-item {
    margin-bottom: 30px;
    break-inside: avoid;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.gallery-item:hover {
    box-shadow: var(--shadow-hover);
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact Section */
.contact {
    position: relative;
    text-align: center;
    background-color: var(--color-highlight);
    border-radius: 20px;
    margin: 40px 20px;
    overflow: hidden;
}

.contact-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
}

.contact h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.contact-btn {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Footer */
footer {
    background-color: var(--color-bg);
    padding: 60px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.copyright {
    font-size: 0.8rem;
    color: #999;
}

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 990;
}

#backToTop.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#backToTop:hover {
    transform: translateY(-5px);
    background: var(--color-text-main);
    color: var(--color-white);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-height: 90vh;
    max-width: 90vw;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-section: 80px;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .gallery-grid {
        column-count: 1;
    }

    .contact h2 {
        font-size: 2.5rem;
    }
}