/* ============================================
   URBANWEB — DESIGN SYSTEM
   ============================================ */

:root {
    --bg:        #06070D;
    --bg-2:      #0C0D1A;
    --surface:   rgba(255,255,255,0.04);
    --surface-h: rgba(255,255,255,0.07);
    --border:    rgba(255,255,255,0.07);
    --border-h:  rgba(255,255,255,0.16);
    --blue:      #4D7EFF;
    --purple:    #9B5DE5;
    --cyan:      #00D4FF;
    --grad:      linear-gradient(135deg, #4D7EFF 0%, #9B5DE5 100%);
    --grad-t:    linear-gradient(135deg, rgba(77,126,255,0.15), rgba(155,93,229,0.15));
    --text:      #EEF0FF;
    --muted:     #7980A0;
    --radius:    14px;
    --radius-sm: 8px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(77,126,255,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

::selection { background: rgba(77,126,255,0.3); color: white; }

/* ===== CUSTOM CURSOR ===== */
.cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 9999;
    width: 32px; height: 32px;
    border: 1.5px solid rgba(77,126,255,0.6);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%,-50%);
    transition: width .3s, height .3s, border-color .3s, background .3s;
    will-change: transform;
}

.cursor-dot {
    position: fixed; top: 0; left: 0; z-index: 10000;
    width: 5px; height: 5px;
    background: var(--blue);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%,-50%);
    will-change: transform;
}

body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
    width: 48px; height: 48px;
    background: rgba(77,126,255,0.1);
    border-color: var(--blue);
}

/* ===== PROGRESS BAR ===== */
#progress-bar {
    position: fixed; top: 0; left: 0; z-index: 1001;
    height: 2px;
    background: var(--grad);
    width: 0%;
    transition: width .1s linear;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--blue);
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    display: block; width: 20px; height: 2px;
    background: var(--grad);
    border-radius: 2px;
}

/* ===== BACKGROUND ORBS ===== */
.orbs {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    animation: drift 12s ease-in-out infinite;
}

.orb-1 { width: 600px; height: 600px; background: #4D7EFF; top: -200px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; background: #9B5DE5; top: 20%; right: -150px; animation-delay: -4s; }
.orb-3 { width: 400px; height: 400px; background: #00D4FF; bottom: -100px; left: 30%; animation-delay: -8s; }

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -40px) scale(1.05); }
    66%       { transform: translate(-20px, 30px) scale(0.97); }
}

/* ===== GRID PATTERN ===== */
.grid-pattern {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

/* ===== NOISE OVERLAY ===== */
.noise {
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9998; opacity: 0.4;
}

/* ===== HEADER ===== */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 5%;
    transition: all .4s ease;
}

header.scrolled {
    background: rgba(6,7,13,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 5%;
}

.logo {
    font-size: 20px; font-weight: 900;
    text-decoration: none; color: var(--text);
    letter-spacing: -0.5px;
}

.logo em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav { display: flex; align-items: center; gap: 4px; }

nav a {
    text-decoration: none; color: var(--muted);
    font-size: 14px; font-weight: 500;
    padding: 8px 14px; border-radius: var(--radius-sm);
    transition: color .2s, background .2s;
    position: relative;
}

nav a:hover { color: var(--text); background: var(--surface); }

nav a.active { color: var(--text); }

nav a.active::after {
    content: '';
    position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--blue);
}

nav .btn-nav {
    background: var(--surface);
    border: 1px solid var(--border-h);
    color: var(--text);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-left: 8px;
    transition: all .25s;
}

nav .btn-nav:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
    box-shadow: 0 0 20px rgba(77,126,255,0.4);
}

.menu-toggle {
    display: none;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); padding: 8px 12px;
    border-radius: var(--radius-sm); cursor: pointer; font-size: 18px;
    z-index: 101;
}

/* Supprime le stacking context du header quand le menu est ouvert,
   sinon backdrop-filter empêche la nav fixed de couvrir toute la page */
header.nav-open {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-bottom-color: transparent !important;
}

/* Mobile nav dropdown */
header.nav-open nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6,7,13,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 100;
    animation: fadeIn .25s ease;
}

header.nav-open nav a {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 14px 32px;
    color: var(--text);
}

header.nav-open nav a.btn-nav {
    margin-top: 12px;
    background: var(--grad);
    border-color: transparent;
    color: white;
    font-size: 1.1rem;
}

