/* ========================================
   WEBCORE MEDIA - AVANT GARDE
   ======================================== */

:root {
    --text-color: #1a1a1a;
    --bg-color: #ffffff;
    --accent: #000000;
    --gray: #555555;
    /* Darkened from #888 for AA Contrast */
    --gray-medium: #666666;

    --font-main: 'Open Sans', system-ui, -apple-system, sans-serif;

    --spacing-margin: 5vw;
    /* Increased margin/padding for mobile breathability */
    --spacing-huge: 20vh;
}

/* Accessibility Focus States */
:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 4px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Custom cursor only on desktop */
}

@media (min-width: 540px) {

    *,
    *::before,
    *::after {
        cursor: none !important;
    }
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background: var(--bg-color);
    overflow-x: hidden;
    /* For smooth scroll */
    width: 100vw;
    line-height: 1.6;
    /* Improved readability */
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   CUSTOM CURSOR
   ======================================== */
.cursor-dot,
.cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99999;
    border-radius: 50%;
    mix-blend-mode: difference;
    display: none;
    /* Hidden by default */
}

@media (min-width: 540px) {

    .cursor-dot,
    .cursor-circle {
        display: block;
        /* Visible on desktop */
    }

    .cursor-dot {
        width: 8px;
        height: 8px;
        background: white;
    }

    .cursor-circle {
        width: 40px;
        height: 40px;
        border: 1px solid white;
        transition: width 0.3s, height 0.3s, background-color 0.3s;
    }

    /* Hover state for cursor */
    body.hovering .cursor-circle {
        width: 80px;
        height: 80px;
        background: white;
        opacity: 0.1;
        border-color: transparent;
    }

    body.hovering .cursor-dot {
        opacity: 0;
    }
}

/* ========================================
   CORNER NAVIGATION
   ======================================== */
.nav-corner {
    position: fixed;
    z-index: 1000;
    padding: var(--spacing-margin);
    mix-blend-mode: difference;
    /* Visible on light/dark */
    color: var(--bg-color);
    /* Due to mix-blend */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header hide/show on scroll */
.nav-corner.top-left,
.nav-corner.top-right {
    transform: translateY(0);
}

body.header-hidden .nav-corner.top-left,
body.header-hidden .nav-corner.top-right {
    transform: translateY(-100%);
}

.top-left {
    top: 0;
    left: 0;
}

.top-right {
    top: 0;
    right: 0;
}

.bottom-left {
    bottom: 0;
    left: 0;
}

.bottom-right {
    bottom: 0;
    right: 0;
}

.brand-logo {
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1;
    text-decoration: none;
    color: white;
    /* For difference blend */
    display: block;
    letter-spacing: -0.02em;
}

.brand-logo img {
    height: 60px;
    /* Increased from 40px */
    width: auto;
    filter: invert(1);
    /* Keep invert for mix-blend mode */
    transition: height 0.3s ease;
}

@media (max-width: 768px) {
    .brand-logo img {
        height: 60px;
        /* Slightly smaller on mobile but still bigger than 40 */
    }
}

.menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    /* Logical cursor, visual removed */
}

