/* ============================================================
   Tchaditech Services — 3D Homepage (Light brand theme)
   Palette & tokens: Brand Identity v1.0
   Azur #3D87E8 · Azur Profond #1E5FB0 · Ambre Sahel #F2A93B
   ============================================================ */
:root {
    --primary: #3D87E8;
    --primary-dark: #1E5FB0;
    --primary-light: #A8CBF5;
    --primary-50: #ECF3FD;
    --primary-100: #D6E6FB;
    --accent: #F2A93B;
    --accent-600: #D88E22;
    --ink: #0E1A2B;
    --slate: #5A6B7B;
    --bg: #F7F9FC;
    --surface: #FFFFFF;
    --success: #2FB57A;
    --border: #DCE2EB;
    --gradient: linear-gradient(135deg, #3D87E8 0%, #1E5FB0 100%);
    --shadow-sm: 0 1px 2px rgba(14, 26, 43, 0.08);
    --shadow-md: 0 4px 12px rgba(14, 26, 43, 0.10);
    --shadow-lg: 0 12px 32px rgba(14, 26, 43, 0.14);
    --radius: 20px;
    --font-display: 'Poppins', 'Montserrat', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Open Sans', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(1100px 700px at 88% -8%, rgba(61, 135, 232, 0.14), transparent 60%),
        radial-gradient(900px 650px at -8% 42%, rgba(168, 203, 245, 0.28), transparent 60%),
        radial-gradient(850px 600px at 75% 108%, rgba(242, 169, 59, 0.10), transparent 60%),
        var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.65;
}

.container { width: min(1200px, 92%); margin-inline: auto; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.18; color: var(--ink); }

.gradient-text {
    background: linear-gradient(92deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Card surface (was dark glass — now clean light panel) */
.glass {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

/* ---------- 3D canvas ---------- */
#bg3d {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
main, footer, nav { position: relative; z-index: 1; }

/* ---------- Preloader ---------- */
#preloader {
    position: fixed; inset: 0; z-index: 100;
    background: var(--bg);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
    transition: opacity 0.6s ease, visibility 0.6s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { position: relative; width: 116px; height: 116px; }
.preloader-logo {
    position: absolute; inset: 24px; width: 68px; height: 68px;
    object-fit: contain; animation: pulse 1.6s ease-in-out infinite;
}
.preloader-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 3px solid var(--primary-100);
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}
.preloader-text { color: var(--slate); font-size: 0.88rem; letter-spacing: 0.12em; text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.9); opacity: 0.7; } }

/* ---------- Scroll progress ---------- */
#scrollProgress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--accent));
    z-index: 60;
    box-shadow: 0 0 10px rgba(61, 135, 232, 0.6);
}

/* ---------- Navigation ---------- */
#mainNav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}
#mainNav.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: var(--ink); }
.brand em { font-style: normal; color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) {
    color: var(--slate); text-decoration: none; font-weight: 500; font-size: 0.95rem;
    position: relative; padding: 4px 0; transition: color 0.3s;
}
.nav-links a:not(.btn)::after {
    content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
    background: var(--gradient);
    transition: width 0.3s ease; border-radius: 2px;
}
.nav-links a:not(.btn):hover, .nav-links a:not(.btn).active { color: var(--ink); }
.nav-links a:not(.btn):hover::after, .nav-links a:not(.btn).active::after { width: 100%; }

#langToggle {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 999px; cursor: pointer;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--primary-dark); font-family: var(--font-body); font-weight: 700; font-size: 0.85rem;
    transition: all 0.3s; box-shadow: var(--shadow-sm);
}
#langToggle:hover { border-color: var(--primary); background: var(--primary-50); transform: translateY(-1px); }

#menuBtn { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; cursor: pointer; flex-direction: column; gap: 5px; box-shadow: var(--shadow-sm); }
#menuBtn span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
#menuBtn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menuBtn.open span:nth-child(2) { opacity: 0; }
#menuBtn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 30px; border-radius: 14px; border: none; cursor: pointer;
    font-family: var(--font-body); font-weight: 600; font-size: 1rem;
    text-decoration: none; transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s;
}
.btn-primary {
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 8px 24px rgba(61, 135, 232, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(30, 95, 176, 0.4); }
.btn-ghost {
    color: var(--primary-dark); background: var(--surface);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--primary); background: var(--primary-50); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding: 110px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: center; }
