body,
html {
    margin: 0;
    padding: 0;
    font-family: "DM Sans", sans-serif;
    background: #181818;
    color: #fff;
    scroll-behavior: inherit;
    width: 100vw;
    height: 100vh;
}

html,
body {
    overflow-x: hidden; /* Remove horizontal scrollbar */
    overflow-y: auto; /* Allow vertical scrolling */
    scrollbar-width: thin; /* Firefox: make scrollbar thinner */
    scrollbar-color: #888 #f1f1f1; /* Firefox: thumb and track colors */
}

/* WebKit-based browsers (Chrome, Safari, Edge) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 8px; /* Vertical scrollbar width */
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #f1f1f1; /* Track color */
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background-color: #888; /* Thumb color */
    border-radius: 10px;
    border: 2px solid #f1f1f1; /* Adds space around thumb */
}

header {
    background: #1b1b1b;
    position: relative;
    width: 100%;
    top: 0;
    z-index: 10;

    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    height: 70px;
}

.logo img {
    height: auto;
    width: 130px;
    filter: brightness(120%);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.2s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #ffa886;
}

.quote-btn {
    background: #ffa886;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 168, 134, 0.13);
    margin-left: 18px;
    transition: background 0.2s;
}

.quote-btn:hover {
    background: #f5742e;
}

/* Hero section */

.hero {
    height: 120vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top;
    filter: brightness(0.85);
    transition: transform 4s ease, opacity 1.5s ease;
    will-change: opacity, transform;
    z-index: 0;
    transform: scale(1) translate3d(0, 0, 0);
}
.bg1,
.bg2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: top;
    transition: opacity 1.5s ease-in-out;
    opacity: 0;
    z-index: 1;
}

.bg1.active,
.bg2.active {
    opacity: 1;
    z-index: 2;
}

.bg1.zoom,
.bg2.zoom {
    animation: zoomEffect 7.5s ease-in-out forwards; /* ⬅️ changed from 14s to 7.5s */
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.07);
    }
}

.hero-bg.zoom {
    transform: scale(1.06) translate3d(0, 0, 0);
}

.hero-bg.active {
    opacity: 1;
    /* z-index: 1; */
}

@keyframes shrink {
    0% {
        background-size: 110% 110%;
    }
    100% {
        background-size: 100 100%;
    }
}
.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 20px;
}
.hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0px;
    height: 70px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(24, 24, 24, 0) 0%, #181818 100%);
}
@media (max-width: 768px) {
    .hero {
        width: 100vw;
        height: 100dvh;
    }
    .hero-content {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        top: 0px;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(24, 24, 24, 0.2) 40%, rgba(24, 24, 24, 0.92) 100%);
    z-index: 2;
}

