/* ===== CSS VARIABLES ===== */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card2: #1a1a25;
    --bg-nav: rgba(10, 10, 15, 0.95);
    --bg-nav-scrolled: rgba(10, 10, 15, 0.98);
    --bg-mobile-menu: rgba(10, 10, 15, 0.96);
    --hero-overlay: linear-gradient(135deg, rgba(10, 10, 15, .92), rgba(10, 10, 15, .7), rgba(245, 166, 35, .08));
    --stats-overlay: rgba(10, 10, 15, .88);
    --logo-bg: rgba(255, 255, 255, 0.03);
    --accent: #f5a623;
    --accent2: #e8930c;
    --accent-glow: rgba(245, 166, 35, .25);
    --text: #e8e8f0;
    --text-dim: #9999aa;
    --glass: rgba(255, 255, 255, .05);
    --glass-border: rgba(255, 255, 255, .08);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0, 0, 0, .4);
    --transition: .35s cubic-bezier(.4, 0, .2, 1);
    --font: 'Outfit', sans-serif;
    --font2: 'Inter', sans-serif;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px
}

body {
    font-family: var(--font2);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden
}

a {
    text-decoration: none;
    color: inherit
}

ul {
    list-style: none
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

.accent {
    color: var(--accent)
}

.section {
    padding: 70px 0
}

.section-dark {
    background: var(--bg-card)
}

/* ===== LOADER ===== */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .6s
}

#loader.hidden {
    opacity: 0;
    pointer-events: none
}

.loader-content {
    text-align: center
}

.loader-crane {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    position: relative
}

.crane-hook {
    width: 40px;
    height: 40px;
    border: 4px solid var(--accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.loader-text {
    font-family: var(--font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 4px;
    margin-bottom: 16px
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--bg-card2);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto
}

.loader-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 4px;
    animation: load 2s ease forwards
}

@keyframes load {
    to {
        width: 100%
    }
}

/* ===== NAVBAR ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 76px;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 0 5%;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

#navbar.scrolled {
    background: var(--bg-nav-scrolled);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    height: 68px;
}

.nav-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--accent)
}

.logo-main {
    display: block;
    font-family: var(--font);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--accent);
    line-height: 1.1;
    letter-spacing: 2px
}

.logo-sub {
    display: block;
    font-size: .55rem;
    color: var(--text-dim);
    letter-spacing: 3px;
    text-transform: uppercase
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.nav-mobile-cta-wrapper {
    display: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dim);
    font-size: .88rem;
    padding: 8px 16px;
    border-radius: 25px;
    transition: .3s;
    font-family: var(--font);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
    background: var(--accent);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #000;
    font-weight: 600;
    font-size: .85rem;
    border-radius: 50px;
    transition: var(--transition)
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: #25D366;
    color: #fff;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    transition: background 0.2s;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.hamburger span:nth-child(3) {
    width: 14px;
    align-self: flex-start;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--accent);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 22px;
    background: var(--accent);
}

#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 110px;
    padding-bottom: 80px;
}

.hero-slider {
    position: absolute;
    inset: 0
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease
}

.hero-slide.active {
    opacity: 1
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    opacity: .4;
    animation: float-up linear infinite
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0
    }

    10% {
        opacity: .6
    }

    90% {
        opacity: .6
    }

    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: .85rem;
    color: var(--accent);
    margin-bottom: 24px;
    backdrop-filter: blur(10px)
}

.hero-title {
    font-family: var(--font);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto 32px;
    line-height: 1.8
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px
}

.hero-stats-mini {
    display: flex;
    gap: 40px;
    justify-content: center
}

.hero-stats-mini div {
    text-align: center
}

.hero-stats-mini strong {
    display: block;
    font-family: var(--font);
    font-size: 1.8rem;
    color: var(--accent)
}

.hero-stats-mini span {
    font-size: .75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px
}

.hero-scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2
}

.hero-scroll a {
    color: var(--accent);
    font-size: 1.3rem;
    animation: bounce 2s infinite
}

/* Keep Hero content crisp, light, and high-contrast on its dark overlay across all themes */
#hero,
#hero .hero-title,
#hero .hero-desc,
#hero .hero-scroll a,
#hero .hero-stats-mini strong {
    color: #ffffff !important;
}

#hero .hero-desc {
    color: rgba(255, 255, 255, 0.8) !important;
}

#hero .hero-stats-mini span {
    color: rgba(255, 255, 255, 0.6) !important;
}

#hero .hero-badge {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--accent) !important;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(10px)
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: .9rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font2)
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #000
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--accent-glow)
}

.btn-outline {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent
}

.btn-outline:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-3px)
}

.btn-whatsapp {
    background: #25d366;
    color: #fff
}

.btn-whatsapp:hover {
    background: #1ebe5a;
    transform: translateY(-3px)
}

.btn-sm {
    padding: 10px 20px;
    font-size: .8rem
}

.btn-full {
    width: 100%;
    justify-content: center
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 45px
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: .8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px
}

.section-title {
    font-family: var(--font);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px
}

.section-desc {
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center
}

