:root {
    --gold: #c5a059;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
    --dark: #0a0a0a;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
}

/* Glass Header */
nav {
    position: fixed;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav h1 { font-weight: 200; letter-spacing: 5px; font-size: 1.5rem; }
nav h1 span { font-weight: 800; color: var(--gold); }

nav a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.4s;
}

nav a:hover { color: var(--gold); }

/* Video Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    filter: brightness(0.4);
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
}

/* Modern Grid */
section { padding: 100px 10%; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    background: rgba(255,255,255,0.07);
    border-color: var(--gold);
    transform: translateY(-10px);
}

/* The Floating Action Button (FAB) */
.floating-quote {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gold);
    color: #000;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    animation: pulse-glow 2s infinite;
}

/* User-friendly hover: Subtle lift instead of a "jump" */
.floating-quote:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.6);
}

/* Pulse animation to draw the eye gently */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

/* On very small phones, make the button smaller */
@media screen and (max-width: 480px) {
    .floating-quote {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.8rem;
    }
}


footer {
    padding: 50px;
    text-align: center;
    border-top: 1px solid #222;
    color: #666;
}
/* Video Background Logic */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1; /* Keeps video behind everything */
    overflow: hidden;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the screen without stretching */
    filter: grayscale(40%) contrast(110%); /* Subtle professional color grade */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
}

/* Hero Content Styling */
.hero-content {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
}

.hero-content h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -2px;
    margin: 20px 0;
}

.hero-content h1 span {
    font-weight: 200;
    color: var(--gold);
    font-style: italic;
}

.reveal-text {
    text-transform: uppercase;
    letter-spacing: 8px;
    color: var(--gold);
    font-size: 0.9rem;
}

/* Buttons */
.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.btn-outline {
    padding: 15px 40px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: 0.4s;
}

.btn-outline:hover {
    background: white;
    color: black;
}
/* Update the Hero for Scrolling */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Fix Video only inside the Hero */
.video-container {
    position: absolute; /* Changed from fixed to absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.info-section {
    background: var(--white);
    color: var(--dark);
    padding: 120px 0;
}

.split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.text-block { flex: 2; }
.stat-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.stat-item h3 { font-size: 2.5rem; color: var(--gold); }
.stat-item p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

.sub-label {
    text-transform: uppercase;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.dark-feature {
    background: #111;
    padding: 120px 0;
}

.dark-feature h2 { font-size: 3rem; margin-bottom: 60px; }

.cta-section {
    padding: 100px 0;
    text-align: center;
    background: var(--gold);
    color: var(--dark);
}

.cta-section h2 { font-size: 2.5rem; margin-bottom: 30px; text-transform: uppercase; }

/* Smooth Scroll Effect */
html { scroll-behavior: smooth; }
/* --- MOBILE RESPONSIVENESS --- */

@media screen and (max-width: 768px) {
    /* Adjust Hero Typography */
    .hero-content h1 {
        font-size: 3.5rem; /* Smaller text for mobile screens */
        line-height: 1.1;
    }

    /* Navigation Hamburger Styling */
    .menu-toggle {
        display: block; /* Show hamburger only on mobile */
        cursor: pointer;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--white);
        transition: 0.3s;
    }

    /* Hide Links by default on mobile */
    .nav-links {
        position: absolute;
        top: 80px;
        left: -100%; /* Off-screen */
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 50px;
    }

    .nav-links.active {
        left: 0; /* Slide in */
    }

    .nav-links a {
        margin: 20px 0;
        font-size: 1.5rem;
        display: block;
    }

    /* Transform hamburger to 'X' when active */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Layout Adjustments */
    .split {
        flex-direction: column; /* Stack About text and Stats */
        text-align: center;
        gap: 40px;
    }

    .stat-grid {
        grid-template-columns: 1fr; /* Single column for stats */
    }

    .hero-btns {
        flex-direction: column; /* Buttons stack on top of each other */
        width: 100%;
        padding: 0 20px;
    }

    .btn-luxe, .btn-outline {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 60px 5%; /* Less padding on mobile */
    }
}

/* Ensure video covers the screen on vertical phones */
@media (max-aspect-ratio: 16/9) {
    .bg-video {
        width: auto;
        height: 100%;
    }
}
/* DESKTOP STYLES (Default) */
.nav-links {
    display: flex;
    list-style: none;
}
.menu-toggle { display: none; } /* Hide hamburger on desktop */

/* MOBILE STYLES (Screen smaller than 768px) */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show hamburger */
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen to the right */
        width: 100%;
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease; /* Smooth slide-in */
    }

    /* This class is added by JavaScript */
    .nav-links.active {
        right: 0; /* Slides into view */
    }

    .nav-links li { margin: 25px 0; }
    .nav-links a { font-size: 1.8rem; color: white; text-decoration: none; }

    /* Hamburger Animation to 'X' */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #c5a059; /* Gold */
    margin: 5px;
    display: block;
    transition: 0.3s;
}
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: #000; /* Fallback color */
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is the "Magic" line for mobile */
    pointer-events: none; /* Prevents users from clicking/pausing the video */
}

/* Specific Mobile Fix for vertical screens */
@media screen and (max-width: 768px) {
    .video-container {
        height: 100vh; /* Ensures it stays full screen even when URL bar moves */
    }
    
    .bg-video {
        /* This ensures the video zooms into the center of the action on a narrow screen */
        width: 100vw;
        height: 100vh;
        object-position: center; 
    }
}
/* Modern Ghost Button for Hero */
.btn-luxe {
    position: relative;
    padding: 15px 45px;
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px); /* Makes it look like glass over the video */
}

.btn-luxe:hover {
    border-color: var(--gold);
    color: #000;
    background: var(--gold);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}
