:root {
    --primary: #1a1a1a;
    --secondary: #7A8B72;
    /* Deeper Gold */
    --accent: #f8f4eb;
    /* --btn: linear-gradient(90deg, #4a0e0e 0%, #721f1f 25%, #8b2635 50%, #721f1f 75%, #4a0e0e 100%); */
    --btn: #722F37;
    /* Warm Beige/Gold */
    --white: #ffffff;
    --black: #000000;
    --text-main: #1a1a1a;
    --text-light: #666666;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
    --header-height: 140px;
}

body {
    background: var(--white);
    color: var(--text-main);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Topbar */
.topbar {
    background: var(--primary);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.topbar-info span {
    margin-right: 20px;
}

.topbar-info i {
    color: var(--secondary);
    margin-right: 8px;
}

.topbar-social a {
    margin-left: 15px;
    opacity: 0.8;
}

.topbar-social a:hover {
    color: var(--secondary);
    opacity: 1;
}

/* Header & Topbar Overlay */
header {
    height: var(--header-height);
    background: transparent;
    display: flex;
    flex-direction: column;
    position: absolute;
    /* Overlay on hero */
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: var(--accent) !important;
    height: 100px;
    position: fixed;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

header.scrolled nav ul li a {
    color: var(--primary) !important;
    opacity: 1 !important;
}

header.scrolled .logo h1 {
    color: var(--primary) !important;
}

/* ===== LOGO IMAGE VISIBILITY FIXES ===== */
/* Default: header is transparent over dark hero — invert logos to white */
.logo-combined .logo-symbol,
.logo-combined .logo-name {
    filter: invert(1) brightness(10);
    transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled: header has light beige bg — restore original dark logo */
header.scrolled .logo-combined .logo-symbol,
header.scrolled .logo-combined .logo-name {
    filter: none;
}

/* Combined logo layout */
.logo-combined {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

/* Override global img { display: block; max-width: 100%; } */
.logo-combined img.logo-symbol {
    display: inline-block !important;
    height: 58px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-combined img.logo-name {
    display: inline-block !important;
    height: 36px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    margin-left: -6px;
    flex-shrink: 0;
}

/* Scrolled: slightly smaller logo */
header.scrolled .logo-combined img.logo-symbol {
    height: 48px !important;
}

header.scrolled .logo-combined img.logo-name {
    height: 30px !important;
}

.topbar {
    background: var(--btn);
    color: var(--white);
    padding: 10px 0;
    font-size: 13px;
    width: 100%;
}

header.scrolled .topbar {
    display: none;
    /* Hide topbar on scroll for compactness */
}

.nav-row {
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
}

.logo h1 {
    font-size: 24px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--white);
    transition: var(--transition);
}

header.scrolled .logo h1 {
    color: var(--primary);
}

nav ul li a {
    color: var(--white);
    opacity: 0.9;
}

header.scrolled nav ul li a {
    color: var(--primary) !important;
    /* Dark color on light background */
    opacity: 1 !important;
}

header.scrolled .mobile-toggle {
    color: var(--primary) !important;
}

.logo span {
    color: var(--secondary);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 35px;
}

nav ul li a {
    font-weight: 400;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--white);
    position: relative;
    opacity: 0.8;
}

nav ul li a:hover,
nav ul li a.active {
    opacity: 1;
    color: var(--secondary);
}

/* Scrolled nav color already handled above */

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

.header-btn {
    display: flex;
    align-items: center;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    margin-left: 20px;
    cursor: pointer;
    color: var(--white);
    /* White by default over dark hero */
    transition: color 0.4s ease;
}

header.scrolled .mobile-toggle {
    color: var(--primary) !important;
}

.btn {
    padding: 15px 35px;
    background: var(--btn);
    color: var(--white);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
}

.btn:hover {
    background: var(--btn);
    color: var(--accent);
    transform: translateY(-5px);
    /* box-shadow: 0 15px 30px rgba(212, 175, 55, 0.2); */
    box-shadow: var(--btn);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--white);
    /* Thinner borders for elegance */
    color: var(--white);
}

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

/* Alert Messages */
.alert {
    animation: fadeInUp 0.5s ease;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Glassmorphism utility */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0px;
    /* Sharper, modern edges */
}

/* Hero Section */
.hero {
    height: calc(100vh - var(--header-height));
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 72px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 35px;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

/* Sections - More Compact */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.section-title .divider {
    width: 80px;
    height: 3px;
    background: var(--secondary);
    margin: 0 auto 20px;
}

/* About Home */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Architectural Elements */
.line-decor {
    position: absolute;
    background: rgba(184, 150, 80, 0.1);
    z-index: -1;
}

.line-v {
    width: 1px;
    height: 100%;
    top: 0;
}

.line-h {
    height: 1px;
    width: 100%;
    left: 0;
}

.bg-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/p6.jpg');
    /* Subtle grain */
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

.about-img img {
    border-radius: 0;
    box-shadow: 30px 30px 0px var(--secondary);
    /* Bold offset shadow */
}

/* Broken Grid Layouts */
.overlap-grid {
    display: flex;
    align-items: center;
    position: relative;
}

.overlap-text {
    background: var(--white);
    padding: 80px;
    width: 60%;
    position: absolute;
    right: 0;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.overlap-img {
    width: 40%;
    z-index: 1;
}

.overlap-img img {
    width: 95%;
    height: 600px;
    object-fit: cover;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--accent);
    padding: 40px;
    border-radius: 5px;
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    background: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

/* Footer */
footer {
    background: var(--btn);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer-col p {
    color: var(--accent);
    margin-bottom: 20px;
}

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

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

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--accent) !important;
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        height: 80px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

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

    #main-nav {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: min(82vw, 320px);
        height: 100vh;
        background: var(--primary);
        z-index: 1002;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        padding: 110px 28px 32px;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
        box-shadow: -18px 0 45px rgba(0, 0, 0, 0.28);
    }

    #main-nav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    #main-nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 18px;
    }

    #main-nav ul li {
        margin: 0;
        width: 100%;
    }

    #main-nav ul li a {
        display: block;
        width: 100%;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        font-size: 18px;
        letter-spacing: 1.5px;
        color: var(--white) !important;
        opacity: 1;
    }

    .mobile-toggle {
        display: block !important;
        position: relative;
        z-index: 1003;
    }
}