header.nav-open .menu-toggle {
    position: fixed;
    top: 20px; right: 5%;
    z-index: 102;
    background: var(--surface-h);
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 15px; font-weight: 700;
    text-decoration: none;
    transition: all .3s ease;
    cursor: pointer; border: none;
    position: relative; overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.08);
    opacity: 0;
    transition: opacity .2s;
}

.btn:hover::before { opacity: 1; }

.btn-primary {
    background: var(--grad);
    color: white;
    box-shadow: 0 0 0 0 rgba(77,126,255,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(77,126,255,0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-h);
}

.btn-ghost:hover {
    background: var(--surface);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ===== PAGE HERO (shared) ===== */
.page-hero {
    position: relative; padding: 160px 5% 100px;
    text-align: center; overflow: hidden;
    min-height: 50vh; display: flex;
    flex-direction: column; align-items: center; justify-content: center;
}

.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 20px; }
.page-hero p { font-size: 1.15rem; color: var(--muted); max-width: 520px; line-height: 1.8; }

/* ===== MARQUEE ===== */
.marquee-wrap {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    background: rgba(255,255,255,0.01);
}

.marquee-track {
    display: flex; gap: 0;
    animation: marquee 28s linear infinite;
    width: max-content;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
    display: flex; align-items: center; gap: 16px;
    padding: 0 32px;
    font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--muted); white-space: nowrap;
}

.marquee-item span {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--grad); flex-shrink: 0;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ===== CARDS SHARED ===== */
.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all .4s ease;
    position: relative; overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--grad-t);
    opacity: 0;
    transition: opacity .4s;
    border-radius: inherit;
}

.glass-card:hover {
    border-color: rgba(77,126,255,0.3);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(77,126,255,0.15);
}

.glass-card:hover::before { opacity: 1; }

/* ===== REVEAL ANIMATIONS ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s ease, transform .7s ease;
}

[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.92); }

[data-reveal].in-view {
    opacity: 1;
    transform: translate(0) scale(1);
}

[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .4s; }
[data-delay="5"] { transition-delay: .5s; }

/* ===== FOOTER ===== */
footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 72px 5% 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--border);
}

.footer-brand p {
    font-size: 14px; color: var(--muted);
    line-height: 1.8; margin-top: 16px; max-width: 280px;
}

.footer-col h5 {
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--text); margin-bottom: 20px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
    text-decoration: none; color: var(--muted); font-size: 14px;
    transition: color .2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--muted);
}

.footer-social { display: flex; gap: 12px; }

.social-btn {
    width: 36px; height: 36px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 15px;
    color: var(--muted);
    transition: all .2s;
}

.social-btn:hover {
    background: var(--surface-h);
    border-color: var(--border-h);
    color: var(--text);
}

/* ===== HOMEPAGE — HERO ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 120px 5% 60px;
    text-align: center; overflow: hidden;
}

.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(77,126,255,0.1);
    border: 1px solid rgba(77,126,255,0.2);
    color: var(--blue); padding: 7px 16px;
    border-radius: 50px; font-size: 13px; font-weight: 600;
    margin-bottom: 28px;
    animation: fadeDown .8s ease both;
}

.hero-tag .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
    font-size: clamp(2.8rem, 6.5vw, 5.5rem);
    max-width: 900px; margin: 0 auto 24px;
    animation: fadeUp .9s ease .15s both;
}

.word-swap {
    display: inline-block;
    min-width: 320px;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity .3s ease;
}

.hero > p {
    font-size: 1.2rem; color: var(--muted);
    max-width: 520px; line-height: 1.8;
    margin: 0 auto 40px;
    animation: fadeUp .9s ease .3s both;
}

.hero-ctas {
    display: flex; gap: 14px; flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp .9s ease .45s both;
}

.hero-scroll-hint {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    color: var(--muted); font-size: 12px;
    animation: fadeUp 1s ease .8s both;
}

.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--muted), transparent);
    animation: scrollDrop 1.5s ease infinite;
}

@keyframes scrollDrop {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== HOMEPAGE — SERVICES TEASER ===== */
.services-teaser { padding: 100px 5%; position: relative; }

.services-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.service-card {
    padding: 36px 28px;
    display: flex; flex-direction: column;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.7; flex: 1; }

.service-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--blue); font-size: 14px; font-weight: 600;
    text-decoration: none; margin-top: 24px;
    transition: gap .2s;
}

.service-link:hover { gap: 10px; }

/* ===== HOMEPAGE — STATS ===== */
.stats-section {
    padding: 80px 5%;
    display: flex; justify-content: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.01);
    position: relative;
}

.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0; max-width: 900px; width: 100%;
}