/* copy on the left, stats as a vertical rail beside it */
.hero-content { display: flex; align-items: center; gap: 44px; }
.hero-copy { flex: 1; min-width: 0; }
.badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 22px; border-radius: 999px;
    background: var(--primary-50); border: 1px solid var(--primary-100);
    color: var(--primary-dark); font-weight: 600; font-size: 0.9rem;
}
.badge i { color: var(--accent-600); }
.hero h1 { font-size: clamp(2.8rem, 6.5vw, 4.8rem); font-weight: 800; margin: 18px 0 6px; letter-spacing: -0.02em; }
.tagline { font-size: clamp(1.2rem, 2.6vw, 1.65rem); color: var(--accent-600); font-family: var(--font-display); font-style: italic; font-weight: 400; margin-bottom: 16px; }
.lead { font-size: 1.08rem; color: var(--slate); max-width: 560px; margin-bottom: 28px; }
.lead strong { color: var(--primary-dark); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-stats {
    display: flex; flex-direction: column; gap: 26px; flex-shrink: 0;
    padding-left: 36px; border-left: 2px solid var(--primary-100);
}
.stat { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; max-width: 150px; }
.stat-num, .stat-plus {
    font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; display: inline;
    background: linear-gradient(92deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat small { width: 100%; color: var(--slate); font-size: 0.88rem; margin-top: 4px; }

/* floating chips around the 3D globe */
.hero-visual { position: relative; height: 480px; }
.orbit-chip {
    position: absolute;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.9); border: 1px solid var(--border);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    font-weight: 600; font-size: 0.92rem; white-space: nowrap; color: var(--ink);
    box-shadow: var(--shadow-md);
    animation: float 6s ease-in-out infinite;
}
.orbit-chip i { color: var(--primary); }
.chip-1 { top: 6%; left: 22%; animation-delay: 0s; }
.chip-2 { top: 34%; right: 0; animation-delay: 1.5s; }
.chip-3 { bottom: 12%; left: 8%; animation-delay: 3s; }
.chip-4 { bottom: 30%; right: 10%; animation-delay: 4.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.float-anim { animation: float 5s ease-in-out infinite; }

.scroll-hint {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--slate); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
    animation: float 2.4s ease-in-out infinite;
}
.scroll-hint:hover { color: var(--primary-dark); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 70px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 22px; border-radius: 999px; margin-bottom: 20px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--primary-dark); font-weight: 600; font-size: 0.88rem;
    box-shadow: var(--shadow-sm);
}
.eyebrow i { color: var(--accent-600); }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; margin-bottom: 16px; }
.section-head p { color: var(--slate); font-size: 1.1rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; margin-bottom: 90px; }
.about-grid h3 { font-size: 2rem; margin-bottom: 18px; }
.mission-text { color: var(--slate); font-size: 1.05rem; margin-bottom: 28px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature {
    display: flex; align-items: center; gap: 12px; padding: 15px 18px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    font-weight: 500; font-size: 0.95rem; color: var(--ink);
    box-shadow: var(--shadow-sm); transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.feature:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary-light); }
.feature i { color: var(--primary); font-size: 1.1rem; }

.about-card { padding: 44px 36px; text-align: center; }
.about-logo { width: 130px; height: 110px; object-fit: contain; margin-bottom: 18px; filter: drop-shadow(0 8px 18px rgba(61, 135, 232, 0.35)); }
.about-card h4 { font-size: 1.4rem; margin-bottom: 4px; }
.about-card > p { color: var(--slate); margin-bottom: 20px; }
.about-badges { display: flex; flex-direction: column; gap: 10px; }
.about-badges span {
    padding: 10px; border-radius: 12px; font-size: 0.9rem; font-weight: 500; color: var(--primary-dark);
    background: var(--primary-50); border: 1px solid var(--primary-100);
}
.about-badges i { color: var(--accent-600); margin-right: 8px; }