.menu-text {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hamburger {
    width: 30px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: white;
    /* Difference blend */
    transition: 0.3s transform ease;
}

.hamburger span:last-child {
    width: 15px;
}

.menu-trigger:hover .hamburger span:last-child {
    width: 30px;
}

.lang-switcher-minimal {
    display: flex;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.lang-btn {
    background: none;
    border: none;
    color: white;
    font-weight: 400;
    opacity: 0.5;
    padding: 0;
}

.lang-btn.active {
    opacity: 1;
    font-weight: 700;
}

.sep {
    opacity: 0.5;
    color: white;
}

/* Removed .circle-cta */


/* ========================================
   BUTTONS (Corporate Design)
   ======================================== */
.btn,
.btn-primary,
.btn-secondary,
.btn-link,
.submit-button {
    display: inline-block;
    padding: 10px 24px;
    font-size: small;
    cursor: pointer;
    border-radius: 6px;
    border: none;
    background: #ffffff;
    color: #1d1d1f;
    font-family: 'Open Sans', sans-serif;
    font-weight: 350;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 24px;
    text-decoration: none;
    transition: all var(--transition-base);
    text-align: center;
}

/* Specific reset for portfolio buttons (User request: no hover animation, only cursor pointer) */
.btn-portfolio,
.btn-portfolio:hover {
    transition: none !important;
    transform: none !important;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 24px !important;
    /* Keep original shadow but no shift */
    background: #1d1d1f !important;
    color: #ffffff !important;
    /* cursor: none handled globally for desktop */
}

@media (max-width: 539px) {

    .btn-portfolio,
    .btn-portfolio:hover {
        cursor: pointer !important;
        /* Visible on mobile where system cursor is used */
    }
}

/* Dark Variant (Version 2) */
.btn-dark {
    background: #1d1d1f;
    color: #ffffff;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 8px 32px;
}

/* Ensure secondary uses the dark style by default */
.btn-secondary {
    background: #1d1d1f;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 8px 32px;
}

/* ========================================
   MENU OVERLAY
   ======================================== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    /* Fixed dark background */
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    /* Fixed white text */
}

/* Ensure high contrast for navigation in dark modes (like forbidden) */
.forbidden-mode .nav-corner {
    color: #ffffff !important;
    mix-blend-mode: normal !important;
}

.menu-overlay.active {
    transform: translateY(0);
}

.huge-menu {
    list-style: none;
    text-align: center;
}

.menu-link {
    font-size: 8vw;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    line-height: 1.1;
    transition: color 0.3s;
    position: relative;
    display: block;
}

.menu-link:hover {
    color: #ffffff !important;
}

.menu-link .index {
    font-size: 1.5rem;
    position: absolute;
    top: 20%;
    left: -50px;
    opacity: 0;
    transform: translateX(20px);
    transition: 0.3s;
    font-weight: 400;
    -webkit-text-stroke: 0;
    color: white;
}

.menu-link:hover .index {
    opacity: 1;
    transform: translateX(0);
}

.menu-footer {
    position: absolute;
    bottom: var(--spacing-margin);
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.menu-footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
}

@media (max-width: 500px) {
    .menu-footer {
        display: none;
    }
}

/* ========================================
   TYPOGRAPHY & LAYOUT
   ======================================== */
.hero-avant {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5vh 4vw 0 4vw;
    /* Global 5vh Top Padding for all pages */
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    /* Much larger section titles */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 80px;
    text-align: center;
    position: relative;
    display: block;
    width: 100%;
}

.div-view-all-project {
    margin-top: 100px;
}

/* ========================================
   FAQ ACCORDION - Refined & Elegant
   ======================================== */
.faq-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 0;
    /* Removed side padding for full-width potential */
    display: flex;
    flex-direction: column;
}

.faq-item {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    transition: background-color 0.4s ease;
}

