/* 
   Nexaverse3D - Premium Dark & Gold Aesthetic
   Author: Antigravity
*/

/* --- Google Fonts (Optimized) --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- Root Variables --- */
:root {
    --bg-dark: #050505;
    --bg-darker: #020202;
    --bg-card: rgba(15, 15, 15, 0.4);
    --gold: #d4af37;
    --gold-light: #e6c15c;
    --gold-dark: #a6892c;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #888888;
    --border-light: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(212, 175, 55, 0.3);
    --glass: rgba(10, 10, 10, 0.6);
    --shadow-soft: 0 30px 60px rgba(0, 0, 0, 0.8);
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);

    --font-header: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-nav: 'Outfit', sans-serif;

    --container-width: 1300px;
    --header-height: 90px;
}

/* --- Base Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* scroll-behavior: smooth; Removed to prevent conflict with Lenis */
    overflow-x: hidden;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-header);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 5rem;
}

@media (max-width: 1200px) {
    h1 {
        font-size: 4rem;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }
}

h2 {
    font-size: 3.5rem;
}

@media (max-width: 1200px) {
    h2 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
}

h4 {
    font-family: var(--font-nav);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

p {
    margin-bottom: 1.5rem;
}

video {
    width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* --- Layout Utilities --- */
.container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

@media (max-width: 1200px) {
    .section-padding {
        padding: 6rem 0;
    }
}

@media (max-width: 992px) {
    .section-padding {
        padding: 5rem 0;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 3.5rem 0;
    }
}

.section-padding-sm {
    padding: 3rem 0;
}

.section-padding-lg {
    padding: 10rem 0;
}

@media (max-width: 1200px) {
    .section-padding-lg {
        padding: 8rem 0;
    }
}

@media (max-width: 768px) {
    .section-padding-lg {
        padding: 5rem 0;
    }
}

.bg-darker {
    background-color: var(--bg-darker);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.my-auto {
    margin-top: auto;
    margin-bottom: auto;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.mb-5 {
    margin-bottom: 5rem;
}

.mb-8 {
    margin-bottom: 8rem;
}

.mb-0_5 {
    margin-bottom: 0.5rem;
}

.mb-1_5 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mr-0_5 {
    margin-right: 0.5rem;
}

.mr-1 {
    margin-right: 1rem;
}

.w-100 {
    width: 100%;
}

.gold-text {
    color: var(--gold);
    font-weight: 600;
}

.line-accent {
    width: 50px;
    height: 1px;
    background: var(--gold);
    display: block;
    margin: 1.5rem 0;
}

.line-accent.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.fw-600 {
    font-weight: 600;
}

.text-white {
    color: #fff !important;
}

.no-underline {
    text-decoration: none !important;
}

.logo-footer {
    height: 40px;
}

.pl-1-5 {
    padding-left: 1.5rem;
}

.border-light {
    border: 1px solid var(--border-light);
}

.p-1-5 {
    padding: 1.5rem;
}

.br-4 {
    border-radius: 4px;
}

.d-inline-block {
    display: inline-block;
}

.text-uppercase-spaced {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.fs-0-9 {
    font-size: 0.9rem;
}

.fs-1-2 {
    font-size: 1.2rem;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 2rem;
}

.gap-2 {
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .gap-5 {
        gap: 3rem;
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .gap-5 {
        gap: 2.5rem;
    }
}

.align-items-center {
    align-items: center;
}

.gap-5 {
    gap: 5rem;
}

/* --- Components --- */

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    color: var(--gold);
    font-family: var(--font-nav);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    border: 1px solid var(--border-gold);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: var(--transition);
    z-index: -1;
    will-change: left;
    /* Optimize hover animation */
}

.btn:hover {
    color: #000;
    border-color: var(--gold);
}

.btn:hover::before {
    left: 0;
}

.btn-filled {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.btn-filled:hover {
    background: transparent;
    color: var(--gold);
}

.btn-filled:hover::before {
    left: -100%;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-dark);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    will-change: transform, background-color;
    /* Optimize repaint for scroll */
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    height: 80px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .logo img {
        height: 45px;
    }
}

.nav-links {
    display: flex;
    gap: 3.5rem;
}

.nav-links a {
    font-family: var(--font-nav);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Premium Hamburger Menu */
.mobile-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    /* Above nav-links */
}

/* Hamburger Icon Structure */
.hamburger {
    width: 30px;
    height: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger .line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

/* Hamburger Animation State */
.mobile-toggle.active .hamburger .line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.mobile-toggle.active .hamburger .line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-toggle.active .hamburger .line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.5s ease;
    }

    .nav-links.active li {
        transform: translateY(0);
        opacity: 1;
    }

    /* Staggered Delay for Menu Items */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links a {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }
}

/* Hero Section */
.hero {
    height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4);
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 700;
    margin: 0 auto 2rem;
    line-height: 1.1;
    max-width: 900px;
}

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 4.5rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

.text-hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3.5rem;
    font-weight: 400;
    line-height: 1.8;
}

.text-hero-desc-sm {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 80vh;
        padding: 6rem 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .text-hero-desc {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.22rem;
    }
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 1.5rem 0;
    text-align: center;
}

.mx-600 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mx-700 {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.mx-900 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.icon-card {
    padding: 2.5rem 1.5rem;
}

.card-title-sm {
    font-size: 1.1rem;
    color: #fff;
    font-family: var(--font-header);
    font-weight: 600;
}

.process-circle-step {
    width: 80px;
    height: 80px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold);
    margin: 0 auto 1.5rem;
    /* Added bottom margin */
}

/* Card Style */
.card {
    background-color: var(--bg-card);
    padding: 3rem;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    /* Minimalist modern sharp/subtle round */
}

.card:hover {
    border-color: var(--border-gold);
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
    background-color: rgba(20, 20, 20, 0.5);
}

.icon-lg,
.text-gold-lg {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    display: block;
    color: var(--gold);
}

.icon-xl {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    color: var(--gold);
}

/* Card Links alignment */
.card .gold-text {
    margin-top: auto;
    display: inline-block;
}

.card .gold-text i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.card .gold-text:hover i {
    transform: translateX(5px);
}

/* Forms */
.form-label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus,
select.form-input:focus {
    outline: none;
    border-color: var(--gold) !important;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-input:hover,
select.form-input:hover {
    border-color: var(--gold) !important;
    cursor: pointer;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1.2rem;
}

select.form-input option {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    padding: 10px;
}




/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.portfolio-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn i {
    font-size: 1rem;
    color: var(--gold);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

/* Portfolio Item Overlay */
.portfolio-item {
    position: relative;
    overflow: hidden;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    z-index: 1;
    pointer-events: none;
}

.portfolio-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay i {
    font-size: 2rem;
    color: var(--gold);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay i {
    transform: translateY(0);
}

/* List Features */
.list-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Layout Utilities Extensions */
.mb-8 {
    margin-bottom: 8rem;
}

.bg-almost-black {
    background-color: #080808;
}

.direction-rtl {
    direction: rtl;
}

@media (max-width: 768px) {
    .direction-rtl {
        direction: ltr;
    }
}

.direction-ltr {
    direction: ltr;
}

/* Marquee / Infinite Slider */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2rem 0;
}

.marquee-track {
    display: flex;
}

.marquee-container:not(.testimonial-marquee) .marquee-track {
    display: inline-flex;
    animation: marquee 80s linear infinite;
}

.marquee-container:not(.testimonial-marquee):hover .marquee-track {
    animation-play-state: paused;
}

/* Model Viewer Styles */
.model-viewer-container {
    width: 100%;
    height: 500px;
    background: radial-gradient(circle at center, rgba(30, 30, 30, 0.8), rgba(5, 5, 5, 1));
    border: 1px solid var(--border-light);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.model-viewer-container:hover {
    border-color: var(--border-gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}

model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
}

.model-controls-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    pointer-events: none;
    z-index: 10;
}

/* Progress Bar */
.progress-bar {
    display: block;
    width: 33%;
    height: 10%;
    max-height: 2px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate3d(-50%, -50%, 0);
    border-radius: 25px;
    box-shadow: 0px 3px 10px 3px rgba(0, 0, 0, 0.5), 0px 0px 5px 1px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    background-color: rgba(0, 0, 0, 0.5);
}

.progress-bar.hide {
    visibility: hidden;
    transition: visibility 0.3s;
}

.update-bar {
    background-color: rgba(255, 255, 255, 0.9);
    width: 0%;
    height: 100%;
    border-radius: 25px;
    float: left;
    transition: width 0.3s;
}

@media (max-width: 768px) {
    .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
        gap: 3rem;
    }

    .model-viewer-container {
        height: 400px;
    }

    .text-center-mobile {
        text-align: center;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-item {
    width: 625px;
    aspect-ratio: 16 / 9;
    margin: 0 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

@media (max-width: 992px) {
    .marquee-item {
        width: 450px;
    }
}

@media (max-width: 768px) {
    .marquee-item {
        width: 320px;
        margin: 0 0.8rem;
    }
}

@media (max-width: 480px) {
    .marquee-item {
        width: 280px;
    }
}

.marquee-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
    z-index: 1;
}

.marquee-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.marquee-item:hover img {
    transform: scale(1.1);
}

.project-location {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(10, 10, 10, 0.8);
    padding: 0.7rem 1.2rem;
    border-left: 2px solid var(--gold);
    font-size: 0.75rem;
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-nav);
    transition: var(--transition);
    z-index: 2;
}

@media (max-width: 768px) {
    .project-location {
        bottom: 1rem;
        left: 1rem;
        padding: 0.5rem 0.8rem;
        font-size: 0.65rem;
    }
}

.marquee-item:hover .project-location {
    border-left-width: 5px;
    padding-left: 1.5rem;
}

/* --- Vertical 3D Section --- */
.section-3d-vertical {
    position: relative;
    width: 100%;
    /* Standard section padding applies */
}

.model-viewer-wrapper-vertical {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 400px;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .model-viewer-wrapper-vertical {
        height: 50vh;
        min-height: 300px;
    }
}

.sketchfab-embed-wrapper {
    width: 100%;
    height: 100%;
}

#sketchfab-viewer {
    width: 100%;
    height: 100%;
    border: none;
}

.model-viewer-wrapper-vertical .model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
}

.model-controls-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    z-index: 10;
}

.control-item {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: fit-content;
}

.control-item i {
    color: var(--gold);
}

#reset-model-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

#reset-model-btn:hover {
    background: var(--gold);
    color: #000;
    transform: rotate(180deg);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Testimonial Slider Specifics */
.testimonial-slider-wrapper {
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonial-marquee {
    padding: 4rem 0;
    overflow: hidden;
}

.testimonial-marquee .marquee-track {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.testimonial-card {
    flex: 0 0 calc((100% / 3) - 2rem);
    width: calc((100% / 3) - 2rem);
    margin: 0 1rem;
    padding: 3rem;
    white-space: normal;
    height: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 1100px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 2rem);
        width: calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(100% - 1rem);
        width: calc(100% - 1rem);
        margin: 0 0.5rem;
    }
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.slider-nav-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    background: transparent;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-nav-btn:hover {
    background: var(--gold);
    color: #000;
}

.slider-nav-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}

.quote-icon {
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.text-italic-light {
    font-style: italic;
    font-weight: 300;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--gold);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Services Slider */
.slider-wrapper {
    position: relative;
    padding: 0;
}

.services-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    transition: var(--transition);
}

.services-track .card {
    height: 100%;
    /* Force card to fill grid cell height */
}

@media (max-width: 1100px) {
    .services-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-track {
        grid-template-columns: 1fr;
    }
}


.services-slider-container {
    overflow: hidden;
}

/* Slider navigation buttons removed as per user request */

/* Images */
.img-shadow-wrapper {
    position: relative;
}

.img-shadow-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
}

