/* ===========================
   Variables & Reset
=========================== */
:root {
    --color-bg: #F8F9FA;
    --color-bg-section: #EEF2F2;
    --color-bg-card: #E9ECEF;
    --color-text: #212529;
    --color-text-muted: #6C757D;
    --color-accent: #0D6E6E;
    --color-accent-dark: #095858;
    --color-white: #ffffff;
    --font: 'Inter', sans-serif;
    --max-width: 860px;
    --radius: 10px;
    --nav-height: 60px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* ===========================
   Navigation
=========================== */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-white);
    border-bottom: 1px solid #dee2e6;
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

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

.nav-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-accent);
    white-space: nowrap;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
}

nav a:hover {
    color: var(--color-accent);
    background-color: var(--color-bg-section);
}

/* ===========================
   Hero Section
=========================== */
#hero {
    text-align: center;
    padding: 72px 24px 64px;
    max-width: var(--max-width);
    margin: 0 auto;
}

#hero img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    margin-bottom: 24px;
    border: 4px solid var(--color-white);
    box-shadow: 0 4px 16px rgba(13, 110, 110, 0.15);
}

#hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

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

.btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    background-color: transparent;
    color: var(--color-accent);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--color-accent);
    transition: background-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* ===========================
   Shared Section Layout
=========================== */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 60px 0;
    border-top: 1px solid #dee2e6;
}

section:first-child {
    border-top: none;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

p {
    color: var(--color-text);
    margin-bottom: 14px;
}

p:last-child {
    margin-bottom: 0;
}

/* ===========================
   About Section
=========================== */
#about p {
    font-size: 1rem;
    line-height: 1.8;
}

/* ===========================
   Experience Section
=========================== */
.experience-card {
    background-color: var(--color-white);
    border: 1px solid #dee2e6;
    border-radius: var(--radius);
    padding: 28px;
}

.experience-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.company {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    font-weight: 500;
    padding-top: 4px;
}

.experience-list {
    list-style: none;
    margin-bottom: 20px;
}

.experience-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
}

.experience-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
}

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

.tag {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    background-color: var(--color-bg-section);
    color: var(--color-accent);
    border: 1px solid #c2d8d8;
}

/* ===========================
   Skills Section
=========================== */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.skills-group h3 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.skill-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags li {
    padding: 6px 16px;
    border-radius: 20px;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 500;
}

.skill-tags.techniques li {
    background-color: var(--color-bg-card);
    color: var(--color-text);
}

/* ===========================
   Projects Section
=========================== */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.project-card {
    background-color: var(--color-white);
    border: 1px solid #dee2e6;
    border-radius: var(--radius);
    padding: 28px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.project-card:hover {
    box-shadow: 0 4px 20px rgba(13, 110, 110, 0.1);
    border-color: #c2d8d8;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.project-tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background-color: var(--color-bg-section);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.project-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.project-card p {
    font-size: 0.93rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===========================
   Contact Section
=========================== */
.contact-intro {
    margin-bottom: 28px;
    font-size: 1rem;
}

.contact-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.contact-btn:hover {
    background-color: var(--color-accent-dark);
}

/* ===========================
   Footer
=========================== */
footer {
    text-align: center;
    padding: 32px 24px;
    margin-top: 20px;
    border-top: 1px solid #dee2e6;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ===========================
   Responsive — Tablet & Up
=========================== */
@media (min-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .skills-container {
        flex-direction: row;
        gap: 48px;
    }
}

/* ===========================
   Responsive — Mobile
=========================== */
@media (max-width: 480px) {
    #hero h1 {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 0.875rem;
    }

    nav ul {
        gap: 2px;
    }

    nav a {
        font-size: 0.8rem;
        padding: 5px 7px;
    }

    .nav-name {
        display: none;
    }

    .experience-header {
        flex-direction: column;
    }
}

@media (max-width: 320px) {
    body {
        font-size: 15px;
    }
}
