/* =========================================
   A.B. Construction Premium Design System
   ========================================= */

:root {
    /* Color Palette matching Logo (Black & Bronze/Copper) */
    --bg-main: #080808;
    --bg-darker: #000000;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-glass: rgba(8, 8, 8, 0.95);
    
    --text-primary: #ffffff;
    --text-mid: #aaaaaa;
    --text-dark: #666666;
    
    --gold: #b68d5d;
    --gold-light: #d5b187;
    --gold-dark: #8c663c;
    
    --border: rgba(182, 141, 93, 0.15);
    --border-hover: rgba(182, 141, 93, 0.4);
    
    /* Typography */
    --font-he: 'Rubik', sans-serif;
    --font-en: 'Outfit', sans-serif;
    
    /* Transitions & Specs */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --radius-lg: 24px;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-darker);
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-he);
    background-color: var(--bg-main);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    cursor: none; /* Custom cursor */
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ===== Custom Cursor ===== */
@media (pointer: fine) {
    .cursor-dot {
        position: fixed;
        top: 0; left: 0;
        width: 8px; height: 8px;
        background: var(--gold);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 2147483647;
        transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), background 0.3s ease;
    }
    .cursor-outline {
        position: fixed;
        top: 0; left: 0;
        width: 40px; height: 40px;
        border: 1px solid rgba(207, 160, 93, 0.5);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 2147483646;
        transition: transform 0.15s ease-out, width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.3s ease;
    }
    
    body:hover .cursor-dot { opacity: 1; }
    
    /* Hover states for cursor */
    .hover-target .cursor-dot {
        width: 60px; height: 60px;
        background: rgba(255,255,255,1);
        mix-blend-mode: difference;
    }
    .hover-target .cursor-outline {
        width: 0; height: 0; border-color: transparent;
    }
}
@media (pointer: coarse) {
    body { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none; }
}


/* ===== Layout ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}
.container-narrow {
    max-width: 800px;
}

.section-pad {
    padding: 140px 0;
}

.section-dark {
    background-color: var(--bg-main);
}
.section-darker {
    background-color: var(--bg-darker);
}

.text-gold {
    color: var(--gold);
}
.font-en {
    font-family: var(--font-en);
}
.text-center {
    text-align: center;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    line-height: 1.1;
    font-weight: 800;
}
.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.section-subtitle {
    display: block;
    font-size: 1.1rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--gold, #D4AF37);
    color: #111;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 4px;
    transition: all 0.35s ease;
    border: 2px solid var(--gold, #D4AF37);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}
.btn-primary:hover {
    background: transparent;
    color: var(--gold, #D4AF37);
    border-color: var(--gold, #D4AF37);
    box-shadow: 0 0 18px rgba(212,175,55,0.3);
}

@keyframes goldPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(182, 141, 93, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(182, 141, 93, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(182, 141, 93, 0);
    }
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    background: #000;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 4px;
    border: 2px solid #000;
    transition: all 0.4s var(--ease);
}
.btn-secondary:hover {
    background: transparent;
    color: #000;
    border-color: #000;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10000;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: all 0.4s var(--ease);
    pointer-events: auto !important;
}
.navbar.scrolled {
    padding: 12px 40px;
    background: rgba(0, 0, 0, 0.99);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.95);
}
/* Bulletproof nav click protection */
.navbar *, .nav-container *,
.nav-links a, .nav-links li,
.dropdown-menu a, .nav-brand a, .nav-cta {
    pointer-events: auto !important;
}


.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

/* Hide mobile hero logo globally by default (desktop view) */
.mobile-hero-logo {
    display: none;
}

.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    flex-grow: 0;
}

.nav-brand img {
    height: 80px !important;
    width: auto !important;
    object-fit: contain !important;
    margin: 0 !important;
    filter: brightness(1.7) contrast(1.2) drop-shadow(0 0 5px rgba(255,255,255,0.1));
    opacity: 0.95;
    transition: all 0.3s var(--ease);
}

.nav-brand:hover img {
    opacity: 1;
    filter: brightness(2) contrast(1.2) drop-shadow(0 0 12px rgba(255,255,255,0.25));
    transform: scale(1.02);
}

