/* ==========================================
   WFG — Professional Portfolio
   Dark navy + clean white + sky accent
   ========================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --accent: #0ea5e9;
    --accent-dim: rgba(14, 165, 233, 0.08);
    --bg: #ffffff;
    --bg-alt: #f1f5f9;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --space: 2rem;
    --section-space: 5rem;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

::selection { background: rgba(14, 165, 233, 0.2); }

.container { max-width: 880px; margin: 0 auto; padding: 0 1.25rem; }

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0.9rem 0;
    transition: background 0.3s, border-color 0.3s;
    background: transparent;
}

.nav--scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent);
    text-decoration: none;
}

.nav__right { display: flex; align-items: center; gap: 1.25rem; }

.nav__links { display: flex; gap: 1.5rem; list-style: none; }

.nav__link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav__link:hover { color: var(--text); }

.nav__tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--border);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 2px 0;
    transition: color 0.2s;
}

.lang-btn:hover { color: var(--accent); }

.lang-btn span { transition: color 0.2s; }

.lang-btn--active { color: var(--text); }

.lang-btn__sep { color: var(--border); margin: 0 1px; }

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.theme-btn:hover { color: var(--accent); background: var(--accent-dim); }

.theme-btn__moon { display: none; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 0% 20%, rgba(14,165,233,0.06), transparent),
        radial-gradient(ellipse 50% 40% at 100% 80%, rgba(14,165,233,0.03), transparent);
    pointer-events: none;
}

.hero__content { position: relative; z-index: 1; padding: 6rem 0 4rem; }

.hero__name {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
}

.hero__title {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1rem;
}

.hero__amp { color: var(--accent); }

.hero__location {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.35s both;
}

.hero__loc-icon { font-size: 0.9rem; }

.hero__tagline {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    max-width: 580px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero__tagline strong { color: #fff; font-weight: 600; }

.hero__stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.hero__stat { display: flex; flex-direction: column; gap: 2px; }

.hero__stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent);
}

.hero__stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font);
    border-radius: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
}

.btn--primary:hover {
    background: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(14,165,233,0.3);
}

.btn--outline {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1.5px solid rgba(255,255,255,0.15);
}

.btn--outline:hover {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    transform: translateY(-1px);
}

.btn--download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn--download svg {
    transition: transform 0.25s ease;
}

.btn--download:hover svg {
    transform: translateY(2px);
}

/* --- Sections --- */
.section { padding: var(--section-space) 0; }

.section--alt { background: var(--bg-alt); }