.aspect-img {
    width: 100%;
    object-fit: cover;
}

.h-500 {
    height: 500px;
}

.h-450 {
    height: 450px;
}

@media (max-width: 992px) {

    .h-500,
    .h-600,
    .h-450 {
        height: 400px;
    }
}

@media (max-width: 768px) {

    .h-500,
    .h-600,
    .h-450 {
        height: 350px;
    }
}

@media (max-width: 480px) {

    .h-500,
    .h-600,
    .h-450 {
        height: 280px;
    }
}

.h-600 {
    height: 600px;
}

.img-header-text {
    font-family: var(--font-nav);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-align: center;
}

.img-desc-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 2rem;
    text-align: center;
    line-height: 1.6;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

.cursor-pointer {
    cursor: pointer;
}

.trigger-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.trigger-overlay i {
    font-size: 2.5rem;
    color: var(--gold);
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.lightbox-trigger:hover .trigger-overlay {
    opacity: 1;
}

.lightbox-trigger:hover .trigger-overlay i {
    transform: scale(1);
}

.shade-v {
    position: relative;
    overflow: hidden;
    display: block;
}

.shade-v::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 35%;
    pointer-events: none;
    z-index: 1;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}



/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.8s ease;
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: #FFF;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
    /* Hardware acceleration for 144fps */
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    padding: 4rem 0 0;
    border-top: 1px solid var(--border-light);
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
}