.brand-en {
    font-family: var(--font-en);
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}
.brand-he {
    font-family: var(--font-he);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}
.brand-sub {
    font-family: var(--font-he);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 28px;
    flex-wrap: nowrap;
    flex-direction: row;
    flex-shrink: 0;
    flex-grow: 1;
    justify-content: center; /* Center the menu on desktop per request */
}

@media (min-width: 993px) {
    .nav-links > li:last-child {
        position: absolute;
        left: 0; /* Snap to the far left of the container */
        top: 50%;
        transform: translateY(-50%);
        margin-right: 0 !important;
    }
}

.nav-links li a {
    font-size: 1.15rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}
.nav-links li a.hover-link:hover {
    color: var(--gold);
}
.nav-links li a.hover-link::after {
    content: '';
    position: absolute;
    bottom: -6px; right: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.4s var(--ease);
}
.nav-links li a.hover-link:hover::after {
    width: 100%;
}
.nav-cta {
    background: var(--gold);
    padding: 10px 22px;
    border-radius: 8px;
    color: #111 !important;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(220, 165, 96, 0.2);
    transition: all 0.3s ease !important;
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 165, 96, 0.4);
    background: #e8b975;
    color: #000 !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px; height: 20px;
    position: relative;
    cursor: none; /* handled by custom cursor */
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: all 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { bottom: 0; }

/* ===== Navbar Dropdown ===== */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px); right: 0;
    background: rgba(14, 14, 18, 0.98);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    list-style: none;
    padding: 8px 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    box-shadow: 0 25px 50px rgba(0,0,0,0.9);
    border-radius: 6px;
    z-index: 10001;
    backdrop-filter: blur(10px);
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dropdown-menu li:last-child { border-bottom: none; }
.dropdown-menu li a {
    display: block;
    padding: 14px 28px;
    color: var(--text-mid);
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.dropdown-menu li a:after { display: none; }
.dropdown-menu li a:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.06);
    padding-right: 36px;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120%;
    z-index: 1;
}
.hero-image {
    width: 100%; height: 100%;
    object-fit: cover;
    transform-origin: center;
}
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.85);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
}

.page-hero .hero-overlay {
    background: rgba(5,5,6, 0.75);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    padding-top: 80px;
}

.hero-text-block {
    max-width: 650px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 4px 40px rgba(0,0,0,0.9), 0 2px 10px rgba(0,0,0,0.5); /* Strong shadow for bright videos */
}
.hero-title span {
    color: var(--gold);
    -webkit-text-stroke: none;
    font-family: inherit;
    text-shadow: 0 4px 40px rgba(0,0,0,0.9), 0 2px 10px rgba(0,0,0,0.5); /* Re-add shadow and solid gold for visibility */
    letter-spacing: 0.03em;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-mid);
    margin-bottom: 50px;
    line-height: 1.8;
    font-weight: 300;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transform-origin: left center;
    transform: rotate(90deg) translateX(50%);
}
.mouse {
    width: 20px; height: 30px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    position: relative;
    transform: rotate(-90deg);
}
.wheel {
    width: 2px; height: 6px;
    background: var(--gold);
    border-radius: 2px;
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
}

@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 10px); opacity: 0; }
}

/* Animations for text reveal */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpText 1s var(--ease-out-expo) forwards;
}
.reveal-text.delay-1 { animation-delay: 0.2s; }
.reveal-text.delay-2 { animation-delay: 0.4s; }

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

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

.about-text {
    font-size: 1.15rem;
    color: var(--text-mid);
    margin-bottom: 24px;
    font-weight: 300;
}
.about-text b {
    color: var(--text-primary);
    font-weight: 600;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}