.about-images {
    position: relative
}

.about-img-main {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    height: 450px;
}

.about-img-main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.about-img-main img.active {
    opacity: 1;
}

.about-img-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #000;
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow)
}

.big-num {
    display: block;
    font-family: var(--font);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1
}

.about-text .section-tag {
    margin-bottom: 16px
}

.about-text p {
    color: var(--text-dim);
    margin-bottom: 16px
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0 32px
}

.about-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
    transition: var(--transition)
}

.about-feat:hover {
    border-color: var(--accent);
    transform: translateY(-2px)
}

.about-feat i {
    color: var(--accent);
    font-size: 1.1rem
}

.about-feat span {
    font-size: .85rem;
    font-weight: 500
}

/* ===== STATS ===== */
.stats-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden
}

.stats-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed
}

.stats-overlay {
    position: absolute;
    inset: 0;
    background: var(--stats-overlay);
}

.stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(15px);
    transition: var(--transition)
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(245, 166, 35, .1)
}

.stat-card i {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 16px
}

.stat-num {
    font-family: var(--font);
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent)
}

.stat-plus {
    font-family: var(--font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent)
}

.stat-card p {
    color: var(--text-dim);
    font-size: .9rem;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px
}

/* ===== SERVICES ===== */
.services-grid {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 10px 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    -webkit-overflow-scrolling: touch;
}

.services-grid::-webkit-scrollbar {
    height: 4px;
}

.services-grid::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.service-card {
    flex: 0 0 350px;
    max-width: 90vw;
    scroll-snap-align: start;
    background: transparent;
    border: none;
    transition: var(--transition);
    animation-delay: var(--delay);
    padding: 0 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.service-img-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.service-img-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.service-img img,
.service-img-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img,
.service-card:hover .service-img-slide img {
    transform: scale(1.08);
}

.service-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 1.2rem;
    color: #000;
    display: none;
}

.service-card h3 {
    padding: 16px 0 8px;
    font-family: var(--font);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.service-card p {
    padding: 0 5px;
    color: var(--text-dim);
    font-size: .9rem;
    line-height: 1.6;
    margin: 0;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    color: var(--accent);
    font-size: .85rem;
    font-weight: 600;
    transition: var(--transition)
}

.service-link:hover {
    gap: 12px
}

/* ===== PROJECTS ===== */
.projects-grid {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 10px 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    -webkit-overflow-scrolling: touch;
}

.projects-grid::-webkit-scrollbar {
    height: 4px;
}

.projects-grid::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.project-card {
    flex: 0 0 350px;
    max-width: 90vw;
    scroll-snap-align: start;
    position: relative;
    background: transparent;
    border: none;
    height: auto;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;
}

.project-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition)
}

.project-card:hover .project-img img {
    transform: scale(1.08)
}

.project-overlay {
    position: static;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0 8px;
    width: 100%;
    transition: var(--transition)
}

.project-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--accent);
    color: #000;
    font-size: .7rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    width: fit-content
}

.project-overlay h3 {
    font-family: var(--font);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 0;
}

.project-overlay p {
    color: var(--text-dim);
    font-size: .9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 10px 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    -webkit-overflow-scrolling: touch;
}

.gallery-grid::-webkit-scrollbar {
    height: 4px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.gallery-item {
    flex: 0 0 280px;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    scroll-snap-align: start;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    background: var(--bg-card2);
    /* Added fallback background */
    display: block;
    /* Ensure visibility */
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-wide {
    flex: 0 0 280px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition)
}

.gallery-item:hover img {
    transform: scale(1.08)
}

.gallery-item::after {
    content: attr(data-caption);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .85));
    color: #fff;
    font-size: .85rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: var(--transition)
}

.gallery-item:hover::after {
    transform: translateY(0)
}

