/* ==============================================
   NAVIGATION — Futuriste
   ============================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(5,5,8,0.97);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(var(--red-rgb),0.15);
    box-shadow: 0 0 30px rgba(var(--red-rgb),0.08);
    height: var(--nav-height);
    transition: background 0.3s, box-shadow 0.3s;
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--white);
    text-shadow: 0 0 20px rgba(var(--red-rgb),0.3);
    transition: all 0.3s var(--ease-smooth);
    -webkit-user-select: none;
    user-select: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(var(--red-rgb),0.6);
}

.nav-logo span {
    color: var(--primary-yellow);
    text-shadow: var(--glow-yellow);
}

.nav-logo.easter-egg {
    animation: logoSpin 1s var(--ease-bounce);
}

@keyframes logoSpin {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.3) rotate(-10deg); }
    50% { transform: scale(0.8) rotate(10deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.nav-menu {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.nav-menu a {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    transition: color 0.3s var(--ease-smooth);
    padding: var(--space-xs) 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-red);
    transition: width 0.3s var(--ease-smooth);
}

.nav-menu a:hover,
.nav-menu a[aria-current="true"],
.nav-menu a.active {
    color: var(--primary-yellow);
}

.nav-menu a:hover::after,
.nav-menu a[aria-current="true"]::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary-yellow);
    color: var(--primary-black);
    padding: 12px 24px;
    border-radius: 24px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: 0 4px 12px rgba(var(--yellow-rgb),0.3);
    display: inline-block;
}

.nav-cta:hover {
    background: var(--white);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(var(--yellow-rgb),0.4);
}

/* --- Hamburger mobile --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 10px;
    z-index: 10001;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s var(--ease-smooth);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Dropdown menus --- */
.nav-item {
    position: relative;
}

.nav-item > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.chevron {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -2px;
    transition: transform 0.3s var(--ease-smooth);
}

.nav-item:hover .chevron,
.nav-item.open .chevron {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 240px;
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-item:hover > .nav-dropdown,
.nav-item.open > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown li + li {
    border-top: 1px solid #2A2A2A;
}

.nav-dropdown a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.6);
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown a::after {
    display: none;
}

.nav-dropdown a:hover {
    color: var(--white);
    background: #2A2A2A;
}


/* --- BOUTONS --- */
.btn-primary {
    background: var(--gradient-yellow);
    color: var(--primary-black);
    padding: 18px 48px;
    border-radius: 0;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s var(--ease-bounce);
    box-shadow: 0 8px 24px rgba(var(--yellow-rgb),0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--glow-yellow);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 18px 48px;
    border-radius: 0;
    border: 2px solid rgba(var(--red-rgb),0.5);
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s var(--ease-bounce);
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(var(--red-rgb),0.1);
    border-color: var(--accent-red);
    color: var(--accent-red);
    box-shadow: var(--glow-accent);
    transform: translateY(-4px);
}

.btn-red {
    background: var(--gradient-red);
    color: var(--white);
    padding: 18px 48px;
    border-radius: 0;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s var(--ease-bounce);
    box-shadow: 0 8px 24px rgba(var(--red-rgb),0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-red:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--glow-red);
}


/* ==============================================
   SECTIONS — Titres et headers
   ============================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: 0.08em;
    background: var(--gradient-yellow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    display: inline-block;
}

.section-header .section-line {
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gradient-red);
    margin: var(--space-sm) auto 0;
    box-shadow: var(--glow-accent);
}

.section-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    margin-top: var(--space-sm);
    line-height: 1.8;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}


/* ==============================================
   GALLERY MODAL
   ============================================== */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5,5,8,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.gallery-modal-inner {
    position: relative;
    width: 90vw;
    max-width: 900px;
    max-height: 85vh;
    background: #111;
    border: 1px solid rgba(var(--gray-rgb),0.2);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-modal.active .gallery-modal-inner {
    transform: scale(1) translateY(0);
}

.gallery-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(var(--gray-rgb),0.15);
}

.gallery-modal-title {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
}

.gallery-modal-counter {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.gallery-modal-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--gray-rgb),0.1);
    border: 1px solid rgba(var(--gray-rgb),0.2);
    border-radius: 8px;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-modal-close:hover {
    background: rgba(var(--red-rgb),0.15);
    border-color: rgba(var(--red-rgb),0.3);
    color: var(--white);
}