.stat-box {
    display: flex;
    flex-direction: column;
}
.stat-box h3 {
    font-size: 3rem;
    font-family: var(--font-en);
    color: var(--gold);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-box span {
    font-size: 0.9rem;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.image-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
}
.img-front {
    position: absolute;
    bottom: 0; right: 0;
    width: 85%; height: 90%;
    object-fit: cover;
    border-radius: var(--radius);
    z-index: 2;
    box-shadow: -20px 20px 60px rgba(0,0,0,0.5);
    filter: brightness(0.9) contrast(1.1);
}
.img-bg-shape {
    position: absolute;
    top: 0; left: 0;
    width: 70%; height: 80%;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    z-index: 1;
}

/* ===== Services Grid ===== */
.expertise-header {
    text-align: center;
    margin-bottom: 80px;
}

.fw-services-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.fw-srv-item {
    position: relative;
    width: 100%;
    min-height: 550px;
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
}

.fw-srv-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.fw-srv-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fw-srv-item:hover .fw-srv-bg img {
    transform: scale(1.05);
}

.fw-srv-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to right, rgba(5,5,6,0.9) 0%, rgba(5,5,6,0.3) 100%);
    pointer-events: none;
}

/* Alternate overlay direction for zigzag */
.fw-srv-item:nth-child(even) .fw-srv-overlay {
    background: linear-gradient(to left, rgba(5,5,6,0.9) 0%, rgba(5,5,6,0.3) 100%);
}

.fw-srv-content-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    padding: 0 40px;
}

/* Zigzag logic */
.fw-srv-item:nth-child(odd) .fw-srv-content-container {
    justify-content: flex-start;
}
.fw-srv-item:nth-child(even) .fw-srv-content-container {
    justify-content: flex-end;
}

.fw-srv-box {
    background: rgba(15, 15, 20, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 50px;
    border-radius: var(--radius-lg);
    max-width: 550px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: all 0.4s var(--ease);
}

.fw-srv-item:hover .fw-srv-box {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.fw-srv-box h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.2;
}

.fw-srv-box p {
    color: var(--text-mid);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 35px;
}

.fw-srv-link {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-block;
    transition: transform 0.3s;
}

.fw-srv-item:hover .fw-srv-link {
    transform: translateX(-10px); /* RTL moves left */
}

@media (max-width: 768px) {
    .fw-services-wrapper {
        margin-top: 20px;
    }
    .fw-srv-item {
        min-height: 420px;
    }
    .fw-srv-content-container {
        padding: 0 20px;
        justify-content: center !important; /* Force center on mobile */
    }
    .fw-srv-box {
        padding: 35px 25px;
        text-align: center;
        background: rgba(15, 15, 20, 0.85); /* Darker on mobile for readability */
    }
    .fw-srv-box h3 {
        font-size: 1.8rem;
    }
    .fw-srv-item:hover .fw-srv-link {
        transform: translateY(-3px); /* Move up instead of left for centered content */
    }
}

/* ===== Trust Bar ===== */
.trust-bar {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 35px 0;
    position: relative;
    z-index: 5;
}

/* Specific styling for the Trust Bar when it's placed over the Hero image */
.hero-trust-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(5,5,6,0.95) 0%, rgba(5,5,6,0.6) 50%, transparent 100%);
    border: none;
    padding: 40px 0 20px 0;
}

.trust-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
    flex: 1;
    min-width: 200px;
}
.trust-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin-bottom: -5px;
    transition: transform 0.3s ease;
}
.trust-item:hover .trust-icon {
    transform: scale(1.1);
}
.trust-icon i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 80%, #5c4226 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.8));
}
.trust-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .hero-trust-bar {
        padding: 25px 0 15px 0;
        background: linear-gradient(to top, rgba(5,5,6,0.98) 0%, rgba(5,5,6,0.7) 40%, transparent 100%);
    }
    
    .trust-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .trust-item {
        min-width: unset;
        gap: 8px;
    }
    
    .trust-icon {
        width: 45px;
        height: 45px;
    }
    
    .trust-icon i {
        font-size: 2rem;
        filter: drop-shadow(0 5px 10px rgba(0,0,0,0.6));
    }
    
    .trust-text {
        font-size: 0.85rem;
        line-height: 1.2;
    }
}

