/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:           #ffffff;
    --bg-off:       #f9fafb;
    --bg-subtle:    #f3f4f6;
    --text:         #0f172a;
    --text-muted:   #6b7280;
    --text-light:   #9ca3af;
    --accent:       #16a34a;
    --accent-hover: #15803d;
    --accent-light: #f0fdf4;
    --accent-mid:   #bbf7d0;
    --border:       #e5e7eb;
    --border-dark:  #d1d5db;
    --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius:       10px;
    --radius-sm:    6px;
    --radius-full:  9999px;
    --transition:   0.18s ease;
    --max-width:    1140px;
    --nav-h:        62px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(22,163,74,.25);
}
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border-dark);
}
.btn-ghost:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-1px);
}
.btn-full { width: 100%; justify-content: center; }

/* Section labels */
.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.625rem;
}
.section-title {
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.025em;
    line-height: 1.2;
}
.section-desc {
    margin-top: 0.625rem;
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.section-hd { margin-bottom: 3rem; }

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }

/* ============================================================
   LANG TOGGLE
   ============================================================ */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-subtle);
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.625rem;
    cursor: pointer;
    margin-left: 0.75rem;
    transition: border-color var(--transition);
    flex-shrink: 0;
}
.lang-toggle:hover { border-color: var(--accent); }

.lang-opt {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-light);
    transition: color var(--transition);
    line-height: 1;
}
.lang-opt.active { color: var(--accent); }

.lang-divider {
    font-size: 0.7rem;
    color: var(--border-dark);
    line-height: 1;
}

/* ============================================================
   NAVBAR — logo left · links right · bottom border
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 1px 12px rgba(15,23,42,.07); }

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    font-weight: 700;
    font-size: 0.9375rem;
}
.logo-mark {
    width: 30px; height: 30px;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.logo-name { color: var(--text); font-weight: 700; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--bg-subtle); }

.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    margin-left: 0.75rem;
    transition: all var(--transition);
}
.nav-cta:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 14px rgba(22,163,74,.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.nav-toggle span {
    display: block;
    width: 21px; height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--nav-h) + 5rem) 1.75rem 4rem;
}

.hero-avail {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.75rem;
}
.avail-dot {
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
    display: flex;
    flex-direction: column;
    font-size: clamp(4rem, 10vw, 8.5rem);
    font-weight: 900;
    line-height: 0.91;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
}
.title-dark   { color: var(--text); }
.title-accent { color: var(--accent); }

.hero-byline {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}
.byline-sep { color: var(--text-light); }

.hero-desc {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 2.25rem;
}

.hero-btns {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

/* Hero meta bar */
.hero-bar {
    display: flex;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0;
}
.hero-bar-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 500;
    padding-right: 1.75rem;
}
.hero-bar-item svg { color: var(--accent); flex-shrink: 0; }
.hero-bar-link { color: var(--text-light); transition: color var(--transition); }
.hero-bar-link:hover { color: var(--accent); }

.bar-sep {
    width: 1px; height: 13px;
    background: var(--border-dark);
    margin-right: 1.75rem;
    flex-shrink: 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
    padding: 6.5rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg-off);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-left .section-title { margin-bottom: 1.375rem; }
.about-left p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0.875rem;
}
.about-left strong { color: var(--text); font-weight: 700; }

.about-right { display: flex; flex-direction: column; gap: 1.5rem; }

.stat-strip {
    display: flex;
    align-items: stretch;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.stat-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.375rem 1.25rem;
}
.stat-div { width: 1px; background: var(--border); flex-shrink: 0; }
.stat-n {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--accent);
    line-height: 1;
}
.stat-l {
    font-size: 0.775rem;
    font-weight: 500;
    color: var(--text-light);
}

.about-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}
.about-chips span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 0.275rem 0.7rem;
    border-radius: var(--radius-full);
    transition: all var(--transition);
}
.about-chips span:hover {
    color: var(--accent);
    border-color: var(--accent-mid);
    background: var(--accent-light);
}

/* ============================================================
   SERVICES — horizontal rows
   ============================================================ */
.services {
    padding: 6.5rem 0;
    border-top: 1px solid var(--border);
}

.svc-list { display: flex; flex-direction: column; }

.svc-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.svc-row:first-child { border-top: 1px solid var(--border); }
.svc-row:hover { background: var(--bg-off); margin: 0 -1.75rem; padding-left: 1.75rem; padding-right: 1.75rem; }