h1 {
    margin: 0 0 12px 0;
    font-size: 3.2rem;
    line-height: 1;
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.script {
    font-family: "Luxurious Script", sans-serif;
    font-size: 100px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    display: block;
}

.headline {
    display: block;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 900;
    font-size: 100px;
    margin-top: -10px;
    position: relative;
    letter-spacing: 3px;
}

@media (max-width: 768px) {
    section[style*="position: relative; height: 400px;"] {
        height: auto !important;
    }

    footer[style*="display: flex;"] {
        padding: 30px 15px 20px !important;
        align-items: flex-start !important;
    }

    footer > div[style*="display: flex;"] {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    footer ul {
        justify-content: center !important;
    }

    footer div[style*="display: flex; gap: 15px; justify-content: flex-end; align-items: center;"] {
        justify-content: center !important;
        margin-top: 10px;
    }

    /* 🔧 Dashed line alignment fix */
    footer > div[style*="border-top: 1px dashed"] {
        margin: 0 auto !important;
        width: 80% !important;
    }
    footer div[style*="flex: 1 1 300px"] {
        flex: 1 1 200px !important;
    }
}

.zigzag {
    position: absolute;
    left: 0;
    bottom: -18px;
    width: 220px;
    height: 14px;
    pointer-events: none;
    display: block;
}

.hero-content p {
    max-width: 670px;
    font-size: 1.18rem;
    margin: 1px 0 32px 0;
    font-weight: 400;
    color: #fff;
    line-height: 1.5;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
}

#typewrite {
    color: #ffa886;
    font-weight: bold;
    border-right: 2px solid #ffa886;
    padding-right: 3px;
    background: none;
}

.cta-btn {
    background: #181818;
    color: #fff;
    border: none;
    font-size: 1.1rem;
    padding: 15px 36px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    background-color: black;
    transition: background 0.2s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

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

@media (max-width: 850px) {
    h1,
    .script,
    .headline {
        font-size: 2.1rem;
    }

    .headline {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .zigzag {
        width: 120px;
        height: 8px;
        left: 0;
        bottom: -10px;
    }

    .navbar {
        padding: 0 10px;
    }
}

@media (max-width: 520px) {
    .nav-links {
        gap: 8px;
        font-size: 0.97rem;
    }

    .cta-btn {
        padding: 11px 20px;
    }
}

.zigzag-animated {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    bottom: -24px;
    /* Adjust as needed for your font size */
    width: 340px;
    height: 24px;
    pointer-events: none;
    display: block;
}

.zigzag-animated path {
    stroke-dasharray: 400;
    /* Should be >= the path length */
    stroke-dashoffset: 400;
    animation: drawZigzag 1.5s cubic-bezier(0.72, 0.17, 0.36, 0.91) forwards;
}

@keyframes drawZigzag {
    to {
        stroke-dashoffset: 0;
    }
}
.about-section {
    background-color: #1a1a1a;
    color: #fff;
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 80px;
}

.about-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 110px;
}
.about-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: start;
    gap: 30px;
}
.about-title h2 {
    font-size: 3em;
    font-family: "Playfair Display", sans-serif;

    font-weight: bold;
    line-height: 1.2;
    margin: 0;
}

.about-image {
    flex: 1;
    min-width: 200px;
}

.about-image img {
    border-radius: 333px;
    width: 100%;
    max-width: 357px;
    height: 500px;
    border: 2px solid rgba(255, 168, 134, 0.5);
    /* box-shadow: 0 0 20px rgba(255, 168, 134, 0.5); */
}

.about-content {
    flex: 2;
    min-width: 300px;
    text-align: left;
}

.about-content p {
    font-size: 1.1em;
    line-height: 1.6;
}

.about-why {
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 20px;
}

.about-why b {
    font-size: 1.2em;
}

.about-why ul {
    list-style: none;
    padding: 0;
}

.about-why li {
    font-size: 1em;
    margin: 10px 0;
    color: #ccc;
}

.about-stats {
    display: flex;
    justify-content: space-evenly;
    gap: 80px;
    flex-wrap: wrap;
    padding: 50px 20px;
    text-align: center;
    border-radius: 12px;
    margin-top: 40px;
}

.about-stat {
    font-family: "Segoe UI", sans-serif;
}

.stat-number {
    font-size: 4rem;
    font-weight: bold;
    color: white;
}

.plus {
    font-size: 2.5rem;
    color: white;
    margin-left: 2px;
}

.stat-label {
    margin-top: 10px;
    font-size: 24px;
    font-family: "Playfair Display", sans-serif;
    color: #d98e60; /* Warm orange */
}

.star {
    color: #f5c518;
    font-size: 1.3rem;
    vertical-align: middle;
}

@media (max-width: 1200px) {
    .about-flex {
        flex-direction: column;
        gap: 32px;
    }

    .about-title h2 {
        text-align: center;
        font-size: 2.3rem;
    }

    .about-image {
        width: 270px;
        height: 320px;
        min-width: 200px;
    }
}

@media (max-width: 700px) {
    .about-flex {
        /* padding: 0 6vw 32px 6vw; */
        gap: 50px;
        flex-direction: column;
    }

    .about-content {
        font-size: 1rem;
        max-width: 95vw;
    }
    .about-title h2 {
        text-align: center;
        font-size: 2rem;
        font-weight: 600;
        margin-left: 10px;
    }
    .about-stats {
        flex-direction: column;
        gap: 30px;
    }

    .about-stat {
        min-width: 120px;
    }

    .about-image {
        /* width: 160px; */
        /* height: 120px; */
        min-width: 110px;
    }
    .about-image img {
        height: 400px;
    }

    .stat-number {
        font-size: 4rem;
    }
}

.gallery-section {
    background: #181818;
    padding: 60px 0 0 0;
    min-height: 480px;
    padding-bottom: 100px;
}

.gallery-carousel-outer {
    width: 100%;
    overflow-x: hidden;
    padding: 30px 0 45px 0;
    position: relative;
    background: #181818;
    /* match previous section */
}

.gallery-header {
    margin: 0 auto 18px auto;
    text-align: left;
    margin-left: auto;
    justify-content: center;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin-top: 60px;
}

.gallery-header h2 {
    color: #fff;
    font-size: 2.8rem;
    font-family: "Playfair Display", sans-serif;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 1.5px;
}
#galleryCarousel {
    display: flex;
    gap: 18px;
    transition: transform 0.6s ease-in-out; /* smooth sliding */
    will-change: transform;
    margin-top: 1rem;
}