/* ===== 3D LIGHTBOX OVERLAY (FROM PORTFOLIO CODE) ===== */
.lb3d-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(20px);
}
.lb3d-overlay.open {
    display: flex;
}
.lb3d-overlay.visible {
    opacity: 1;
}
.lb3d-stage {
    width: 100%;
    height: 70vh;
    perspective: 1300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.lb3d-card {
    position: absolute;
    width: 500px;
    max-width: 82vw;
    background: #111;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
    cursor: pointer;
    transition: transform .65s cubic-bezier(.22, 1, .36, 1), opacity .65s ease, box-shadow .4s;
    will-change: transform, opacity;
}
.lb3d-card-media {
    width: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.lb3d-card-media img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    background: #fff;
}
.lb3d-card-media iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: none;
}
.lb3d-card.lb3d-active .lb3d-card-media iframe {
    pointer-events: auto;
}
.lb3d-card-footer {
    padding: 12px 18px;
    background: rgba(14, 14, 14, 0.97);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.lb3d-caption {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-family: Poppins, sans-serif;
    text-align: left;
    flex: 1;
}
.lb3d-caption small {
    display: block;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.67rem;
    margin-top: 2px;
    font-family: Poppins, sans-serif;
}
.lb3d-btn {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.25s;
    white-space: nowrap;
    font-family: Poppins, sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.lb3d-btn-visit {
    background: var(--accent);
    color: #000;
    font-weight: 700;
}
.lb3d-btn-visit:hover {
    background: #fff;
}
.lb3d-btn-close {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
.lb3d-btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
.lb3d-card[data-pos="0"] {
    transform: translateX(0) rotateY(0) scale(1) translateZ(0);
    opacity: 1;
    z-index: 10;
    cursor: default;
}
.lb3d-card[data-pos="1"] {
    transform: translateX(52%) rotateY(-34deg) scale(0.76) translateZ(-150px);
    opacity: 0.7;
    z-index: 7;
}
.lb3d-card[data-pos="-1"] {
    transform: translateX(-52%) rotateY(34deg) scale(0.76) translateZ(-150px);
    opacity: 0.7;
    z-index: 7;
}
.lb3d-card[data-pos="2"] {
    transform: translateX(88%) rotateY(-50deg) scale(0.56) translateZ(-310px);
    opacity: 0.4;
    z-index: 5;
}
.lb3d-card[data-pos="-2"] {
    transform: translateX(-88%) rotateY(50deg) scale(0.56) translateZ(-310px);
    opacity: 0.4;
    z-index: 5;
}
.lb3d-card[data-pos="3"],
.lb3d-card[data-pos="-3"] {
    transform: scale(0.3) translateZ(-600px);
    opacity: 0;
    z-index: 1;
}
.lb3d-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    z-index: 10000;
}
.lb3d-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
}
.lb3d-nav-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: var(--accent);
}
.lb3d-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}
.lb3d-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: 0.3s;
    border: none;
    padding: 0;
}
.lb3d-dot.active {
    width: 22px;
    border-radius: 5px;
    background: var(--accent);
}
.lb3d-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    width: 0%;
    transition: width linear;
    border-radius: 0 3px 3px 0;
}
.lb3d-x {
    position: fixed;
    top: max(20px, env(safe-area-inset-top, 20px));
    right: max(20px, env(safe-area-inset-right, 20px));
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    background: rgba(30, 20, 10, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10010;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.lb3d-x:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: scale(1.08);
}
[data-lb] {
    cursor: zoom-in;
}

@media(max-width: 768px) {
    .lb3d-overlay {
        padding-top: 74px;
        padding-bottom: 24px;
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .lb3d-stage {
        height: auto;
        min-height: unset;
        width: 100%;
        padding: 0 0 8px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        perspective: none !important;
    }
    .lb3d-card {
        max-width: calc(100vw - 40px);
        width: calc(100vw - 40px);
        position: relative;
        transform: none !important;
        opacity: 1 !important;
        left: auto;
        right: auto;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    }
    .lb3d-card:not([data-pos="0"]) {
        display: none;
    }
    .lb3d-card-media iframe {
        height: 220px !important;
    }
    .lb3d-card-media img {
        max-height: 220px !important;
    }
    .lb3d-card-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 10px 12px;
        flex-wrap: nowrap;
    }
    .lb3d-caption {
        font-size: 0.72rem;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .lb3d-caption small {
        display: none;
    }
    .lb3d-card-footer > div {
        display: flex;
        gap: 6px;
        flex-shrink: 0;
    }
    .lb3d-btn {
        font-size: 0.68rem;
        padding: 7px 10px;
        white-space: nowrap;
    }
    .lb3d-controls .lb3d-nav-btn {
        display: none;
    }
    .lb3d-arrow {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: rgba(20, 12, 4, 0.7);
        border: 1.5px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        font-size: 1.4rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10005;
        transition: background 0.2s, transform 0.25s;
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
        touch-action: manipulation;
    }
    .lb3d-arrow-prev {
        left: max(10px, env(safe-area-inset-left, 10px));
    }
    .lb3d-arrow-next {
        right: max(10px, env(safe-area-inset-right, 10px));
    }
    .lb3d-arrow:hover,
    .lb3d-arrow:active {
        background: var(--accent);
        border-color: var(--accent);
        color: #000;
        transform: translateY(-50%) scale(1.08);
    }
    .lb3d-controls {
        margin-top: 12px;
        gap: 10px;
        justify-content: center;
    }
    .lb3d-dots {
        gap: 6px;
    }
    .lb3d-x {
        top: max(18px, env(safe-area-inset-top, 18px));
        right: max(20px, env(safe-area-inset-right, 20px));
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }
}

/* ===== CLIENTS MARQUEE ===== */
.clients-marquee {
    width: 100%;
    overflow: hidden;
    padding: 20px 0 40px;
    /* Reduced top padding, kept enough bottom for breathing room */
    position: relative;
    background: transparent;
}

#clients {
    padding-top: 40px;
    /* Reduced section top padding */
    padding-bottom: 20px;
    /* Reduced section bottom padding */
}

#gallery {
    padding-bottom: 20px;
    /* Reduced gallery bottom padding */
}

#team {
    padding-top: 40px;
    /* Reduced section top padding to bring it closer to clients */
}

.clients-marquee::before,
.clients-marquee::after {
    display: none;
}