.section__head {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.section__num {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.section__title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* --- Experience --- */
.exp__list { display: flex; flex-direction: column; gap: 2.5rem; }

.exp__item {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.exp__item:last-child { border-bottom: none; padding-bottom: 0; }

.exp__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.exp__date {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.exp__badge {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--accent-dim);
    color: var(--accent);
}

.exp__role {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.exp__company {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.exp__bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.exp__bullets li {
    font-size: 0.92rem;
    color: var(--text-muted);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.6;
}

.exp__bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.4;
}

/* --- Skills --- */
.skills__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.skill {
    padding: 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.skill:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 16px rgba(14,165,233,0.06);
}

.skill__title {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.skill__text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* --- Education --- */
.edu__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.edu__card {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.edu__card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 16px rgba(14,165,233,0.06);
}

.edu__badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.edu__title {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.edu__school {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --- Languages --- */
.lang-section {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.lang-section__title {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.lang-section__list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 400px; }

.lang-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-item__name {
    font-size: 0.88rem;
    font-weight: 500;
    min-width: 60px;
}

.lang-item__bar {
    flex: 1;
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.lang-item__fill {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    width: 0;
    transition: width 1.2s ease;
}

.lang-item__level {
    font-size: 0.78rem;
    color: var(--text-muted);
    min-width: 45px;
    text-align: right;
}

/* --- Contact --- */
.contact__grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 560px;
}

.contact__text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.contact__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.contact__actions .btn--outline {
    color: var(--text);
    border-color: var(--border);
}

.contact__actions .btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Footer --- */
.footer { padding: 1.5rem 0; border-top: 1px solid var(--border); }

.footer__inner { display: flex; justify-content: space-between; align-items: center; }

.footer__copy, .footer__note {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* --- Dark mode --- */
body.dark {
    --bg: #0b1120;
    --bg-alt: #0f172a;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --border: rgba(255,255,255,0.06);
}

body.dark .nav--scrolled { background: rgba(11,17,32,0.92); border-bottom-color: var(--border); }
body.dark .nav__link { color: var(--text-light); }
body.dark .nav__link:hover { color: #fff; }
body.dark .nav__tools { border-left-color: var(--border); }
body.dark .lang-btn { color: var(--text-light); }
body.dark .lang-btn--active { color: #fff; }
body.dark .lang-btn__sep { color: var(--border); }
body.dark .theme-btn { color: var(--text-light); }
body.dark .theme-btn:hover { background: rgba(14,165,233,0.08); color: var(--accent); }
body.dark .theme-btn__sun { display: none; }
body.dark .theme-btn__moon { display: block; }
body.dark .nav__toggle span { background: #fff; }

body.dark .section--alt { background: var(--bg-alt); }
body.dark .skill { background: var(--bg); border-color: var(--border); }
body.dark .skill:hover { border-color: var(--accent); }
body.dark .edu__card { border-color: var(--border); }
body.dark .edu__card:hover { border-color: var(--accent); }
body.dark .lang-item__bar { background: rgba(255,255,255,0.06); }
body.dark .contact__actions .btn--outline { color: var(--text-muted); border-color: var(--border); }
body.dark .contact__actions .btn--outline:hover { border-color: var(--accent); color: var(--accent); }

/* --- Responsive --- */
@media (max-width: 768px) {
    :root { --section-space: 3.5rem; }

    .nav__links {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 99;
    }
    .nav__links.active { display: flex; }
    .nav__links .nav__link { font-size: 1.3rem; color: var(--text); }
    .nav__toggle { display: flex; z-index: 101; }
    .nav__toggle.active span:first-child { transform: translateY(4px) rotate(45deg); }
    .nav__toggle.active span:last-child { transform: translateY(-4px) rotate(-45deg); }

    .hero { min-height: auto; padding: 5rem 0 3rem; }
    .hero__name { font-size: 2.4rem; }
    .hero__stats { gap: 1.5rem; flex-wrap: wrap; }
    .hero__actions .btn { width: 100%; text-align: center; }

    .skills__grid { grid-template-columns: 1fr; }
    .edu__grid { grid-template-columns: 1fr; }

    .footer__inner { flex-direction: column; gap: 0.25rem; text-align: center; }
}

@media (max-width: 480px) {
    .hero__name { font-size: 2rem; }
    .section__title { font-size: 1.25rem; }
    .exp__role { font-size: 1rem; }
}

/* --- Animations --- */
.hero__name { animation: fadeUp 0.8s 0.1s both; }
.hero__title { animation: fadeUp 0.8s 0.25s both; }
.hero__tagline { animation: fadeUp 0.8s 0.4s both; }
.hero__stats { animation: fadeUp 0.8s 0.55s both; }
.hero__actions { animation: fadeUp 0.8s 0.7s both; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .hero__name, .hero__title, .hero__tagline, .hero__stats, .hero__actions { opacity: 1 !important; transform: none !important; }
    .lang-item__fill { transition: none !important; width: var(--level) !important; }
    html { scroll-behavior: auto; }
}

/* Print */
@media print {
    .nav, .theme-btn, .lang-btn, .nav__toggle { display: none !important; }
    .hero { min-height: auto; padding: 1.5rem 0; background: #fff !important; color: #000 !important; }
    .hero__tagline, .hero__stat-label, .hero__title { color: #666 !important; }
    .hero__stat-num { color: #0ea5e9 !important; }
    .btn { border: 1px solid #000 !important; }
    .btn--primary { background: #000 !important; color: #fff !important; }
    .section { padding: 1rem 0; }
    .exp__item { break-inside: avoid; }
}