/* ===== Why Us ===== */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.why-list {
    list-style: none;
    margin-top: 30px;
}
.why-list li {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.why-list span {
    color: var(--gold);
    font-size: 1.2rem;
}

/* ===== Contact Section ===== */
.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}
.contact-header {
    text-align: center;
    margin-bottom: 40px;
}
.contact-header p {
    color: var(--text-mid);
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.form-row {
    display: flex;
    gap: 30px;
}
.input-group {
    position: relative;
    flex: 1;
}
.input-group input, 
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 15px 0;
    color: white;
    font-family: inherit;
    font-size: 1.05rem;
    outline: none;
    resize: none;
}
.input-group label {
    position: absolute;
    top: 15px; right: 0;
    color: var(--text-mid);
    transition: all 0.3s var(--ease);
    pointer-events: none;
}
.input-border {
    position: absolute;
    bottom: 0; right: 0;
    height: 2px; width: 0;
    background: var(--gold);
    transition: width 0.4s var(--ease);
}

.input-group input:focus ~ label,
.input-group textarea:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.85rem;
    color: var(--gold);
}
.input-group input:focus ~ .input-border,
.input-group textarea:focus ~ .input-border {
    width: 100%;
}

button[type="submit"] {
    cursor: none; /* handled by custom hover */
    margin-top: 20px;
    font-family: inherit;
}
button .arrow {
    transition: transform 0.3s var(--ease);
}
button:hover .arrow {
    transform: translateX(-10px);
}
.w-100 { width: 100%; }

/* ===== Footer ===== */
.footer {
    background: #020203;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
.footer-brand h2 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 20px;
}
.footer-brand p {
    color: var(--text-mid);
    max-width: 300px;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: #fff;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: var(--text-mid);
    transition: color 0.3s;
    pointer-events: auto;
    cursor: pointer;
}
.footer-links a:hover {
    color: var(--gold);
}
.footer-contact p {
    color: var(--text-mid);
    margin-bottom: 10px;
    font-family: var(--font-en);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
}
.footer-bottom p {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-family: var(--font-en);
}
.footer-social {
    display: flex;
    gap: 20px;
}
.social-link {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-mid);
    font-family: var(--font-en);
    font-size: 0.8rem;
    transition: all 0.3s;
}
.social-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

