:root {
    --bg-color: rgba(18, 18, 18, 0.85); /* Transparent Dark */
    --text-color: #f0f0f0;
    --accent-color: #D4AF37; /* Gold */
    --accent-hover: #b5952f;
    --secondary-bg: rgba(30, 30, 30, 0.85); /* Transparent Lighter Dark */
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

svg {
    pointer-events: none;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
}

body {
    background-color: #121212; /* Solid fallback underneath everything */
    background-image: url('assets/images/global-bg.jpg'); /* The global background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Keeps the image fixed while scrolling */
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
}

#global-bg-video, #contact-bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    display: none;
}

#contact-bg-video {
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-weight: 600;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

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

/* Navbar */
header {
    background-color: rgba(18, 18, 18, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
}

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

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

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

/* Dropdown */

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px; /* added vertical padding */
}

.slideshow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background-color: var(--bg-color);
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    filter: brightness(0.4); /* Darkened */
}

.slide.active {
    opacity: 1;
}

/* Local backgrounds */
.slide1, .s-bg1 { background-image: url('assets/images/pic1.jpg'); }
.slide2, .s-bg2 { background-image: url('assets/images/pic2.jpg'); }
.slide3, .s-bg3 { background-image: url('assets/images/pic3.jpg'); }
.slide4, .s-bg4 { background-image: url('assets/images/pic4.jpg'); }

.hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 4.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #eaeaea;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-body);
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Scroll Fading Background Section */
.scroll-container {
    height: 400vh; /* 4 images to fade through */
    position: relative;
    background-color: var(--bg-color);
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* transition removed: JS drives this exactly per frame now */
    will-change: opacity; /* Optimizes hardware acceleration for smooth fading */
}

.scroll-bg.active {
    opacity: 1;
}

.vignette-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Dark borders that adjust with screen size */
    box-shadow: inset 180px 0 200px -50px var(--bg-color), inset -180px 0 200px -50px var(--bg-color);
    z-index: 2;
    pointer-events: none;
}

.scroll-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.scroll-content h2 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 20px;
}

.scroll-content p {
    font-size: 1.2rem;
    color: #fff;
}

/* Services */
.services {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.8)), url('assets/images/services-bg.jpg') center/cover no-repeat;
    z-index: -1;
    animation: zoomInOut 15s infinite alternate ease-in-out;
}

@keyframes zoomInOut {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.services h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.services h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.service-category {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 8px;
    border-top: 4px solid var(--accent-color);
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.service-category h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.service-category ul {
    list-style: none;
    padding-left: 10px;
}

.service-category ul li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    position: relative;
    padding-left: 25px;
}

.service-category ul li::before {
    content: '■';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    top: 4px;
}

/* Contact */
.contact {
    background-color: var(--bg-color);
    padding: 100px 0;
}

.contact h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.contact h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr 1.5fr;
    gap: 30px;
    align-items: start;
}

.contact-col {
    background-color: var(--secondary-bg);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    height: 100%;
}

.contact-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-transform: uppercase;
}