.clients-marquee::before {
    left: 0;
    background: linear-gradient(to right, #0a0a0f, transparent);
}

.clients-marquee::after {
    right: 0;
    background: linear-gradient(to left, #0a0a0f, transparent);
}

.clients-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
    gap: 80px;
    align-items: center;
}

.client-logo {
    flex: 0 0 auto;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: none;
    opacity: 1;
    transition: all 0.4s ease;
    background: var(--logo-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    box-shadow: var(--shadow);
}

.client-logo:hover {
    transform: scale(1.1);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Ensure no white background for logos that are already images */
    border-radius: 8px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 40px));
    }
}

@media (max-width: 768px) {
    .clients-track {
        gap: 40px;
        animation-duration: 20s;
    }

    .client-logo {
        width: 140px;
        height: 80px;
    }

    .clients-marquee::before,
    .clients-marquee::after {
        width: 50px;
    }

    /* Smaller fade on mobile */
}

/* ===== TEAM ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(245, 166, 35, .1)
}

.team-avatar {
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent);
    background: var(--bg-card2);
    box-shadow: 0 10px 25px var(--accent-glow);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-card h3 {
    font-family: var(--font);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px
}

.team-role {
    color: var(--accent);
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px
}

.team-card p {
    color: var(--text-dim);
    font-size: .85rem;
    margin: 16px 0
}

.team-contact {
    display: flex;
    gap: 10px;
    justify-content: center
}

.team-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    transition: var(--transition)
}

.team-btn:hover {
    background: var(--accent);
    color: #000
}

.team-btn.whatsapp:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px
}

.contact-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    transition: var(--transition)
}

.contact-card:hover {
    border-color: var(--accent)
}

.contact-card i {
    font-size: 1.3rem;
    color: var(--accent);
    margin-top: 4px
}

.contact-card h4 {
    font-size: .95rem;
    margin-bottom: 4px
}

.contact-card p,
.contact-card a {
    color: var(--text-dim);
    font-size: .85rem;
    line-height: 1.6
}

.contact-card a:hover {
    color: var(--accent)
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 36px
}

.form-group {
    position: relative;
    margin-bottom: 16px
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--bg-card2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font2);
    font-size: .9rem;
    transition: var(--transition);
    outline: none;
    resize: vertical
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow)
}

.form-group i {
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--text-dim);
    font-size: .9rem
}

/* ===== CUSTOM SELECT DROPDOWN ===== */
.custom-select-group {
    position: relative;
    z-index: 10;
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    padding: 14px 40px 14px 44px;
    background: var(--bg-card2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font2);
    font-size: .9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    user-select: none;
}

.custom-select-trigger:hover {
    border-color: var(--accent);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.select-arrow {
    font-size: 0.8rem;
    color: var(--text-dim);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select-wrapper.open .select-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #12121a;
    border: 1px solid var(--glass-border);
    border-top: none;
    border-bottom-left-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 250px;
    overflow-y: auto;
}

/* Custom scrollbar for custom-options */
.custom-options::-webkit-scrollbar {
    width: 6px;
}

.custom-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.custom-options::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 12px 20px 12px 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: all 0.2s ease;
    position: relative;
}

.custom-option:hover {
    background: var(--accent-glow);
    color: var(--text);
    padding-left: 48px;
}

.custom-option.selected {
    background: rgba(245, 166, 35, 0.15);
    color: var(--accent);
    font-weight: 600;
}

.custom-option .option-icon {
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
    color: var(--accent);
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.custom-option:hover .option-icon {
    transform: scale(1.15);
    opacity: 1;
}

/* Form icon placement */
.custom-select-group .form-icon {
    pointer-events: none;
    z-index: 11;
}

/* ===== MAP REVAMP ===== */
.map-section-revamp {
    background: var(--bg-dark);
    padding: 100px 0;
}

.map-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.map-iframe-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
    transition: var(--transition);
}

.map-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-iframe-container:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.map-info-container {
    display: flex;
    flex-direction: column;
}

.map-info-card {
    height: 100%;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.map-info-card:hover {
    border-color: var(--accent);
}

.map-info-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.map-info-logo h3 {
    font-family: var(--font);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

.map-description {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.map-details-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
}

.map-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text);
}

.map-detail-item i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 3px;
    width: 20px;
    text-align: center;
}

.map-detail-item a {
    transition: var(--transition);
    color: var(--text-dim);
}

.map-detail-item a:hover {
    color: var(--accent);
}

.map-action-btns {
    display: flex;
    gap: 15px;
}

.map-btn {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    text-align: center;
}

@media (max-width: 991px) {
    .map-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .map-iframe-container {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .map-action-btns {
        flex-direction: column;
    }
}

/* ===== FOOTER ===== */
#footer {
    background: var(--bg-card);
    padding: 80px 0 0;
    border-top: 1px solid var(--glass-border)
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px
}

.footer-logo i {
    font-size: 1.8rem;
    color: var(--accent)
}

.footer-col p {
    color: var(--text-dim);
    font-size: .9rem;
    margin-bottom: 20px
}