/* ===== Global Animations ===== */
.fade-up {
    opacity: 1; /* Fallback for when JS fails */
    transform: translateY(0);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.fade-up:not(.visible) {
    /* If we want JS to still animate, we can let JS add a class initially, but actually let's just make them visible to fix the site instantly */
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .navbar { 
        padding: 14px 20px 0 20px;
        overflow: visible;
        background: transparent !important;
        box-shadow: none !important;
        border-bottom: none !important;
    }
    .navbar.scrolled { 
        padding: 10px 20px 0 20px;
        background: rgba(6,6,10,0.85) !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }

    .nav-container {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        position: relative;
        min-height: 44px;
    }
    .nav-toggle {
        display: block !important;
        position: relative;
        z-index: 10002;
    }
    
    /* Logo: big + centered in hero — HOME PAGE ONLY on mobile */
    body.home-page .nav-brand {
        display: none !important; /* hide the fixed nav logo — use hero logo instead */
    }
    body.home-page .mobile-hero-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 20px 0 10px 0;
    }
    body.home-page .mobile-hero-logo img {
        height: 120px;
        width: auto;
        filter: brightness(1.7) contrast(1.2) drop-shadow(0 4px 18px rgba(0,0,0,0.85));
    }
    
    /* Push hero content below the navbar (no extra padding needed now) */
    body.home-page .hero-content { padding-top: 70px !important; }
    body:not(.home-page) .hero-content { padding-top: 20px !important; }
    
    /* Logo: normal in navbar — ALL OTHER PAGES */
    body:not(.home-page) .nav-brand {
        position: static;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center;
        z-index: auto;
        pointer-events: auto;
        margin-left: auto;
    }
    body:not(.home-page) .nav-brand a {
        display: flex;
        pointer-events: auto;
    }
    body:not(.home-page) .nav-brand img {
        height: 52px !important;
        margin: 0 8px 0 0 !important;
        transform: none !important;
        filter: none !important;
    }
    
    /* Push hero content below the logo — home page only */
    body.home-page .hero-content { padding-top: 140px !important; }
    body:not(.home-page) .hero-content { padding-top: 20px !important; }
    
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 300px; height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        border-left: 1px solid var(--border);
        transition: right 0.5s var(--ease);
    }
    .nav-links.active { right: 0; }
    
    .nav-toggle.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { top: 9px; bottom: auto; transform: rotate(-45deg); }
    
    .nav-links > li:last-child { margin: 0 !important; }
    
    .nav-cta {
        display: none !important;
    }
    
    .hero-title { font-size: 3rem; }
    .hero-content { padding-bottom: 180px; } /* Prevent overlap with absolute bottom trust-bar */
    .scroll-down-indicator { display: none; }
    .hero-actions { flex-direction: column; }
    .about-grid, .why-us-grid { grid-template-columns: 1fr; gap: 40px; }
    .image-stack { max-width: 500px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
    .section-pad { padding: 80px 0; }
    .form-row { flex-direction: column; gap: 15px; }
    .hero-text-block { text-align: center; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
    .hero-title { font-size: 2.7rem; text-align: center; }
    .hero-content { padding-bottom: 220px; } /* Extra push up on very small screens since trust bar wraps more */
    .contact-box { padding: 30px 20px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

/* ===== Portfolio Page & Inner Pages ===== */
.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}
.portfolio-section {
    min-height: 80vh;
}
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-mid);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s var(--ease);
    cursor: none;
    font-family: inherit;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--gold);
    color: var(--bg-main);
    border-color: var(--gold);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 1;
    cursor: none;
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.portfolio-item:hover img {
    transform: scale(1.08);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12,12,14,0.9) 0%, rgba(12,12,14,0) 50%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-info h3 {
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 5px;
}
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
@media (max-width: 968px) {
    .service-grid { grid-template-columns: 1fr; }
}

/* WhatsApp Floating Button */
.floating-wa {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}
.floating-wa svg {
    width: 35px;
    height: 35px;
}
.floating-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: #fff;
}
@media (max-width: 768px) {
    .floating-wa {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
    .floating-wa svg {
        width: 30px;
        height: 30px;
    }
}

/* =========================================
   FAQ Page Styles
   ========================================= */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s var(--ease);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    padding: 25px 30px;
    width: 100%;
    text-align: right;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--gold);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform 0.4s var(--ease);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
    background: var(--bg-darker);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px 30px;
}

.faq-answer p {
    color: var(--text-mid);
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   About Page Styles
   ========================================= */
.about-section {
    padding: 80px 0;
}
.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text-content h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 25px;
}
.about-text-content h2 span {
    color: var(--gold);
}
.about-text-content p {
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}
.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

@media (max-width: 900px) {
    .about-content-grid {
        grid-template-columns: 1fr;
    }
    .about-image-wrapper {
        min-height: 300px;
        order: -1;
    }
}

/* Mobile Contact Bar */
.mobile-contact-bar {
    display: none;
}

@media (max-width: 768px) {
    .floating-wa {
        display: none !important;
    }
    
    body {
        padding-bottom: 54px; /* Space for the bar, avoid hiding footer content */
    }
    
    .mobile-contact-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 99999;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    }
    
    .mobile-contact-bar a {
        flex: 1;
        padding: 16px 0;
        text-align: center;
        font-weight: 700;
        font-size: 1.1rem;
        color: #fff;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: opacity 0.3s ease;
    }
    
    .mobile-contact-bar a:active {
        opacity: 0.8;
    }
    
    .mobile-contact-bar .call-action {
        background-color: var(--gold);
        color: #111;
        border-right: 1px solid rgba(0,0,0,0.1);
    }
    
    .mobile-contact-bar .wa-action {
        background-color: #25D366;
    }
}

/* =========================================
   Premium Floating Action Button
   ========================================= */
