/* ============================================
   MBM Media & Advertising LLC - Main Stylesheet
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #0A2463;
    --golden-color: #D4AF37;
    --golden-hover: #B8941F;
    --golden-light: #FFD700;
    --golden-accent: #F5BF03;
    --accent-color: #FF6B6B;
    --bg-light: #F8F9FA;
    --text-dark: #212529;
    --text-light: #6C757D;
    --white: #FFFFFF;
    --black: #000000;
    --nav-bg-scrolled: rgba(20, 20, 20, 0.95);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease-in-out;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

@font-face {
    font-family: "Avenir";
    src: url('../fonts/AvenirNextLTPro-Regular.ttf') format('truetype');
}

body {
    /* font-family: "Figtree", sans-serif; */
    /* font-family: 'Roboto Flex', sans-serif; */
    font-family: "Avenir", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    /* padding: 0 50px; */
}

h1 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

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

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


/* ===== Navigation Bar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: var(--transition);
    overflow-x: hidden;
    height: 80px;
}

.navbar.scrolled {
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid transparent;
    overflow-x: hidden;
    max-width: 100vw;
    height: 80px;
}

/* Ensure navbar container and nav-wrapper share the same height */
.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Logo background when scrolled */
.navbar.scrolled .logo {
    position: relative;
    z-index: 1001;
    display: none;
}

.navbar.scrolled .logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 60px);
    height: calc(100% + 32px);
    min-height: 90px;
    background-color: rgba(20, 20, 20, 0.97);
    /* clip-path: polygon(0% 0%, 100% 0, 100% 75%, 50% 100%, 0 75%); */
    z-index: -1;
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 0 0;
    gap: 2rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    height: 100%;
}

@media (max-width: 1300px) {
    .nav-wrapper {
        max-width: 85%;
    }
}