.brand-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-col .footer-logo {
    width: 120px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.brand-col p {
    font-size: 0.95rem;
    color: var(--accent-color);
    line-height: 1.7;
}

.links-col ul {
    list-style: none;
    padding: 0;
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a {
    color: var(--text-color);
    transition: color 0.3s;
    font-size: 0.95rem;
}

.links-col ul li a:hover {
    color: var(--accent-color);
}

.info-col p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #ccc;
}

.info-col a {
    color: var(--text-color);
}

.info-col a:hover {
    color: var(--accent-color);
}

.map-container {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

/* Common Page Header */
.page-header {
    margin-top: 80px; /* offset for fixed navbar */
    padding: 80px 0;
    background-color: var(--secondary-bg);
    border-bottom: 2px solid var(--accent-color);
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
}

/* About Page */
.about-page-content {
    padding: 80px 0;
}

.about-quote-box {
    background-color: var(--secondary-bg);
    padding: 60px;
    border-radius: 10px;
    border-left: 5px solid var(--accent-color);
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
}

.about-quote-box h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.about-quote-box .lead {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.why-choose {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin-bottom: 40px;
}

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

.gold-tick {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.4rem;
}

.closing-statement {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 15px;
}

.slogan {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-weight: 600;
}

/* Portfolio Gallery */
.portfolio {
    padding: 80px 0;
    background-color: rgba(5, 5, 5, 0.95); /* Extra dark background for better photo visibility */
}

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

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: #222;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: rgba(10, 10, 10, 0.95); /* Slightly transparent */
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Home Work Section Grid */
.home-work-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: minmax(150px, auto);
    gap: 20px;
}

.home-work-main {
    grid-row: span 3;
    border-radius: 8px;
    overflow: hidden;
    background-color: #222;
}

.home-work-small {
    border-radius: 8px;
    overflow: hidden;
    background-color: #222;
    aspect-ratio: 16/9;
}

.home-work-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.home-work-grid div:hover img {
    transform: scale(1.05);
}

/* Responsive */
@media screen and (max-width: 900px) {
    .vignette-overlay {
        box-shadow: inset 40px 0 50px -20px var(--bg-color), inset -40px 0 50px -20px var(--bg-color);
    }
}

@media screen and (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 900px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: rgba(18, 18, 18, 0.98);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
        z-index: 1001;
    }
}

@media screen and (max-width: 768px) {
    /* Base Typography Scaling */
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; margin-bottom: 15px !important; }
    h3 { font-size: 1.5rem !important; }
    p { font-size: 1rem !important; line-height: 1.6 !important; }

    /* Hero adjustments */
    .hero-content h1 {
        font-size: 2.4rem !important;
        margin-top: 40px !important;
        line-height: 1.2 !important;
    }
    .hero-content p {
        font-size: 1rem !important;
        padding: 0 10px;
    }

    /* Section Paddings */
    section[style*="padding: 100px"] { padding: 60px 0 !important; }
    section[style*="padding: 80px"] { padding: 50px 0 !important; }

    /* Grids to single column */
    .features-grid, .process-grid, .specialty-grid, .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }
    
    .home-work-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .home-work-main {
        grid-row: span 1 !important;
        aspect-ratio: 4/3 !important;
    }

    /* specific adjustments */
    .about-quote-box {
        padding: 30px 15px !important;
    }

    .choose-us-checklist > div > div {
        padding: 30px 20px !important;
    }

    .choose-us-checklist ul li {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        align-items: flex-start !important;
    }

    .choose-us-checklist ul li span:first-child {
        font-size: 1.2rem !important;
    }

    .reviews-top {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 30px !important;
        margin-bottom: 40px !important;
    }

    .reviews-brand, .reviews-slider-container {
        min-width: 100% !important;
        width: 100% !important;
    }

    .founder-content h3 {
        font-size: 1.8rem !important;
    }

    .contact-form-container {
        grid-template-columns: 1fr !important;
        padding: 25px 15px !important;
        gap: 30px !important;
    }

    /* Stats */
    .stat-item h3 {
        font-size: 2.5rem !important;
    }
}

@media screen and (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Floating Ask Us Widget */
.floating-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ask-us-btn {
    background: var(--accent-color);
    color: #000;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    transition: transform 0.3s, background 0.3s;
    display: flex;
    align-items: center;
}

.ask-us-btn:hover {
    transform: translateY(-5px);
    background: var(--accent-hover);
}

.ask-us-popup {
    width: 320px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: popupFade 0.3s ease-out forwards;
}

@keyframes popupFade {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-header {
    background: rgba(0,0,0,0.5);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.popup-header h3 {
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 1px;
}

.popup-header button {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.popup-header button:hover {
    color: #fff;
}

.popup-body {
    padding: 20px;
}

.popup-input {
    padding: 10px 12px;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border 0.3s;
    width: 100%;
}

.popup-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.popup-submit-btn {
    padding: 12px;
    border-radius: 5px;
    border: none;
    background: var(--accent-color);
    color: #000;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
    margin-top: 5px;
    width: 100%;
}

.popup-submit-btn:hover {
    background: var(--accent-hover);
}

@media (max-width: 480px) {
    .floating-widget-container {
        bottom: 15px;
        right: 15px;
        align-items: flex-end;
    }
    .ask-us-popup {
        width: 290px;
        margin-right: 0;
    }
}

/* Slide-in Animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-150px);
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(150px);
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}
