/* CSS Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f8f9fa;
    --accent-color: #d4af37; /* subtle gold */
    --text-color: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: #050505;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor */
}

/* --- Cinematic Preloader --- */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #050505;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-family: var(--font-heading);
}

.loader-content {
    text-align: center;
    width: 300px;
}

.loader-title {
    font-size: 2rem;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.loader-line-wrapper {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.1);
    position: relative;
    margin-bottom: 1rem;
}

.loader-line {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-color);
}

.loader-percentage {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--accent-color);
}

/* --- Custom Cursor --- */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212, 175, 55, 0.5); /* Accent color */
    transition: width 0.2s, height 0.2s;
}

/* --- Fixed Navigation --- */
.fixed-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 500;
    pointer-events: none; /* Let clicks pass through empty space */
}

.nav-logo {
    display: flex;
    align-items: center;
    pointer-events: auto;
    cursor: none;
}

.nav-logo img {
    height: 60px; /* Sized beautifully for a modern header */
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    pointer-events: auto;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    transition: all 0.3s ease;
    cursor: none;
}

.nav-menu a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* --- Video Background Cover --- */
.bg-video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%) scale(1.3);
}

@media (max-aspect-ratio: 16/9) {
    .bg-video-iframe {
        width: 180vh; /* 100vh * 16/9 = 177.7vh */
        height: 100vh;
    }
}

@media (min-aspect-ratio: 16/9) {
    .bg-video-iframe {
        width: 100vw;
        height: 56.25vw; /* 100vw * 9/16 = 56.25vw */
    }
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: none;
    pointer-events: auto;
    z-index: 501;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 5px;
    transition: all 0.3s linear;
    transform-origin: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

.nav-inquire {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.5rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    pointer-events: auto;
    transition: all 0.3s ease;
    cursor: none;
}

.nav-inquire:hover {
    background: #fff;
    color: #000;
}

/* --- Fixed Socials --- */
.fixed-socials {
    position: fixed;
    right: 4rem;
    bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 500;
}

.fixed-socials a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    opacity: 0.5;
    transition: opacity 0.3s ease;
    cursor: none;
}

.fixed-socials a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Main Wrapper for ScrollTrigger */
.main-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Background Layers */
.bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0; /* All hidden initially except Phase 1 */
    will-change: transform, opacity;
}

#bg-phase1 {
    opacity: 1; /* First layer visible */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 10;
}

/* Content Container */
.content-container {
    position: relative;
    z-index: 20;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phase-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    padding: 2rem;
}

.phase-content.active {
    opacity: 1;
    pointer-events: auto;
}

/* Typography & Elements */
.title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-color);
}

.heading {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.description {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #cccccc;
}

/* Glassmorphism Panels (Visuals removed as requested) */
.glass-panel {
    padding: 4rem;
    max-width: 800px;
    /* Adding a subtle text shadow to keep text readable without the glass background */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Stats Layout */
.stats {
    display: flex;
    justify-content: space-around;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaaaaa;
}

/* Services Layout */
.services-list {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.service-item {
    flex: 1;
    padding: 3rem 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.service-item > * {
    position: relative;
    z-index: 2;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.7;
    display: block;
    margin-bottom: 1rem;
}

.service-item h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-item p {
    font-size: 0.9rem;
    color: #bbbbbb;
}

/* Gallery Preview */
.gallery-preview {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-img {
    flex: 1;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    border: 1px solid rgba(255,255,255,0.05);
}

/* CTA Button */
.cta-button {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    background: #fff;
    transform: scale(1.05);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 15px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Large Typography for Cinematic Panels (Desktop) --- */
@media (min-width: 769px) {
    .services-panel .service-number {
        font-size: 8rem !important;
        margin-bottom: 2rem !important;
    }
    .services-panel h4 {
        font-size: 4rem !important;
        margin-bottom: 1.5rem !important;
        text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    }
    .services-panel p {
        font-size: 2rem !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    }
    .services-panel .heading {
        font-size: 5rem !important;
    }
    .services-panel .description {
        font-size: 2rem !important;
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .fixed-nav {
        padding: 1rem 2rem;
    }
    .hamburger {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 500;
        gap: 2rem;
    }
    .nav-menu.active {
        transform: translateY(0);
    }
    .nav-menu a {
        font-size: 1.5rem;
    }
    .nav-logo img {
        height: 40px;
    }
    .fixed-socials {
        display: none;
    }
    .title {
        font-size: 3rem;
    }
    .subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    .heading {
        font-size: 2.2rem;
    }
    .glass-panel {
        padding: 2rem;
        max-width: 90%;
    }
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    .services-list {
        flex-direction: column;
        gap: 1.5rem;
    }
    .gallery-preview {
        flex-direction: column;
        gap: 1rem;
    }
    .phase-content {
        padding: 1rem;
    }
    .stat-num {
        font-size: 2rem !important;
    }
}