.footer-social {
    display: flex;
    gap: 10px
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: var(--transition)
}

.footer-social a:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent)
}

.footer-col h4 {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent)
}

.footer-col ul li {
    margin-bottom: 10px
}

.footer-col ul a {
    color: var(--text-dim);
    font-size: .85rem;
    transition: var(--transition)
}

.footer-col ul a:hover {
    color: var(--accent);
    padding-left: 6px
}

.footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start
}

.footer-contact i {
    color: var(--accent);
    margin-top: 3px;
    font-size: .8rem
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 24px 0;
    text-align: center
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: .85rem
}

/* ===== FLOATING BUTTONS ===== */
.float-whatsapp {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
    transition: var(--transition);
    opacity: 0;
    transform: scale(0)
}

.float-whatsapp.visible {
    opacity: 1;
    transform: scale(1)
}

.float-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, .5)
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 900;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: scale(0)
}

.back-to-top.visible {
    opacity: 1;
    transform: scale(1)
}

.back-to-top:hover {
    transform: scale(1.1)
}

/* ===== ANIMATIONS ===== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all .8s cubic-bezier(.4, 0, .2, 1)
}

.reveal-up {
    transform: translateY(40px)
}

.reveal-left {
    transform: translateX(-40px)
}

.reveal-right {
    transform: translateX(40px)
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0)
}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .projects-grid {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .gallery-item {
        flex: 0 0 240px;
        height: 320px;
    }

    .gallery-grid {
        gap: 15px;
        padding-bottom: 30px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .about-img-badge {
        bottom: 16px;
        right: 16px
    }
}

@media(max-width:768px) {
    #navbar.menu-open {
        backdrop-filter: none !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--bg-mobile-menu);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 110px 0 60px;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s;
        transform: translateY(-100%);
        opacity: 0;
        gap: 8px;
        z-index: 999;
        pointer-events: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* Hide floating widgets when mobile menu is open to prevent overlapping clutters */
    #navbar.menu-open ~ .theme-customizer-btn,
    #navbar.menu-open ~ .float-whatsapp,
    #navbar.menu-open ~ .back-to-top,
    #navbar.menu-open ~ .theme-customizer-panel {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(25px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Stagger fade links */
    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        transition-delay: 0.14s;
    }

    .nav-menu.active li:nth-child(3) {
        transition-delay: 0.18s;
    }

    .nav-menu.active li:nth-child(4) {
        transition-delay: 0.22s;
    }

    .nav-menu.active li:nth-child(5) {
        transition-delay: 0.26s;
    }

    .nav-menu.active li:nth-child(6) {
        transition-delay: 0.3s;
    }

    .nav-menu.active li:nth-child(7) {
        transition-delay: 0.34s;
    }

    .nav-menu.active li:nth-child(8) {
        transition-delay: 0.38s;
    }

    .nav-menu.active li:nth-child(9) {
        transition-delay: 0.42s;
    }

    .nav-link {
        padding: 14px 20px;
        font-size: 1.5rem;
        font-family: var(--font);
        font-weight: 800;
        color: var(--text-dim);
        border-bottom: none;
        text-transform: uppercase;
        letter-spacing: 3px;
        display: inline-block;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--accent);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 40px;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #fff;
        transform: scale(1.08);
        background: transparent;
    }

    .nav-mobile-cta-wrapper {
        display: block !important;
        width: 100%;
        text-align: center;
        margin-top: 30px;
    }

    .nav-cta-mobile {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 14px 36px;
        background: #25d366;
        color: #fff;
        font-weight: 700;
        font-size: 0.95rem;
        border-radius: 50px;
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .nav-cta-mobile:hover {
        background: #1ebe5a;
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    }

    .nav-cta {
        display: none
    }

    .nav-logo {
        position: relative;
        z-index: 1001;
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    .team-grid {
        grid-template-columns: 1fr
    }

    .services-grid {
        grid-template-columns: 1fr
    }

    .hero-stats-mini {
        gap: 24px
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr
    }

    .gallery-wide {
        grid-column: span 1
    }

    .footer-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:480px) {
    .section {
        padding: 70px 0
    }

    .hero-title {
        font-size: 2rem
    }

    .hero-btns {
        flex-direction: column;
        align-items: center
    }

    .stats-grid {
        grid-template-columns: 1fr
    }

    .clients-grid {
        grid-template-columns: 1fr
    }

    .gallery-grid {
        grid-template-columns: 1fr
    }

    .contact-buttons {
        flex-direction: column
    }
}

/* ===== THEME OVERRIDES & TRANSITIONS ===== */
body.theme-sapphire {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card2: #334155;
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --glass: rgba(255, 255, 255, .04);
    --glass-border: rgba(255, 255, 255, .08);
    --shadow: 0 8px 32px rgba(0, 0, 0, .45);
    --bg-nav: rgba(15, 23, 42, 0.9);
    --bg-nav-scrolled: rgba(15, 23, 42, 0.95);
    --bg-mobile-menu: rgba(15, 23, 42, 0.97);
    --hero-overlay: linear-gradient(135deg, rgba(15, 23, 42, .85), rgba(15, 23, 42, .55), rgba(245, 166, 35, .05));
    --stats-overlay: rgba(15, 23, 42, 0.85);
    --logo-bg: rgba(255, 255, 255, 0.04);
}
body.theme-white {
    --bg-dark: #ffffff;
    --bg-card: #f8f9fa;
    --bg-card2: #f1f3f5;
    --text: #1a1a1f;
    --text-dim: #5c5c66;
    --glass: rgba(0, 0, 0, .04);
    --glass-border: rgba(0, 0, 0, .08);
    --shadow: 0 8px 32px rgba(0, 0, 0, .08);
    --bg-nav: rgba(255, 255, 255, 0.9);
    --bg-nav-scrolled: rgba(255, 255, 255, 0.95);
    --bg-mobile-menu: rgba(255, 255, 255, 0.97);
    --hero-overlay: linear-gradient(135deg, rgba(10, 10, 15, .82), rgba(10, 10, 15, .5), rgba(245, 166, 35, .05));
    --stats-overlay: rgba(255, 255, 255, 0.45);
    --logo-bg: #f8f9fa;
}

body.theme-cream {
    --bg-dark: #faf5eb;
    --bg-card: #f3ebd9;
    --bg-card2: #e7dec9;
    --text: #2f2a1b;
    --text-dim: #6d644d;
    --glass: rgba(0, 0, 0, .03);
    --glass-border: rgba(0, 0, 0, .07);
    --shadow: 0 8px 32px rgba(90, 75, 45, .1);
    --bg-nav: rgba(250, 245, 235, 0.9);
    --bg-nav-scrolled: rgba(250, 245, 235, 0.95);
    --bg-mobile-menu: rgba(250, 245, 235, 0.97);
    --hero-overlay: linear-gradient(135deg, rgba(10, 10, 15, .82), rgba(10, 10, 15, .5), rgba(245, 166, 35, .05));
    --stats-overlay: rgba(250, 245, 235, 0.5);
    --logo-bg: #f3ebd9;
}

body.theme-offwhite {
    --bg-dark: #f4f6f8;
    --bg-card: #ffffff;
    --bg-card2: #eaedf0;
    --text: #1c1e21;
    --text-dim: #606770;
    --glass: rgba(0, 0, 0, .04);
    --glass-border: rgba(0, 0, 0, .08);
    --shadow: 0 8px 32px rgba(0, 0, 0, .06);
    --bg-nav: rgba(244, 246, 248, 0.9);
    --bg-nav-scrolled: rgba(244, 246, 248, 0.95);
    --bg-mobile-menu: rgba(244, 246, 248, 0.97);
    --hero-overlay: linear-gradient(135deg, rgba(10, 10, 15, .82), rgba(10, 10, 15, .5), rgba(245, 166, 35, .05));
    --stats-overlay: rgba(244, 246, 248, 0.45);
    --logo-bg: #ffffff;
}

/* Fix option container background in light themes */
body.theme-white .custom-options,
body.theme-cream .custom-options,
body.theme-offwhite .custom-options {
    background: var(--bg-card);
}

/* Smooth variable transitions */
body,
#navbar,
.service-card,
.project-card,
.gallery-item,
#footer,
.map-info-card,
.about-img-badge,
.nav-menu,
.custom-select-trigger,
.custom-options,
.contact-form input,
.contact-form textarea,
.client-logo {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease, top 0.35s ease, padding 0.35s ease !important;
}

/* ===== FLOATING THEME CUSTOMIZER WIDGET ===== */
.theme-customizer-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 1002;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(245, 166, 35, 0);
    }
}

