/* ============================================================
   MarsX — Cybersecurity Professional Website
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #00d4aa;
    --primary-dark: #00b892;
    --primary-light: #5effd8;
    --accent: #0ea5e9;
    --accent-dark: #0284c7;

    /* Dark theme (default) */
    --bg: #0a1628;
    --bg-alt: #0f1d35;
    --bg-card: #112240;
    --bg-dark: #020617;

    --text: #e2e8f0;
    --text-light: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #e2e8f0;

    --border: rgba(255,255,255,.08);
    --border-light: rgba(255,255,255,.05);

    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow: 0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,.4), 0 2px 4px rgba(0,0,0,.3);
    --shadow-lg: 0 10px 15px rgba(0,0,0,.5), 0 4px 6px rgba(0,0,0,.3);
    --shadow-xl: 0 20px 25px rgba(0,0,0,.5), 0 10px 10px rgba(0,0,0,.3);
    --shadow-glow: 0 0 30px rgba(0,212,170,.12);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', monospace;

    --transition: 0.25s cubic-bezier(.4,0,.2,1);
    --transition-slow: 0.4s cubic-bezier(.4,0,.2,1);

    --header-height: 70px;
    --max-width: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Section ---------- */
.section { padding: 100px 0; }

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1;
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary);
    color: #0a1628;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(0,212,170,.35);
}

.btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,212,170,.5);
}

.btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.4);
}

.btn--outline:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.8);
    transform: translateY(-2px);
}

.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: rgba(10,22,40,.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,212,170,.1);
    transition: all var(--transition);
}

.header.scrolled {
    border-bottom-color: rgba(0,212,170,.2);
    box-shadow: 0 1px 20px rgba(0,0,0,.3);
}

.nav {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.nav__logo i { color: var(--primary); font-size: 1.5rem; }

.nav__menu { display: flex; align-items: center; gap: 8px; }

.nav__link {
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,.7);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.nav__link:hover, .nav__link.active {
    color: var(--primary);
    background: rgba(0,212,170,.1);
}

.nav__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Language toggle */
.nav__lang {
    font-family: var(--font-mono);
    font-size: .78rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0,212,170,.12);
    border: 1px solid rgba(0,212,170,.3);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    cursor: pointer;
    letter-spacing: .04em;
    transition: all var(--transition);
    line-height: 1;
}

.nav__lang:hover {
    background: rgba(0,212,170,.2);
    border-color: var(--primary);
    color: var(--primary-light);
}

/* Theme toggle switch */
.nav__theme {
    background: none; border: none; padding: 0;
    cursor: pointer; display: flex; align-items: center;
}

.theme-toggle__track {
    width: 44px; height: 24px;
    border-radius: 12px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
    display: flex; align-items: center;
    padding: 2px;
    transition: all var(--transition);
}

.theme-toggle__thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fbbf24;
    transition: all var(--transition);
    transform: translateX(0);
}

.nav__theme:hover .theme-toggle__track { border-color: rgba(255,255,255,.4); }

/* Hamburger */
.nav__toggle {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #fff;
    padding: 4px;
}

/* ---------- Mobile Navigation ---------- */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--bg-dark);
        padding: 90px 24px 24px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-slow);
        z-index: 999;
    }

    .nav__menu.show { right: 0; }

    .nav__link { padding: 12px 16px; font-size: 1.05rem; }

    .nav__toggle { display: block; z-index: 1001; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 80px;
    color: #fff;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #020617 0%, #0a1628 25%, #0f1d35 50%, #112240 75%, #0a1628 100%);
    z-index: -3;
}

.hero__bg::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 25% 30%, rgba(0,212,170,.12) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 60%, rgba(14,165,233,.1) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(0,212,170,.06) 0%, transparent 40%);
}

.hero__bg::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0,212,170,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,170,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero__content { position: relative; z-index: 1; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,212,170,.1);
    border: 1px solid rgba(0,212,170,.25);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 600;
    font-family: var(--font-mono);
    margin-bottom: 28px;
    letter-spacing: .05em;
}