.footer-col p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    /* Changed from flex-start to center for single lines */
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.footer-contact-item i {
    width: 24px;
    font-size: 1.1rem;
    /* Slightly larger for better visual weight */
    text-align: center;
    flex-shrink: 0;
}

.footer-contact-item p {
    margin-bottom: 0;
    line-height: 1.4;
    font-size: 0.95rem;
}

/* New Footer Location Styles */
.footer-location-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.footer-location-item i {
    font-size: 1.1rem;
    margin-top: 0.25rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.location-info h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    text-transform: none;
    letter-spacing: normal;
}

.location-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.4;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 1rem 0;
    opacity: 0.5;
}

/* Flag Icons Styling */
.fi {
    margin-left: 8px;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    /* Set a standard size for flags in the footer */
    width: 20px;
    line-height: normal;
}


.footer-col h4 {
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.social-list {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* Back to Top & WhatsApp */
#back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: 0.3s ease;
}

.whatsapp-float:hover,
#back-to-top:hover {
    transform: scale(1.1);
    background: var(--gold-light);
}

/* Lightbox */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#lightbox.active {
    display: flex;
}

#lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border: 2px solid var(--gold);
    display: block;
    /* Remove bottom space */
}

#lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 10002;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#lightbox-close:hover {
    color: var(--gold);
    transform: scale(1.1);
}

