/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background: #000;
    color: #fff;
}

.hidden {
    display: none !important;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    height: 400px;
    width: auto;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    object-fit: contain;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f4e4a6);
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.loading-text {
    color: #ccc;
    font-size: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #d4af37;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Main Content Styles */
    .main-content {
        display: flex;
        height: 100vh;
        position: relative;
    }
    
    /* Mobile: account for header height */
    @media (max-width: 768px) {
        .main-content {
            height: calc(100vh - 80px);
            margin-top: 80px;
        }
    }

.section {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    z-index: 2;
}

.section-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.text-content {
    margin-bottom: 2rem;
    opacity: 1;
    transition: all 0.5s ease;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.section-description {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    max-width: 300px;
    line-height: 1.6;
    text-align: center;
}

.cta-button {
    background: linear-gradient(135deg, #d4af37, #f4e4a6);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 1;
    transform: translateY(0);
    text-align: center;
    white-space: nowrap;
    min-width: 150px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* Background Video Styles */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4;
    transition: opacity 0.8s ease;
}

.section:hover .background-video {
    opacity: 0.7;
}

/* Video poster will be handled by JavaScript */

/* Background Image Styles - Removed, using video thumbnails only */
.section {
    /* No background images, using video thumbnails */
}

.section-horse {
    /* Video thumbnail will be used */
}

.section-restaurant {
    /* Video thumbnail will be used */
}

.section-wedding {
    /* Video thumbnail will be used */
}

/* 3D Model Container Styles */
.model-3d-container {
    width: 100%;
    height: 400px;
    position: relative;
    opacity: 1;
    transition: all 0.5s ease;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    backdrop-filter: none;
    background: transparent;
    border: none;
}

/* Hide 3D models when disabled */
.model-3d-container.disabled {
    display: none;
}

.model-3d-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    border-radius: 0;
}

.video-container {
    width: 100%;
    height: 400px;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.section-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.section-video:hover {
    transform: scale(1.05);
}

/* Section Backgrounds - Now using background images */
.section-horse {
    /* Background image set above */
}

.section-restaurant {
    /* Background image set above */
}

.section-wedding {
    /* Background image set above */
}

/* Hover Effects */
.section:hover {
    flex: 3;
}

.section:not(:hover) {
    flex: 0.5;
}

.section:hover .section-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.section:hover .text-content {
    opacity: 1;
    transform: translateY(-20px);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

.section:hover .cta-button {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

.section:hover .model-3d-container {
    opacity: 1;
    transform: translateY(-10px) scale(1.05);
}

.section:hover .video-container {
    opacity: 1;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #ccc;
    font-size: 0.9rem;
    z-index: 1000;
}

.footer a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #f4e4a6;
    text-decoration: underline;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
        justify-content: center;
    }
    
    .navbar-logo {
        height: 70px;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .main-content {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .section {
        height: 33.33vh;
        min-height: 300px;
        flex: none;
    }
    
    .section.expanded {
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1001;
        background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        margin-top: 0;
    }
    
    /* Hide other sections when one is expanded on mobile */
    .section.expanded ~ .section {
        display: none;
    }
    
    .section.expanded ~ .section:not(.expanded) {
        display: none;
    }
    
    .section.expanded .section-content {
        width: 100%;
        max-width: 500px;
        text-align: center;
    }
    
    .section.expanded .model-3d-container {
        height: 300px;
        margin: 1rem 0;
    }
    
    .section.expanded .text-content {
        margin-bottom: 2rem;
    }
    
    .section.expanded .cta-button {
        margin-top: 1rem;
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        letter-spacing: -0.3px;
    }
    
    .section-description {
        font-size: 1rem;
        max-width: 250px;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .model-3d-container {
        height: 250px;
        display: none; /* Hide 3D models on mobile for performance */
    }
    
    .video-container {
        height: 250px;
    }
    
    .preloader-logo {
        height: 120px;
    }
    
    .loading-bar {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem 1rem;
        justify-content: center;
    }
    
    .navbar-logo {
        height: 60px;
    }
    
    .nav {
        display: none;
    }
    
    .section-title {
        font-size: 1.8rem;
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        letter-spacing: -0.2px;
    }
    
    .section-description {
        font-size: 0.9rem;
        max-width: 200px;
    }
    
    .model-3d-container {
        height: 200px;
    }
    
    .video-container {
        height: 200px;
    }
    
    .preloader-logo {
        height: 100px;
    }
    
    .loading-bar {
        width: 200px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Transitions */
.section,
.section-overlay,
.text-content,
.cta-button,
.model-container {
    will-change: transform, opacity;
}

/* Performance Optimizations */
.section {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.model-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