.gallery-header p {
    color: #f0f0f0;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 auto 12px auto;
    text-align: left;
}

.gallery-carousel {
    display: flex;
    gap: 18px;
    transition: transform 0.65s cubic-bezier(0.7, 0, 0.3, 1);
    will-change: transform;
    user-select: none;
    height: 100%;
}

.carousel-img {
    min-width: 330px;
    max-width: 380px;
    height: 500px;
    width: 375px;
    background: #181818;
    border-radius: 0px;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 2px 22px 0 rgba(0, 0, 0, 0.11);
    transition: box-shadow 0.18s;
    position: relative;
    perspective: 1000px;
}

.carousel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    will-change: transform, filter;
    transition: transform 0.6s ease, filter 0.4s ease;
    transform-style: preserve-3d;
    filter: brightness(0.5);
}

.carousel-img:hover img {
    transform: scale(1.03) rotateY(2deg) rotateX(1deg); /* reduce distortion */
    filter: brightness(1) saturate(1.15);
}
.carousel-img img {
    transition: transform 0.3s ease, filter 0.3s ease; /* reduced from 0.6s */
}

.hover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(rgba(255, 255, 255, 0) 40%, rgb(209, 152, 118) 100%);

    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.carousel-img:hover .hover-overlay {
    opacity: 1;
    pointer-events: auto;
}

.hover-overlay h3 {
    margin: 0;
    font-size: 1.25rem;
}

.hover-overlay p {
    font-size: 0.95rem;
    margin-top: 5px;
}

@media (max-width: 950px) {
    .carousel-img {
        min-width: 240px;
        max-width: 98vw;
    }

    .gallery-header h2 {
        font-size: 2rem;
        padding: 0 4vw 16px 4vw;
    }
    .gallery-header p {
        max-width: 98vw;
        padding: 0 4vw 16px 4vw;
    }
}

@media (max-width: 700px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 0 2vw;
        gap: 2px;
    }
    #galleryCarousel {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    #galleryCarousel::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    .carousel-img .hover-overlay {
        display: none !important;
    }
    .logo img {
        height: auto;
        width: 80px;
        margin-top: 4px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 8px;
        padding: 3px 0 0 0;
        font-size: 0.95rem;
        justify-content: flex-start;
        width: 100%;
    }

    .quote-btn {
        font-size: 0.98rem;
        padding: 6px 13px;
        margin-left: 8px;
    }
    .carousel-img {
        position: relative;
        overflow: hidden;
    }

    .carousel-img::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 2;
        background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4)),
            radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.5) 100%);
    }
}