/* Timeline */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 36px; }
.timeline::before {
    content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark), var(--accent));
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-dot {
    position: absolute; left: -36px; top: 26px; width: 19px; height: 19px; border-radius: 50%;
    background: var(--primary); border: 4px solid var(--bg);
    box-shadow: 0 0 0 2px var(--primary-light), 0 4px 10px rgba(61, 135, 232, 0.4);
}
.timeline-card { padding: 28px 32px; transition: transform 0.3s; }
.timeline-year { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--accent-600); }
.timeline-card h4 { margin: 6px 0 10px; font-size: 1.25rem; }
.timeline-card p { color: var(--slate); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 44px; }
.service-card { position: relative; padding: 38px 32px; display: flex; flex-direction: column; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.service-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-lg); }
.service-card.featured { border: 2px solid var(--accent); }
.featured-badge {
    position: absolute; top: -14px; right: 20px;
    padding: 7px 16px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-600));
    box-shadow: 0 6px 16px rgba(242, 169, 59, 0.45);
}
.service-icon {
    width: 64px; height: 64px; border-radius: 18px; margin-bottom: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff;
    background: linear-gradient(135deg, var(--ic), color-mix(in srgb, var(--ic) 65%, #0E1A2B));
    box-shadow: 0 10px 22px color-mix(in srgb, var(--ic) 35%, transparent);
}
.service-card h4 { font-size: 1.35rem; margin-bottom: 12px; }
.service-card > p { color: var(--slate); margin-bottom: 20px; font-size: 0.98rem; }
.service-card ul { list-style: none; margin-bottom: 26px; flex-grow: 1; }
.service-card li { position: relative; padding: 5px 0 5px 22px; color: var(--slate); font-size: 0.93rem; }
.service-card li::before {
    content: ''; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border-radius: 50%;
    background: var(--ic, var(--primary));
}
.card-link { color: var(--primary); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.25s, color 0.25s; }
.card-link:hover { gap: 14px; color: var(--primary-dark); }

/* Remaining services pills */
.more-services { text-align: center; margin-bottom: 64px; }
.more-services h5 { font-size: 1.05rem; color: var(--slate); margin-bottom: 18px; font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 10px 20px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--ink); font-weight: 500; font-size: 0.9rem;
    box-shadow: var(--shadow-sm); transition: all 0.3s;
}
.pill:hover { border-color: var(--primary); background: var(--primary-50); transform: translateY(-2px); }
.pill i { color: var(--primary); }

/* CTA band */
.cta-band {
    display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
    padding: 40px 48px;
    background: var(--gradient); border: none;
}
.cta-band h3 { font-size: 1.5rem; margin-bottom: 6px; color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); }
.cta-band .btn-primary {
    background: #fff; color: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(14, 26, 43, 0.25);
}
.cta-band .btn-primary:hover { background: var(--primary-50); }

/* ---------- Portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.portfolio-card { overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.portfolio-card:hover { box-shadow: var(--shadow-lg); }
.portfolio-thumb {
    position: relative; height: 210px;
    background: linear-gradient(135deg, var(--pc1), var(--pc2));
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid var(--border);
}
.portfolio-thumb img { width: 110px; height: 110px; object-fit: contain; transition: transform 0.4s; }
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.12); }
/* real site screenshot: fill the whole thumb, anchored to the top */
.portfolio-thumb.photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.portfolio-card:hover .portfolio-thumb.photo img { transform: scale(1.05); }
.status-badge {
    position: absolute; top: 14px; right: 14px;
    padding: 6px 14px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; color: #fff;
    background: var(--success); box-shadow: 0 4px 12px rgba(47, 181, 122, 0.4);
}
.status-badge.custom {
    background: linear-gradient(135deg, var(--accent), var(--accent-600));
    box-shadow: 0 4px 12px rgba(242, 169, 59, 0.45);
}
.portfolio-body { padding: 28px; }
.portfolio-body h4 { font-size: 1.22rem; margin-bottom: 10px; }
.portfolio-body > p { color: var(--slate); font-size: 0.95rem; margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tags span {
    padding: 5px 13px; border-radius: 999px; font-size: 0.78rem; font-weight: 500;
    background: var(--primary-50); border: 1px solid var(--primary-100); color: var(--primary-dark);
}

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 56px; }
.testimonial { padding: 34px 30px; display: flex; flex-direction: column; }
.stars { color: var(--accent); margin-bottom: 18px; display: flex; gap: 4px; }
.testimonial > p { color: var(--slate); font-style: italic; flex-grow: 1; margin-bottom: 24px; }
.testimonial footer { display: flex; align-items: center; gap: 14px; }
.avatar {
    width: 48px; height: 48px; border-radius: 50%; color: #fff;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--ac), color-mix(in srgb, var(--ac) 60%, #0E1A2B));
}
.testimonial strong { display: block; font-size: 1rem; color: var(--ink); }
.testimonial small { color: var(--slate); }