.theme-customizer-btn:hover {
    transform: scale(1.1) rotate(45deg);
}

.theme-customizer-panel {
    position: fixed;
    bottom: 85px;
    left: 24px;
    width: 290px;
    background: rgba(18, 18, 26, 0.85);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

/* Scrollbar styling for customizer panel */
.theme-customizer-panel::-webkit-scrollbar {
    width: 4px;
}
.theme-customizer-panel::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

body.theme-white .theme-customizer-panel,
body.theme-cream .theme-customizer-panel,
body.theme-offwhite .theme-customizer-panel {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.theme-customizer-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.theme-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.theme-panel-header span {
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-panel-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.theme-panel-close:hover {
    color: var(--accent);
}

.theme-section-title {
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 16px;
    margin-bottom: 8px;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.accent-options {
    grid-template-columns: repeat(4, 1fr) !important;
}

.theme-opt-btn {
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    background: var(--val-color);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 100%;
}

.theme-opt-btn:hover {
    transform: scale(1.15);
    border-color: var(--accent);
}

.theme-opt-btn.active {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.theme-opt-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.theme-opt-btn.active .theme-opt-dot {
    opacity: 1;
    transform: scale(1);
}

/* Typography and Corner Button Groups */
.studio-select-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.studio-select-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: var(--font2);
}

.studio-select-btn:hover {
    border-color: var(--accent);
    background: rgba(245, 166, 35, 0.05);
}

.studio-select-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000 !important;
}

/* Reset Studio Button */
.studio-reset-btn {
    width: 100%;
    background: transparent;
    border: 1px dashed var(--glass-border);
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.studio-reset-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(245, 166, 35, 0.03);
}

/* ==================== SERVICES CATALOG STYLES ==================== */

.services-hero-header {
    position: relative;
    padding: 95px 0 10px;
    background: var(--bg-dark);
    text-align: center;
    overflow: hidden;
    transition: background 0.5s ease;
}

.services-header-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.services-hero-header .container {
    position: relative;
    z-index: 2;
}

.services-header-title {
    font-family: var(--font);
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text);
    margin: 5px 0 10px;
    line-height: 1.1;
    text-transform: capitalize;
}

.services-header-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.6;
}

.services-catalog-section {
    padding: 0 0 50px;
    background: var(--bg-dark);
    transition: background 0.5s ease;
}

.service-category-block {
    margin-bottom: 60px;
}

.service-category-heading {
    font-family: var(--font);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 12px;
}

.service-category-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: var(--radius-sm);
}