@media (max-width: 900px) {
    .about-flex {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .about-title h2 {
        text-align: left;
        font-size: 2rem;
        margin-bottom: 7px;
        width: 100% !important;
    }

    .about-image {
        width: 100% !important;

        min-width: 80px !important;
        margin: 0 auto;
    }
    .about-wrapper {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 10px;
        height: auto;
    }

    .about-content {
        max-width: 98vw;
        font-size: 1rem;
        text-align: left; /* Use this for justification */
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .about-stats {
        flex-direction: column;
        gap: 16px;
        margin: 26px auto 0 auto;
        align-items: center;
    }

    .about-stat {
        min-width: 100px;
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 4rem;
    }

    .stat-label {
        font-size: 24px;
        font-family: "Playfair Display", sans-serif;
        margin-bottom: 6px;
    }
}

@media (max-width: 900px) {
    .gallery-header h2 {
        font-size: 2rem;
        text-align: left;
    }

    .carousel-img {
        min-width: 80vw !important;
        max-width: 94vw !important;
    }

    .gallery-header {
        padding: 0 2vw;
    }
}

@media (max-width: 600px) {
    .carousel-img {
        min-width: 96vw !important;
        max-width: 98vw !important;
        filter: brightness(1);
    }
    .carousel-img img {
        filter: brightness(1) saturate(1.15);
        transition: none !important;
    }
    .carousel-img:hover img {
        transform: none !important;
        filter: brightness(1) saturate(1.15);
    }
}

.hero,
.about-section,
.gallery-section {
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #181818 !important;
}

/* Hamburger icon style */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3.5px;
    margin: 4px 0;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile Navbar styles */
@media (max-width: 700px) {
    .nav-toggle {
        display: flex;

        transition: all 0.3s;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 52px;
        left: 0;
        width: 100vw;
        background: #181818;
        z-index: 100;
        padding: 18px 18px 18px 16px;
        gap: 17px;
        box-shadow: 0 5px 16px 0 rgba(0, 0, 0, 0.12);

        /* ANIMATION */
        opacity: 0;
        pointer-events: none;
        transform: translateY(-24px) scaleY(0.96);
        transition: opacity 0.32s cubic-bezier(0.5, 0.8, 0.4, 1), transform 0.35s cubic-bezier(0.45, 0.95, 0.6, 1);
    }

    .nav-links.show {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0) scaleY(1);
        display: flex;
    }

    .navbar {
        flex-direction: row;
        align-items: center;
        height: 52px;
        padding: 0 8px;
        position: relative;
    }

    /* Hamburger/X icon animation */
    .nav-toggle {
        position: relative;
        z-index: 101;
        background: none;
        border: none;
        outline: none;
        display: flex;
    }

    .nav-toggle span {
        display: block;
        width: 20px;
        height: 0.3px;
        margin: 2px 0;
        /* margin: 4px 0; */
        background: #fff;
        border-radius: 2px;
        transition: all 0.32s cubic-bezier(0.77, 0, 0.18, 1);
        position: relative;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0.1);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
}

@media (max-width: 700px) {
    .script {
        font-size: 3.5rem !important;
        margin-bottom: 0.2em;
        display: block;
        font-family: "Luxurious Script", sans-serif;
    }

    .headline {
        font-size: 3.6rem !important;
        margin-top: 6px !important;
        letter-spacing: 0px !important;
        display: block;
        font-family: "Bebas Neue", sans-serif;
    }

    .hero-content h1 {
        margin-bottom: 12px;
    }
}

.video-art-section {
    position: relative;
    height: 650px;
    overflow: hidden;
    background: black;
}

.video-art-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    filter: grayscale(100%) contrast(1.1);
}

.video-art-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-art-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2); /* slight dark layer */
    z-index: 2;
}

.video-art-content {
    position: relative;
    z-index: 3;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    font-family: "Playfair Display", sans-serif;
}

.video-art-content h2 {
    font-size: 3rem;
    font-weight: 600;
    font-family: "Playfair Display", sans-serif;
}

/* SVG Shape Styling */
.shape-divider {
    position: absolute;
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
    z-index: 4;
    pointer-events: none;
}

.shape-divider.shape-top {
    top: 0;
    height: 60px;
}

.shape-divider.shape-bottom {
    bottom: 0;
    transform: rotate(180deg);
}

.shape-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

.shape-divider path {
    fill: #181818; /* ✅ semi-transparent for folded edge effect */
}
.video-art-section::before,
.video-art-section::after {
    content: "";
    position: absolute;
    top: 0;
    width: 3vw;
    height: 650px;
    background: black;
    z-index: 5;
    pointer-events: none;
}

.video-art-section::before {
    left: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: skewY(5deg);
    transform-origin: top left;
}

.video-art-section::after {
    right: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: skewY(-5deg);
    transform-origin: top right;
}
@media (max-width: 768px) {
    .video-art-section::before,
    .video-art-section::after {
        display: none !important;
    }

    .shape-divider.shape-top {
        top: 0;
        height: 50px;
    }

    .shape-divider.shape-bottom {
        bottom: 0;
        /* transform: rotate(180deg); */
        height: 50px;
    }
    .video-art-bg video {
        width: 100%;
        height: 100%;
        object-fit: none;
    }
}