.trust-band { display: flex; justify-content: center; gap: 70px; padding: 36px; flex-wrap: wrap; }
.trust-item { text-align: center; }
.trust-item span { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; display: block; }
.trust-item small { color: var(--slate); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 28px; align-items: start; }
#contactForm { padding: 42px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px 16px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--ink); font-family: var(--font-body); font-size: 0.98rem;
    transition: border-color 0.3s, box-shadow 0.3s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 4px rgba(61, 135, 232, 0.15);
}
.form-group textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }
#formStatus { margin-top: 16px; font-weight: 600; text-align: center; min-height: 1.4em; }
#formStatus.ok { color: var(--success); }
#formStatus.err { color: #E05252; }

.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-card { display: flex; gap: 18px; align-items: center; padding: 22px 24px; }
.info-card > i {
    width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #fff;
    background: var(--gradient);
}
.info-card > i.fa-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); }
.info-card h5 { font-size: 1.02rem; margin-bottom: 2px; }
.info-card p, .info-card a { color: var(--slate); font-size: 0.95rem; text-decoration: none; }
.info-card a:hover { color: var(--primary-dark); }
.socials-card { justify-content: center; }
.socials { display: flex; gap: 14px; }
.socials a {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--slate); text-decoration: none; transition: all 0.3s; box-shadow: var(--shadow-sm);
}
.socials a:hover { color: #fff; background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { max-width: 240px; width: 100%; height: auto; margin-bottom: 16px; }
.footer h6 { font-size: 1rem; margin-bottom: 18px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--slate); text-decoration: none; transition: color 0.3s; font-size: 0.95rem; }
.footer a:hover { color: var(--primary); }
.footer p { color: var(--slate); font-size: 0.95rem; }
.footer-contact i { color: var(--primary); width: 20px; margin-right: 6px; }
.footer-contact li { color: var(--slate); font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; text-align: center; background: var(--bg); }
.footer-bottom p { font-size: 0.88rem; }
.footer-bottom em { color: var(--accent-600); }
.legal-links {
    margin-top: 12px;
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 2px 2px;
}
.legal-links a {
    color: var(--slate); font-weight: 500; font-size: 0.85rem;
    text-decoration: none; padding: 5px 12px; border-radius: 999px;
    transition: color 0.25s, background-color 0.25s;
}
.legal-links a:hover { color: var(--primary-dark); background: var(--primary-50); }
.legal-links span { color: var(--border); font-size: 0.5rem; }

/* ---------- WhatsApp floating button ---------- */
#whatsappBtn {
    position: fixed; bottom: 28px; right: 28px; z-index: 45;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff; font-size: 1.8rem; text-decoration: none;
    box-shadow: 0 10px 26px rgba(18, 140, 126, 0.45);
    transition: transform 0.3s;
}
#whatsappBtn::before {
    content: ''; position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.5);
    animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.35); opacity: 0; }
}
#whatsappBtn:hover { transform: scale(1.08); }
.wa-tooltip {
    position: absolute; right: 72px; top: 50%; transform: translateY(-50%) translateX(8px);
    background: var(--ink); color: #fff; font-size: 0.82rem; font-weight: 600;
    padding: 8px 14px; border-radius: 10px; white-space: nowrap;
    opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
#whatsappBtn:hover .wa-tooltip { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }

/* ---------- Back to top (stacked above WhatsApp) ---------- */
#backToTop {
    position: fixed; bottom: 102px; right: 32px; z-index: 40;
    width: 52px; height: 52px; border-radius: 14px; border: none; cursor: pointer;
    background: var(--gradient); color: #fff; font-size: 1.1rem;
    box-shadow: 0 10px 24px rgba(61, 135, 232, 0.4);
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { transform: translateY(-4px); }

/* ---------- Reveal animations ----------
   Hidden state only applies when JS is running (html.js is set by an
   inline script) so content is never lost if a script fails to load. */
.reveal { transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
html.js .reveal { opacity: 0; transform: translateY(36px); }
html.js .reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; } .delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.55s; }

