/* ══════════════════════════════════════════
   ROOT & RESET
══════════════════════════════════════════ */
:root {
    --navy:      #1d3461;
    --navy-dark: #152648;
    --navy-mid:  #264070;
    --accent:    #e05c3e;
    --white:     #ffffff;
    --bg-light:  #f4f7fb;
    --text:      #1a1f36;
    --text-muted:#64748b;
    --border:    #d4dae8;
    --tag-bg:    #e8edf5;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
}

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

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--navy);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-btn {
    padding: 6px 14px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.15s;
}

.lang-btn:hover { background: var(--navy-mid); }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
#hero {
    background: var(--bg-light);
    display: flex;
    align-items: center;
    padding-top: 64px;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 72px 24px;
    display: flex;
    align-items: center;
    gap: 72px;
}

.hero-photo {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 4px solid var(--navy);
    flex-shrink: 0;
}

.hero-tag {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--accent);
    margin-bottom: 12px;
}

.hero-text h1 {
    font-size: 3.25rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}


/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid var(--navy);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

/* ══════════════════════════════════════════
   SHARED SECTION STYLES
══════════════════════════════════════════ */
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    text-align: left;
    margin-bottom: 48px;
}

.section-title::after {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 10px 0 0;
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
#about { background: var(--white); }

.about-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 48px;
}

.stat-item { text-align: center; }

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.about-interests { text-align: center; }

.interests-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.interest-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.interest-tags span {
    padding: 8px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ══════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════ */
#projects { background: var(--bg-light); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 10px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.project-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    line-height: 1;
}

.project-top h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 5px;
}

.project-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy-mid);
    background: var(--tag-bg);
    padding: 2px 8px;
    border-radius: 3px;
}

.project-card > p {
    font-size: 0.875rem;
    color: var(--text-muted);
    flex: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.tech-tags span {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    background: var(--navy);
    color: var(--white);
    border-radius: 3px;
    letter-spacing: 0.3px;
}

/* ══════════════════════════════════════════
   SKILLS
══════════════════════════════════════════ */
#skills { background: var(--white); }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 40px;
}

.skills-cat h3 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

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

.skill-tags span {
    padding: 6px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ══════════════════════════════════════════
   JOURNEY
══════════════════════════════════════════ */
#journey { background: var(--bg-light); }

.journey-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.col-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 28px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.timeline {
    padding-left: 24px;
    border-left: 2px solid var(--border);
}

.tl-item {
    position: relative;
    padding-bottom: 28px;
}

.tl-item:last-child { padding-bottom: 0; }

/* Dot on timeline border */
.tl-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: var(--navy);
    border-radius: 50%;
    border: 2px solid var(--bg-light);
}

.tl-date {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.tl-body h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.tl-body p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
#contact { background: var(--white); }

.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 1rem;
    color: var(--text-muted);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 13px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.15s, color 0.15s;
}

.contact-link:hover {
    border-color: var(--navy);
    color: var(--navy);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
    background: var(--navy);
    padding: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8125rem;
}

/* ══════════════════════════════════════════
   RESPONSIVE — tablet
══════════════════════════════════════════ */
@media (max-width: 900px) {

    /* Nav */
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open { display: flex; }

    .nav-links li a {
        display: block;
        padding: 14px 24px;
        border-top: 1px solid var(--border);
    }

    .burger { display: flex; }

    /* Hero */
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 36px;
        padding: 60px 24px;
    }

    .hero-desc    { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-text h1 { font-size: 2.5rem; }

    /* Grids */
    .projects-grid { grid-template-columns: 1fr; }
    .skills-grid   { grid-template-columns: repeat(2, 1fr); }
    .journey-cols  { grid-template-columns: 1fr; }

    .about-stats { gap: 40px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — mobile
══════════════════════════════════════════ */
@media (max-width: 560px) {
    .hero-text h1  { font-size: 2rem; }
    .skills-grid   { grid-template-columns: 1fr; }
    .about-stats   { gap: 24px; }
    .stat-number   { font-size: 2rem; }
    .section-title { font-size: 1.4rem; }
}