.stat-item {
    text-align: center; padding: 24px 16px;
    border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-size: 3rem; font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: block;
}

.stat-label { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ===== HOMEPAGE — TESTIMONIALS ===== */
.testimonials { padding: 100px 5%; position: relative; }

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.testi-card {
    padding: 32px;
}

.testi-card.featured {
    background: var(--grad);
    border-color: transparent;
}

.testi-card.featured::before { opacity: 0 !important; }
.testi-card.featured:hover { transform: translateY(-6px); }

.stars { color: #F5A623; font-size: 16px; letter-spacing: 3px; margin-bottom: 16px; }

.testi-card p {
    font-size: 15px; color: var(--text);
    line-height: 1.8; margin-bottom: 24px;
    font-style: italic;
}

.testi-card.featured p { color: rgba(255,255,255,0.9); }

.testi-author { display: flex; align-items: center; gap: 12px; }

.author-av {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: white; flex-shrink: 0;
}

.testi-author strong { display: block; font-size: 14px; color: var(--text); }
.testi-author.featured strong { color: white; }
.testi-author span { font-size: 12px; color: var(--muted); }
.testi-card.featured span { color: rgba(255,255,255,0.7); }

/* ===== HOMEPAGE — CTA ===== */
.home-cta {
    margin: 0 5% 100px;
    background: var(--grad);
    border-radius: 28px;
    padding: 80px 60px;
    text-align: center;
    position: relative; overflow: hidden;
}

.home-cta::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.home-cta h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: white; margin-bottom: 12px; position: relative;
}

.home-cta p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 36px; position: relative; }

.home-cta .btn-primary { background: white; color: #3b60c4; position: relative; }
.home-cta .btn-primary:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.home-cta .btn-ghost { border-color: rgba(255,255,255,0.4); color: white; position: relative; }
.home-cta .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ===== SERVICES PAGE ===== */
.services-page { padding: 80px 5% 100px; }

.services-full-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-full-card {
    padding: 40px 36px;
}

.sfcard-icon { font-size: 2.5rem; margin-bottom: 24px; }
.sfcard-tag {
    display: inline-block;
    background: rgba(77,126,255,0.1); color: var(--blue);
    padding: 4px 12px; border-radius: 50px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 16px;
}

.sfcard-title { font-size: 1.5rem; margin-bottom: 14px; }
.sfcard-desc { color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 28px; }

.sfcard-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }

.sfcard-features li {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: var(--text);
}