.faq-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item:hover {
    background: rgba(0, 0, 0, 0.01);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 35px 20px;
    /* Slimmer padding */
    background: transparent;
    border: none;
    font-family: var(--font-main);
    text-align: left;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 
   REFINED NUMBERING 
   Slimmer, more vertical accent feel.
*/
.faq-number {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1;
    color: #999;
    min-width: 30px;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
}



.faq-item.active .faq-number {
    color: #000;
}

.faq-item.active .faq-number::before {
    height: 25px;
    background: #000;
}

/* Question text - Slimmer & Lighter */
.faq-text {
    flex: 1;
    font-size: 1.25rem;
    /* Reduced from 1.5rem */
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Arrow icon - Ultra minimal */
.faq-icon {
    width: 14px;
    height: 14px;
    color: #ccc;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), color 0.4s ease;
}

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

/* Smooth Grid Animation stays */
.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr;
}

.faq-answer {
    min-height: 0;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.6s, opacity 0.4s ease;
}

.faq-item.active .faq-answer {
    visibility: visible;
    opacity: 1;
}

.faq-answer p {
    padding: 0 20px 35px 82px;
    /* Aligned with number + spacing */
    font-size: 1.05rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
    max-width: 900px;
}

@media (max-width: 1000px) {

    /* Allow edge-to-edge on tablet/mobile by removing container width constraints */
    .faq-container {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 768px) {

    /* Remove padding from parent specifically for FAQ on mobile to allow edge-to-edge lines */
    #faq .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

    .faq-question {
        padding: 30px 15px;
        gap: 15px;
    }

    .faq-text {
        font-size: 1.1rem;
    }

    .faq-answer p {
        padding: 0 15px 30px 62px;
        font-size: 0.95rem;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--black);
}

.hero-display {
    font-size: 15vw;
    line-height: 0.85;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    display: flex;
    flex-direction: column;
}

.hero-display .line {
    display: block;
    overflow: hidden;
    /* For reveal animation */
}

.offset-right {
    text-align: right;
    /* Shift second line */
}

.hero-display span {
    display: block;
    transform: translateY(100%);
    opacity: 0;
    animation: slideUp 1s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.hero-display span:nth-child(2) {
    animation-delay: 0.2s;
    color: transparent;
    -webkit-text-stroke: 2px var(--text-color);
}

.hero-sub {
    margin-top: 5vh;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    border-top: 1px solid black;
    padding-top: 20px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1s;
}

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.section-avant {
    padding: var(--spacing-huge) 0;
    position: relative;
}

.row-asym {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.col-text {
    width: 40%;
    padding-left: 5vw;
    z-index: 2;
}

.col-img {
    width: 60%;
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.parallax-img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center;
}

.display-lg {
    font-size: 6vw;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 500px;
}

/* Unified paragraph styling for About page */
.col-text p,
.col-text .mt-4 {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-color);
}

.mt-4 {
    margin-top: 1.5rem;
}

/* ========================================
   SUBPAGE HEADER
   ======================================== */
.hero-avant--small {
    height: 60vh;
    justify-content: flex-end;
    padding-bottom: 8vh;
    min-height: 400px;
}

.hero-avant--small .hero-display {
    font-size: 10vw;
    margin-top: 6vh;
}

/* ========================================
   PORTFOLIO GRID (HOME)
   ======================================== */

/* ========================================
   PORTFOLIO MASTERPIECE (Cinematic Overlap)
   ======================================== */
.portfolio-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: var(--space-3xl);
    padding: 0;
}

.portfolio-row {
    display: flex;
    align-items: center;
    position: relative;
    /* Massive vertical spacing for "Masterpiece" feel */
    margin-bottom: 20vh;
    min-height: 60vh;
    width: 100%;
}

/* Last item shouldn't have huge margin */
.portfolio-row:last-child {
    margin-bottom: 10vh;
}

/* --- Image Container - Clean Design --- */
.p-image-container {
    width: 60%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.6s ease;
}

.p-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.portfolio-row:hover .p-image-container {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.portfolio-row:hover .p-image-container img {
    transform: scale(1.03);
}

/* --- Text Container (Overlapping) --- */
.p-text-container {
    /* Box that overlaps */
    width: 45%;
    position: absolute;
    right: 5%;
    /* Offset from right edge */
    z-index: 2;
    background: #141414;
    /* Slightly lighter than pure black, or simply standard dark */
    padding: 2vw;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    /* For "Masterpiece" feel, maybe a subtle border */
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Specific styling for text inside */
.p-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    /* Massive Title */
    font-weight: 800;
    margin-bottom: var(--space-md);
    line-height: 1.1;
    color: #ffffff;
}

.p-category {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    /* Increased Opacity for contrast */
    margin-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.p-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #dadada;
    /* Brighter for better contrast against dark */
    margin-bottom: var(--space-xl);
    max-width: 90%;
    opacity: 0.95;
    /* Nearly full opacity */
}

/* --- Alternating Layout (Even Items) --- */
.portfolio-row:nth-child(even) {
    flex-direction: row-reverse;
}

.portfolio-row:nth-child(even) .p-text-container {
    right: auto;
    left: 5%;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {

    .portfolio-row,
    .portfolio-row:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        min-height: auto;
        margin-bottom: 15vh;
    }

    .p-image-container {
        width: 100%;
        height: auto;
        /* Still tall but fits */
        margin-bottom: 0;
        border-radius: 4px 4px 0 0;
        z-index: 1;
        border: 1px solid #1d1d1f20;
    }

    .p-text-container {
        position: relative;
        width: 90%;
        /* Responsive width */
        max-width: 90%;
        right: auto;
        left: auto;
        /* Center it */
        margin: -40px auto 0 auto;
        /* Pull up to overlap image bottom */
        z-index: 10;
        padding: 6vw;
        /* Generous padding for content */
        background: #141414;
        /* Matches large screen for consistency */
        border-radius: 8px;
        /* Softer look on mobile */
    }

    .portfolio-row:nth-child(even) .p-text-container {
        left: auto;
        right: auto;
        margin: -40px auto 0 auto;
    }

    .p-title {
        font-size: 1.8rem;
        /* readable size on mobile */
    }

    /* Ensure button contrast and consistency */
    .btn-portfolio,
    .btn-portfolio:hover {
        background: #1d1d1f !important;
        color: #ffffff !important;
        transition: none !important;
        transform: none !important;
        box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 24px !important;
    }
}

/* ========================================
   CONTACT PAGE REDESIGN
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    text-align: center;
}

.back-link {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-2xl);
    width: 100%;
}

.c-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg);
    background: var(--gray-light);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.c-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--black);
}

.c-item:hover .c-label,
.c-item:hover .c-value {
    color: var(--white);
}

.c-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: var(--text-xs);
    color: var(--gray-medium);
    margin-bottom: var(--space-sm);
    transition: color var(--transition-fast);
}

.c-value {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
}

.contact-form .row {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.contact-form .form-group {
    flex: 1;
    min-width: 250px;
    margin-bottom: var(--space-md);
}

.form-control {
    width: 100%;
    padding: 15px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 2px rgba(29, 29, 31, 0.1);
}

/* Global Link Styling - Corporate Design */
a {
    color: var(--black);
    text-decoration: none;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
    color: var(--gray-medium);
}

/* Footer Links specific */
.footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: opacity var(--transition-fast);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width var(--transition-base);
}

.footer-link:hover::after {
    width: 100%;
}

/* ========================================
   CONTACT STYLES
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5vw;
    border-top: 2px solid black;
    padding-top: 40px;
    margin-bottom: 100px;
}

.c-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
    opacity: 0.5;
}

.c-value {
    font-size: clamp(1rem, 4vw, 1.5rem);
    /* Responsive font size */
    color: black;
    text-decoration: none;
    line-height: 1.2;
    display: block;
    word-break: break-word;
    /* Prevent overflow on narrow screens */
}

/* Contact section responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 5vw;
        text-align: center;
    }

    .c-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .c-value {
        font-size: 1rem;
    }

    .c-item .btn {
        width: auto;
        max-width: 100%;
    }
}

/* Contact Form - Avant Garde Redesign (Refined for Corporate Design) */
.contact-form-wrapper {
    max-width: 800px;
    margin: 80px auto 120px auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 6px;
    /* Strict Corporate Design Radius */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    /* Sophisticated, controlled shadow */
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-form-wrapper .row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.contact-form-wrapper .form-group {
    flex: 1;
    min-width: 250px;
    margin-bottom: 25px;
}

.contact-form-wrapper .form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    /* Clean, professional border */
    border-radius: 6px;
    /* Strict Corporate Design Radius */
    padding: 15px 20px;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 400;
    color: #1d1d1f;
    transition: all 0.3s ease;
}

.contact-form-wrapper .form-control::placeholder {
    color: #a0a0a0;
}

.contact-form-wrapper .form-control:focus {
    outline: none;
    border-color: #1d1d1f;
    /* Focus indicator matches button/text */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper textarea.form-control {
    min-height: 160px;
    resize: none;
}

.form-footer {
    text-align: right;
    margin-top: 10px;
}

.btn-submit {
    display: inline-block;
    padding: 16px 45px;
    font-size: small;
    /* Corporate standard font size */
    cursor: pointer;
    border-radius: 6px;
    /* Strict Corporate Design Radius */
    border: none;
    background: #1d1d1f;
    color: #ffffff;
    font-family: var(--font-main);
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-submit:hover {
    transform: translateY(-2px);
    background: #000000;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Success Overlay */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.form-success-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.success-content {
    max-width: 450px;
    padding: 40px;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.form-success-overlay.active .success-content {
    transform: translateY(0);
}

.success-icon {
    width: 70px;
    height: 70px;
    background: #1d1d1f;
    color: #fff;
    border-radius: 6px;
    /* Also 6px for unified look */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.success-icon svg {
    width: 35px;
    height: 35px;
}

.success-content h3 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.success-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 35px 20px;
        margin: 40px 15px;
        border-radius: 6px;
    }

    .contact-form-wrapper .row {
        gap: 0;
    }

    .contact-form-wrapper .form-group {
        min-width: 100%;
    }
}

/* ========================================
   LEGAL PAGES
   ======================================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.legal-content h2 {
    margin-top: 60px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.2;
}

.legal-content p,
.legal-content ul {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #444;
}

.legal-content ul {
    list-style: square;
    padding-left: 20px;
}


/* ========================================
   HORIZONTAL SCROLL SECTION
   ======================================== */
.horizontal-scroll-section {
    overflow: hidden;
    height: 100vh;
    /* Will be pinned */
    display: flex;
    align-items: center;
    background: #111;
    color: #fff;
}

.horizontal-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 10vw;
}

.horizontal-title {
    min-width: 40vw;
    font-size: 8vw;
    font-weight: 800;
    line-height: 0.9;
}

/* Reapply btn style to project starter button just in case specific class overrides */
.btn-large {
    /* User request style is small font, but large button implies padding.
       Let's respect the user's specific CSS which sets font-size: small.
       We will strictly follow their CSS. */
    font-size: small !important;
    padding: 12px 32px;
    /* Slightly larger padding for "large" feel while keeping font small */
}

.display-outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

.horizontal-gallery {
    display: flex;
    gap: 5vw;
    padding-right: 10vw;
}

.h-item {
    display: block;
    text-decoration: none;
    color: white;
    width: 60vh;
    /* Aspect ratio based on height */
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s;
}

.h-item:hover {
    transform: scale(0.98);
}

.h-img {
    height: 60vh;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

.h-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.h-item:hover img {
    transform: scale(1.1);
}

.h-info {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
}

.h-info .num {
    font-family: monospace;
}

/* ========================================
   FOOTER
   ======================================== */
.footer-minimal {
    margin-top: 100px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: inline-block;
    width: 80%;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--gray);
}

.footer-row a {
    color: var(--gray);
    text-decoration: none;
}

/* ========================================
   UTILITIES
   ======================================== */
.bg-dark {
    background-color: #1d1d1f;
    color: white;
}

.bg-white {
    background-color: #fff;
    color: black;
}

.py-huge {
    padding: 20vh 0;
}

.py-medium {
    padding: 10vh 0;
}

.py-small {
    padding: 5vh 0;
}

.text-center {
    text-align: center;
}

/* Responsive Adjustments */
/* ========================================
   RESPONSIVE UTILITIES & PADDING
   ======================================== */
@media (max-width: 768px) {

    /* Ensure content never hits edges */
    .container-fluid,
    .container {
        padding-left: var(--spacing-margin);
        padding-right: var(--spacing-margin);
    }

    /* Adjust font sizes for mobile readability */
    body {
        font-size: 16px;
        /* Avoid iOS zoom on focus */
    }

    .section-title {
        font-size: 2.5rem;
        /* Manageable size */
        margin-bottom: var(--space-lg);
        width: 90%;
        /* Prevent horizontal overflow */
    }

    /* Subpage adjustments */
    .legal-content {
        padding: 0 5vw;
        /* Add horizontal padding on mobile */
    }

    .contact-form-wrapper {
        background: transparent;
        padding: 0 20px;
        box-shadow: none;
        margin: 40px auto;
        border-radius: 0;
    }

    .contact-grid {
        padding: 0;
        /* Remove extra padding, container handles it */
    }

    .nav-corner {
        padding: 5vw;
    }

    .hero-display {
        font-size: 18vw;
    }

    .display-lg {
        font-size: 12vw;
    }

    .row-asym {
        flex-direction: column;
    }

    .col-text,
    .col-img {
        width: 100%;
    }

    .col-img {
        height: 50vh;
        margin-top: 40px;
    }

    .horizontal-scroll-section {
        height: auto;
        display: block;
        padding-top: 100px;
    }

    .horizontal-wrapper {
        flex-direction: column;
        padding-left: 0;
        height: auto;
    }

    .horizontal-gallery {
        flex-direction: column;
        width: 100%;
        padding: 0 5vw;
    }

    .horizontal-title {
        width: 100%;
        padding: 0 5vw;
        margin-bottom: 50px;
    }

    .h-item {
        width: 100%;
        height: auto;
    }

    .h-img {
        height: 400px;
    }

    .menu-link {
        font-size: 14vw;
    }
}

/* ========================================
   ERROR PAGES (404/403) STYLES
   ======================================== */
.error-page .hero-avant {
    height: auto;
    min-height: 100vh;
    padding-bottom: 50px;
    padding-top: 5vh;
    /* Unified to 5vh as requested */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.error-page .hero-display {
    font-size: clamp(3.5rem, 11vw, 13vw);
    margin-bottom: 2rem;
}

.error-page .hero-display .offset-right {
    text-align: center;
    -webkit-text-stroke: 1px var(--text-color);
    /* Thinner stroke for smaller text */
}

.error-page .hero-sub {
    flex-direction: column;
    text-align: center;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-page.forbidden-mode .hero-sub {
    border-top-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .error-page .hero-display {
        font-size: clamp(2rem, 15vw, 18vw);
        text-align: center;
    }

    .error-page .hero-display .line {
        white-space: normal;
        line-height: 1;
        display: block;
        width: 100%;
        margin-top: 0.1em;
        text-align: center !important;
        /* Force center alignment */
    }

    .error-page .hero-sub {
        font-size: 1rem;
        padding-top: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .error-page .hero-display {
        font-size: clamp(1.8rem, 18vw, 22vw);
    }

    .error-page .hero-sub p {
        font-size: 0.9rem;
    }
}

/* ========================================
   REDESIGNED COOKIE BANNER (Avant-Garde Final)
   ======================================== */
.cookie-overlay {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translate(-50%, 200%);
    width: 95%;
    max-width: 800px;
    background: #000;
    color: #fff;
    z-index: 10000;
    padding: 40px 60px;
    opacity: 0;
    transition: all 1s cubic-bezier(0.7, 0, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    pointer-events: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.cookie-overlay.active {
    transform: translate(-50%, 0);
    opacity: 1;
}

.cookie-info-v4 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-title-v4 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

.cookie-title-v4 .outline {
    color: transparent;
    -webkit-text-stroke: 1px #fff;
}

.cookie-text-v4 {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 450px;
    line-height: 1.6;
}

.cookie-btns-v4 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.btn-v4 {
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: 0.3s;
}

.btn-v4.accept {
    font-size: 1.25rem;
    padding-bottom: 5px;
    border-bottom: 2px solid #fff;
}

.btn-v4.accept:hover {
    padding-right: 15px;
}

.btn-v4.deny {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.btn-v4.deny:hover {
    color: #fff;
    opacity: 1;
}

@media (max-width: 850px) {
    .cookie-overlay {
        bottom: 0;
        width: 100%;
        max-width: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 40px;
        gap: 40px;
        border-bottom: none;
        border-left: none;
        border-right: none;
    }

    .cookie-btns-v4 {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .cookie-title-v4 {
        font-size: 1.6rem;
    }
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading-spinner::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinner-spin 0.8s linear infinite;
}

@keyframes spinner-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   AI AGENT
   ======================================== */
.agent-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.agent-icon-wrapper {
    width: 30px;
    height: 30px;
    border: 1px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.agent-trigger:hover .agent-icon-wrapper {
    background: white;
    color: black;
}

.agent-icon-wrapper svg {
    width: 16px;
    height: 16px;
}

/* Chat Window */
.ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 5vw;
    width: 350px;
    height: 500px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-main);
}

.ai-chat-window.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.ai-header {
    background: #1a1a1a;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ai-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.ai-close:hover {
    opacity: 1;
}

.ai-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f9f9f9;
}

.ai-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.ai-msg-bot {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #333;
    border-bottom-left-radius: 4px;
}

.ai-msg-user {
    align-self: flex-end;
    background: #1a1a1a;
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.ai-input-area input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.ai-input-area input:focus {
    border-color: #1a1a1a;
}

.ai-input-area button {
    background: #1a1a1a;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.ai-input-area button:hover {
    transform: scale(1.05);
}

.ai-input-area button svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 480px) {
    .ai-chat-window {
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        /* Full screen on mobile */
        border-radius: 0;
    }

    .nav-corner.bottom-right {
        bottom: 20px;
        right: 20px;
    }
}