:root {
    /* THEME: OBSIDIAN BLUEPRINT */
    --primary-amber: #FFB300;
    /* Safety Amber */
    --primary-amber-glow: rgba(255, 179, 0, 0.4);

    --bg-deep: #0a0a0a;
    --bg-panel: #141414;

    --text-white: #ffffff;
    --text-silver: #a3a3a3;

    /* DARK GLASS VARS */
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);
    --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);

    --grid-line: rgba(255, 255, 255, 0.03);
}

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

/* Back to Top Button */
#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-amber);
    color: black;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#backToTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px var(--primary-amber-glow);
}


body {
    background-color: var(--bg-deep);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    /* Engineering Grid Background */
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-text-size-adjust: 100%;
    /* Prevent font scaling in landscape on iOS */
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

a {
    text-decoration: none;
    transition: 0.3s;
    color: inherit;
}

/* --- NAVIGATION (Dark Glass) --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    padding-top: max(20px, env(safe-area-inset-top));
    /* Notch support */
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand span {
    color: inherit;
    /* Reset generic span to inherit white */
}

/* Target the specific highlighting span */
.brand span span {
    color: var(--primary-amber);
}

.brand-mobile {
    display: none;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 900px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

@media (max-width: 480px) {
    .brand-desktop {
        display: none;
    }

    .brand-mobile {
        display: inline;
    }
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    /* Ensure button aligns with text */
}

.nav-item {
    font-size: 0.9rem;
    color: var(--text-silver);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-amber);
}

.btn-quote {
    padding: 10px 25px;
    border: 1px solid var(--primary-amber);
    color: var(--primary-amber);
    font-family: 'Teko';
    font-size: 1.2rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    background: transparent;
    touch-action: manipulation;
    /* Improves tap response */
}

.btn-quote:hover {
    background: var(--primary-amber);
    color: black;
    box-shadow: 0 0 20px var(--primary-amber-glow);
}

.btn-quote:active,
.btn-submit:active {
    transform: scale(0.98);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    /* Dynamic Viewport Height for mobile browsers */
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

/* Explicit overlay for Gallery Hero to ensure it respects shorter height */
.hero-gallery {
    min-height: 40vh !important;
    height: auto !important;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* High-end architectural background */
    background: linear-gradient(90deg, #0a0a0a 10%, rgba(10, 10, 10, 0.6) 60%, rgba(10, 10, 10, 0.2)),
        url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1931&q=80');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* ... (rest of file) ... */



.hero-content {
    max-width: 800px;
    z-index: 2;
    padding-top: 80px;
}

.hero-tag {
    display: inline-block;
    padding: 5px 15px;
    border-left: 3px solid var(--primary-amber);
    background: rgba(255, 179, 0, 0.1);
    color: var(--primary-amber);
    font-family: 'Teko';
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-silver);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
}

.stats-row {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.stat h3 {
    font-size: 3rem;
    color: white;
    margin-bottom: 0;
}

.stat p {
    font-size: 0.9rem;
    color: var(--primary-amber);
    text-transform: uppercase;
    margin-top: -5px;
}

/* --- GENERIC PAGE HEADER --- */
.page-header {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
    margin-bottom: 50px;
}

.page-header .hero-bg {
    background: linear-gradient(0deg, #0a0a0a 0%, rgba(10, 10, 10, 0.6) 100%),
        url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1770&q=80');
    background-size: cover;
    background-position: center;
}

.page-title {
    margin-top: 80px;
    z-index: 2;
}

.page-title h1 {
    font-size: 4rem;
}

/* --- SERVICES (Glass Cards) --- */
.services {
    padding: 100px 5%;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title h2 {
    font-size: 3.5rem;
}

.section-title span {
    color: var(--primary-amber);
}

.section-desc {
    max-width: 400px;
    color: var(--text-silver);
    text-align: right;
}

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

.glass-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    padding: 40px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0%;
    background: var(--primary-amber);
    transition: 0.4s;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 30, 30, 0.8);
    box-shadow: var(--glass-shadow);
}

.glass-card:hover::before {
    height: 100%;
}

.icon-box {
    font-size: 2.5rem;
    color: var(--text-silver);
    margin-bottom: 25px;
    transition: 0.4s;
}

.glass-card:hover .icon-box {
    color: var(--primary-amber);
}

.glass-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.glass-card p {
    color: var(--text-silver);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    /* Pushes price tag to bottom */
}

.price-tag {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Share Tech Mono', monospace;
    /* Fallback to monospace if font not loaded */
    font-size: 0.9rem;
    color: var(--primary-amber);
    width: fit-content;
}

/* --- ABOUT / BLUEPRINT --- */
.about {
    padding: 100px 5%;
    display: flex;
    align-items: center;
    gap: 60px;
    background: linear-gradient(180deg, var(--bg-deep) 0%, #111 100%);
}

.about-content {
    flex: 1;
}

.about-visual {
    flex: 1;
    position: relative;
}

.blueprint-img {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    filter: grayscale(100%) contrast(1.2);
    opacity: 0.8;
}

.overlay-box {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--primary-amber);
    color: black;
    padding: 30px;
    max-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.overlay-box h4 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.overlay-box p {
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- CONTACT STRIP --- */
.contact-strip {
    padding: 80px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-amber);
}

.c-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 179, 0, 0.1);
    color: var(--primary-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

/* --- FORMS --- */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.form-group label {
    display: block;
    color: var(--text-silver);
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #ffffff;
    color: #000000;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    /* Prevents zoom on iOS inputs */
    line-height: 1.5;
    transition: 0.3s;
    border-radius: 0;
    /* consistent aesthetic */
}

.form-control:focus {
    border-color: var(--primary-amber);
    outline: none;
    background: #ffffff;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB300' 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 15px center;
    background-size: 15px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Better Placeholder Visibility */
.form-control::placeholder {
    color: #444444;
    opacity: 1;
    font-weight: 600;
    /* Firefox */
}

.form-control:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #cccccc;
}

.form-control::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #cccccc;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-amber);
    color: black;
    border: none;
    font-family: 'Teko', sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

.btn-submit:hover {
    box-shadow: 0 0 30px var(--primary-amber-glow);
    transform: translateY(-2px);
}


/* --- TEAM SECTION --- */
.team-section {
    padding: 100px 5%;
    background: var(--bg-deep);
}

.team-section .section-header {
    display: block;
    /* Stack vertically instead of flex row */
    margin-bottom: 60px;
}

.team-section .section-desc {
    text-align: left;
    max-width: 600px;
    margin-top: 20px;
    color: var(--text-silver);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}

.team-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    overflow: hidden;
}

.team-card:hover {
    border-color: var(--primary-amber);
    transform: translateY(-5px);
}

.team-img-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    /* Default for most */
    filter: grayscale(100%);
    transition: 0.5s;
    transform: scale(1.1);
    /* Zoom in to crop out logos */

    /* PROTECTION: Disable interaction to prevent copying/dragging */
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Individual Framing Adjustments */
/* De Anne-Kay has tall hair, but user prioritizes face. 
   Focus slightly lower (higher %) to center face, cutting off top hair if needed. */
.team-img-wrapper img[src*="de-anne-kay"] {
    object-position: center 45%;
}

/* John Lewis has no hair and sits lower, so we focus lower (higher %) to move face UP. */
.team-img-wrapper img[src*="john"] {
    object-position: center 35%;
}

/* Monique needs standard centering. */
.team-img-wrapper img[src*="monique"] {
    object-position: center 20%;
}


/* Optional: Slight lift of filter on hover, or keep strict B&W as requested. 
   User said: "keep it black and white". 
   So I will keep it grayscale but maybe add contrast on hover for effect. */
.team-card:hover .team-img-wrapper img {
    filter: grayscale(100%) contrast(1.1);
    transform: scale(1.15);
}

.social-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    background: rgba(255, 179, 0, 0.9);
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    transition: 0.3s;
}

.team-card:hover .social-overlay {
    bottom: 0;
}

.social-overlay a {
    color: black;
    font-size: 1.2rem;
    transition: 0.2s;
}

.social-overlay a:hover {
    transform: scale(1.2);
}

.team-info {
    padding: 25px;
    text-align: center;
    /* Center align for perfect balance */
}

.team-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
}

.team-info .role {
    display: block;
    font-family: 'Share Tech Mono', monospace;
    color: var(--primary-amber);
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-info p {
    color: var(--text-silver);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- FOOTER --- */
footer {
    padding: 60px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-silver);
    font-size: 0.9rem;
    margin-top: auto;

    /* Social Footer */
}

.social-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-footer a {
    color: var(--text-silver);
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-footer a:hover {
    color: var(--primary-amber);
    transform: translateY(-3px);
}

footer {
    padding-bottom: max(60px, env(safe-area-inset-bottom));
    /* Home bar support */
}

/* --- AUTH PAGE --- */
.auth-section {
    padding: 100px 5%;
    min-height: 60vh;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.auth-card h3 {
    font-size: 2.5rem;
    font-family: 'Teko', sans-serif;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.auth-card .form-group label {
    font-weight: 600;
}


/* Responsive */
@media (max-width: 900px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }



    .hero h1,
    .page-title h1 {
        font-size: 3.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .section-desc {
        text-align: left;
    }

    .about {
        flex-direction: column;
    }

    .contact-strip {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
        /* Mobile menu implementation deferred for simplicity as per MVP */
    }

    .page-header {
        height: 50vh;
    }
}

/* Mobile Devices (Portrait) */
@media (max-width: 480px) {

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

    .hero-bg,
    .page-header .hero-bg {
        /* Prevent background attachment fixed issues on mobile */
        background-attachment: scroll;
        /* Shift image left so shirt/logo is pushed out of frame on mobile */
        background-position: 30% center;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .services,
    .about,
    .team-section,
    .contact-strip,
    .auth-section,
    .gallery-section {
        padding: 60px 5%;
    }

    .glass-card {
        padding: 30px 20px;
    }

    .btn-quote,
    .btn-submit {
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    .nav-menu {
        display: none;
    }

    /* Ensure no horizontal scroll */
    .hero-content {
        width: 100%;
        padding-top: 60px;
    }

    #backToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 80px 10%;
    background-color: var(--bg-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    /* Slight rounding for a premium feel */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    aspect-ratio: 4/3;
    /* Enforce a consistent aspect ratio */
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
    /* Subtle zoom on hover */
    cursor: pointer;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--primary-amber);
    text-decoration: none;
    cursor: pointer;
}

/* --- WHATSAPP INQUIRY MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2005;
    /* High z-index to sit above nav */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: flex-start;
    /* Changed from center */
    padding-top: 80px;
    /* Space for close button */
    padding-bottom: 40px;
    /* Bottom spacing */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: var(--bg-panel);
    border: 1px solid var(--primary-amber);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    margin: 0 20px 40px 20px;
    /* Horizontal margin + bottom margin */
    padding: 40px;
    width: 100%;
    max-width: 600px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    color: var(--text-silver);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
    z-index: 3000;
    /* Ensure it's above modal content */
    background: rgba(0, 0, 0, 0.5);
    /* Add background for visibility */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--primary-amber);
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-header h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--text-silver);
    margin-bottom: 30px;
}

/* --- ACCOUNT DASHBOARD LAYOUT --- */
.account-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.account-nav {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    height: fit-content;
}

.account-nav .nav-tab,
.account-nav button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    color: var(--text-silver);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    font-size: 0.95rem;
    text-align: left;
    background: transparent;
    border-left: 3px solid transparent;
    cursor: pointer;
    border-top: none;
    border-right: none;
}

.account-nav button {
    border-color: transparent transparent rgba(255, 255, 255, 0.05) transparent;
}

.account-nav .nav-tab:hover,
.account-nav button:hover,
.account-nav .active-tab {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--primary-amber);
}

.account-content-tab {
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.5s ease;
}

.account-content-tab.active {
    display: block;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 30px;
}

/* Order Table Styles */
.table-responsive {
    overflow-x: auto;
}

.account-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.account-table th {
    text-align: left;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.account-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-silver);
    font-size: 0.9rem;
}

.account-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.status-completed {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.status-processing {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.status-on-hold {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.status-cancelled {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.btn-view {
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.8rem;
    border-radius: 2px;
    transition: 0.3s;
}

.btn-view:hover {
    background: var(--primary-amber);
    color: black;
    border-color: var(--primary-amber);
}

.address-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 4px;
}

.address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

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

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

@media (max-width: 768px) {
    .account-layout {
        grid-template-columns: 1fr;
    }
}

/* --- UNIFIED LUXURY GALERY --- */
.gallery-container {
    padding: 100px 5%;
    background: linear-gradient(180deg, var(--bg-deep) 0%, #050505 100%);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 80vh;
}

/* Filter Controls */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-silver);
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
    padding-bottom: 5px;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-amber);
    transition: 0.3s ease;
}

.filter-btn.active::after {
    width: 100%;
}

/* Unified Grid */
.luxury-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    grid-auto-flow: dense;
    /* Critical for packing items tight */
}

.luxury-item {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
    animation: fadeIn 0.6s ease;
}

/* Hide items when filtered out */
.luxury-item.hidden {
    display: none;
}

.luxury-item img,
.luxury-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
    filter: grayscale(20%) contrast(1.1);
}

.luxury-item:hover img,
.luxury-item:hover video {
    transform: scale(1.1);
    filter: grayscale(0%) contrast(1.2);
}

/* Helper Classes */
.luxury-item.wide {
    grid-column: span 2;
}

.luxury-item.tall {
    grid-row: span 2;
}

.luxury-item.big {
    grid-column: span 2;
    grid-row: span 2;
}

/* Overlay */
.luxury-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s ease;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    /* Let clicks pass through to image */
}