.parallax-img {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Carousel & Form Styles */
.reviews-container {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

/* Google Reviews Carousel */
.google-reviews-section {
    background: var(--accent);
    padding: 60px 0;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
}

.reviews-track-container {
    overflow: hidden;
    margin: 0 40px;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 20px;
}

.google-review-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    flex: 0 0 calc(33.333% - 14px);
    /* 3 cards on desktop */
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 992px) {
    .google-review-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .google-review-card {
        flex: 0 0 100%;
    }

    .reviews-track-container {
        margin: 0;
    }
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border: none;
    transition: var(--transition);
}

.carousel-nav:hover {
    background: var(--secondary);
    color: var(--white);
}

.carousel-nav.prev {
    left: -20px;
}

.carousel-nav.next {
    right: -20px;
}

.google-logo-badge {
    height: 18px;
    vertical-align: middle;
    margin-left: 5px;
}

.review-slide {
    display: none;
    text-align: center;
    padding: 60px;
    animation: fadeIn 0.8s ease;
}

.review-slide.active {
    display: block;
}

.process-step {
    padding: 60px 40px;
    border-right: 1px solid rgba(184, 150, 80, 0.1);
    position: relative;
}

.process-step:last-child {
    border-right: none;
}

.process-number {
    font-size: 80px;
    font-weight: 900;
    color: rgba(184, 150, 80, 0.05);
    position: absolute;
    top: 20px;
    left: 20px;
    line-height: 1;
}

.input-group {
    margin-bottom: 30px;
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    outline: none;
    font-size: 16px;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--secondary);
}