/* tilt (transform is driven by JS) */
.tilt-card { transform-style: preserve-3d; will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services-grid, .portfolio-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
}
@media (max-width: 900px) {
    /* stats fall back under the copy as a horizontal row */
    .hero-content { flex-direction: column; align-items: flex-start; gap: 36px; }
    .hero-stats {
        flex-direction: row; flex-wrap: wrap; gap: 32px;
        padding-left: 0; border-left: none;
        padding-top: 24px; border-top: 2px solid var(--primary-100);
        width: 100%;
    }
}
@media (max-width: 768px) {
    .nav-links {
        position: absolute; top: calc(100% + 10px); left: 4%; right: 4%;
        flex-direction: column; align-items: stretch; gap: 6px; padding: 22px;
        background: rgba(255, 255, 255, 0.98); border: 1px solid var(--border); border-radius: 18px;
        box-shadow: var(--shadow-lg);
        opacity: 0; visibility: hidden; transform: translateY(-12px);
        transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    }
    .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-links a:not(.btn) { padding: 10px 6px; }
    #langToggle { justify-content: center; }
    #menuBtn { display: flex; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .services-grid, .portfolio-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .feature-list { grid-template-columns: 1fr; }
    .cta-band { flex-direction: column; text-align: center; padding: 32px 26px; }
    .trust-band { gap: 36px; }
    .hero-stats { gap: 24px; }
    #contactForm { padding: 28px 22px; }
    .section { padding: 80px 0; }
    #whatsappBtn { bottom: 20px; right: 20px; width: 54px; height: 54px; font-size: 1.6rem; }
    #backToTop { bottom: 88px; right: 23px; width: 48px; height: 48px; }
    .section::before { width: 240px; height: 240px; filter: blur(60px); }
}

/* ---------- Effects pack ---------- */
/* Shine sweep on primary buttons */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: ''; position: absolute; top: 0; left: -80%; width: 45%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine {
    0%, 55% { left: -80%; }
    85%, 100% { left: 140%; }
}

/* Animated shimmer on the hero headline */
.hero h1 .gradient-text {
    background-image: linear-gradient(92deg, var(--primary), var(--primary-dark) 40%, var(--primary-light) 55%, var(--primary) 70%);
    background-size: 250% auto;
    animation: gradientShift 7s linear infinite;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 250% 50%; }
}

/* Cursor-following spotlight on cards (class added by JS) */
.spot { position: relative; }
.spot::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    opacity: 0; transition: opacity 0.35s;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(61, 135, 232, 0.13), transparent 65%);
}
.spot:hover::after { opacity: 1; }

/* Soft animated blobs behind sections
   (overflow hidden keeps them from creating horizontal scroll on mobile) */
.section { position: relative; overflow: hidden; }
.section > .container { position: relative; z-index: 1; }
.section::before {
    content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
    filter: blur(80px); opacity: 0.45; z-index: 0; pointer-events: none;
    animation: blobFloat 16s ease-in-out infinite;
}
#about::before { background: var(--primary-light); top: 6%; right: -140px; }
#services::before { background: #FAD691; bottom: 8%; left: -160px; animation-delay: 3s; }
#portfolio::before { background: var(--primary-light); top: 18%; left: -140px; animation-delay: 6s; }
#testimonials::before { background: #FDEAC7; bottom: 4%; right: -120px; animation-delay: 2s; }
#contact::before { background: var(--primary-100); top: 8%; right: -160px; animation-delay: 5s; }
@keyframes blobFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-46px) scale(1.14); }
}

/* Technology marquee */
.tech-strip {
    position: relative; z-index: 1;
    padding: 22px 0 26px;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}
.tech-strip h6 {
    text-align: center; margin-bottom: 16px;
    font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--slate); font-weight: 600;
}
.marquee { display: flex; width: max-content; }
.marquee-group {
    display: flex; align-items: center; gap: 56px; padding-right: 56px;
    animation: marqueeScroll 34s linear infinite;
}
.tech-strip:hover .marquee-group { animation-play-state: paused; }
.marquee-group span {
    display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
    color: var(--slate); font-weight: 600; font-size: 0.98rem;
}
.marquee-group i { font-size: 1.5rem; color: var(--primary); }
@keyframes marqueeScroll { to { transform: translateX(-100%); } }

/* ---------- FAQ accordion ---------- */
#faq::before { background: var(--primary-light); top: 12%; left: -150px; animation-delay: 4s; }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { padding: 0; overflow: hidden; transition: box-shadow 0.3s, border-color 0.3s; }
.faq-item[open] { border-color: var(--primary-light); box-shadow: var(--shadow-lg); }
.faq-item summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 22px 28px;
    font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink);
    transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary-dark); }
.faq-item summary i {
    flex-shrink: 0; color: var(--primary);
    transition: transform 0.35s ease;
}
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-item > p {
    padding: 0 28px 24px; margin: 0;
    color: var(--slate); font-size: 0.98rem; line-height: 1.7;
}

/* Timeline dots pop in when their card reveals */
.timeline-item.visible .timeline-dot {
    animation: dotPop 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) both;
    animation-delay: 0.35s;
}
@keyframes dotPop { from { transform: scale(0); } to { transform: scale(1); } }

/* Satellite badge wiggle */
.badge i { display: inline-block; animation: wiggle 3.2s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes wiggle {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(14deg); }
    60% { transform: rotate(-10deg); }
}