.hero__title {
    font-size: clamp(1.8rem, 5vw, 3.75rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    line-height: 1.15;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(.95rem, 2vw, 1.2rem);
    font-weight: 500;
    opacity: .85;
    margin-bottom: 20px;
    line-height: 1.6;
    color: rgba(255,255,255,.85);
}

.hero__description {
    font-size: clamp(.9rem, 1.5vw, 1.02rem);
    max-width: 640px;
    margin: 0 auto 36px;
    opacity: .65;
    line-height: 1.7;
}

.hero__actions {
    display: flex; gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero__stats {
    display: flex; justify-content: center;
    gap: clamp(20px, 5vw, 56px);
    flex-wrap: wrap;
}

.hero__stat { text-align: center; }

.hero__stat-number {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 6px;
    color: var(--primary);
    font-family: var(--font-mono);
}

.hero__stat-label {
    font-size: .85rem;
    opacity: .55;
    letter-spacing: .03em;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.4);
    font-size: 1.2rem;
    animation: bounce 2s ease infinite;
    transition: color var(--transition);
}

.hero__scroll:hover { color: var(--primary); }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about__text h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.about__text p { color: var(--text-light); margin-bottom: 16px; font-size: 1.02rem; }

.about__highlights { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }

.about__highlight { display: flex; gap: 14px; align-items: flex-start; }

.about__highlight i {
    font-size: 1.2rem; color: var(--primary-dark);
    margin-top: 2px; flex-shrink: 0; width: 20px; text-align: center;
}

.about__highlight strong { display: block; color: var(--text); font-size: .97rem; margin-bottom: 2px; }
.about__highlight p { font-size: .9rem; margin: 0; }

.about__skills h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }

.skills__grid { display: flex; flex-direction: column; gap: 16px; }
.skill__item { display: flex; flex-direction: column; gap: 6px; }
.skill__name { font-size: .9rem; font-weight: 600; color: var(--text); }

.skill__bar { height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.skill__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--bg-alt); }

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.service__card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service__card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition);
}

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

.service__card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(0,212,170,.2);
}

.service__icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(0,212,170,.1), rgba(14,165,233,.1));
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.service__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.service__desc { font-size: .93rem; color: var(--text-light); margin-bottom: 18px; line-height: 1.6; }

.service__list { display: flex; flex-direction: column; gap: 8px; }

.service__list li {
    font-size: .88rem; color: var(--text-light);
    padding-left: 18px; position: relative;
}

.service__list li::before {
    content: '';
    position: absolute; left: 0; top: 9px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* ============================================================
   CASES
   ============================================================ */
.cases__grid { display: flex; flex-direction: column; gap: 24px; }

.case__card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    display: grid;
    grid-template-columns: 140px 1fr;
    overflow: hidden;
    transition: all var(--transition);
}

.case__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0,212,170,.15);
}

.case__icon {
    background: linear-gradient(160deg, #0a1628, #112240);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.8rem;
    color: var(--primary);
}

.case__info { padding: 28px 32px; }

.case__tag {
    display: inline-block;
    font-size: .78rem; font-weight: 600;
    color: var(--primary-dark);
    background: rgba(0,212,170,.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.case__info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }

.case__stats {
    display: flex; gap: 28px;
    margin-bottom: 12px;
    padding: 14px 18px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.case__stats strong {
    font-family: var(--font-mono);
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.case__stats span { font-size: .85rem; color: var(--text-light); }

.case__info > p { font-size: .93rem; color: var(--text-light); margin-bottom: 14px; line-height: 1.6; }

.case__tech { display: flex; flex-wrap: wrap; gap: 8px; }

.case__tech span {
    font-size: .78rem; font-weight: 500;
    color: var(--text-light);
    background: var(--bg-alt);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--bg-alt); }

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.testimonial__card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.testimonial__stars { color: #f59e0b; margin-bottom: 16px; font-size: .95rem; }

.testimonial__text {
    font-size: 1rem; color: var(--text);
    font-style: italic;
    margin-bottom: 18px;
    line-height: 1.7;
    position: relative;
}

.testimonial__text::before {
    content: '"'; font-size: 3rem;
    color: var(--primary-light);
    position: absolute; top: -18px; left: -8px;
    opacity: .15; line-height: 1;
}

.testimonial__author { font-size: .9rem; color: var(--text-light); }
.testimonial__author strong { color: var(--text); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.contact__info h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.contact__info > p { color: var(--text-light); margin-bottom: 28px; }

.contact__items { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }

.contact__item { display: flex; gap: 14px; align-items: flex-start; }

.contact__item i {
    font-size: 1.15rem; color: var(--primary-dark);
    margin-top: 3px; width: 18px; text-align: center; flex-shrink: 0;
}

.contact__item strong { display: block; font-size: .88rem; color: var(--text); margin-bottom: 2px; }
.contact__item span { font-size: .93rem; color: var(--text-light); }

/* Form */
.contact__form {
    background: var(--bg-card);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.form__group { margin-bottom: 20px; }

.form__group label {
    display: block; font-size: .9rem;
    font-weight: 600; margin-bottom: 8px; color: var(--text);
}

.form__group input,
.form__group textarea,
.form__group select {
    width: 100%;
    padding: 12px 16px;
    font-size: .95rem; font-family: var(--font);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    transition: all var(--transition);
    outline: none;
}

.form__group select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,212,170,.12);
}

.form__group textarea { resize: vertical; min-height: 120px; }
.contact__form .btn { margin-top: 4px; }

.form__note {
    text-align: center; font-size: .82rem;
    color: var(--text-muted); margin-top: 14px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}

.form__note i { font-size: .75rem; color: var(--primary-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-dark);
    color: var(--text-inverse);
    padding: 60px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer__brand p {
    color: var(--text-muted); font-size: .93rem;
    margin-top: 14px; max-width: 340px; line-height: 1.6;
}

.footer__logo { font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; gap: 10px; color: #fff; }
.footer__logo i { color: var(--primary); }

.footer__links h4 {
    font-size: .85rem; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 18px;
    color: var(--text-muted);
}

.footer__links ul { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: var(--text-muted); font-size: .93rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--primary); }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 20px 0; text-align: center;
    font-size: .88rem; color: var(--text-muted);
}

/* ============================================================
   SCROLL TOP
   ============================================================ */
.scroll-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 46px; height: 46px;
    background: var(--primary);
    color: #0a1628;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md), 0 0 20px rgba(0,212,170,.3);
    transition: all var(--transition);
    opacity: 0; visibility: hidden;
    transform: translateY(12px);
    z-index: 99;
}

.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0,212,170,.4);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1),
                transform 0.7s cubic-bezier(.4,0,.2,1);
}