.luxury-item:hover .luxury-overlay {
    opacity: 1;
    transform: translateY(0);
}

.luxury-overlay span {
    font-family: 'Teko', sans-serif;
    color: var(--primary-amber);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .luxury-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 250px;
    }

    .luxury-item.big {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 768px) {
    .luxury-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .luxury-item.wide,
    .luxury-item.big {
        grid-column: span 2;
    }

    .luxury-item.tall {
        grid-row: span 2;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        padding: 40px 5%;
        /* Significantly reduced padding */
    }

    .luxury-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        grid-auto-rows: auto;
    }

    .luxury-item {
        aspect-ratio: 4/3;
        width: 100%;
    }

    .luxury-item.wide,
    .luxury-item.tall,
    .luxury-item.big {
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-filter {
        gap: 10px;
        margin-bottom: 30px;
        /* Enable horizontal scrolling for filters if they overflow */
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        /* Space for scrollbar if needed */
        -webkit-overflow-scrolling: touch;
        /* Hide scrollbar for cleaner look */
        scrollbar-width: none;
    }

    .gallery-filter::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        font-size: 1.1rem;
        white-space: nowrap;
        /* Prevent text wrapping */
        flex-shrink: 0;
        /* Prevent buttons from shrinking */
        padding: 5px 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        /* Add border for better touch targets */
        border-radius: 20px;
    }

    .filter-btn.active {
        border-color: var(--primary-amber);
        background: rgba(255, 179, 0, 0.1);
    }

    .filter-btn::after {
        display: none;
        /* Remove underline animation on mobile in favor of border/bg */
    }
}