.logo a {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    max-height: clamp(40px, 5vw, 70px);
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex-wrap: nowrap;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.nav-menu.hidden-on-scroll {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
}

.nav-link {
    display: inline-flex;
    gap: 0.05em;
    align-items: flex-end;
    font-weight: 600;
    /* color: #a39161; */
    color: #000000;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: clamp(0.75rem, 1.1vw, 0.9rem);
}

.nav-link:hover,
.nav-link.active {
    color: var(--golden-hover);
}

.nav-link .char {
    display: inline-block;
    transform: translateY(0);
    transition: transform 0.2s ease;
}

/* .nav-link:hover .char,
.nav-link:focus-visible .char {
    animation: waveFloat 0.7s ease forwards;
    animation-delay: calc(var(--i) * 45ms);
}

@keyframes waveFloat {
    0% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(calc(var(--offset, 10px) * -1));
    }

    70% {
        transform: translateY(calc(var(--offset, 10px) * -0.4));
    }

    100% {
        transform: translateY(0);
    }
} */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: relative;
    z-index: 1001;
    padding: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.hamburger.hidden-on-scroll {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
}

/* Keep hamburger visible on mobile even when scrolled */
@media (max-width: 767px) {
    .hamburger.hidden-on-scroll {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.hero-space {
    padding: 82px 50px 10px 50px;
    /* background-color: #ffffff; */
    /* background: linear-gradient(180deg, #FFFFFF, #EFEDE7); */
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    box-sizing: border-box;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    box-sizing: border-box;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    max-width: 100%;
    background-size: cover;
    background-position: calc(50% + 0px) calc(50% - 90px);
    background-repeat: no-repeat;
    background-attachment: scroll;
    overflow: visible;
    object-fit: cover;
    box-sizing: border-box;
    display: block;
    position: relative;
    /* border-radius: 8px; */
    /* padding: 4px; */
    background-clip: content-box;
    /* border: 2px solid rgba(255, 255, 255, 0.9); */
    /* border: 2px solid #a39161; */
    box-shadow:
        0 0 20px rgba(212, 175, 55, 0.15),
        inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.slide-image::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    /* background: linear-gradient(135deg, #D4AF37, #F9E076, #B8860B, #D4AF37); */
    background-size: 300% 300%;
    border-radius: 12px;
    z-index: -1;
    animation: gradientBorder 4s linear infinite;
    opacity: 1;
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* .hero-carousel .carousel-slide:nth-child(4) .slide-image {
    background-position: 30% center;
} */

/* Responsive background sizing - image covers full height, hero scales proportionally */
@media (max-width: 992px) {
    .hero {
        height: calc(90vh - 60px);
        min-height: 490px;
        max-height: calc(90vh - 60px);
    }

    .slide-image {
        background-size: cover;
        background-position: center;
        height: 100%;
        min-height: 100%;
        max-height: 100%;
    }

    .hero-overlay {
        height: 100%;
        min-height: 100%;
        max-height: 100%;
        box-sizing: border-box;
    }

    .hero-carousel {
        height: 100%;
        min-height: 100%;
        max-height: 100%;
    }

    .carousel-slide {
        height: 100%;
        min-height: 100%;
        max-height: 100%;
    }

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

    .hero-subtitle {
        font-size: 1.15rem;
        font-family: "Figtree", sans-serif;
    }

    .btn-primary {
        padding: 11px 28px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: calc(85vh - 60px);
        min-height: 440px;
        max-height: calc(85vh - 60px);
    }

    .slide-image {
        background-size: cover;
        background-position: center;
        height: 100%;
        min-height: 100%;
        max-height: 100%;
    }

    .hero-overlay {
        height: 100%;
        min-height: 100%;
        max-height: 100%;
        box-sizing: border-box;
    }

    .hero-carousel {
        height: 100%;
        min-height: 100%;
        max-height: 100%;
    }

    .carousel-slide {
        height: 100%;
        min-height: 100%;
        max-height: 100%;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 10px 26px;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .hero {
        height: calc(80vh - 60px);
        min-height: 390px;
        max-height: calc(80vh - 60px);
    }

    .slide-image {
        background-size: cover;
        background-position: center;
        height: 100%;
        min-height: 100%;
        max-height: 100%;
    }

    .hero-overlay {
        height: 100%;
        min-height: 100%;
        max-height: 100%;
        box-sizing: border-box;
    }

    .hero-carousel {
        height: 100%;
        min-height: 100%;
        max-height: 100%;
    }

    .carousel-slide {
        height: 100%;
        min-height: 100%;
        max-height: 100%;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn-primary {
        padding: 10px 24px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: calc(75vh - 60px);
        min-height: 340px;
        max-height: calc(75vh - 60px);
    }

    .slide-image {
        background-size: cover;
        background-position: center;
        height: 100%;
        min-height: 100%;
        max-height: 100%;
    }

    .hero-overlay {
        height: 100%;
        min-height: 100%;
        max-height: 100%;
        box-sizing: border-box;
    }

    .hero-carousel {
        height: 100%;
        min-height: 100%;
        max-height: 100%;
    }

    .carousel-slide {
        height: 100%;
        min-height: 100%;
        max-height: 100%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 9px 22px;
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .hero {
        height: calc(70vh - 60px);
        min-height: 290px;
        max-height: calc(70vh - 60px);
    }

    .slide-image {
        background-size: cover;
        background-position: center;
        height: 100%;
        min-height: 100%;
        max-height: 100%;
    }

    .hero-overlay {
        height: 100%;
        min-height: 100%;
        max-height: 100%;
        box-sizing: border-box;
    }

    .hero-carousel {
        height: 100%;
        min-height: 100%;
        max-height: 100%;
    }

    .carousel-slide {
        height: 100%;
        min-height: 100%;
        max-height: 100%;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .btn-primary {
        padding: 8px 20px;
        font-size: 0.75rem;
    }
}

@media (max-width: 300px) {
    .hero {
        height: calc(65vh - 60px);
        min-height: 240px;
        max-height: calc(65vh - 60px);
    }

    .slide-image {
        background-size: cover;
        background-position: center;
        height: 100%;
        min-height: 100%;
        max-height: 100%;
    }

    .hero-overlay {
        height: 100%;
        min-height: 100%;
        max-height: 100%;
        box-sizing: border-box;
    }

    .hero-carousel {
        height: 100%;
        min-height: 100%;
        max-height: 100%;
    }

    .carousel-slide {
        height: 100%;
        min-height: 100%;
        max-height: 100%;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .btn-primary {
        padding: 7px 18px;
        font-size: 0.7rem;
    }
}

/* Mobile hero: keep carousel height proportional to width for visual stability */
@media (max-width: 767px) {
    .hero {
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .hero-space {
        padding: 82px 15px 10px 15px;
        height: auto;
    }

    .hero-carousel {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: 70vh;
    }

    .carousel-slide {
        height: 100%;
        min-height: 0;
        max-height: 100%;
    }

    .slide-image {
        height: 100%;
        min-height: 0;
        max-height: 100%;
        background-size: cover;
        background-position: center;
    }

    .hero-overlay {
        height: 100%;
        min-height: 0;
        max-height: 100%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    background: linear-gradient(to bottom, rgba(10, 36, 99, 0.4), rgba(10, 36, 99, 0.6));
    z-index: 1;
    box-sizing: border-box;
}

.hero-content {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 28px 38px;
    width: min(90%, 900px);
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

/* Hero content position & color variants per slide */
.hero-content.hero-style-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    align-items: center;
    color: #ffffff;
}

.hero-content.hero-style-2 {
    bottom: 10%;
    right: 10%;
    top: auto;
    left: auto;
    transform: translate(0, 0);
    text-align: right;
    align-items: flex-end;
    color: #ffffff;
}

.hero-content.hero-style-3 {
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    align-items: center;
    color: #F5F8FC;
}

.hero-content.hero-style-4 {
    display: none;
}

.hero-content.hero-style-5 {
    bottom: 5%;
    right: 18%;
    top: auto;
    left: auto;
    transform: translate(-30%, -20%);
    text-align: center;
    color: #1F2A00;
}

.hero-content.visible {
    opacity: 1;
}

.hero-title {
    font-size: clamp(2.4rem, 4.5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.35),
        0 2px 0 rgba(0, 0, 0, 0.35),
        0 6px 12px rgba(0, 0, 0, 0.35),
        0 14px 28px rgba(0, 0, 0, 0.25);
    transform-style: preserve-3d;
    perspective: 800px;
}

.hero-subtitle {
    font-family: "Marcellus", serif;
    font-size: clamp(0.95rem, 1.6vw, 1.25rem);
    margin-bottom: 0;
    font-weight: 500;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.25),
        0 10px 22px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    perspective: 800px;
}

.hero-content-animate .hero-title {
    animation: heroZoomIn 2s ease forwards;
}

.hero-content-animate .hero-subtitle {
    animation: heroZoomIn 2s ease 0.15s forwards;
}

@keyframes heroZoomIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    text-align: center;
}

.btn-primary {
    /* background: #a39161; */
    background: #3A2E1A;
    color: var(--white);
    /* color: #000000; */
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary:hover {
    /* background: #B8941F; */
    background: #1F3D2B;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 148, 31, 0.4);
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

/* ===== Cursor Golden Dot Follower ===== */
.cursor-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--golden-color);
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-dot.active {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.3);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: var(--white);
    transform: scale(1.2);
}

/* ===== Services Section ===== */
.services {
    padding: 10px 0 50px;
    /* margin: 0 50px; */
    /* background-color: #ffffff; */
    /* background-color: #a39161; */
    /* background: linear-gradient(180deg, #FFFFFF, #EFEDE7); */
    /* background-color: #5C5B5F; */
    background-image: url('../images/bgn1.jpeg');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.services>.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding: 40px 20px;
}

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

.services .section-header {
    margin-bottom: 20px;
}

.section-title-services {
    color: #000000;
    font-size: 2.5rem;
    font-weight: 600;
    /* margin-bottom: 1rem; */
    text-shadow:
        0 2px 0 rgba(163, 145, 97, 0.35),
        0 2px 0 rgba(163, 145, 97, 0.35),
        0 6px 12px rgba(163, 145, 97, 0.35),
        0 14px 28px rgba(163, 145, 97, 0.25);
    transform-style: preserve-3d;
    perspective: 800px;
    text-align: center;
    /* text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.35),
        0 2px 0 rgba(0, 0, 0, 0.35),
        0 6px 12px rgba(0, 0, 0, 0.35),
        0 14px 28px rgba(0, 0, 0, 0.25); */
}

.section-title {
    /* font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem; */
    color: #000000;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow:
        0 2px 0 rgba(163, 145, 97, 0.35),
        0 2px 0 rgba(163, 145, 97, 0.35),
        0 6px 12px rgba(163, 145, 97, 0.35),
        0 14px 28px rgba(163, 145, 97, 0.25);
    transform-style: preserve-3d;
    perspective: 800px;
    text-align: center;
}

.services .section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 1rem;
    /* color: #9b813c; */
    color: #3A2E1A;
    /* display: none; */
}

.services .section-subtitle {
    font-size: 0.95rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    justify-content: center;
    gap: 20px;
    width: 100%;
}

/* Service cards with overlay reveal */
.service-card-flip {
    position: relative;
    cursor: pointer;
    width: 300px;
    max-width: 300px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    /* background: #0b1220; */
    /* background: #9b813c; */
    background: #8C7435;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card-inner:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

.service-card-front {
    position: absolute;
    inset: 0;
}

.service-image-square {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-image-square::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.7) 100%);
    transition: var(--transition);
}

.service-image-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.service-card-flip:hover .service-image-square img {
    transform: scale(1.05);
}

.service-title-front {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.4s ease;
    flex-direction: column;
    padding-top: 0;
    border-radius: 18px;
}

.service-icon {
    border-radius: 50%;
    padding: 20px;
    font-size: 145px;
    font-family: "Libre Caslon Display", serif;
}

.service-icon p {
    margin: 0;
    padding: 0;
    line-height: .5;
}

.service-title-front::after {
    content: '';
    position: absolute;
    inset: 0;
    /* background: #000001; */
    /* background: #a39161; */
    background: #9b813c;
    z-index: -1;
    /* border-radius: 18px; */
}

.service-title-front h3 {
    font-size: 1.2rem;
    color: #fefefe;
    /* color: #5C5B5F; */
    margin: 10px 0;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.service-title-front p {
    /* color: #5C5B5F; */
    color: #ffffff;
}

p.service-description-front {
    /* color: #A29061; */
    /* color: #a39161; */
    color: #ffffff;
}

.service-card-inner:hover .service-title-front {
    transform: translateY(-100%);
    opacity: 0;
}

.service-card-back {
    position: absolute;
    inset: 0;
    padding: 26px 26px 28px;
    display: flex;
    flex-direction: column;
    background: #8C7435;
    color: #1E1E1C;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

.service-card-inner:hover .service-card-back {
    opacity: 1;
    transform: translateY(0);
}

.service-card-back .service-title {
    font-size: 1.2rem;
    /* color: #000000; */
    /* color: #2F2F2A; */
    /* color: #3A2E1A; */
    /* color: #F4D06F; */
    /* color: #FFD700; */
    color: #ffffff;
    border-bottom: 1px solid #FFF8E1;
    padding-bottom: 10px;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.service-card-back .service-description {
    /* color: #3A2E1A; */
    /* color: #FFD700; */
    /* color: #F4D06F; */
    color: #DCD2B0;
    /* margin-bottom: 0.75rem; */
    line-height: 1;
    flex-grow: 0;
    margin: 0.75rem 0;
}

.service-items-wrapper {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}

.service-items-wrapper.clamped {
    mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}

.service-items-wrapper.expanded {
    overflow-y: auto;
    mask-image: none;
    -webkit-mask-image: none;
}

.service-items-wrapper.expanded::-webkit-scrollbar {
    width: 5px;
}

.service-items-wrapper.expanded::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.service-items-wrapper.expanded::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 10px;
}

.service-items-wrapper.expanded::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.7);
}

.service-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.service-items li {
    padding: 0.1rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #FFF8E1;
    font-size: 0.97rem;
}

.service-items li::before {
    content: '■';
    position: absolute;
    left: 0;
    top: 45%;
    transform: translateY(-50%);
    color: #FFD700;
    font-weight: 900;
    font-size: 0.85rem;
    line-height: 1;
}

.service-readmore-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    /* margin-left: 1.5rem; */
    padding: 6px 18px;
    background: transparent;
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    align-self: flex-start;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.2s ease;
}

.service-readmore-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.service-readmore-btn:hover {
    color: #fff;
    border-color: #FFD700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.service-readmore-btn:hover::before {
    opacity: 1;
}

.service-readmore-btn.visible {
    display: inline-flex;
}

.service-readmore-btn .readmore-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.service-readmore-btn.expanded .readmore-arrow {
    transform: rotate(180deg);
}

/* ===== Work/Portfolio Section ===== */
.work {
    padding: 50px 0;
    /* background-color: #000000; */
    /* background-color: #9b813c; */
    background-image: url('../images/bgn1.jpeg');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    /* margin: 0 50px; */
}

.work>.container {
    position: relative;
    z-index: 1;
}

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

.portfolio-item {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    /* border: 1px solid #000; */
}

.portfolio-image img,
.portfolio-image iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image img,
.portfolio-item:hover .portfolio-image iframe {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 36, 99, 0.85), rgba(10, 36, 99, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    color: var(--white);
    text-align: center;
    padding: 20px;
    /* border: 3px solid #DCD2B0; */
    /* border: 1px solid #B8941F; */
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.portfolio-overlay p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-overlay {
    background: transparent;
    border: 2px solid #B8941F;
    color: var(--white);
    padding: 10px 25px;
    transition: var(--transition);
}

.btn-overlay:hover {
    background: #B8941F;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 148, 31, 0.4);
}

.portfolio-caption {
    padding: 20px;
}

.portfolio-caption h4 {
    font-size: 1.125rem;
    /* color: var(--primary-color); */

    color: #3A2E1A;
    margin-bottom: 0.25rem;
}

.portfolio-caption p {
    /* color: var(--text-light); */
    color: #2E2A25;
    font-size: 0.875rem;
}

/* ===== Contact Section ===== */
.contact {
    /* min-height: 100vh; */
    padding: 40px 20px 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/bgn1.jpeg');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* ===== Contact Banner ===== */
.contact-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    padding: 70px 50px;
    margin: 0 auto;
    /* border: 2px solid rgba(163, 145, 97, 0.4); */
    border-radius: 4px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(163, 145, 97, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease;
    transform-style: preserve-3d;
    perspective: 800px;
    overflow: hidden;
}

.contact-banner::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 6px;
    padding: 2px;
    background: linear-gradient(135deg, #D4AF37, #F9E076, #B8860B, #D4AF37);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: bannerBorderShimmer 5s linear infinite;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.contact-banner:hover::before {
    opacity: 1;
}

@keyframes bannerBorderShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.contact-banner:hover {
    transform: perspective(800px) rotateY(-3deg) rotateX(2deg) translateY(-6px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(163, 145, 97, 0.2),
        12px 12px 30px rgba(163, 145, 97, 0.1);
}

.contact-banner-tagline {
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: #000000;
    line-height: 1.3;
    margin-bottom: 2rem;
    text-shadow:
        0 2px 0 rgba(163, 145, 97, 0.35),
        0 6px 12px rgba(163, 145, 97, 0.35),
        0 14px 28px rgba(163, 145, 97, 0.25);
    transition: transform 0.4s ease;
}

.contact-banner:hover .contact-banner-tagline {
    transform: translateZ(20px);
}

.contact-banner-btn {
    font-size: 1rem;
    padding: 16px 48px;
    letter-spacing: 2px;
    background-color: #9b813c;
    transition: transform 0.4s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.contact-banner:hover .contact-banner-btn {
    transform: translateZ(30px);
}

@media (max-width: 767px) {
    .contact-banner {
        padding: 40px 24px;
    }

    .contact-banner-tagline {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .contact-banner-btn {
        padding: 14px 36px;
        font-size: 1rem;
    }

    .contact-banner:hover {
        transform: perspective(800px) rotateY(-2deg) rotateX(1.5deg) translateY(-4px);
    }
}

.contact-wrapper {
    max-width: 1200px;
    max-height: 100%;
    margin: 0 auto;
    overflow-y: hidden;
}

.contact-form-wrapper .section-header {
    text-align: center;
    margin-bottom: 8px;
}

.contact-form-wrapper h2 {
    /* font-size: 1.85rem;
    color: #ffffff;
    margin-bottom: 0.3rem; */
    color: #000000;
    font-size: 2.5rem;
    font-weight: 600;
    /* margin-bottom: 1rem; */
    text-shadow:
        0 2px 0 rgba(163, 145, 97, 0.35),
        0 2px 0 rgba(163, 145, 97, 0.35),
        0 6px 12px rgba(163, 145, 97, 0.35),
        0 14px 28px rgba(163, 145, 97, 0.25);
    transform-style: preserve-3d;
    perspective: 800px;
    text-align: center;
}

.contact-form {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 25px 35px;
    border-radius: 16px;
    /* background: #9b813c; */
    /* background: #a39161; */
    background: #9b813c;
    /* background: #CFC7B0; */
    /* box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); */
    backdrop-filter: blur(4px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    overflow: hidden;
}

.form-group {
    margin-bottom: 5px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    /* color: rgba(248, 250, 252, 0.9); */
    /* color: #CFC7B0; */
    color: #FAF3DD;
}

.required {
    /* color: var(--golden-color); */
    color: #3A2E1A;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* border-radius: 12px; */
    /* font-family: inherit; */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    color: #1a1a1a;
    background: linear-gradient(135deg, #C9B27C 0%, #D4C08F 50%, #C9B27C 100%);
    /* background: #CFC7B0; */
    box-shadow:
        0 4px 12px rgba(201, 178, 124, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.15s ease;
}

/* Ensure the Subject dropdown matches the styled form inputs */
.form-group select#subject {
    background: linear-gradient(135deg, #C9B27C 0%, #D4C08F 50%, #C9B27C 100%);
    color: #3A2E1A;
}

.form-group select#subject option {
    color: #000000;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--golden-color);
    box-shadow:
        0 0 0 2px rgba(212, 175, 55, 0.5),
        0 0 20px rgba(212, 175, 55, 0.35),
        0 6px 16px rgba(201, 178, 124, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.4),
        inset 0 -1px 2px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #D4C08F 0%, #E5D5A8 50%, #D4C08F 100%);
    transform: translateY(-2px);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.error-message {
    display: block;
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-top: 3px;
    min-height: 16px;
}

.btn-submit {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-loader {
    display: inline-block;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.contact-info {
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h3 {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.8;
}

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

.info-item a:hover {
    color: var(--golden-color);
    text-decoration: underline;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 30px;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* ===== Footer ===== */
.footer {
    background: #000000;
    color: var(--white);
    padding: 60px 0 30px;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
}

.footer-contact-item {
    margin-bottom: 20px;
}

.footer-contact-item strong {
    display: block;
    color: var(--golden-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.footer-contact-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-contact-item a:hover {
    color: #A29061;
    text-decoration: underline;
}

.footer-map-link {
    cursor: pointer;
    text-decoration: none;
}

.footer-map-link:hover {
    color: var(--golden-color);
}

.footer-column img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

.footer-column h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    /* color: var(--golden-hover); */
    color: #a39161;
}

.footer-column p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-description {
    margin-bottom: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    overflow-wrap: anywhere;
    word-break: break-word;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--golden-hover);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-column,
.footer-contact-item p,
.footer-contact-item a {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--golden-hover);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--golden-hover);
    transform: translateY(-3px);
}

/* Map Modal */
.map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

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

.map-modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.map-modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.map-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    line-height: 1;
}

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

.map-container-modal {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container-modal iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

/* ===== Two-tier Portfolio Slider Modal (Small & Medium) ===== */
.portfolio-slider-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.portfolio-slider-backdrop.active {
    display: flex;
}

.portfolio-slider-modal {
    background: rgba(20, 20, 20, 0.98);
    /* background: #a39161; */
    max-width: 500px;
    width: 100%;
    max-height: 60vh;
    box-shadow: var(--shadow-lg);
    padding: 16px 18px 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    color: #f9fafb;
    border-radius: 10px;
    border: 1px solid #9b813c;
}

.portfolio-slider-modal.slider-small {
    max-width: 500px;
    max-height: 60vh;
}

.portfolio-slider-modal.slider-medium {
    max-width: 800px;
    max-height: 80vh;
}

.portfolio-slider-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.portfolio-slider-close:hover {
    color: var(--golden-color);
    transform: scale(1.05);
}

.portfolio-slider-main {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
}

.portfolio-slider-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-slider-image-wrapper img {
    max-width: 100%;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
}

.portfolio-slider-modal.slider-medium .portfolio-slider-image-wrapper img {
    max-height: 70vh;
}

.portfolio-slider-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(249, 250, 251, 0.7);
    background: rgba(15, 23, 42, 0.9);
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.portfolio-slider-arrow:hover {
    background: var(--golden-hover);
    border-color: var(--golden-hover);
    color: #111827;
    transform: translateY(-1px);
}

.portfolio-slider-footer {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
}

.portfolio-slider-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.portfolio-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(148, 163, 184, 0.7);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.portfolio-slider-dot.active {
    width: 16px;
    background: var(--golden-color);
}

.portfolio-slider-size-toggle {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(249, 250, 251, 0.6);
    background: transparent;
    color: #f9fafb;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.portfolio-slider-size-toggle:hover {
    background: var(--golden-color);
    border-color: var(--golden-color);
    color: #111827;
}

@media (max-width: 600px) {
    .portfolio-slider-modal {
        max-width: 95%;
        padding: 14px 12px 10px;
    }

    .portfolio-slider-arrow {
        width: 28px;
        height: 28px;
    }

    .portfolio-slider-image-wrapper img {
        max-height: 45vh;
    }
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

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

.modal-icon {
    width: 80px;
    height: 80px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    margin: 0 auto 20px;
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

/* ===== Responsive Design ===== */
/* Ensure hamburger is hidden and nav-menu is visible at 768px and above */
@media (min-width: 768px) {
    .hamburger {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .nav-menu li {
        width: auto !important;
        border-bottom: none !important;
    }

    .nav-link {
        display: block !important;
        padding: 0.5rem 0 !important;
    }
}

@media (max-width: 992px) {
    .services>.container {
        height: auto;
        min-height: auto;
        padding: 40px 20px;
    }

    .services .section-header {
        margin-bottom: 25px;
    }

    .services .section-title {
        font-size: 1.85rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 300px);
        justify-content: center;
        gap: 18px;
    }

    .contact-wrapper {
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        width: 100%;
    }

    .footer {
        padding: 44px clamp(12px, 3.5vw, 24px) 24px;
    }

    .footer .container {
        padding-left: clamp(12px, 3.5vw, 24px);
        padding-right: clamp(12px, 3.5vw, 24px);
    }

    .footer-column,
    .footer-column h3,
    .footer-column p,
    .footer-column a,
    .footer-links,
    .footer-links li,
    .footer-links a,
    .footer-contact-item,
    .footer-contact-item h3,
    .footer-contact-item p,
    .footer-contact-item a,
    .footer-bottom {
        text-align: center;
    }

    .footer-column img {
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Adaptive spacing: 900px to 768px - start reducing gaps */
@media (max-width: 900px) and (min-width: 768px) {
    .nav-wrapper {
        gap: 1.5rem;
    }

    .nav-menu {
        gap: 1.75rem !important;
    }
}

/* Adaptive spacing: 768px to 600px - reduce gaps gradually (nav-menu visible) */
@media (max-width: 768px) and (min-width: 600px) {
    .nav-wrapper {
        gap: 1rem;
    }

    .nav-menu {
        gap: 1.5rem !important;
    }

    .nav-link {
        /* font-size: 0.95rem; */
        padding: 0.4rem 0;
        white-space: nowrap;
    }

    .logo img {
        max-height: 45px;
    }
}

/* Adaptive spacing: 600px to 500px - further reduce gaps (nav-menu visible) */
@media (max-width: 600px) and (min-width: 500px) {
    .nav-wrapper {
        gap: 0.75rem;
    }

    .nav-menu {
        gap: 1.25rem !important;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.35rem 0;
        white-space: nowrap;
    }

    .logo img {
        max-height: 42px;
    }

    .container {
        padding: 0 15px;
    }
}

/* Adaptive spacing: 500px to 400px - continue reducing (nav-menu visible) */
@media (max-width: 500px) and (min-width: 400px) {
    .nav-wrapper {
        gap: 0.5rem;
    }

    .nav-menu {
        gap: 1rem !important;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.3rem 0;
        white-space: nowrap;
    }

    .logo img {
        max-height: 40px;
    }

    .container {
        padding: 0 12px;
    }
}

/* Adaptive spacing: 400px to 300px - minimal gaps (nav-menu visible) */
@media (max-width: 400px) and (min-width: 300px) {
    .nav-wrapper {
        gap: 0.25rem;
    }

    .nav-menu {
        gap: 0.75rem !important;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.25rem 0;
        white-space: nowrap;
    }

    .logo img {
        max-height: 38px;
    }

    .container {
        padding: 0 10px;
    }
}

/* Mobile menu: Only show hamburger below 768px */
@media (max-width: 767px) {

    /* Hide nav-menu from normal flow, show hamburger */
    .nav-menu {
        position: fixed !important;
        top: 70px;
        right: -100% !important;
        width: 250px;
        height: calc(100vh - 70px);
        max-height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        gap: 0;
        z-index: 1001;
        display: flex !important;
        overflow-y: auto;
        overflow-x: hidden;
        list-style: none;
        margin: 0;
        border: none;
    }

    /* Show nav menu when active (mobile menu slides in) */
    .nav-menu.active {
        right: 0 !important;
        position: fixed !important;
        top: 70px !important;
        bottom: 0 !important;
        z-index: 1001 !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: calc(100vh - 350px) !important;
        max-height: calc(100vh - 70px) !important;
        width: 180px !important;
        display: flex !important;
        transform: translateY(0) !important;
    }

    /* Override hidden-on-scroll when mobile menu is active */
    .nav-menu.active.hidden-on-scroll {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    /* Show hamburger on mobile */
    .hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        position: relative !important;
        z-index: 1001 !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }

    .hamburger .bar {
        background: #ffffff !important;
        width: 25px !important;
        height: 3px !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        flex-shrink: 0 !important;
    }

    /* Ensure bars are always visible */
    .hamburger span.bar {
        /* background-color: #ffffff !important;
        background: #ffffff !important; */
        background-color: #000000 !important;
    }

    .nav-wrapper {
        position: relative;
        overflow: visible;
    }

    .navbar .container {
        overflow: visible !important;
    }

    .navbar {
        overflow: visible !important;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #E0E0E0;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
    }

    .hero {
        max-width: 100vw;
        overflow-x: hidden;
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .slide-image {
        background-size: cover;
        background-position: center;
    }

    .hero-content {
        width: 94%;
        padding: 20px 22px;
        border-radius: 14px;
        gap: 0.65rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6.1vw, 2.5rem);
        word-wrap: break-word;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: clamp(0.85rem, 2.3vw, 1rem);
        word-wrap: break-word;
        max-width: 100%;
    }

    /* ============================== HERO CONTENT POSITION & COLOR VARIANTS PER SLIDE ============================== */
    .hero-content.hero-style-1 {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        align-items: center;
        color: #ffffff;
    }

    .hero-content.hero-style-2 {
        bottom: 10%;
        right: 10%;
        top: auto;
        left: auto;
        transform: translate(0, 0);
        text-align: right;
        align-items: flex-end;
        color: #ffffff;
    }

    .hero-content.hero-style-3 {
        top: 55%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        align-items: center;
        color: #F5F8FC;
    }

    .hero-content.hero-style-4 {
        display: none;
    }

    .hero-content.hero-style-5 {
        bottom: 5%;
        right: 18%;
        top: auto;
        left: auto;
        transform: translate(-30%, -20%);
        text-align: center;
        color: #1F2A00;
    }

    /* ===================================== */
    .navbar,
    .navbar.scrolled {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .services>.container {
        height: auto;
        min-height: auto;
        padding: 30px 0;
    }

    .services .section-header {
        margin-bottom: 20px;
    }

    .services .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.4rem;
    }

    .services .section-subtitle {
        font-size: 0.85rem;
    }

    /* .services-grid {
        grid-template-columns: 300px;
        justify-content: center;
        gap: 15px;
    } */

    .service-card-flip {
        width: 300px;
        max-width: 300px;
    }

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

    .testimonial-item.center {
        width: 120px;
        height: 120px;
    }

    .testimonial-item.visible[data-position="-2"] {
        transform: scale(0.7) translateX(calc(-50% - 220px));
    }

    .testimonial-item.visible[data-position="-1"] {
        transform: scale(0.7) translateX(calc(-50% - 140px));
    }

    .testimonial-item.visible[data-position="0"] {
        transform: scale(1) translateX(-50%);
    }

    .testimonial-item.visible[data-position="1"] {
        transform: scale(0.7) translateX(calc(-50% + 140px));
    }

    .testimonial-item.visible[data-position="2"] {
        transform: scale(0.7) translateX(calc(-50% + 220px));
    }

    .testimonial-name {
        font-size: 1.5rem;
    }

    .quote-text {
        font-size: 1rem;
    }

    .quote-mark {
        font-size: 3rem;
    }

    .testimonial-content {
        min-height: 200px;
        padding: 0 10px;
    }

    .testimonial-quote {
        padding: 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 24px;
    }

    .footer {
        padding: 44px 0 24px;
    }

    .footer-column h3 {
        margin-bottom: 12px;
        font-size: 1.1rem;
    }

    .footer-description {
        margin-bottom: 12px;
        line-height: 1.65;
    }

    .footer-bottom {
        padding-top: 18px;
        font-size: 0.9rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 650px) {
    .services-grid {
        grid-template-columns: 300px;
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        max-width: 100vw;
        overflow-x: hidden;
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .slide-image {
        background-size: cover;
        background-position: center;
    }

    .hero-content {
        width: 95%;
        padding: 18px;
        border-radius: 12px;
    }

    .hero-title {
        font-size: clamp(1.55rem, 7.1vw, 2rem);
        word-wrap: break-word;
        max-width: 100%;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: clamp(0.8rem, 2.8vw, 0.9rem);
        word-wrap: break-word;
        max-width: 100%;
        padding: 0 10px;
    }

    /* ============================== HERO CONTENT POSITION & COLOR VARIANTS PER SLIDE ============================== */
    .hero-content.hero-style-1 {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        align-items: center;
        color: #ffffff;
    }

    .hero-content.hero-style-2 {
        bottom: 10%;
        right: 10%;
        top: auto;
        left: auto;
        transform: translate(0, 0);
        text-align: right;
        align-items: flex-end;
        color: #ffffff;
    }

    .hero-content.hero-style-3 {
        top: 55%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        align-items: center;
        color: #F5F8FC;
    }

    .hero-content.hero-style-4 {
        display: none;
    }

    .hero-content.hero-style-5 {
        bottom: 5%;
        right: 18%;
        top: auto;
        left: auto;
        transform: translate(-30%, -20%);
        text-align: center;
        color: #1F2A00;
    }

    /* ===================================== */
    .btn-primary {
        padding: 9px 22px;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .contact-form {
        padding: 25px;
    }

    .service-content,
    .portfolio-caption {
        padding: 20px;
    }


    .navbar,
    .navbar.scrolled {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .container {
        max-width: 100%;
        padding: 0 10px;
    }
}

/* @media (max-width: 339px){
.services-grid {
    grid-template-columns: 300px;
    justify-content: center;
    gap: 10px;
}
} */
/* ===== AOS Animation Overrides ===== */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* ===== WhatsApp Chat Widget ===== */
.whatsapp-widget {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1000;
    font-family: 'Open Sans', sans-serif;
    max-width: calc(100vw - 40px);
    overflow: visible;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    position: relative;
    z-index: 1001;
}

.whatsapp-button:hover {
    background: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-button svg {
    width: 28px;
    height: 28px;
}

.whatsapp-chatbox {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    max-width: calc(100vw - 40px);
    max-height: 500px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.whatsapp-chatbox.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.chatbox-header {
    background: #25D366;
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbox-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbox-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbox-avatar svg {
    width: 24px;
    height: 24px;
}

.chatbox-header-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--white);
}

.chatbox-header-info p {
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.9;
}

.chatbox-close {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 4px;
}

.chatbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbox-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #ECE5DD;
    max-height: 350px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chatbox-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbox-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbox-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.chatbox-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.message-received {
    align-self: flex-start;
}

.message-sent {
    align-self: flex-end;
}

.message-content {
    padding: 10px 14px;
    border-radius: 8px;
    word-wrap: break-word;
}

.message-received .message-content {
    background: var(--white);
    border-top-left-radius: 2px;
}

.message-sent .message-content {
    background: #DCF8C6;
    border-top-right-radius: 2px;
}

.message-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 4px;
    padding: 0 4px;
}

.message-sent .message-time {
    text-align: right;
}

.chatbox-input-wrapper {
    background: var(--white);
    border-top: 1px solid #E0E0E0;
}

.chatbox-input-container {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 8px;
}

.chatbox-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #E0E0E0;
    border-radius: 24px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.chatbox-input:focus {
    border-color: #25D366;
}

.chatbox-send {
    width: 40px;
    height: 40px;
    background: #25D366;
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.chatbox-send:hover {
    background: #20BA5A;
    transform: scale(1.05);
}

.chatbox-send:disabled {
    background: #BDBDBD;
    cursor: not-allowed;
    transform: none;
}

.chatbox-footer {
    padding: 8px 16px;
    text-align: center;
    border-top: 1px solid #E0E0E0;
    background: #F5F5F5;
}

.chatbox-footer p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

.chatbox-footer a {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
}

.chatbox-footer a:hover {
    text-decoration: underline;
}

/* Responsive WhatsApp Widget */
@media (max-width: 768px) {
    .whatsapp-widget {
        left: 15px;
        bottom: 15px;
        max-width: calc(100vw - 30px);
    }

    .whatsapp-button {
        width: 56px;
        height: 56px;
    }

    .whatsapp-chatbox {
        width: calc(100vw - 30px);
        max-width: 350px;
        bottom: 76px;
        max-height: 450px;
        left: 0;
    }

    .chatbox-messages {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .whatsapp-widget {
        left: 10px;
        bottom: 10px;
        max-width: calc(100vw - 20px);
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
    }

    .whatsapp-chatbox {
        width: calc(100vw - 20px);
        max-width: 320px;
        left: 0;
    }
}

/* Extra small screens - 300px and below */
@media (max-width: 300px) {
    .hero {
        max-width: 100vw;
        overflow-x: hidden;
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .hero-content {
        width: 96%;
        padding: 14px;
        border-radius: 10px;
    }

    .hero-title {
        font-size: clamp(1.2rem, 8.4vw, 1.5rem);
        word-wrap: break-word;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: clamp(0.72rem, 3.4vw, 0.9rem);
        word-wrap: break-word;
        max-width: 100%;
    }

    /* Hero content position & color variants per slide */
    /* ============================== HERO CONTENT POSITION & COLOR VARIANTS PER SLIDE ============================== */
    .hero-content.hero-style-1 {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        align-items: center;
        color: #ffffff;
    }

    .hero-content.hero-style-2 {
        bottom: 10%;
        right: 10%;
        top: auto;
        left: auto;
        transform: translate(0, 0);
        text-align: right;
        align-items: flex-end;
        color: #ffffff;
    }

    .hero-content.hero-style-3 {
        top: 55%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        align-items: center;
        color: #F5F8FC;
    }

    .hero-content.hero-style-4 {
        display: none;
    }

    .hero-content.hero-style-5 {
        bottom: 5%;
        right: 18%;
        top: auto;
        left: auto;
        transform: translate(-30%, -20%);
        text-align: center;
        color: #1F2A00;
    }

    /* ===================================== */

    .navbar,
    .navbar.scrolled {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .whatsapp-widget {
        left: 8px;
        bottom: 8px;
        max-width: calc(100vw - 16px);
    }

    .whatsapp-button {
        width: 45px;
        height: 45px;
    }

    .whatsapp-chatbox {
        width: calc(100vw - 16px);
        max-width: 280px;
        left: 0;
    }

    .container {
        max-width: 100%;
        padding: 0 8px;
    }

    .whatsapp-button svg {
        width: 24px;
        height: 24px;
    }

    .whatsapp-chatbox {
        width: calc(100vw - 20px);
        bottom: 70px;
        max-height: 400px;
    }

    .chatbox-messages {
        max-height: 250px;
        padding: 15px;
    }

    .message {
        max-width: 85%;
    }

    .footer {
        padding: 34px 0 18px;
    }

    .footer-content {
        gap: 18px;
    }

    .footer-column h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .footer-description,
    .footer-column p,
    .footer-contact-item p,
    .footer-links a,
    .footer-bottom {
        font-size: 0.85rem;
        line-height: 1.55;
    }

    .social-links {
        gap: 10px;
        flex-wrap: wrap;
    }

    .social-link {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 339px) {
    .services-grid {
        grid-template-columns: 1fr;
        justify-content: center;
        gap: 12px;
    }

    .service-card-flip {
        width: 100%;
        max-width: 100%;
    }
}