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

:root {
    --black: #0d0d0d;
    --dark-gray: #1a1a1a;
    --mid-gray: #555;
    --light-gray: #ececec;
    --white: #ffffff;
    --border: #e0e0e0;
    --radius: 10px;
    --max-width: 1100px;
    --font: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list a {
    font-weight: 500;
    color: var(--mid-gray);
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--black);
    border-color: var(--black);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================================
   HERO
========================================================= */
.hero {
    padding: 90px 0 70px;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero-eyebrow {
    color: var(--mid-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.hero-text h2 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--mid-gray);
    margin-bottom: 20px;
}

.hero-tagline {
    max-width: 480px;
    color: var(--mid-gray);
    margin-bottom: 32px;
}

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

.hero-photo { flex-shrink: 0; }

.photo-frame {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--light-gray);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.photo-placeholder {
    font-size: 5rem;
    font-weight: 700;
    color: var(--mid-gray);
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform .15s, background .2s, color .2s;
    border: 1.5px solid var(--black);
}

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

.btn-primary {
    background: var(--black);
    color: var(--white);
}
.btn-primary:hover { background: var(--dark-gray); }

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

/* =========================================================
   SECTIONS
========================================================= */
.section { padding: 60px 0; }

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.page-header {
    padding-top: 60px;
    padding-bottom: 20px;
}

.page-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.page-header p { color: var(--mid-gray); }

/* ABOUT */
.about-text { max-width: 720px; color: #333; margin-bottom: 24px; }
.location-line { color: var(--mid-gray); margin-bottom: 32px; }

.skills-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-list li {
    background: var(--light-gray);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.projects-grid-full { margin-top: 4px; }

.project-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}

.project-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.project-image {
    height: 170px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img { width: 100%; height: 100%; object-fit: cover; }

.project-placeholder {
    font-size: 3rem;
    font-weight: 700;
    color: var(--mid-gray);
}

.project-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.project-body h4 { font-size: 1.1rem; margin-bottom: 8px; }

.project-body p {
    color: var(--mid-gray);
    font-size: 0.92rem;
    flex: 1;
    margin-bottom: 14px;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }

.tag {
    font-size: 0.78rem;
    background: var(--light-gray);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    color: var(--dark-gray);
}

.project-link {
    margin-top: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: underline;
}

.center-btn { text-align: center; margin-top: 36px; }

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
}

.contact-info h3 { font-size: 1.3rem; margin-bottom: 20px; }
.contact-info p { margin-bottom: 12px; color: #333; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label { font-weight: 600; font-size: 0.9rem; }

.form-group input,
.form-group textarea {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--black);
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.92rem;
}

.alert-success {
    background: #e8f7ee;
    border: 1px solid #b8e6c8;
    color: #1e6b3c;
}

.alert-error {
    background: #fdeceb;
    border: 1px solid #f3bcb8;
    color: #a12c22;
}

.alert-error ul { padding-left: 18px; list-style: disc; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--mid-gray);
    font-size: 0.9rem;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--black); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 860px) {
    .hero-inner { flex-direction: column-reverse; text-align: center; }
    .hero-tagline { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .nav-toggle { display: block; }
    .nav-list {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border);
        display: none;
    }
    .nav-list.open { display: flex; }
    .nav-list li { width: 100%; }
    .nav-list a {
        display: block;
        padding: 14px 24px;
        border-bottom: none;
    }
    .hero-text h1 { font-size: 2.2rem; }
    .photo-frame { width: 180px; height: 180px; }
    .projects-grid { grid-template-columns: 1fr; }
}