.input-label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
}

.input-group input:focus~.input-label,
.input-group input:not(:placeholder-shown)~.input-label {
    top: -10px;
    font-size: 10px;
    color: var(--secondary);
}

/* Admin Login Button in Topbar */
.admin-login-btn {
    transition: color 0.3s ease;
}

.admin-login-btn:hover {
    color: var(--secondary) !important;
}

header.scrolled .admin-login-btn {
    color: var(--primary) !important;
}

/* ===== QUICK CONTACT MODAL ===== */
.qc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: qcFadeIn 0.3s ease;
}

.qc-modal.active {
    display: flex;
}

.qc-modal-content {
    background: var(--white);
    max-width: 420px;
    width: 100%;
    padding: 40px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    animation: qcSlideUp 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.qc-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-light);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.qc-close:hover {
    color: var(--primary);
    background: var(--accent);
}

.qc-header {
    text-align: center;
    margin-bottom: 28px;
}

.qc-header h3 {
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.qc-header p {
    font-size: 13px;
    color: var(--text-light);
}

.qc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qc-field input,
.qc-field select,
.qc-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e8e8e8;
    background: #fafafa;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: 'Outfit', sans-serif;
}

.qc-field input:focus,
.qc-field select:focus,
.qc-field textarea:focus {
    border-color: var(--secondary);
    background: #fff;
}

.qc-field textarea {
    resize: none;
}

.qc-submit {
    width: 100%;
    padding: 16px;
    background: var(--btn);
    color: white;
    border: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}

.qc-submit:hover {
    background: var(--secondary);
    color: var(--accent);
}

/* Quick Contact Float Button */
.qc-float-btn {
    position: fixed;
    bottom: 105px;
    right: 30px;
    background: var(--secondary);
    color: var(--accent);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(122, 139, 114, 0.35);
    z-index: 9998;
    transition: var(--transition);
    line-height: 1;
}

.qc-float-btn:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: var(--white);
}

.qc-float-label {
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
    font-weight: 600;
}

@keyframes qcFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes qcSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@media (max-width: 480px) {
    .qc-modal-content {
        padding: 30px 20px;
    }

    .qc-float-btn {
        bottom: 90px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .social-float-stack {
        left: 20px;
        bottom: 20px;
        gap: 10px;
    }

    .social-float {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
}

/* Floating Widgets */
.social-float-stack {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 9999;
}

.social-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.whatsapp-float {
    background: #25d366;
    color: white;
}

.instagram-float {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 55%, #8134af 100%);
    color: white;
}

.youtube-float {
    background: #ff0000;
    color: white;
}

.social-float:hover {
    transform: scale(1.1);
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 5px;
    display: none;
    /* Shown via JS */
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    transition: var(--transition);
}

.scroll-top.show {
    display: flex;
}

/* ===== 5 YEARS RIBBON - WINE RED FULL WIDTH ===== */
.years-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: linear-gradient(90deg, #4a0e0e 0%, #721f1f 25%, #8b2635 50%, #721f1f 75%, #4a0e0e 100%);
    padding: 10px 0;
    overflow: hidden;
}

.years-ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: ribbonShine 4s ease-in-out infinite;
}

@keyframes ribbonShine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.ribbon-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.ribbon-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    animation: ribbonPulse 2s ease-in-out infinite;
}

.ribbon-icon:nth-child(5) {
    animation-delay: 1s;
}

@keyframes ribbonPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.ribbon-text-main {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ribbon-text-main strong {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.ribbon-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.25);
}

.ribbon-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 4px;
    font-weight: 300;
}

@media (max-width: 768px) {
    .years-ribbon {
        padding: 8px 0;
    }

    .ribbon-inner {
        gap: 12px;
        flex-wrap: wrap;
    }

    .ribbon-text-main {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .ribbon-text-main strong {
        font-size: 14px;
    }

    .ribbon-sub {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .ribbon-divider {
        display: none;
    }

    .ribbon-icon {
        font-size: 11px;
    }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

/* Creative Section Styles */
.creative-reveal {
    background: var(--white);
    position: relative;
    padding: 120px 0;
}

.reveal-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--secondary);
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%) scale(0.8);
    opacity: 0.1;
    z-index: 0;
    transition: all 1.5s ease;
}