/* --- MOBILE READABILITY IMPROVEMENTS (ACCESSIBILITY) --- */
@media (max-width: 768px) {
    :root {
        /* Brighter text for better contrast on mobile */
        --text-silver: #e0e0e0;
    }

    html,
    body {
        font-size: 16px;
        /* Ensure base size is readable */
    }

    p,
    li,
    a,
    span,
    input,
    textarea,
    select,
    button {
        letter-spacing: 0.3px;
        /* Slightly more spacing for clarity */
    }

    p {
        font-weight: 400;
        /* Avoid thin weights */
        line-height: 1.6;
        margin-bottom: 20px;
    }

    /* Hero Text */
    .hero p {
        font-size: 1.1rem;
        color: #f0f0f0;
        /* Almost white for hero text */
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
        /* Better separation from bg */
    }

    /* Card Text */
    .glass-card p,
    .team-info p {
        font-size: 1rem;
        color: #e0e0e0;
    }

    /* Navigation */
    .nav-item {
        font-size: 1.1rem;
        /* Larger touch targets/text */
        font-weight: 600;
    }

    /* Footer */
    footer {
        font-size: 1rem;
    }

    .social-footer a {
        font-size: 1.8rem;
        /* Larger icons */
    }
}

/* --- GALLERY VIDEO: Hide Volume Controls --- */
/* Hides the mute button and volume slider in Chrome, Edge, Safari */
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-volume-control-container {
    display: none !important;
}