/* ---------- Legal / secondary pages ---------- */
.legal-page { background: var(--bg); }
/* Same #mainNav as index.php, but forced solid: the hero right below is a
   solid gradient, not a light section, so a transparent nav would be unreadable. */
.legal-page #mainNav {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
}

.legal-hero {
    background: var(--gradient);
    padding: 140px 0 56px;
    color: #fff;
}
.breadcrumb {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.88rem; margin-bottom: 22px; color: rgba(255, 255, 255, 0.75);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i.fa-chevron-right { font-size: 0.65rem; }
.legal-hero h1 {
    color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700;
    display: flex; align-items: center; gap: 18px; margin-bottom: 12px;
}
.legal-hero h1 i { font-size: 0.75em; opacity: 0.9; }
.legal-hero p { color: rgba(255, 255, 255, 0.85); max-width: 720px; font-size: 1.05rem; margin-bottom: 18px; }
.update-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
    background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.25); color: #fff;
}

.legal-wrap {
    display: grid; grid-template-columns: 270px 1fr; gap: 36px;
    align-items: start; padding: 48px 0 90px;
}
.toc { position: sticky; top: 96px; padding: 22px; }
.toc h5 { font-size: 0.95rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.toc h5 i { color: var(--primary); }
.toc a {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 10px; border-left: 2px solid transparent;
    color: var(--slate); text-decoration: none; font-size: 0.88rem; font-weight: 500;
    transition: all 0.25s;
}
.toc a:hover, .toc a.active { color: var(--primary-dark); background: var(--primary-50); border-left-color: var(--primary); }
.toc-num {
    width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-100); color: var(--primary-dark);
    font-size: 0.72rem; font-weight: 700;
}

.legal-content { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.legal-card { padding: 34px 38px; scroll-margin-top: 96px; }
.legal-card h2 {
    font-size: 1.35rem; margin-bottom: 16px;
    display: flex; align-items: center; gap: 14px;
}
.legal-card h2 .num {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gradient); color: #fff; font-size: 0.95rem;
}
.legal-card p, .legal-card li { color: var(--slate); font-size: 0.98rem; }
.legal-card p { margin-bottom: 12px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card ul { padding-left: 22px; margin-bottom: 12px; }
.legal-card ul:last-child { margin-bottom: 0; }
.legal-card li { margin-bottom: 8px; }
.legal-card strong { color: var(--ink); }
.legal-card a { color: var(--primary); text-decoration: none; font-weight: 500; }
.legal-card a:hover { color: var(--primary-dark); text-decoration: underline; }
.legal-card code {
    background: var(--primary-50); border: 1px solid var(--primary-100);
    padding: 2px 8px; border-radius: 6px; font-size: 0.88em; color: var(--primary-dark);
}
.fact-list { list-style: none; padding-left: 0 !important; }
.fact-list li { padding: 9px 0; border-bottom: 1px dashed var(--border); }
.fact-list li:last-child { border-bottom: none; }

.table-scroll { overflow-x: auto; margin-bottom: 12px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.legal-table th {
    text-align: left; padding: 12px 14px; color: #fff;
    background: var(--gradient); font-weight: 600;
}
.legal-table th:first-child { border-radius: 10px 0 0 0; }
.legal-table th:last-child { border-radius: 0 10px 0 0; }
.legal-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--slate); }
.legal-table tr:nth-child(even) td { background: var(--primary-50); }

@media (max-width: 900px) {
    .legal-wrap { grid-template-columns: 1fr; }
    .toc { position: static; }
    .legal-card { padding: 26px 22px; }
}

/* ---------- 404 page ---------- */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.error-wrap { text-align: center; padding: 40px 24px; max-width: 640px; }
.error-logo { width: 110px; height: 90px; object-fit: contain; margin-bottom: 8px; filter: drop-shadow(0 10px 24px rgba(61, 135, 232, 0.35)); }
.error-code { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 9rem); font-weight: 800; line-height: 1; }
.error-wrap h2 { font-size: 1.6rem; margin: 6px 0 14px; }
.error-wrap p { color: var(--slate); margin-bottom: 30px; }
.error-en { font-size: 0.92em; opacity: 0.8; font-style: italic; }
.error-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.error-motto { color: var(--slate); font-size: 0.9rem; }
.error-motto .brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); }
.error-motto em { color: var(--accent-600); font-style: italic; font-weight: 400; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html.js .reveal { opacity: 1; transform: none; }
}
