:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --gold-primary: #D4AF37;
    --gold-light: #F4DF90;
    --gold-dark: #AA8C2C;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Background Texture */
.background-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 50%, rgba(20, 20, 20, 1) 0%, rgba(5, 5, 5, 1) 100%),
        url('assets/bg_texture.png');
    /* Will fallback to gradient if image missing */
    background-size: cover;
    background-blend-mode: overlay;
    z-index: -1;
    opacity: 0.8;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
}

.gold-text {
    background: linear-gradient(to right, var(--gold-light), var(--gold-primary), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold-primary);
    /* Fallback */
}

.gold-title {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    background: linear-gradient(45deg, var(--gold-dark), var(--gold-light), var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 20px;
}

/* Slide Container */
.slides-container {
    height: 100vh;
    width: 100vw;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    transform: scale(0.95);
    overflow-y: auto;
    /* Enable scrolling */
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 10;
}

/* Layouts */
.content-center {
    text-align: center;
    max-width: 800px;
}

.split-layout {
    display: flex;
    width: 100%;
    min-height: 100%;
    align-items: center;
    gap: 4rem;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.left-panel,
.right-panel {
    flex: 1;
}

.text-panel {
    align-self: flex-start;
    padding-top: 25vh;
    /* Fixed top position for titles */
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Components */
.logo-container.large .main-logo {
    width: 250px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
}

.small-logo {
    width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.main-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

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

.logo-frame {
    border: 2px solid var(--gold-dark);
    padding: 2rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.logo-frame img {
    width: 150px;
}

.text-content p,
.text-block p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.05);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h4 {
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* Controls */
.controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 100;
}

.nav-btn {
    background: transparent;
    border: 1px solid var(--gold-dark);
    color: var(--gold-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: var(--gold-primary);
    color: #000;
}

.progress-bar {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.progress-fill {
    height: 100%;
    background: var(--gold-primary);
    width: 0%;
    transition: width 0.5s ease;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        /* Enable body scroll */
        height: auto;
    }

    .slides-container {
        height: auto;
        overflow: visible;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .slide {
        position: relative;
        /* Stack naturally */
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        min-height: 100vh;
        /* Each section takes at least full screen */
        opacity: 1 !important;
        /* Always visible */
        visibility: visible !important;
        transform: none !important;
        padding: 4rem 2rem;
        overflow: visible;
        justify-content: center;
        /* Center content vertically */
    }

    /* Adjust specific slides if needed */
    #slide-1 {
        min-height: 100vh;
    }

    .main-title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .split-layout,
    .split-layout.reverse {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        min-height: auto;
        /* Allow content to dictate height */
    }

    .logo-frame {
        padding: 1rem;
    }

    .logo-frame img {
        width: 100px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1rem;
    }

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

    .service-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .service-card p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0;
    }

    .controls {
        display: none !important;
        /* Hide navigation controls */
    }

    .content-center {
        margin-top: 0;
        margin-bottom: 0;
    }

    /* Ensure animations don't hide content since we aren't triggering them with JS active class as strictly */
    .fade-in-up {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Contact Form Styles */
.styled-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gold-dark);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.submit-btn {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background: var(--gold-primary);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}