/* --- 1. GLOBAL STYLES & VARIABLES --- */
:root {
    --bg-color: #f5f5f5;
    --text-color: #333;
    --primary-color: #e84e1b;
    --accent-color: #ffaa21;
    --line-color: #ddd;
    --heading-font: 'Bebas Neue', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--body-font);
    margin: 0;
    cursor: none;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* --- 2. HERO & HEADER --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    position: relative;
    /* The static background is now a fallback */
    background-color: #333; 
    padding-bottom: 15vh;
}

/* NEW: Styles for the carousel container and slides */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    animation: carousel-fade 228s infinite ease-in-out; /* 4s per image * 6 images */
}

/* NEW: Animation keyframes and delays */
@keyframes carousel-fade {
    0%, 12.5% { opacity: 1; transform: scale(1); }
    16.66%, 100% { opacity: 0; transform: scale(1.05); }
}

.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }
.hero-slide:nth-child(4) { animation-delay: 12s; }
.hero-slide:nth-child(5) { animation-delay: 16s; }
.hero-slide:nth-child(6) { animation-delay: 20s; }
.hero-slide:nth-child(7) { animation-delay: 24s; }

.hero-content {
    position: relative;
    z-index: 2; /* Ensure content is above carousel */
}

.hero-content .handwritten-name {
    width: 100%;
    max-width: 550px;
    height: auto;
}

.hero-content .tagline {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: -10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    opacity: 0.7;
    z-index: 2; /* Ensure it's above carousel */
}

.scroll-down::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 2px;
    animation: scroll-animation 2s infinite;
}

@keyframes scroll-animation {
    0% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 10px); opacity: 0.5; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

/* --- 3. MAIN INDEX NAVIGATION --- */
.index-nav {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
}

.index-nav ul {
    width: 100%;
    max-width: 1200px;
}

.index-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid var(--line-color);
    position: relative;
}

.index-item:first-child {
    border-top: 1px solid var(--line-color);
}

.index-link {
    display: flex;
    align-items: baseline;
}

.index-number {
    font-family: var(--body-font);
    font-size: 1rem;
    color: #999;
    margin-right: 20px;
}

.index-title {
    font-family: var(--heading-font);
    font-size: 5rem;
    color: var(--text-color);
    line-height: 1;
    transition: color 0.3s ease;
}

.index-desc {
    font-size: 0.9rem;
    max-width: 300px;
    text-align: right;
    color: #666;
    transition: opacity 0.3s ease;
}

.index-item:hover .index-title {
    color: var(--primary-color);
}

.index-item:hover .index-desc {
    opacity: 0;
}

#interactive-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* --- 4. FOOTER --- */
.site-footer {
    padding: 60px 40px;
    background-color: #e9e9e9;
    color: #555;
}

.footer-columns {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* --- 5. SLIDE MENU & CURSOR --- */
.menu-container .menu-button {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    z-index: 1001;
    transition: transform 0.3s;
    display: none;
}

.menu-button .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

.menu-button.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-button.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-button.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-container .menu-button:hover {
    transform: scale(1.1);
}

.menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: left 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.menu.active {
    left: 0;
}

.menu ul li {
    margin-bottom: 25px;
    text-align: center;
}

.menu a {
    font-size: 2rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* --- 6. RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
    .menu-container .menu-button {
        display: block;
    }

    .index-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
    }

    .index-title {
        font-size: 4rem;
    }

    .index-desc {
        text-align: left;
        margin-top: 10px;
        max-width: 100%;
        opacity: 1 !important;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column ul {
        padding-left: 0;
    }
}

@media (max-width: 600px) {
    .index-title {
        font-size: 3rem;
    }

    .hero-content .handwritten-name {
        max-width: 90%;
    }

    .hero-content .tagline {
        font-size: 1rem;
    }
}

/* --- YOUR UNCHANGED CURSOR STYLES --- */
.cursor {
    display: none !important;
}

.cursor-dot {
    position: fixed;
    width: 5px;
    height: 5px;
    background-color: #e95a0c;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: background-color 0.3s ease;
}

.cursor-ring {
    position: fixed;
    width: 30px;
    height: 30px;
    background-color: #e95a0c;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    z-index: 9999;
}

.cursor-ring.hover {
    width: 40px;
    height: 40px;
    background-color: #ffaa21;
}

.cursor-dot.hover {
    background-color: #ffaa21;
    transition: background-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .cursor {
        display: block !important;
    }

    body, a, img, button, .gallery-item {
        cursor: none !important;
    }
}