.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.nav__overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 998;
}

.nav__overlay.show { display: block; }

/* ============================================================
   LIGHT THEME
   ============================================================ */
[data-theme="light"] {
    --bg: #ffffff;
    --bg-alt: #f1f5f9;
    --bg-card: #ffffff;
    --bg-dark: #1e293b;
    --text: #0f172a;
    --text-light: #475569;
    --text-muted: #64748b;
    --text-inverse: #e2e8f0;
    --border: #cbd5e1;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 15px rgba(0,0,0,.06), 0 4px 6px rgba(0,0,0,.04);
    --shadow-xl: 0 20px 25px rgba(0,0,0,.06), 0 10px 10px rgba(0,0,0,.03);
    --shadow-glow: 0 0 30px rgba(0,180,140,.12);
}

/* Light theme select dropdown arrow override */
[data-theme="light"] .form__group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

/* Light — Header */
[data-theme="light"] .header {
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 1px 8px rgba(0,0,0,.04);
}

[data-theme="light"] .header.scrolled {
    border-bottom-color: rgba(0,0,0,.1);
    box-shadow: 0 1px 20px rgba(0,0,0,.08);
}

[data-theme="light"] .nav__logo,
[data-theme="light"] .nav__toggle { color: #0f172a; }

[data-theme="light"] .nav__link { color: rgba(15,23,42,.65); }

[data-theme="light"] .nav__link:hover,
[data-theme="light"] .nav__link.active {
    color: #00b892;
    background: rgba(0,180,140,.08);
}

[data-theme="light"] .nav__lang {
    color: #00b892;
    background: rgba(0,180,140,.08);
    border-color: rgba(0,180,140,.25);
}

[data-theme="light"] .nav__lang:hover {
    background: rgba(0,180,140,.15);
    border-color: #00b892;
    color: #008f6b;
}

[data-theme="light"] .nav__menu {
    background: #ffffff;
    border-left: 1px solid rgba(0,0,0,.08);
}

/* Light — Theme toggle */
[data-theme="light"] .theme-toggle__track {
    background: rgba(99,102,241,.15);
    border-color: rgba(99,102,241,.25);
}

[data-theme="light"] .theme-toggle__thumb {
    background: #818cf8;
    transform: translateX(22px);
}

[data-theme="light"] .nav__theme:hover .theme-toggle__track {
    border-color: rgba(99,102,241,.45);
}

/* Light — Hero */
[data-theme="light"] .hero { color: #0f172a; }

[data-theme="light"] .hero__bg {
    background: linear-gradient(160deg, #ecfdf5 0%, #f0f9ff 25%, #f8fafc 50%, #ecfdf5 75%, #f0f9ff 100%);
}

[data-theme="light"] .hero__bg::before {
    background:
        radial-gradient(ellipse at 25% 30%, rgba(0,180,140,.08) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 60%, rgba(14,165,233,.06) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(0,180,140,.04) 0%, transparent 40%);
}

[data-theme="light"] .hero__bg::after {
    background-image:
        linear-gradient(rgba(0,180,140,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,180,140,.04) 1px, transparent 1px);
}

[data-theme="light"] .hero__title {
    background: linear-gradient(135deg, #0f172a 0%, #00b892 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .hero__subtitle { color: rgba(15,23,42,.75); }
[data-theme="light"] .hero__description { color: rgba(15,23,42,.55); }
[data-theme="light"] .hero__stat-label { color: rgba(15,23,42,.5); }
[data-theme="light"] .hero__scroll { color: rgba(15,23,42,.3); }
[data-theme="light"] .hero__scroll:hover { color: #00b892; }

[data-theme="light"] .hero__badge {
    background: rgba(0,180,140,.08);
    border-color: rgba(0,180,140,.2);
    color: #00b892;
}

/* Light — Buttons */
[data-theme="light"] .btn--outline { color: #0f172a; border-color: rgba(15,23,42,.25); }
[data-theme="light"] .btn--outline:hover { background: rgba(15,23,42,.04); border-color: rgba(15,23,42,.5); }

/* Light — Case icon */
[data-theme="light"] .case__icon { background: linear-gradient(160deg, #ecfdf5, #e0f2fe); color: #00b892; }

/* Light — Footer */
[data-theme="light"] .footer {
    background: #f1f5f9;
    color: #475569;
}

[data-theme="light"] .footer__logo { color: #0f172a; }

[data-theme="light"] .footer__brand p { color: #64748b; }

[data-theme="light"] .footer__links h4 { color: #64748b; }

[data-theme="light"] .footer__links a { color: #64748b; }
[data-theme="light"] .footer__links a:hover { color: #00b892; }

[data-theme="light"] .footer__bottom {
    border-top-color: rgba(0,0,0,.08);
    color: #94a3b8;
}
[data-theme="light"] .scroll-top { color: #fff; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet / iPad (≤1024px) */
@media (max-width: 1024px) {
    .container { padding: 0 32px; }
    .section { padding: 80px 0; }
    .section__header { margin-bottom: 48px; }

    /* About — stack vertically */
    .about__grid { grid-template-columns: 1fr; gap: 40px; }

    /* Services — tighter cards */
    .services__grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

    /* Contact — stack */
    .contact__grid { grid-template-columns: 1fr; gap: 40px; }

    /* Footer — 2 columns for tablet */
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer__brand { grid-column: 1 / -1; }

    /* Nav links — tighter spacing */
    .nav__link { padding: 8px 12px; font-size: .9rem; }
}

/* Mobile landscape / Small tablet (≤768px) */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .section { padding: 60px 0; }
    .section__header { margin-bottom: 36px; }

    /* Hero */
    .hero { padding: 100px 0 60px; }
    .hero__stats { gap: 24px; }

    /* About */
    .about__grid { gap: 32px; }
    .about__text h3, .about__skills h3 { font-size: 1.3rem; }

    /* Services — single column */
    .services__grid { grid-template-columns: 1fr; }

    /* Cases */
    .case__card { grid-template-columns: 1fr; }
    .case__icon { padding: 24px; }
    .case__info { padding: 24px; }
    .case__stats { flex-direction: column; gap: 8px; }

    /* Testimonials — single column */
    .testimonials__grid { grid-template-columns: 1fr; }

    /* Contact */
    .contact__form { padding: 24px; }

    /* Footer — single column */
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Phone (≤480px) */
@media (max-width: 480px) {
    .btn { padding: 12px 20px; font-size: .9rem; }

    .hero { padding: 90px 0 50px; }
    .hero__actions { flex-direction: column; align-items: center; }
    .hero__stats { gap: 16px; }
    .hero__stat { min-width: 120px; }

    .service__card { padding: 28px 22px; }

    .case__stats { flex-direction: column; gap: 8px; }
    .case__tech span { font-size: .72rem; padding: 3px 8px; }

    .contact__form { padding: 20px; }
}

/* Large screens (≥1400px) */
@media (min-width: 1400px) {
    .container { max-width: 1280px; }
    .section { padding: 120px 0; }
}
