:root {
    --primary: #FFDE00;
    --primary-hover: #E6C800;
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --font-head: 'Rajdhani', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Added this to lock the width */
    width: 100%;
}

section {
    scroll-margin-top: 100px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.accent {
    color: var(--primary);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    position: absolute;
    bottom: -10px;
    left: 0;
}

.center {
    text-align: center;
}

.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-darker {
    background-color: #050505;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    transition: 0.3s;
    z-index: 1000;
    background-color: rgba(15, 15, 15, 0.95);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

nav.scrolled {
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    border: 1px solid var(--primary);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--primary) !important;
}

.btn-nav:hover {
    background: var(--primary);
    color: #000 !important;
    font-weight: bold;
}

.hamburger {
    display: none;
}

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #000;
}

.sliding-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide-track {
    display: flex;
    width: calc(100vh * 8);
    animation: scroll 60s linear infinite;
}

.slide {
    height: 100vh;
    width: 80vh;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) contrast(120%) brightness(60%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-80vh * 4));
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    margin-top: 60px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 2px;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
    border: 2px solid var(--primary);
}

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

.btn-outline {
    border: 2px solid white;
    color: white;
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: white;
    color: black;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 15px 15px 0px rgba(255, 215, 0, 0.1);
}

.about-image img:hover {
    filter: grayscale(0%);
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.feature-list i {
    color: var(--primary);
    margin-right: 15px;
}

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

.card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.card {
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid #333;
    border-radius: 4px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.05);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.why-banner {
    background: linear-gradient(90deg, #111, #1a1a1a);
    padding: 40px 50px;
    border-left: 6px solid var(--primary);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.why-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.why-title {
    font-size: 2rem;
    margin: 0;
    white-space: nowrap;
}

.badges {
    display: flex;
    gap: 50px;
    align-items: center;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
}

.badge-item i {
    color: var(--primary);
    margin-bottom: 5px;
}

.big-num {
    font-family: var(--font-head);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.badge-item span:last-child {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

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

.review-card {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 4px;
    border-top: 3px solid transparent;
    transition: 0.3s;
}

.review-card:hover {
    border-top: 3px solid var(--primary);
}

.stars {
    color: var(--primary);
    margin-bottom: 15px;
}

.review-card cite {
    display: block;
    margin-top: 20px;
    color: var(--primary);
    font-weight: 600;
    font-style: normal;
}

.grid-2-bias {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 20px;
    margin-top: 5px;
}

.info-item a {
    color: white;
    text-decoration: none;
}

.info-item a:hover {
    color: var(--primary);
}

.hours-box {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
    border: 1px solid #333;
}

.hours-box ul {
    list-style: none;
    margin-top: 10px;
}

.hours-box li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

.hours-box span {
    font-weight: 700;
    color: var(--primary);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #333;
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

footer {
    background: #000;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #222;
}

.policy i {
    color: var(--primary);
    margin-right: 5px;
}

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

.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    height: 450px;
    border: 1px solid #333;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(100%);
}

.gallery-item .overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    transition: bottom 0.3s ease;
    z-index: 2;
}

.gallery-item .overlay h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-item .overlay p {
    color: white;
    font-size: 0.9rem;
}

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

.gallery-item:hover {
    border-color: var(--primary);
}

.gallery-item:hover .overlay {
    bottom: 0;
}

.hidden, .hidden-left, .hidden-right, .hidden-up {
    opacity: 0;
    transition: all 1s ease;
}

.hidden-left {
    transform: translateX(-50px);
}

.hidden-right {
    transform: translateX(50px);
}

.hidden-up {
    transform: translateY(50px);
}

.show {
    opacity: 1;
    transform: none;
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

@media (max-width: 900px) {
    .why-content {
        flex-direction: column;
        text-align: center;
    }

    .why-banner {
        border-left: none;
        border-top: 6px solid var(--primary);
    }

    .badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-2-bias {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .why-content {
        justify-content: center;
        text-align: center;
    }

    .badges {
        flex-direction: column;
        gap: 20px;
    }

    .hamburger {
        display: block;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 15px;
        display: block;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(15, 15, 15, 0.98);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
        transition: all 0.5s ease-in-out;
    }

    .nav-links.active {
        max-height: 500px;
        opacity: 1;
        padding: 30px 0;
        border-bottom: 2px solid var(--primary);
    }
}

/* Position the Quote button above the Phone button */
.fab-btn.quote {
    bottom: 120px; /* 30px original + 60px height + 15px gap */
    border: none;  /* Removes default gray button border */
    cursor: pointer;
}

.fab-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: #000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(255, 222, 0, 0.4);
    z-index: 1001;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

.fab-btn:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 222, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 222, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 222, 0, 0); }
}

/* Cursor Effect */
.txt-type > .txt {
    border-right: 0.2rem solid var(--primary);
    color: var(--primary);
}

.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 2000; /* Above the navbar */
    background: transparent;
}

.scroll-progress-bar {
    height: 4px;
    background: var(--primary); /* Your yellow color */
    width: 0%;
    box-shadow: 0 0 10px var(--primary); /* Glow effect */
    transition: width 0.1s ease-out;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--bg-card);
    margin-bottom: 15px;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}
.faq-question:hover {
    color: var(--primary);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #111;
}
.faq-answer p {
    padding: 20px;
    color: var(--text-muted);
}
.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust if text is long */
}
.faq-item.active i {
    transform: rotate(45deg); /* Turns the plus into an X */
    color: var(--primary);
    transition: 0.3s;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover { color: var(--primary); }

.quote-form input, .quote-form select, .quote-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #0f0f0f;
    border: 1px solid #333;
    color: white;
    font-family: var(--font-body);
}

.quote-form input:focus { border-color: var(--primary); outline: none; }

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

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 99999; /* Highest priority */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pulsing-logo {
    width: 80px;
    animation: pulseLogo 1.5s infinite;
}

.loading-bar {
    width: 150px;
    height: 3px;
    background: #333;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: var(--primary);
    animation: loading 1.5s infinite;
}

@keyframes pulseLogo {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes loading {
    0% { left: -50%; }
    100% { left: 100%; }
}

.loaded {
    opacity: 0;
    pointer-events: none;
}

/* Basic Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 3000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
}

/* --- Form Style Fixes --- */

/* 1. Ensure the modal content uses the dark theme variable */
.modal-content {
    background-color: var(--bg-card); /* Using your variable #1a1a1a */
    margin: 10% auto; 
    padding: 40px;
    border: 1px solid var(--primary);
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 222, 0, 0.2);
    /* Set a default text color for all content inside the modal */
    color: var(--text-main); /* Inherit the white text color */
}

/* 2. Style all form elements for the dark theme */
.quote-form input, .quote-form select, .quote-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    /* Background and border are already good: #0f0f0f and #333 */
    background: var(--bg-dark); /* Use your dark variable for consistency */
    border: 1px solid #333;
    /* Explicitly set text color to white */
    color: var(--text-main); 
    font-family: var(--font-body);
    border-radius: 4px; /* Optional: adds a slight curve */
}

/* 3. Style the placeholders */
.quote-form input::placeholder, 
.quote-form textarea::placeholder {
    color: var(--text-muted); /* Use your muted color for good contrast */
    opacity: 1; /* Ensures it's not transparent in some browsers */
}

/* 4. Keep the focus style for the border */
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { 
    border-color: var(--primary); 
    outline: none; 
}

/* The Close Button */
.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Keyframe for simple fade-in effect */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Optional: Prevent scrolling when modal is open */
.modal-open {
    overflow: hidden;
}