.creative-reveal.revealed .reveal-circle {
    transform: translateY(-50%) scale(1.5);
    opacity: 0.2;
}

.floating-img {
    animation: float 6s ease-in-out infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s ease-out;
}

.reveal.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Homepage mobile layout fixes */
.top-info,
.top-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.top-info {
    gap: 10px 20px;
}

.top-social {
    gap: 12px;
}

.top-social a {
    margin-left: 0 !important;
}

.top-info span {
    margin-left: 0 !important;
}

.home-stats-section .container {
    padding-top: 54px;
}

.home-contact-info h4,
.top-info span {
    overflow-wrap: anywhere;
}

@media (max-width: 992px) {

    .home-about-grid,
    .home-creative-grid,
    .home-career-grid,
    .home-contact-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .home-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home-projects-grid>div {
        grid-column: auto !important;
        height: 320px !important;
    }

    .home-reviews-header,
    .home-projects-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .topbar {
        padding: 8px 0;
    }

    .topbar .container,
    .nav-row .container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .topbar .container {
        justify-content: center !important;
        text-align: center;
    }

    .top-info,
    .topbar .container>div:last-child {
        justify-content: center;
        width: 100%;
    }

    .top-info {
        flex-direction: column;
        gap: 6px;
        font-size: 12px;
    }

    .topbar .admin-login-btn {
        margin-left: 0 !important;
    }

    .nav-row .container {
        flex-wrap: nowrap;
    }

    header.scrolled #main-nav,
    header #main-nav.active {
        background: var(--primary);
    }

    header.scrolled #main-nav ul li a,
    header #main-nav.active ul li a {
        color: var(--white) !important;
    }

    .logo a {
        max-width: calc(100vw - 140px);
    }

    #logo-symbol {
        height: 46px !important;
    }

    #logo-name {
        height: 28px !important;
        max-width: calc(100vw - 120px) !important;
    }

    .header-btn .btn {
        display: none !important;
    }

    .home-stats-grid,
    .home-services-grid,
    .home-projects-grid,
    .home-career-form,
    .home-contact-form {
        grid-template-columns: 1fr !important;
    }

    .home-stats-section .container {
        padding-top: 72px;
    }

    .home-about-highlights {
        flex-direction: column;
        gap: 20px !important;
    }

    .home-about-badge {
        right: 16px !important;
        bottom: 16px !important;
        padding: 20px !important;
        max-width: 160px !important;
    }

    .home-creative-bg-text {
        left: 0 !important;
        top: -36px !important;
        font-size: clamp(36px, 20vw, 80px) !important;
    }

    .floating-img img,
    .home-about-grid img {
        height: auto !important;
        min-height: 320px;
    }

    .home-projects-grid>div {
        height: 260px !important;
    }

    .home-career-form textarea,
    .home-career-form>div,
    .home-career-form button,
    .home-contact-form select,
    .home-contact-form textarea,
    .home-contact-form button {
        grid-column: auto !important;
    }

    .carousel-nav.prev {
        left: 0;
    }

    .carousel-nav.next {
        right: 0;
    }

    .reviews-track-container {
        margin: 0 24px;
    }
}

/* ============================================
   PAGE-SPECIFIC MOBILE RESPONSIVENESS
   (about, services, contact, gallery, projects,
    blog, career, service-details)
   ============================================ */

/* ----- About Page ----- */
@media (max-width: 992px) {
    .about-page-hero h1 {
        font-size: clamp(32px, 6vw, 56px) !important;
    }
    .about-page-hero {
        padding: 140px 0 80px !important;
    }
    .about-overlap-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }
    .about-overlap-text {
        position: relative !important;
        width: 100% !important;
        left: auto !important;
        right: auto !important;
        padding: 30px !important;
    }
    .about-overlap-img {
        width: 100% !important;
        order: -1;
    }
    .about-overlap-img img {
        height: 400px !important;
        width: 100% !important;
    }
    .about-values-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .about-studio-banner {
        height: 400px !important;
    }
    .about-studio-banner h2 {
        font-size: 32px !important;
    }
}