.service-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 35px;
    margin-bottom: 35px;
    align-items: center;
}

.service-visual-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-circle-img-wrapper {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--glass-border);
    box-shadow: var(--shadow);
    background: var(--glass);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-row:hover .service-circle-img-wrapper {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.service-circle-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-row:hover .service-circle-img-wrapper img {
    transform: scale(1.1);
}

.service-content-col {
    width: 100%;
}

.service-card-accordion {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-accordion.active {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.service-card-header {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    transition: background 0.3s;
}

.service-card-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.service-card-title {
    font-family: var(--font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    transition: color 0.3s;
}

.service-card-accordion.active .service-card-title {
    color: var(--accent);
}

.service-card-toggle-icon {
    font-size: 1.2rem;
    color: var(--text-dim);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s;
}

.service-card-accordion.active .service-card-toggle-icon {
    transform: rotate(180deg);
    color: var(--accent);
}

.service-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-accordion.active .service-card-body {
    max-height: 1200px; /* Big enough to contain any form expanded */
}

.service-card-body-inner {
    padding: 0 30px 30px;
}

/* Restructured direct active states to make it completely safe */
.service-card-accordion .service-card-body {
    padding: 0 30px;
}
.service-card-accordion.active .service-card-body {
    padding: 0 30px 30px;
}

.service-meta-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.service-pricing {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-original {
    font-size: 1.1rem;
    text-decoration: line-through;
    color: #ef4444;
    font-weight: 500;
}

.price-discounted {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    font-family: var(--font1);
}

.price-suffix {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
}

.service-lead-time {
    font-size: 0.95rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-lead-time i {
    color: var(--accent);
}

.service-card-desc {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Scheduler / Estimator Inputs */
.service-booking-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 24px;
}

.booking-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.booking-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-field-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-field-input, 
.booking-field-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text);
    font-family: var(--font2);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.booking-field-input:focus, 
.booking-field-textarea:focus {
    border-color: var(--accent);
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px var(--accent-glow);
}

.booking-field-textarea {
    min-height: 80px;
    resize: vertical;
}

.booking-actions-row {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.booking-submit-btn {
    flex-grow: 1;
    font-weight: 700;
}

.booking-share-btn {
    padding: 14px 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Toast Copy Link Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    transform: translateY(120px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    font-weight: 600;
    font-size: 0.95rem;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* ==================== RESPONSIVE CATALOG STYLES ==================== */

@media (max-width: 992px) {
    .service-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-visual-col {
        justify-content: center;
    }

    .service-circle-img-wrapper {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .booking-inputs-grid {
        grid-template-columns: 1fr;
    }
    
    .service-meta-specs {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .booking-actions-row {
        flex-direction: column;
        width: 100%;
    }
    
    .booking-submit-btn,
    .booking-share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== SBN DISPATCH MODAL STYLE ===== */
.dispatch-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dispatch-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.dispatch-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 30px;
    width: 480px;
    max-width: 90vw;
    box-shadow: var(--shadow);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dispatch-modal.active .dispatch-modal-content {
    transform: translateY(0) scale(1);
}

.dispatch-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dispatch-modal-header h3 {
    font-family: var(--font);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.dispatch-modal-header h3 i {
    color: var(--accent);
}

.dispatch-modal-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.dispatch-modal-close:hover {
    color: var(--accent);
}

.dispatch-modal-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.dispatch-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dispatch-opt-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    outline: none;
}

.dispatch-opt-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateX(4px);
}

.dispatch-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.dispatch-opt-card.whatsapp .dispatch-icon-wrapper {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
}
.dispatch-opt-card.whatsapp:hover .dispatch-icon-wrapper {
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.dispatch-opt-card.sms .dispatch-icon-wrapper {
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
}
.dispatch-opt-card.sms:hover .dispatch-icon-wrapper {
    background: #007aff;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
}

.dispatch-opt-card.email .dispatch-icon-wrapper {
    background: rgba(245, 166, 35, 0.15);
    color: var(--accent);
}
.dispatch-opt-card.email:hover .dispatch-icon-wrapper {
    background: var(--accent);
    color: #000;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.dispatch-opt-card.copy .dispatch-icon-wrapper {
    background: rgba(157, 78, 221, 0.15);
    color: #9d4edd;
}
.dispatch-opt-card.copy:hover .dispatch-icon-wrapper {
    background: #9d4edd;
    color: #fff;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4);
}

.dispatch-info {
    flex-grow: 1;
}

.dispatch-info h4 {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.dispatch-info p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.dispatch-arrow {
    font-size: 0.85rem;
    color: var(--text-dim);
    opacity: 0.5;
    transition: var(--transition);
}

.dispatch-opt-card:hover .dispatch-arrow {
    color: var(--accent);
    opacity: 1;
    transform: translateX(2px);
}

/* Light Theme overrides for Dispatch modal option cards */
body.theme-white .dispatch-opt-card,
body.theme-cream .dispatch-opt-card,
body.theme-offwhite .dispatch-opt-card {
    background: rgba(0, 0, 0, 0.02);
}
body.theme-white .dispatch-opt-card:hover,
body.theme-cream .dispatch-opt-card:hover,
body.theme-offwhite .dispatch-opt-card:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ==================== GALLERY STYLES ==================== */
.gallery-hero-header {
    position: relative;
    padding: 95px 0 10px;
    background: var(--bg-dark);
    text-align: center;
    overflow: hidden;
    transition: background 0.5s ease;
}

.gallery-filters-wrapper {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.gallery-filter-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 4px 15px var(--accent-glow);
    transform: translateY(-2px);
}

/* Gallery Grid Layout (Scoped to dedicated Gallery page only) */
.services-catalog-section .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    transition: opacity 0.4s ease;
}

/* Gallery Card Styles */
.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInFade 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.gallery-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-card:hover .gallery-img-wrapper img {
    transform: scale(1.1);
}

.gallery-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--glass-border);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.gallery-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-card:hover .gallery-img-overlay {
    opacity: 1;
}

.gallery-overlay-icon {
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px var(--accent-glow);
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-overlay-icon {
    transform: translateY(0);
}

.gallery-card-content {
    padding: 20px 24px;
}

.gallery-card-title {
    font-family: var(--font);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    transition: var(--transition);
}

.gallery-card:hover .gallery-card-title {
    color: var(--accent);
}

.gallery-card-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 15px;
}

.gallery-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    border-top: 1px solid var(--glass-border);
    padding-top: 12px;
}

.gallery-card-footer span i {
    color: var(--accent);
    margin-right: 4px;
}

/* Admin Center Preview Panel styles */
.admin-preview-section {
    margin-top: 80px;
    padding: 50px 0;
    border-top: 1px dashed var(--glass-border);
}

.admin-preview-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.admin-trigger-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--glass-border);
    color: var(--text-dim);
    padding: 12px 30px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-trigger-btn:hover {
    border-color: var(--accent);
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.admin-panel-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    display: none;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-panel-card.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.admin-panel-title {
    font-family: var(--font);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-panel-title i {
    color: var(--accent);
}

.admin-panel-desc {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.admin-form-group {
    margin-bottom: 16px;
}

.admin-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.admin-form-input,
.admin-form-select,
.admin-form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 10px 14px;
    font-family: var(--font);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.admin-form-input:focus,
.admin-form-select:focus,
.admin-form-textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
}

.admin-submit-btn {
    width: 100%;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-submit-btn:hover {
    box-shadow: 0 4px 15px var(--accent-glow);
    transform: translateY(-1px);
}

/* Skeleton Loading Animation */
.skeleton-card {
    height: 380px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 200% 100%;
    animation: loadingPulse 1.5s infinite;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

@keyframes loadingPulse {
    to {
        background-position: -200% 0;
    }
}

/* Dynamic design system styling overrides for white/light themes */
body.theme-white .gallery-filter-btn:not(.active),
body.theme-cream .gallery-filter-btn:not(.active),
body.theme-offwhite .gallery-filter-btn:not(.active) {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text);
}
body.theme-white .admin-trigger-btn,
body.theme-cream .admin-trigger-btn,
body.theme-offwhite .admin-trigger-btn {
    background: rgba(0, 0, 0, 0.01);
}
body.theme-white .admin-form-input,
body.theme-white .admin-form-select,
body.theme-white .admin-form-textarea,
body.theme-cream .admin-form-input,
body.theme-cream .admin-form-select,
body.theme-cream .admin-form-textarea,
body.theme-offwhite .admin-form-input,
body.theme-offwhite .admin-form-select,
body.theme-offwhite .admin-form-textarea {
    background: rgba(0, 0, 0, 0.01);
    color: #000;
}

/* Hide unstyled lightbox nav buttons */
.lightbox-nav {
    display: none !important;
}

/* Custom wide layout for about, services and projects sections */
#about .container,
#services .container,
#projects .container {
    max-width: 1540px !important;
    width: 95% !important;
}

@media (max-width: 768px) {
    .service-card, .project-card {
        flex: 0 0 290px !important;
        max-width: 85vw !important;
    }
}