#lightbox-prev,
#lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--gold);
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10001;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
    /* Prevent double-tap zoom */
}

#lightbox-prev:hover,
#lightbox-next:hover {
    background: var(--gold);
    color: #000;
}

#lightbox-prev:active,
#lightbox-next:active {
    background: var(--gold);
    color: #000;
    transform: translateY(-50%) scale(0.95);
}

#lightbox-prev {
    left: 2rem;
}

#lightbox-next {
    right: 2rem;
}

@media (max-width: 768px) {
    #lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2.5rem;
        width: 48px;
        height: 48px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
    }

    #lightbox-prev,
    #lightbox-next {
        left: 0.5rem;
        font-size: 1.5rem;
        padding: 0.75rem;
        /* Increase touch target size */
        min-width: 48px;
        min-height: 48px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #lightbox-next {
        left: auto;
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    #lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 2rem;
        width: 44px;
        height: 44px;
    }

    #lightbox-prev,
    #lightbox-next {
        font-size: 1.25rem;
        padding: 0.6rem;
        /* Ensure minimum touch target */
        min-width: 44px;
        min-height: 44px;
    }

    #lightbox {
        padding: 1rem;
    }
}

.lightbox-wrapper {
    position: relative;
    width: 90vw;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
    /* Crucial for 3D effect */
}