.sfcard-features li::before {
    content: '';
    width: 18px; height: 18px; flex-shrink: 0;
    background: rgba(77,126,255,0.15);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='%234D7EFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.sfcard-price {
    font-size: 1.1rem; font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SERVICES PROCESS ===== */
.process-section { padding: 100px 5%; background: var(--bg-2); position: relative; }

.process-steps {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0; margin-top: 56px; position: relative;
}

.process-steps::before {
    content: '';
    position: absolute; top: 32px; left: 12.5%; right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
    z-index: 0;
}

.step {
    text-align: center; padding: 0 20px; position: relative; z-index: 1;
}

.step-num {
    width: 64px; height: 64px;
    background: var(--bg);
    border: 1px solid var(--border-h);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 auto 24px;
    box-shadow: 0 0 0 1px var(--border-h);
}

.step h3 { font-size: 1rem; margin-bottom: 10px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ===== PORTFOLIO PAGE ===== */
.portfolio-section { padding: 80px 5% 100px; }

.filter-bar {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px; font-weight: 600;
    background: var(--surface); color: var(--muted);
    border: 1px solid var(--border);
    cursor: pointer; transition: all .2s;
}

.filter-btn:hover { color: var(--text); border-color: var(--border-h); }

.filter-btn.active {
    background: var(--grad);
    border-color: transparent;
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 280px;
    gap: 20px;
}

.proj-card {
    position: relative; overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    transition: transform .4s ease;
}

.proj-card:hover { transform: scale(1.02); }

.proj-card:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.proj-card:nth-child(2) { grid-column: span 5; }
.proj-card:nth-child(3) { grid-column: span 5; }
.proj-card:nth-child(4) { grid-column: span 4; }
.proj-card:nth-child(5) { grid-column: span 4; }
.proj-card:nth-child(6) { grid-column: span 4; }

.proj-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform .6s ease;
}

.proj-card:hover .proj-bg { transform: scale(1.06); }

.proj-bg-1 { background: linear-gradient(135deg, #1a0533, #4D7EFF); }
.proj-bg-2 { background: linear-gradient(135deg, #0a1a2e, #00D4FF); }
.proj-bg-3 { background: linear-gradient(135deg, #1a0f00, #F5A623); }
.proj-bg-4 { background: linear-gradient(135deg, #0a1a0a, #22c55e); }
.proj-bg-5 { background: linear-gradient(135deg, #1a0533, #9B5DE5); }
.proj-bg-6 { background: linear-gradient(135deg, #1a0a0a, #ef4444); }

.proj-inner {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 28px;
    transition: padding .3s;
}

.proj-card:hover .proj-inner { padding-bottom: 32px; }

.proj-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: white; padding: 4px 10px;
    border-radius: 50px; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 10px; border: 1px solid rgba(255,255,255,0.2);
    align-self: flex-start;
}

.proj-title { font-size: 1.1rem; color: white; margin-bottom: 6px; }
.proj-card:nth-child(1) .proj-title { font-size: 1.6rem; }

.proj-desc { font-size: 13px; color: rgba(255,255,255,0.7); }

.proj-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(77,126,255,0.85);
    opacity: 0; backdrop-filter: blur(4px);
    transition: opacity .3s;
    font-size: 24px; color: white;
}

.proj-card:hover .proj-overlay { opacity: 0.15; }

/* ===== CONTACT PAGE ===== */
.contact-layout {
    display: grid; grid-template-columns: 1fr 1.4fr;
    gap: 80px; align-items: start;
    padding: 80px 5% 100px;
}

.contact-info h2 { font-size: 2rem; margin-bottom: 16px; }
.contact-info > p { color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 40px; }

.contact-details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; }

.contact-detail {
    display: flex; align-items: center; gap: 16px;
}

.detail-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); display: flex; align-items: center;
    justify-content: center; font-size: 18px;
}

.detail-text strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.detail-text span { font-size: 13px; color: var(--muted); }

.contact-socials { display: flex; gap: 10px; }

/* FORM */
.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
}

.form-title { font-size: 1.2rem; margin-bottom: 8px; }
.form-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 32px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field {
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 16px;
}

.field label { font-size: 13px; font-weight: 600; color: var(--text); }

.field input,
.field select,
.field textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 16px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(121,128,160,0.6); }

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue);
    background: rgba(77,126,255,0.05);
    box-shadow: 0 0 0 3px rgba(77,126,255,0.12);
}

.field select option { background: var(--bg-2); color: var(--text); }

.form-budget {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    margin-bottom: 16px;
}

.budget-opt {
    padding: 10px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); text-align: center;
    font-size: 12px; font-weight: 600; color: var(--muted);
    cursor: pointer; transition: all .2s;
    user-select: none;
}

.budget-opt:hover { border-color: var(--border-h); color: var(--text); }
.budget-opt.selected { border-color: var(--blue); color: var(--blue); background: rgba(77,126,255,0.1); }

.form-confirm {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: var(--muted); margin: 20px 0;
    cursor: pointer;
}

.form-confirm input { margin-top: 2px; accent-color: var(--blue); cursor: pointer; }

/* ===== FAQ ===== */
.faq-section { padding: 80px 5% 100px; }

.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-q {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; cursor: pointer;
    font-size: 15px; font-weight: 600;
    transition: background .2s;
}

.faq-q:hover { background: var(--surface); }

.faq-icon {
    width: 24px; height: 24px; flex-shrink: 0;
    border: 1px solid var(--border); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--blue);
    transition: transform .3s;
}

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

.faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
}

.faq-item.open .faq-a { max-height: 200px; }

.faq-a p {
    padding: 0 24px 20px;
    font-size: 14px; color: var(--muted); line-height: 1.8;
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .services-full-grid { grid-template-columns: 1fr; }
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 220px;
    }
    .proj-card:nth-child(n) { grid-column: span 1; grid-row: span 1; }
    .proj-card:nth-child(1) { grid-column: span 2; grid-row: span 1; }
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    nav { display: none; }
    header.nav-open nav { display: flex; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2.4rem; }
    .word-swap { min-width: auto; display: block; }
    .services-teaser-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
    .testi-grid { grid-template-columns: 1fr; }
    .testi-card.featured { transform: none; }
    .home-cta { padding: 48px 28px; margin: 0 4% 60px; }
    .process-steps { grid-template-columns: 1fr 1fr; gap: 32px; }
    .process-steps::before { display: none; }
    .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .proj-card:nth-child(n) { grid-column: span 1; }
    .faq-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .form-budget { grid-template-columns: repeat(2, 1fr); }
    .page-hero { padding: 130px 5% 60px; }
}