.gallery-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.gallery-item {
    aspect-ratio: 1;
    background: #1a1a1a;
    border: 1px solid rgba(var(--gray-rgb),0.1);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover {
    border-color: rgba(var(--yellow-rgb),0.3);
    transform: translateY(-2px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #6c6d75;
}

.gallery-placeholder-icon {
    font-size: 32px;
    opacity: 0.3;
}

.gallery-placeholder-text {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
}

.gallery-modal-nav {
    display: none;
}


/* ==============================================
   GRILLES DE FEATURES / CARDS
   ============================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.feature-card {
    background: rgba(var(--red-rgb),0.03);
    border: 1px solid rgba(var(--red-rgb),0.1);
    border-radius: 4px;
    padding: var(--space-md);
    transition: all 0.4s var(--ease-smooth);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-red);
    transform: scaleX(0);
    transition: transform 0.5s var(--ease-smooth);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    border-color: rgba(var(--red-rgb),0.3);
    background: rgba(var(--red-rgb),0.06);
    transform: translateY(-6px);
    box-shadow: var(--glow-accent);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: var(--space-sm);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-yellow);
    margin-bottom: var(--space-xs);
}

.feature-desc {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255,255,255,0.82);
}

/* Grille 2 colonnes */
.features-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Grille 4 colonnes */
.features-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}


/* ==============================================
   FORMULAIRES
   ============================================== */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 16px 20px;
    background: var(--surface-1);
    border: 1px solid rgba(var(--red-rgb),0.15);
    border-radius: 4px;
    color: var(--white);
    font-family: var(--font-main);
    font-size: 15px;
    transition: all 0.3s var(--ease-smooth);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 20px rgba(var(--yellow-rgb),0.15);
    background: var(--surface-2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236C6D75' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-select option {
    background: var(--primary-black);
    color: var(--white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    margin-top: 4px;
}

/* Checkbox / Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-yellow);
}

.form-check-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* ==============================================
   FAQ ACCORDION
   ============================================== */
.faq-list {
    margin-top: var(--space-md);
}

.faq-item {
    border: 1px solid rgba(var(--red-rgb),0.1);
    border-radius: 4px;
    margin-bottom: var(--space-sm);
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: rgba(var(--red-rgb),0.25);
}

.faq-question {
    width: 100%;
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(var(--red-rgb),0.03);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: left;
    color: var(--white);
    transition: all 0.3s;
}

.faq-question:hover {
    background: rgba(var(--red-rgb),0.06);
    color: var(--primary-yellow);
}

.faq-icon {
    font-size: 18px;
    transition: transform 0.3s var(--ease-smooth);
    color: var(--accent-red);
}

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

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

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer-content {
    padding: 0 var(--space-md) var(--space-md);
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255,255,255,0.82);
}

/* ==============================================
   PRICING / FORFAIT
   ============================================== */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.pricing-card {
    background: rgba(var(--red-rgb),0.03);
    border: 1px solid rgba(var(--red-rgb),0.1);
    border-radius: 4px;
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    position: relative;
    transition: all 0.4s var(--ease-smooth);
}

.pricing-card.featured {
    border-color: var(--primary-yellow);
    box-shadow: var(--glow-yellow);
}

.pricing-card.featured::before {
    content: 'POPULAIRE';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: var(--gradient-yellow);
    color: var(--primary-black);
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 6px 20px;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--red-rgb),0.3);
    box-shadow: var(--glow-accent);
}

.pricing-name {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: var(--space-sm);
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-yellow);
    text-shadow: var(--glow-yellow);
    margin-bottom: var(--space-xs);
}

.pricing-period {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-bottom: var(--space-md);
}

.pricing-features {
    text-align: left;
    margin-bottom: var(--space-md);
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(var(--red-rgb),0.06);
    font-size: 15px;
    color: rgba(255,255,255,0.82);
    padding-left: 24px;
    position: relative;
}

.pricing-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary-yellow);
    font-weight: 700;
}


/* ==============================================
   MONO / CODE STYLE
   ============================================== */
.mono {
    font-family: var(--font-mono);
}

.tag-label {
    display: inline-block;
    background: rgba(var(--red-rgb),0.1);
    border: 1px solid rgba(var(--red-rgb),0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-red);
    letter-spacing: 0.05em;
}

/* === PROJECT TAGS — hero des pages portfolio === */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: var(--space-sm);
}

.project-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.4;
}