#lightbox-location {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    transform: none;
    background: rgba(10, 10, 10, 0.8);
    padding: 0.7rem 1.2rem;
    border: none;
    border-left: 2px solid var(--gold);
    color: var(--text-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-nav);
    backdrop-filter: blur(10px);
    display: none;
    z-index: 10002;
    text-align: left;
    pointer-events: none;
    width: max-content;
    max-width: calc(100% - 4rem);
}

.lightbox-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
    /* Critical for 144fps 3D flip */
}

.lightbox-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.lightbox-front {
    z-index: 2;
}

.lightbox-back {
    z-index: 1;
}

.lightbox-face img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 2px solid var(--gold);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* Flip-Slide Animations */

/* NEXT: Front goes Left/FlipOut, Back comes from Right/FlipIn */
.flip-slide-out-next {
    animation: flipSlideOutNext 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.flip-slide-in-next {
    animation: flipSlideInNext 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* PREV: Front goes Right/FlipOut, Back comes from Left/FlipIn */
.flip-slide-out-prev {
    animation: flipSlideOutPrev 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.flip-slide-in-prev {
    animation: flipSlideInPrev 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes flipSlideOutNext {
    0% {
        transform: translateX(0) rotateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-100%) rotateY(-90deg);
        opacity: 0;
    }
}

@keyframes flipSlideInNext {
    0% {
        transform: translateX(100%) rotateY(90deg);
        opacity: 0;
    }

    100% {
        transform: translateX(0) rotateY(0);
        opacity: 1;
    }
}

@keyframes flipSlideOutPrev {
    0% {
        transform: translateX(0) rotateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(100%) rotateY(90deg);
        opacity: 0;
    }
}

@keyframes flipSlideInPrev {
    0% {
        transform: translateX(-100%) rotateY(-90deg);
        opacity: 0;
    }

    100% {
        transform: translateX(0) rotateY(0);
        opacity: 1;
    }
}

/* Skill Progress (About Page) */
.skill-grid {
    display: grid;
    gap: 4rem;
    margin-top: 5rem;
}

.skill-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.progress-circle {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-circle circle {
    fill: none;
    stroke-width: 6;
}

.progress-circle circle.bg {
    stroke: var(--bg-card);
}

.progress-circle circle.progress {
    stroke: var(--gold);
    stroke-dasharray: 283;
    /* 2 * PI * 45 */
    stroke-dashoffset: var(--offset);
    stroke-linecap: round;
}

.progress-circle .value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.skill-info h3 {
    margin-bottom: 0.5rem;
}

.skill-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .skill-item {
        flex-direction: column;
        text-align: center;
    }
}

.process-step-circle {
    /* Use same styling as process-circle-step */
    width: 80px;
    height: 80px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold);
    margin: 0 auto 1.5rem;
}

.text-xs {
    font-size: 0.8rem;
}

.link-muted {
    color: var(--text-muted);
    text-decoration: none;
}

.link-muted:hover {
    color: var(--gold);
}

.no-underline {
    text-decoration: none;
}

/* CTA Section */
.cta-section {
    padding: 12rem 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('assets/portfolio-images/bedrooms/nexaverse-31.webp');
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

/* Tablet / Small Laptop (max-width: 1024px) */
@media (max-width: 1024px) {
    :root {
        --container-width: 90%;
        --header-height: 80px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .nav-links {
        gap: 2rem;
    }

    .card {
        padding: 2rem;
    }

    .portfolio-filters {
        justify-content: flex-start;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        gap: 0.75rem;
        margin-bottom: 2.5rem;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.75rem;
        gap: 0.6rem;
        letter-spacing: 0.5px;
        min-height: 44px;
    }

    .filter-btn i {
        font-size: 0.9rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .text-hero-desc,
    .text-hero-desc-sm {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .nav-links a {
        font-size: 1.2rem;
    }
}

/* --- FAQ/Accordion Styles --- */
.faq-item {
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background: var(--bg-card);
    transition: var(--transition);
    height: fit-content;
    /* Ensure height wraps content */
}

.faq-item:hover {
    border-color: var(--border-gold);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-header);
    font-weight: 600;
    /* Match previous h4 weight */
    font-size: 1.1rem;
    /* Slightly larger for readability */
    cursor: pointer;
    transition: var(--transition);
}

/* Question text font sizing/weight adjustments to match previous h4 look but flexible */
.faq-question span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-toggle-icon {
    font-size: 0.9rem;
    color: var(--gold);
    transition: transform 0.3s ease;
}

/* Active State Styles */
.faq-item.active {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
    /* Slight gold tint */
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

/* Accordion Content Transition */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.faq-item.active .faq-answer {
    opacity: 1;
    /* max-height is set via JS for perfect height */
}

.faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.faq-content p:last-child {
    margin-bottom: 0;
}

/* Added Utility Classes */
.mt-4 {
    margin-top: 4rem;
}

.mt-5 {
    margin-top: 5rem;
}

/* Image Gradient Overlay */
.img-gradient-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.img-gradient-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.img-gradient-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

.img-gradient-wrapper video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Image Gradient Overlay - Top and Bottom */
.img-gradient-wrapper-dual {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.img-gradient-wrapper-dual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.img-gradient-wrapper-dual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.img-gradient-wrapper-dual img {
    display: block;
    width: 100%;
    height: auto;
}

/* Image Gradient Overlay - Top Only */
.img-gradient-wrapper-top {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.img-gradient-wrapper-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.img-gradient-wrapper-top img {
    display: block;
    width: 100%;
    height: auto;
}

.img-gradient-wrapper-top video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ========================================
   COMPREHENSIVE RESPONSIVE ENHANCEMENTS
   ======================================== */

/* --- Extra Large Tablets / Small Laptops (max-width: 992px) --- */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 1rem 2.5rem;
        font-size: 0.75rem;
    }

    /* Service cards */
    .icon-lg,
    .text-gold-lg {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .icon-xl {
        font-size: 2.5rem;
    }

    /* Process circles */
    .process-circle-step,
    .process-step-circle {
        width: 70px;
        height: 70px;
        font-size: 1.3rem;
    }
}

/* --- Tablets (max-width: 768px) --- */
@media (max-width: 768px) {

    /* Container adjustments */
    .container {
        padding: 0 1.25rem;
    }

    /* Typography */
    h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    h4 {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
    }

    p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    /* Buttons - Make touch-friendly */
    .btn {
        padding: 1rem 2rem;
        font-size: 0.7rem;
        min-height: 44px;
        /* Touch target minimum */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Cards */
    .card {
        padding: 2rem 1.5rem;
    }

    .icon-card {
        padding: 2rem 1.25rem;
    }

    /* Icons */
    .icon-lg,
    .text-gold-lg {
        font-size: 1.8rem;
        margin-bottom: 1.25rem;
    }

    .icon-xl {
        font-size: 2.2rem;
        margin-bottom: 1.25rem;
    }

    /* List features */
    .list-features li {
        font-size: 0.95rem;
        gap: 0.75rem;
    }

    /* Process steps */
    .process-circle-step,
    .process-step-circle {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    /* Footer */
    footer {
        padding: 3rem 0 0;
    }

    .footer-col {
        margin-bottom: 2.5rem;
    }

    .footer-col h4 {
        margin-bottom: 1.5rem;
    }

    .social-list {
        justify-content: center;
        margin-top: 1.5rem;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* Back to top and WhatsApp buttons */
    #back-to-top,
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    #back-to-top {
        bottom: 85px;
        right: 20px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    /* Hero section */
    .hero {
        min-height: 70vh;
        padding: 5rem 0;
    }

    .text-hero-desc,
    .text-hero-desc-sm {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Utility classes */
    .mb-8 {
        margin-bottom: 5rem;
    }

    .mb-5 {
        margin-bottom: 3.5rem;
    }

    .mb-4 {
        margin-bottom: 3rem;
    }

    .mb-3 {
        margin-bottom: 2.5rem;
    }
}

/* --- Large Mobile Devices (max-width: 600px) --- */
@media (max-width: 600px) {

    /* Typography fine-tuning */
    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    /* Buttons */
    .btn {
        padding: 0.9rem 1.8rem;
        width: 100%;
        max-width: 280px;
    }

    /* Cards */
    .card {
        padding: 1.75rem 1.25rem;
    }

    .card-title-sm {
        font-size: 1rem;
    }

    /* Icons */
    .icon-lg,
    .text-gold-lg {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    /* Process steps */
    .process-circle-step,
    .process-step-circle {
        width: 55px;
        height: 55px;
        font-size: 1.1rem;
    }

    /* Footer */
    .footer-logo {
        height: 35px;
    }

    .footer-col p,
    .footer-contact-item p,
    .location-info p {
        font-size: 0.9rem;
    }

    .social-icon {
        width: 42px;
        height: 42px;
    }

    /* Floating buttons */
    #back-to-top,
    .whatsapp-float {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    #back-to-top {
        bottom: 75px;
        right: 15px;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
}

/* --- Mobile Devices (max-width: 480px) --- */
@media (max-width: 480px) {

    /* Base font size adjustment */
    html {
        font-size: 15px;
    }

    /* Container */
    .container {
        padding: 0 1rem;
    }

    /* Typography */
    h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    h4 {
        font-size: 0.7rem;
        letter-spacing: 0.15em;
        margin-bottom: 0.75rem;
    }

    p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    /* Buttons */
    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.65rem;
        letter-spacing: 0.15em;
    }

    /* Cards */
    .card {
        padding: 1.5rem 1rem;
    }

    .icon-card {
        padding: 1.75rem 1rem;
    }

    .card-title-sm {
        font-size: 0.95rem;
    }

    /* Icons */
    .icon-lg,
    .text-gold-lg {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .icon-xl {
        font-size: 1.8rem;
    }

    /* List features */
    .list-features li {
        font-size: 0.9rem;
        gap: 0.65rem;
    }

    .list-features li i {
        font-size: 0.85rem;
    }

    /* Process steps */
    .process-circle-step,
    .process-step-circle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    /* Hero */
    .hero {
        min-height: 60vh;
        padding: 4rem 0;
    }

    .text-hero-desc,
    .text-hero-desc-sm {
        font-size: 0.95rem;
        padding: 0 0.5rem;
        margin-bottom: 1.75rem;
    }

    /* Footer */
    .footer-logo {
        height: 32px;
        margin-bottom: 1.25rem;
    }

    .footer-col {
        margin-bottom: 2rem;
    }

    .footer-col h4 {
        font-size: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .footer-col p,
    .footer-contact-item p,
    .location-info p {
        font-size: 0.85rem;
    }

    .footer-col ul li {
        margin-bottom: 0.4rem;
    }

    .footer-col ul li a {
        font-size: 0.85rem;
    }

    .footer-location-item,
    .footer-contact-item {
        gap: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .footer-location-item i,
    .footer-contact-item i {
        font-size: 1rem;
        width: 20px;
    }

    .location-info h5 {
        font-size: 0.9rem;
    }

    .social-list {
        gap: 1.25rem;
        margin-top: 1.25rem;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
        border-width: 1.5px;
    }

    .footer-bottom {
        padding: 1.25rem 0;
        font-size: 0.8rem;
    }

    /* Floating buttons */
    #back-to-top,
    .whatsapp-float {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    #back-to-top {
        bottom: 70px;
        right: 12px;
    }

    .whatsapp-float {
        bottom: 12px;
        right: 12px;
    }

    /* Utility spacing */
    .section-padding {
        padding: 3rem 0;
    }

    .mb-8 {
        margin-bottom: 4rem;
    }

    .mb-5 {
        margin-bottom: 3rem;
    }

    .mb-4 {
        margin-bottom: 2.5rem;
    }

    .mb-3 {
        margin-bottom: 2rem;
    }

    .mb-2 {
        margin-bottom: 1.5rem;
    }

    .mb-1_5 {
        margin-bottom: 1.25rem;
    }

    .mb-1 {
        margin-bottom: 0.85rem;
    }

    /* Grid gaps */
    .grid-2,
    .grid-3,
    .grid-4 {
        gap: 1.5rem;
    }

    /* Portfolio filters */
    .portfolio-filters {
        gap: 0.65rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        padding: 0.65rem 1rem;
        font-size: 0.7rem;
        gap: 0.5rem;
        letter-spacing: 0.3px;
    }

    .filter-btn i {
        font-size: 0.85rem;
    }

    /* Text utilities */
    .fs-1-2 {
        font-size: 1rem;
    }

    .fs-0-9 {
        font-size: 0.85rem;
    }

    .text-xs {
        font-size: 0.75rem;
    }
}

/* --- Small Mobile Devices (max-width: 375px) --- */
@media (max-width: 375px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 0.875rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.8rem 1.25rem;
        font-size: 0.6rem;
    }

    .card {
        padding: 1.25rem 0.875rem;
    }

    .icon-lg,
    .text-gold-lg {
        font-size: 1.4rem;
    }

    .process-circle-step,
    .process-step-circle {
        width: 45px;
        height: 45px;
        font-size: 0.95rem;
    }

    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    #back-to-top,
    .whatsapp-float {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    /* Portfolio filters */
    .portfolio-filters {
        gap: 0.6rem;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }

    .filter-btn {
        padding: 0.6rem 0.9rem;
        font-size: 0.65rem;
        gap: 0.45rem;
    }

    .filter-btn i {
        font-size: 0.8rem;
    }
}

/* --- Extra Small Mobile Devices (max-width: 320px) --- */
@media (max-width: 320px) {
    html {
        font-size: 13px;
    }

    .container {
        padding: 0 0.75rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.55rem;
        letter-spacing: 0.1em;
    }

    .card {
        padding: 1rem 0.75rem;
    }

    .icon-card {
        padding: 1.5rem 0.75rem;
    }

    .icon-lg,
    .text-gold-lg {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .process-circle-step,
    .process-step-circle {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }

    .social-list {
        gap: 1rem;
    }

    .social-icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    #back-to-top,
    .whatsapp-float {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    #back-to-top {
        bottom: 65px;
        right: 10px;
    }

    .whatsapp-float {
        bottom: 10px;
        right: 10px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        gap: 1.25rem;
    }

    /* Portfolio filters */
    .portfolio-filters {
        gap: 0.5rem;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .filter-btn {
        padding: 0.55rem 0.8rem;
        font-size: 0.6rem;
        gap: 0.4rem;
        letter-spacing: 0.2px;
    }

    .filter-btn i {
        font-size: 0.75rem;
    }
}

/* --- Touch Device Optimizations --- */
@media (hover: none) and (pointer: coarse) {

    /* Improve touch targets */
    a,
    button,
    .btn,
    .filter-btn,
    .nav-links a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Remove hover effects that don't work on touch */
    .card:hover {
        transform: none;
    }

    /* Make interactive elements more obvious */
    .btn,
    .filter-btn {
        border-width: 2px;
    }
}

/* --- Landscape Orientation for Mobile --- */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 3rem 0;
    }

    .section-padding {
        padding: 4rem 0;
    }

    #back-to-top {
        bottom: 20px;
    }

    .whatsapp-float {
        bottom: 20px;
    }
}

/* --- High DPI / Retina Displays --- */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    /* Ensure images look sharp on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* --- Print Styles --- */
@media print {

    header,
    footer,
    #back-to-top,
    .whatsapp-float,
    .mobile-toggle {
        display: none !important;
    }

    body {
        padding-top: 0;
        background: white;
        color: black;
    }

    .hero-bg {
        filter: brightness(0.7);
    }


    a {
        text-decoration: underline;
    }
}