.svc-row--hi .svc-left h3 { color: var(--accent); }
.svc-row--hi .svc-icon { background: var(--accent-light); color: var(--accent); border-color: var(--accent-mid); }
.svc-row:hover .svc-left h3 { color: var(--accent); }
.svc-row:hover .svc-icon { background: var(--accent-light); color: var(--accent); border-color: var(--accent-mid); }

.svc-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.svc-num {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.08em;
    min-width: 18px;
}
.svc-icon {
    width: 40px; height: 40px;
    background: var(--bg-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}
.svc-left h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.015em;
    transition: color var(--transition);
}

.svc-right p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.875rem;
}
.svc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.svc-tags span {
    font-size: 0.775rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid var(--accent-mid);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

/* ============================================================
   SKILLS — 2×2 card grid with pills
   ============================================================ */
.skills {
    padding: 6.5rem 0;
    background: var(--bg-off);
    border-top: 1px solid var(--border);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.skill-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: box-shadow var(--transition), transform var(--transition);
}
.skill-card:hover {
    box-shadow: 0 6px 24px rgba(22,163,74,.08);
    transform: translateY(-2px);
}

.skill-card-head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}
.skill-card-icon {
    width: 32px; height: 32px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.skill-card-head h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.pill {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    transition: all var(--transition);
}
.pill:hover {
    color: var(--accent);
    background: var(--accent-light);
    border-color: var(--accent-mid);
}
.pill-main {
    color: var(--accent);
    background: var(--accent-light);
    border-color: var(--accent-mid);
    font-weight: 600;
}
.pill-main:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: 6.5rem 0; border-top: 1px solid var(--border); }

.contact-hd { text-align: center; margin-bottom: 3rem; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-left { display: flex; flex-direction: column; gap: 0.875rem; }

.cta-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.125rem 1.375rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: all var(--transition);
}
.cta-card:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateX(3px);
}
.cta-icon {
    width: 40px; height: 40px;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent-mid);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cta-lbl {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.1rem;
}
.cta-val {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}
.cta-arrow {
    margin-left: auto;
    color: var(--text-light);
    flex-shrink: 0;
    transition: all var(--transition);
}
.cta-card:hover .cta-arrow { color: var(--accent); transform: translateX(3px); }

.socials { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 0.55rem 1rem;
    border-radius: var(--radius-full);
    flex: 1;
    justify-content: center;
    transition: all var(--transition);
}
.social-btn:hover {
    color: var(--accent);
    border-color: var(--accent-mid);
    background: var(--accent-light);
}

/* Contact form */
.contact-form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }

.form-grp { display: flex; flex-direction: column; gap: 0.35rem; }
.form-grp label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}
.form-grp input,
.form-grp textarea {
    font-family: var(--font);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--bg-off);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.9rem;
    outline: none;
    transition: all var(--transition);
    width: 100%;
    resize: vertical;
}
.form-grp input::placeholder,
.form-grp textarea::placeholder { color: var(--text-light); }
.form-grp input:focus,
.form-grp textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(22,163,74,.1);
    background: var(--bg);
}

.h-captcha { display: flex; justify-content: center; }

.form-feedback {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    display: none;
}
.form-feedback.success {
    display: block;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid var(--accent-mid);
}
.form-feedback.error {
    display: block;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
}
.form-note a { color: var(--accent); font-weight: 500; }
.form-note a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-off);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}
.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
}
.footer-copy { font-size: 0.8rem; color: var(--text-light); }
.footer-links {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8rem;
    color: var(--text-light);
}
.footer-links a { color: var(--text-light); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .svc-row { grid-template-columns: 1fr; gap: 1rem; }
    .svc-row:hover { margin: 0; padding-left: 0; padding-right: 0; }
}

@media (max-width: 768px) {
    .hero, .about, .services, .skills, .contact { padding-top: 5rem; padding-bottom: 5rem; }
    .hero { padding-top: calc(var(--nav-h) + 3rem); }

    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.25rem;
        z-index: 99;
    }
    .nav-links.open { display: flex; }
    .nav-link { font-size: 1.2rem; }
    .nav-cta { font-size: 1.1rem; padding: 0.7rem 2rem; }
    .nav-toggle { display: flex; z-index: 100; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero-bar { gap: 0.75rem; }
    .bar-sep { display: none; }
    .hero-bar-item { padding-right: 0; }

    .form-row { grid-template-columns: 1fr; }
    .footer-row { flex-direction: column; text-align: center; gap: 0.75rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: clamp(3.25rem, 15vw, 5rem); }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; justify-content: center; }
    .skills-grid { grid-template-columns: 1fr; }
    .stat-strip { flex-direction: column; }
    .stat-div { width: 100%; height: 1px; }
    .socials { flex-direction: column; }
}