@media (max-width: 900px) {
    .video-art-section {
        height: 400px;
    }
    .video-art-content h2 {
        font-size: 2.2rem;
    }
}

.expertise-section {
    padding: 60px 0 70px 0;
    /* background: #181818; */

    min-height: 60vh;
}
.expertise-header {
    justify-content: center;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto 38px auto;
    text-align: center;
}
.expertise-header h2 {
    font-size: 2.9rem;
    font-family: "Playfair Display", sans-serif;
    font-weight: 800;
    margin-bottom: 18px;
    justify-content: start;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.expertise-header span {
    color: #fff6e3;
}
.expertise-header p {
    color: #ececec;
    font-size: 1.11rem;
    margin-bottom: 0;
    text-align: left;
}

.expertise-cards {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Updated Card Container */
.expertise-card {
    width: 350px;
    height: 460px;
    /* background: #232323; */
    /* border-radius: 6px; */
    overflow: hidden;
    box-shadow: 0 2px 16px 0 inherit;
    cursor: pointer;
    perspective: 1200px;
    /* transform-style: preserve-3d; */
    position: relative;
}

/* Card Inner Container for 3D Flip */
.expertise-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
}

/* Front and Back Faces */
.expertise-card-front,
.expertise-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Front Face (Visible by default) */
.expertise-card-front {
    transform: rotateY(0deg);
    z-index: 2;
}

/* Back Face (Hidden initially) */
.expertise-card-back {
    transform: rotateY(180deg);
    background: #d29473;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}

/* Flip on hover */
.expertise-card:hover .expertise-card-inner {
    transform: rotateY(180deg);
}

/* Image Styles */
.expertise-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Icon Styles - Moved to front face */
.expertise-card .expertise-icon {
    position: absolute;
    left: 45%;
    top: 79%;
    transform: translateX(-50%) scale(1.3) rotate(-2deg);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 700;
    text-shadow: 0 2px 14px #111a;
    transition: all 0.5s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.expertise-icon-circle {
    width: 35px;
    height: 35px;
    background-color: #ffffff9c;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expertise-card .expertise-icon svg {
    filter: drop-shadow(0 1px 5px #222b);
}
.expertise-icon .icon {
    width: 20px;
    height: 20px;
    fill: #000000;
}
/* Description Styles - Now on back face */
.expertise-card .expertise-desc {
    font-size: 15px;
    font-family: "Playfair Display", sans-serif;
    /* font-weight: 500; */
    line-height: 1.6;
    transform: none;
    margin-bottom: 80px;
    margin-left: 30px;
}

/* Add depth to back face text */
.expertise-card-back::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    transform: translateZ(-20px);
    z-index: -1;
    border-radius: 6px;
    display: none;
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .expertise-cards {
        gap: 18px;
    }
    .expertise-card {
        width: 275px;
        height: 290px;
    }
}

@media (max-width: 880px) {
    .expertise-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .expertise-card {
        width: 92vw;
        max-width: 350px;
    }
}

@media (max-width: 500px) {
    .expertise-header h2 {
        font-size: 2rem;
        padding: 0 4vw 16px 4vw;
    }
    .expertise-header p {
        padding: 0 4vw 16px 4vw;
        text-align: left;
    }
    .reviews-info h2 {
        font-size: 2rem;
        padding: 0 4vw 16px 4vw;
    }
    .expertise-card {
        min-width: 85vw;
        height: 290px;
    }
    .expertise-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .expertise-card .expertise-desc {
        font-size: 0.95rem;
        padding: 14px;
    }
    .expertise-card .expertise-icon {
        top: 73%;
        transform: translateX(-50%) scale(1.1) rotate(-2deg);
    }
    .expertise-icon .icon {
        width: 2rem;
        height: 2rem;
    }
}

.reviews-section {
    background: #181818;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    /* left: 80px; */
}

.elementor-shape-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg); /* Flip if needed */
}
.elementor-shape-top svg {
    display: block;
    width: 100%;
    height: 100px;
}
.elementor-shape-fill {
    fill: currentColor;
}

/* .wave {
  width: 100%;
  line-height: 0;
  position: absolute;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.wave-bottom {
  bottom: -1px;
} */
.reviews-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    justify-content: center;
    padding: 90px 0 64px 0;
    position: relative;
    z-index: 5;
}
.reviews-info {
    flex: 1.1;

    min-width: 280px;
    color: #fff;
    padding-top: 0; /* Make sure this is 0 */
    margin-top: 0; /* Add this if you want to override any margin */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align to top */
}
.reviews-info h2 {
    margin-top: 0;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.13;
    margin-bottom: 30px;
    color: #fff;
    font-family: "Playfair Display", sans-serif;
}
.reviews-info .star {
    color: #ffa886;
    font-size: 0.85em;
}
.reviews-info p {
    font-size: 1.12rem;
    margin-top: 0;
    color: #ffe;
    text-align: left;
}
.reviews-carousel {
    flex: 2;
    display: flex;
    align-items: center;
    position: relative;
    max-width: 600px;
    width: 100%;
    overflow: hidden;
}
.reviews-cards {
    display: flex;
    gap: 28px;
    height: auto;
    width: max-content;
    transition: transform 0.55s cubic-bezier(0.68, 0, 0.32, 1);
    will-change: transform;
    /* margin: 0 auto; */
    padding-left: 12px;
    padding-bottom: 10px;
}
.review-card {
    flex: 0 0 210px;
    width: 210px;
    min-width: 210px;
    max-width: 210px;
    background: rgba(24, 24, 24, 0.94);
    border: 1px solid #ffa886;
    border-radius: 14px;
    padding: 32px 26px 22px 26px;
    color: #fff;
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.09);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    transition: box-shadow 0.22s, border 0.15s;
}
.review-card:hover {
    box-shadow: 0 8px 28px 0 rgba(255, 168, 134, 0.11);
    border-color: #ffd5be;
}
.review-avatar img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ffa886;
}
.reviewer-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.review-rating {
    background-color: #39f;
    align-items: center;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.review-rating .star {
    color: #ffa886;
    font-size: 1.09em;
}
.review-star {
    align-items: center;
    color: white;
    fill: white;
}
.review-text {
    font-size: 1.06rem;
    color: #e7e7e7;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 500px) {
    .reviews-info h2 {
        font-size: 2rem;
    }
}
@media (max-width: 1200px) {
    .reviews-container {
        gap: 24px;
        padding: 0 4vw 40px 4vw;
    }
    .review-card {
        width: 260px;
        min-width: 260px;
        max-width: 260px;
    }
}
@media (max-width: 950px) {
    .reviews-container {
        flex-direction: column;
        align-items: stretch;
        gap: 38px;
        padding: 0 4vw 40px 4vw;
    }
    .reviews-carousel {
        justify-content: flex-start;
        gap: 8px;
        padding: 10px;
    }
    .reviews-cards {
        gap: 16px;
    }
}

@media (max-width: 700px) {
    .reviews-section {
        padding: 0;
    }
    .reviews-container {
        flex-direction: column;
        gap: 16px;
        padding: 0 2vw;
    }
    .reviews-info h2 {
        font-size: 2rem;
        text-align: left;
    }
    .reviews-info p {
        text-align: left;
        /* padding: 0 4vw 16px 4vw; */
    }
    .reviews-cards {
        gap: 28px;
        width: 100%;
    }
    .review-card {
        width: 400px;
        min-width: 400px;
        max-width: 400px;
        margin: 0 auto;
        flex: 0 0 400px;
        gap: 5px;
        align-items: center;
    }
    .review-text {
        text-align: center;
    }
    .reviews-carousel {
        margin-left: 10vw;
    }
}

@media (max-width: 500px) {
    .reviews-info p {
        padding: 0 28px;
        padding: 0 4vw 16px 4vw;
    }
    .review-card {
        width: 200px;
        min-width: 200px;
        max-width: 200px;
        padding: 24px 18px;
    }
    .review-avatar img {
        width: 48px;
        height: 48px;
    }
    .reviewer-name {
        font-size: 1.2rem;
    }
    .review-rating {
        font-size: 1rem;
    }
    .reviews-carousel {
        width: 200px;
        min-width: 200px;
        max-width: 200px;
    }
}

.contact-section {
    background: #efefef;
    position: relative;
    padding: 110px 0 0 0;
    min-height: 520px;
    padding-bottom: 90px;
}
.contact-flex {
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 38px;
    justify-content: space-evenly;
    padding: 36px 0 60px 0;
    position: relative;
    z-index: 5;
}
.contact-left {
    min-width: 340px;
    /* max-width: 520px; */
}
.contact-left h2 {
    font-size: 2.7rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    color: #2d2927;
    font-family: "Playfair Display", sans-serif;
}
.contact-map {
    width: 100%;
    /* max-width: 410px; */
    height: 220px;
    border-radius: 9px;
    margin: 20px 0 0 0;
    border: 2.5px solid #d9a685;
    box-shadow: 0 3px 24px 0 #00000010;
    background: #fff;
    display: block;
}
.contact-buttons {
    display: flex;
    gap: 18px;
    margin-top: 26px;
    flex-wrap: nowrap;
    flex-direction: row;
}
.contact-btn {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #d9a685;
    color: #fff;
    font-weight: bold;
    padding: 9px 18px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 1.11rem;
    margin-bottom: 8px;
    transition: background 0.2s;
    box-shadow: 0 3px 14px #d9a68522;
}
.contact-btn:hover {
    background: #be885f;
    color: #fff;
}
.contact-btn-icon {
    font-size: 2rem;
}
.contact-form {
    background: #fff;
    border: 1.7px solid #d9a685;
    border-radius: 16px;
    box-shadow: 0 1px 18px #0000000a;
    padding: 38px 38px 28px 38px;
    min-width: 350px;
    flex: 1.7;
    max-width: 520px;
    margin-top: 0;
}
.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 17px;
}
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 17px;
}
.form-group label {
    font-size: 1.05rem;
    color: #5b544c;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: "Playfair Display", sans-serif;
}
.contact-form input,
.contact-form select {
    padding: 11px 12px;
    border-radius: 7px;
    border: 1.2px solid #ceb6a0;
    font-size: 1rem;
    margin-bottom: 0;
    font-family: "Playfair Display", sans-serif;
    background: #fcfaf8;
    color: #222;
    transition: border 0.17s;
}
.contact-form input:focus,
.contact-form select:focus {
    border-color: #b67c4c;
    outline: none;
}
.quote-btn-main {
    background: #d9a685;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 13px 26px;
    font-size: 1.18rem;
    font-weight: 700;
    margin-top: 9px;
    transition: background 0.18s;
    cursor: pointer;
}
.quote-btn-main:hover {
    background: #be885f;
}