.project-tag--red {
    background: rgba(var(--red-rgb), 0.15);
    border: 1px solid rgba(var(--red-rgb), 0.35);
    color: var(--primary-red);
}

.project-tag--yellow {
    background: rgba(var(--yellow-rgb), 0.12);
    border: 1px solid rgba(var(--yellow-rgb), 0.3);
    color: var(--primary-yellow);
}

.project-tag--blue {
    background: rgba(60, 120, 255, 0.12);
    border: 1px solid rgba(60, 120, 255, 0.3);
    color: #5b9bf8;
}

.project-tag--green {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.project-tag--gray {
    background: rgba(108, 109, 117, 0.15);
    border: 1px solid rgba(108, 109, 117, 0.3);
    color: #8b8c96;
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: var(--space-sm);
}

.lang-btn {
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mid-gray);
    text-decoration: none;
    padding: 4px 7px;
    border-radius: 3px;
    border: 1px solid transparent;
    transition: color .2s, border-color .2s;
    line-height: 1;
}

.lang-btn:hover {
    color: var(--white);
    border-color: rgba(255,255,255,.15);
}

.lang-btn.lang-active {
    color: var(--primary-yellow);
    border-color: rgba(255,190,10,.35);
    background: rgba(255,190,10,.06);
}

@media (max-width: 1024px) {
    /* Sur mobile : afficher seulement la langue active */
    .lang-switcher .lang-btn:not(.lang-active) {
        display: none;
    }

    /* La langue active devient un déclencheur avec flèche */
    .lang-btn.lang-active {
        position: relative;
        padding-right: 18px;
        cursor: pointer;
    }

    .lang-btn.lang-active::after {
        content: '▾';
        position: absolute;
        right: 4px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 8px;
        line-height: 1;
        opacity: 0.7;
    }

    /* Dropdown ouvert */
    .lang-switcher.open {
        flex-direction: column;
        position: absolute;
        right: 8px;
        top: calc(var(--nav-height) + 4px);
        background: #1A1A1A;
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 8px;
        padding: 4px;
        z-index: 1100;
        gap: 2px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    }

    .lang-switcher.open .lang-btn {
        display: flex;
        justify-content: center;
        padding: 10px 16px;
        font-size: 10px;
        min-width: 52px;
        border-radius: 5px;
    }

    .lang-switcher.open .lang-btn.lang-active::after {
        display: none;
    }

    .lang-switcher.open .lang-btn.lang-active {
        padding-right: 16px;
    }
}

/* ==============================================
   CONTACT MODAL
   ============================================== */
.contact-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5,5,8,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 16px;
    box-sizing: border-box;
}

.contact-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.contact-modal {
    background: #0D0D12;
    border: 1px solid rgba(255,190,10,0.2);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.contact-modal-overlay.open .contact-modal {
    transform: translateY(0);
}

.contact-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.contact-modal-close:hover {
    color: #fff;
}

.contact-modal-title {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 0.1em;
    color: #fff;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.contact-modal-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 28px 0;
    line-height: 1.5;
}

.contact-modal-field {
    margin-bottom: 20px;
}

.contact-modal-field label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.contact-modal-field input,
.contact-modal-field textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body, Inter, sans-serif);
    font-size: 15px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.contact-modal-field input:focus,
.contact-modal-field textarea:focus {
    border-color: var(--primary-yellow, #FFBE0A);
}

.contact-modal-field textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-modal-submit {
    width: 100%;
    background: var(--primary-yellow, #FFBE0A);
    color: #050508;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    border: none;
    padding: 16px 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-top: 8px;
}

.contact-modal-submit:hover:not(:disabled) {
    opacity: 0.85;
    transform: translateY(-1px);
}

.contact-modal-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.contact-modal-success {
    text-align: center;
    padding: 20px 0;
    display: none;
}

.contact-modal-success-icon {
    font-size: 48px;
    color: var(--primary-yellow, #FFBE0A);
    display: block;
    margin-bottom: 16px;
}

.contact-modal-success-title {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.1em;
    color: var(--primary-yellow, #FFBE0A);
    text-transform: uppercase;
    margin: 0 0 12px 0;
}

.contact-modal-success-text {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin: 0;
}

.contact-modal-overlay.success .contact-modal-form {
    display: none;
}

.contact-modal-overlay.success .contact-modal-success {
    display: block;
}

@media (max-width: 768px) {
    .contact-modal {
        padding: 28px 20px;
    }
}