/* ----- Services Page ----- */
@media (max-width: 992px) {
    .services-page-header {
        padding: 140px 0 80px !important;
    }
    .services-page-header h1 {
        font-size: clamp(32px, 6vw, 48px) !important;
    }
    .services-grid-row {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .services-grid-row .services-text {
        order: -1;
    }
    .services-grid-row img {
        height: 350px !important;
        width: 100% !important;
    }
}

/* ----- Contact Page ----- */
@media (max-width: 992px) {
    .contact-page-header {
        padding: 140px 0 80px !important;
    }
    .contact-page-header h1 {
        font-size: clamp(32px, 6vw, 48px) !important;
    }
    .contact-page-grid {
        grid-template-columns: 1fr !important;
        gap: 50px !important;
    }
    .contact-form-box {
        padding: 30px !important;
    }
}
@media (max-width: 480px) {
    .contact-info-row {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .contact-info-row > div:first-child {
        margin-right: 0 !important;
    }
}

/* ----- Gallery Page ----- */
@media (max-width: 992px) {
    .gallery-page-header {
        padding: 140px 0 80px !important;
    }
    .gallery-page-header h1 {
        font-size: clamp(36px, 7vw, 72px) !important;
    }
}
/* gallery-grid, lightbox already have responsive rules */

/* ----- Projects Page ----- */
@media (max-width: 992px) {
    .projects-page-header {
        padding: 140px 0 80px !important;
    }
    .projects-page-header h1 {
        font-size: clamp(36px, 7vw, 72px) !important;
    }
}
/* #projects-grid responsive already handled inline */

/* ----- Blog & Blog Post Pages ----- */
@media (max-width: 992px) {
    .blog-page-header,
    .blog-post-header {
        padding: 140px 0 80px !important;
    }
    .blog-page-header h1,
    .blog-post-header h1 {
        font-size: clamp(32px, 6vw, 72px) !important;
    }
    .blog-post-featured-img {
        height: 350px !important;
    }
}
@media (max-width: 768px) {
    .blog-post-share-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }
}

/* ----- Career Page ----- */
@media (max-width: 992px) {
    .career-page-header {
        padding: 140px 0 80px !important;
    }
    .career-page-header h1 {
        font-size: clamp(32px, 6vw, 56px) !important;
    }
    .career-form-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .career-form-grid textarea,
    .career-form-grid > div,
    .career-form-grid button {
        grid-column: auto !important;
    }
    .career-form-wrap {
        padding: 40px 25px !important;
    }
}

/* ----- Service Details Page ----- */
@media (max-width: 992px) {
    .service-detail-header {
        padding: 140px 0 80px !important;
    }
    .service-detail-header h1 {
        font-size: clamp(36px, 7vw, 72px) !important;
    }
    .service-detail-hero-img {
        height: 400px !important;
    }
    .service-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 50px !important;
    }
    .service-detail-sidebar {
        padding: 40px !important;
    }
}
@media (max-width: 768px) {
    .service-detail-header-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }
    .service-detail-header-flex p {
        font-size: 18px !important;
    }
}

/* ============================================
   END PAGE-SPECIFIC MOBILE RESPONSIVENESS
   ============================================ */

@media (max-width: 480px) {
    .home-stats-section .container {
        padding-top: 82px;
    }

    .home-projects-grid>div {
        height: 220px !important;
    }

    .home-contact-grid,
    .home-career-grid,
    .home-about-grid,
    .home-creative-grid {
        gap: 28px !important;
    }

    .home-contact-info h4 {
        font-size: 16px !important;
    }

    .ribbon-inner {
        padding: 0 12px;
    }
}