@media screen and (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* Start hidden */
        width: 100%;
        height: 100vh;
        background: #0a0a0a;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 999; /* Higher than video */
    }

    .nav-links.active {
        right: 0; /* Slide in */
    }

    /* Make the hamburger icon sit ABOVE the sliding menu */
    .menu-toggle {
        display: block;
        z-index: 1000; 
        cursor: pointer;
    }
}
/* The button inside your page sections */
.btn-solid {
    display: inline-block;
    padding: 18px 40px;
    background: var(--dark); /* Black background */
    color: var(--gold); /* Gold text */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    border: 2px solid var(--dark);
    transition: 0.3s ease;
}

.btn-solid:hover {
    background: transparent;
    color: var(--dark);
}

/* The Floating Button logic */
.floating-quote {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gold);
    color: #000;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    z-index: 2000; /* Ensure it is above EVERYTHING */
    display: flex;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Hide the floating button on desktop to keep it clean */
@media screen and (min-width: 769px) {
    .floating-quote {
        display: none;
    }
}
/* Container for the Quote Form */
.quote-container {
    padding-top: 150px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.quote-header h1 {
    font-size: 3rem;
    margin-bottom: 40px;
}

/* Form Styling - Removing the 'Blocky' look */
.luxe-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 24px; /* Soft, modern rounded corners */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    text-align: left;
    margin-bottom: 100px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.full-width {
    grid-column: span 2;
}

.input-group label {
    display: block;
    color: var(--gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Soft Input Design */
input, select, textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; /* Smooth corners */
    color: white;
    font-family: inherit;
    transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
}

textarea {
    resize: none;
    height: 150px;
}

/* Mobile Fix for Form */
@media screen and (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .full-width {
        grid-column: span 1;
    }
    .luxe-form {
        padding: 30px 20px;
        margin: 0 15px 50px 15px;
    }
}
/* The Floating Button Base */
.floating-quote {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gold);
    color: #000;
    padding: 16px 28px;
    border-radius: 50px; /* Fully rounded "Pill" shape */
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    z-index: 9999; /* Ensures it stays above the video and all sections */
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-glow 2.5s infinite;
}

/* User-Friendly Hover: Lift and Brighten */
.floating-quote:hover {
    transform: translateY(-8px) scale(1.05);
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

/* The "Pulse" Animation: Draws attention without being annoying */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(197, 160, 89, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
    }
}

/* Mobile Customization */
@media screen and (max-width: 768px) {
    .floating-quote {
        bottom: 20px;
        right: 20px;
        padding: 14px 22px;
        font-size: 0.75rem;
    }
}
/* Portfolio Specific Styling */
.portfolio-header {
    padding: 150px 0 50px;
    text-align: center;
}

.project-item {
    padding: 100px 0;
}

.project-item.reverse .split {
    flex-direction: row-reverse;
}

.project-img {
    flex: 1;
    overflow: hidden;
    border-radius: 20px; /* Non-blocky, soft corners */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.project-img img {
    width: 100%;
    display: block;
    transition: transform 0.8s ease;
    filter: grayscale(20%);
}

.project-item:hover .project-img img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.project-info {
    flex: 1;
    padding: 40px;
}

.category {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.project-info h2 {
    font-size: 2.8rem;
    margin: 15px 0;
}

.specs {
    list-style: none;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.specs li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.specs strong {
    color: var(--gold);
    margin-right: 10px;
}

/* Mobile Portfolio Fix */
@media screen and (max-width: 768px) {
    .project-item .split, 
    .project-item.reverse .split {
        flex-direction: column;
    }
    
    .project-info {
        padding: 40px 0 0;
    }
    
    .project-info h2 {
        font-size: 2rem;
    }
}
.services-header {
    padding: 150px 0 60px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 20px; /* Soft corners */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

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

.service-icon {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(197, 160, 89, 0.2); /* Faded gold number */
    position: absolute;
    top: 20px;
    right: 20px;
}

.service-card h3 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.8;
}

/* Mobile Tweak */
@media screen and (max-width: 480px) {
    .service-card {
        padding: 30px;
    }
}
/* AI Agent Container */
.ai-agent-container {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Opposite side of the Quote button */
    z-index: 10000;
    font-family: inherit;
}

.ai-toggle-btn {
    background: #111;
    color: var(--white);
    border: 1px solid var(--gold);
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: 0.3s;
}

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

/* Chat Window */
.ai-chat-window {
    display: none; /* Hidden by default */
    width: 350px;
    height: 450px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 20px;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.chat-header {
    padding: 15px 20px;
    background: rgba(197, 160, 89, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    padding: 10px 15px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.ai-message {
    background: rgba(197, 160, 89, 0.1);
    color: var(--white);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background: var(--gold);
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 15px;
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 12px;
    color: white;}
    /* Navigation Container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--gold);
    transition: 0.3s;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Shows hamburger on mobile */
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 100%;
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0; /* Slides in */
    }

    /* Animation for the Hamburger to turn into an 'X' */
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}
/* 1. Hide desktop links on mobile */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none; /* Hide the row of links shown in your screenshot */
    }

    /* 2. Show the hamburger menu */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    /* 3. This is the 'Slide-out' menu that WILL work */
    .nav-links.active {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: #111;
        flex-direction: column;
        padding: 100px 20px;
        z-index: 2000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
}
.ai-agent-container {
    bottom: 20px;
    left: 20px;
}

.floating-quote {
    bottom: 20px;
    right: 20px;
}

/* Ensure the cards don't get stuck behind the buttons */
.container, .services-grid {
    padding-bottom: 100px; /* Adds space at the bottom of the page */
}