.premium-fab-container {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Opposite side of UserWay Right position */
    z-index: 999999;
}
.premium-fab-main {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    color: #111;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(182, 141, 93, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.premium-fab-main:hover, .premium-fab-container.active .premium-fab-main {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(182, 141, 93, 0.6);
}
.premium-fab-options {
    position: absolute;
    bottom: 80px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transform-origin: bottom left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}
.premium-fab-container.active .premium-fab-options,
.premium-fab-container:hover .premium-fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.fab-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    background: rgba(15, 15, 20, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 24px;
    border-radius: 30px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: all 0.3s;
}
.fab-option i {
    font-size: 1.4rem;
}
.fab-option.whatsapp { border-color: rgba(37, 211, 102, 0.5); }
.fab-option.whatsapp i { color: #25D366; }
.fab-option.call { border-color: rgba(182, 141, 93, 0.5); }
.fab-option.call i { color: var(--gold); }
.fab-option:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}
@media (max-width: 768px) {
    .premium-fab-container {
        bottom: 25px;
        left: 20px;
    }
    .premium-fab-main {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .fab-option {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Specific styles for WhatsApp feed portfolio items */
.portfolio-item-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.portfolio-item-wrap .portfolio-item {
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    margin-bottom: 15px; /* Adds space between image and text */
}

.portfolio-item-overlay h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.portfolio-item-overlay p {
    font-size: 0.95rem;
    color: var(--text-mid);
}

/* =========================================
   Modern Portfolio Grid & Cards
   ========================================= */
.portfolio-item-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.portfolio-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border-color: rgba(182, 141, 93, 0.3);
}

.portfolio-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #000;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.portfolio-item-card:hover .portfolio-img-wrapper img {
    transform: scale(1.05);
}

.portfolio-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 12, 14, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.portfolio-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-card-content h3 {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 8px;
}

.portfolio-card-content p {
    color: var(--text-mid);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.portfolio-item-card.standalone .portfolio-card-content {
    padding: 15px 20px;
}

.portfolio-item-card.standalone h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 4px;
}

.portfolio-item-card.standalone p {
    font-size: 0.85rem;
    color: var(--gold);
}

/* =========================================
   Modal Gallery Overlay
   ========================================= */
.custom-modal {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center; /* keep centered */
    padding: 40px 20px; /* force a minimum gap from top and bottom */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.custom-modal.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.custom-modal-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    max-height: 100%; /* prevent overflowing the padding of parent */
    
    background: var(--bg-darker);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-modal.active .custom-modal-content {
    transform: scale(1) translateY(0);
}

.custom-modal-close {
    position: absolute;
    top: 15px;
    left: 15px; /* RTL, so close button on the top left */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.custom-modal-close:hover {
    background: var(--gold);
    color: #111;
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 350px 1fr; /* Info panel on right (RTL), slider on left */
    width: 100%;
    height: 80vh;
    min-height: 450px;
    max-height: 700px;
}

.modal-info {
    padding: 40px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    z-index: 2;
}

.modal-info h2 {
    color: var(--gold);
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.modal-info p {
    color: var(--text-mid);
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-slider {
    position: relative;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.modal-slider img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15,15,20,0.6);
    backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.slider-btn:hover {
    background: var(--gold);
    color: #111;
    border-color: var(--gold);
}

.prev-btn {
    right: 20px; /* Logical previous in RTL */
}

.next-btn {
    left: 20px; /* Logical next in RTL */
}

.slider-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(15,15,20,0.7);
    color: var(--gold);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 1rem;
    letter-spacing: 2px;
    z-index: 5;
    font-family: monospace;
    border: 1px solid rgba(182, 141, 93, 0.3);
}

@media (max-width: 992px) {
    .modal-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 400px;
        height: auto;
        max-height: 90vh;
    }
    
    .modal-info {
        border-left: none;
        border-bottom: 1px solid var(--border);
        padding: 30px;
    }
    
    .modal-slider {
        height: 100%;
    }
}

.nav-links > li {
    display: flex;
    flex-shrink: 0;
    white-space: nowrap;
}


@media (max-height: 800px) {
    .hero-content { padding-bottom: 150px; }
    .scroll-down-indicator { display: none; }
}