@media (max-width: 900px) {
    .contact-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
        padding: 20px 0 28px 0;
    }
    .contact-left,
    .contact-form {
        max-width: 97vw;
        min-width: 0;
    }
    .contact-map {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 600px) {
    .contact-section {
        padding: 36px 0 0 0;
    }
    .contact-buttons {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        flex-wrap: wrap;
    }
    .contact-flex {
        padding: 6vw 4vw 18vw 4vw;
    }
    .contact-left h2 {
        font-size: 1.32rem;
    }
    .contact-map {
        height: 160px;
    }
    .contact-btn {
        font-size: 0.98rem;
        padding: 13px 10px;
        border-radius: 13px;
        width: fit-content;
    }
    .contact-form {
        padding: 15px 8px 15px 8px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Underline Animation Styles */
.underline-container {
    position: absolute;
    bottom: -36px;
    left: 12px;
    width: 100%;
}

svg {
    width: 120%;
    height: 60px;
}

.wavy-line {
    stroke: white;
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: drawAndFade 5s ease-in-out infinite;
}

@keyframes drawAndFade {
    0% {
        stroke-dashoffset: 1500;
        opacity: 1;
    }
    20% {
        /* Draw completes in 1s (20% of 5s) */
        stroke-dashoffset: 0;
        opacity: 1;
    }
    60% {
        /* Pause for 2s (20% to 60% = 2s) */
        stroke-dashoffset: 0;
        opacity: 1;
    }
    80% {
        /* Fade out in 1s (60% to 80% = 1s) */
        stroke-dashoffset: 0;
        opacity: 0;
    }
    100% {
        /* Buffer/reset for 1s (80% to 100% = 1s) */
        stroke-dashoffset: 1500;
        opacity: 0;
    }
}
