/* ==========================================================================
   Fonts
   Source Serif 4 gives headings quiet authority without tipping into
   novelty; Inter carries body copy and UI text for clean legibility.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Design Tokens
   A single, fixed light theme for the page — the hero, footer, and CTA
   panel carry the dark navy accent instead of the whole site switching.
   ========================================================================== */
:root {
    color-scheme: light;

    --bg: #f8f9fb;
    --surface: #ffffff;
    --surface-alt: #f1f2f6;
    --border: #e1e3ea;

    --ink: #171b26;
    --text: #4a5063;
    --text-muted: #848b9c;

    --primary: #1f3a5f;
    --primary-dark: #14273f;
    --primary-light: #3f5f8a;
    --accent: #a3793f;
    --on-primary: #ffffff;

    /* legacy variable names kept alive for compatibility */
    --primary-color: var(--primary);
    --secondary-color: var(--accent);
    --text-dark: var(--ink);
    --text-light: var(--text);
    --bg-light: var(--surface-alt);
    --bg-white: var(--surface);

    --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

    --fs-xs:  clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
    --fs-sm:  clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
    --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    --fs-md:  clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);
    --fs-lg:  clamp(1.375rem, 1.24rem + 0.6vw, 1.75rem);
    --fs-xl:  clamp(1.75rem, 1.5rem + 1vw, 2.125rem);
    --fs-2xl: clamp(2rem, 1.7rem + 1.5vw, 2.5rem);
    --fs-3xl: clamp(2.25rem, 1.8rem + 2.5vw, 3.25rem);

    --lh-tight: 1.2;
    --lh-snug: 1.4;
    --lh-body: 1.7;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;

    --border-radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --radius-full: 999px;

    --shadow-sm: 0 1px 2px rgba(23, 27, 38, 0.06);
    --shadow-md: 0 4px 12px -4px rgba(23, 27, 38, 0.12), 0 2px 4px -2px rgba(23, 27, 38, 0.06);
    --shadow-lg: 0 16px 32px -12px rgba(23, 27, 38, 0.18), 0 6px 12px -6px rgba(23, 27, 38, 0.08);

    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.25s var(--ease-out);
    --transition-fast: all 0.15s var(--ease-out);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--text);
    background-color: var(--bg);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

::selection {
    background-color: var(--primary-light);
    color: #ffffff;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--surface-alt);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: var(--radius-full);
    border: 2px solid var(--surface-alt);
}
::-webkit-scrollbar-thumb:hover { background-color: var(--text-muted); }

:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Global Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: var(--lh-tight);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); }
h4 { font-size: var(--fs-base); font-family: var(--font-body); font-weight: 600; }
h5 { font-size: var(--fs-sm); font-family: var(--font-body); font-weight: 600; }
h6 { font-size: var(--fs-xs); font-family: var(--font-body); font-weight: 600; color: var(--text-muted); }

p { color: var(--text); max-width: 70ch; }

a { color: var(--primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--accent); }

strong, b { font-weight: 700; color: var(--ink); }
em, i { font-style: italic; }

small { font-size: var(--fs-xs); color: var(--text-muted); }

mark {
    background-color: rgba(163, 121, 63, 0.18);
    color: var(--ink);
    padding: 0.05em 0.3em;
    border-radius: 0.2em;
}

ul, ol { padding-left: 1.25em; color: var(--text); }
li { margin-bottom: 0.5em; }
li:last-child { margin-bottom: 0; }

ul:not([class]) li, ul.plain li {
    list-style: none;
    position: relative;
    padding-left: 1.25em;
}
ul:not([class]) li::before, ul.plain li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}

blockquote {
    border-left: 3px solid var(--primary);
    padding: var(--space-2) 0 var(--space-2) var(--space-4);
    margin: var(--space-4) 0;
    font-family: var(--font-display);
    font-style: italic;
    color: var(--ink);
    background: var(--surface-alt);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
blockquote p { color: inherit; margin: 0; max-width: none; }
blockquote cite {
    display: block;
    margin-top: var(--space-2);
    font-family: var(--font-body);
    font-style: normal;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

code, kbd, samp {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    color: var(--primary);
}

pre {
    background: var(--ink);
    color: #e7e9ee;
    padding: var(--space-4);
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: var(--space-4) 0;
    box-shadow: var(--shadow-sm);
}
pre code { background: none; border: none; padding: 0; color: inherit; font-size: var(--fs-sm); }

hr { border: none; border-top: 1px solid var(--border); margin: var(--space-8) 0; }

table { width: 100%; border-collapse: collapse; margin: var(--space-4) 0; font-size: var(--fs-sm); }
th, td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); }
th { font-family: var(--font-body); color: var(--ink); font-weight: 600; }
tbody tr:hover { background: var(--surface-alt); }

img, svg, video { max-width: 100%; display: block; }
img { border-radius: var(--radius-sm); }

figure { margin: var(--space-4) 0; }
figcaption { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--space-2); text-align: center; }

input, textarea, select, button { font-family: inherit; font-size: var(--fs-base); color: var(--text-dark); }

label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-2);
}

input:not([type="checkbox"]):not([type="radio"]), textarea, select {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--surface);
    color: var(--ink);
    border: 1.5px solid var(--border);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}
input:not([type="checkbox"]):not([type="radio"]):hover, textarea:hover, select:hover { border-color: var(--primary-light); }
input:not([type="checkbox"]):not([type="radio"]):focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.12);
}
textarea { resize: vertical; min-height: 120px; }
::placeholder { color: var(--text-muted); }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    background-color: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar { padding: 1.1rem 0; }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: var(--transition-fast);
}
.logo a:hover { color: var(--primary); }

.nav-menu { display: flex; list-style: none; gap: 2rem; flex-wrap: wrap; }
.nav-item { display: flex; }

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--fs-sm);
    transition: var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}
.nav-link:hover { color: var(--primary); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }

/* ==========================================================================
   Main / Layout
   ========================================================================== */
main { min-height: calc(100vh - 200px); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ==========================================================================
   Hero
   A solid, tonal navy panel rather than a multicolor gradient — the one
   deliberate dark moment on the page, kept quiet. Motion is limited to a
   single entrance; nothing loops or drifts.
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #ffffff;
    padding: 110px 2rem;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.06), transparent 45%);
    pointer-events: none;
}

.hero-content { position: relative; max-width: 800px; margin: 0 auto; }

.hero h1 {
    font-size: var(--fs-3xl);
    margin-bottom: 1rem;
    font-weight: 600;
    color: #ffffff;
    animation: fadeInDown 0.7s var(--ease-out);
}

.subtitle {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--fs-md);
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.88);
    animation: fadeInUp 0.7s var(--ease-out) 0.15s both;
}

.description {
    font-size: var(--fs-base);
    max-width: 60ch;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.75);
    animation: fadeInUp 0.7s var(--ease-out) 0.3s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s var(--ease-out) 0.45s both;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    padding: 12px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-sm);
    transition: var(--transition);
    display: inline-block;
    border: 1.5px solid transparent;
    cursor: pointer;
}
.btn:active { transform: translateY(0) scale(0.99); }

.btn-primary { background-color: #ffffff; color: var(--primary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-secondary { background-color: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.55); }
.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.1); border-color: #ffffff; transform: translateY(-2px); }

.btn-outline { background-color: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   Featured Projects
   ========================================================================== */
.featured-projects { padding: 80px 2rem; background-color: var(--surface-alt); }

.featured-projects h2, .about-preview h2 {
    font-size: var(--fs-2xl);
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.section-description {
    text-align: center;
    color: var(--text);
    font-size: var(--fs-base);
    max-width: 60ch;
    margin: 0 auto 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }

.project-card-image {
    width: 100%;
    height: 200px;
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 3rem;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-card-image i {
    font-size: 3rem;
    color: white;
    z-index: 1;
}
.project-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        115deg,
        rgba(255, 255, 255, 0.05) 0px,
        rgba(255, 255, 255, 0.05) 1px,
        transparent 1px,
        transparent 14px
    );
}

.project-card-content { padding: 1.5rem; }
.project-card h3 { color: var(--ink); margin-bottom: 0.5rem; }
.project-card p { color: var(--text); margin-bottom: 1rem; font-size: var(--fs-sm); }

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-fast);
}
.project-link::after { content: '↗'; transition: var(--transition-fast); }
.project-link:hover { color: var(--accent); }
.project-link:hover::after { transform: translate(1px, -1px); }

.view-all { text-align: center; }

/* ==========================================================================
   About Preview
   ========================================================================== */
.about-preview { padding: 80px 2rem; background-color: var(--surface); }
.about-preview p {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text);
    font-size: var(--fs-base);
    line-height: 1.8;
    text-align: center;
}

.link-arrow {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    margin: 0 auto;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}
.link-arrow::after { content: '→'; transition: var(--transition-fast); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ==========================================================================
   Footer
   Always a dark navy block, independent of the page theme — a fixed anchor
   at the bottom, the way a letterhead or masthead stays constant.
   ========================================================================== */
footer { background-color: var(--primary-dark); color: #ffffff; padding: 2.5rem 2rem; text-align: center; }
.footer-content { max-width: 1200px; margin: 0 auto; }
.footer-content p { color: rgba(255, 255, 255, 0.65); margin-bottom: 1rem; }

.social-links { display: flex; justify-content: center; gap: 1.5rem; }
.social-links a { color: #ffffff; text-decoration: none; transition: var(--transition-fast); }
.social-links a:hover { color: rgba(255, 255, 255, 0.7); }

/* ==========================================================================
   Animations — a single entrance only, nothing ambient or looping
   ========================================================================== */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   About Page
   ========================================================================== */
.about-content { padding: 60px 2rem; background-color: var(--surface); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.about-text { line-height: 1.8; }
.about-text h2 { font-size: var(--fs-lg); margin-bottom: 1.5rem; color: var(--ink); }
.about-text p { color: var(--text); margin-bottom: 1rem; max-width: none; }

.skills-section {
    background-color: var(--surface-alt);
    padding: 3rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
}
.skills-section h2 { font-size: var(--fs-xl); margin-bottom: 2rem; text-align: center; color: var(--ink); }

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

.skill-category {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.skill-category:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.skill-category h3 { color: var(--primary); margin-bottom: 1rem; font-size: var(--fs-md); }
.skill-category ul { list-style: none; padding-left: 0; }
.skill-category li { padding: 0.5rem 0; color: var(--text); padding-left: 1.5rem; position: relative; }
.skill-category li:before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

/* Experience — a genuine timeline, since work history really is sequential.
   Pure CSS: a connecting line plus a dot per entry, no markup changes needed. */
.experience-section { position: relative; margin-bottom: 3rem; }
.experience-section h2 { font-size: var(--fs-xl); margin-bottom: 2rem; color: var(--ink); }

.experience-item {
    background: var(--surface);
    padding: 2rem;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
    margin-left: 0.5rem;
    position: relative;
    border: 1px solid var(--border);
    border-left: 2px solid var(--border);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.experience-item:hover { box-shadow: var(--shadow-md); border-left-color: var(--primary); }
.experience-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 2.1rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--surface);
    box-shadow: 0 0 0 1.5px var(--border);
}
.experience-item:last-child { margin-bottom: 0; }
.experience-item h3 { font-size: var(--fs-md); color: var(--ink); margin-bottom: 0.5rem; }
.experience-meta { color: var(--primary); font-weight: 600; font-size: var(--fs-sm); margin-bottom: 0.5rem; }
.experience-item p { color: var(--text); }

.cta-section {
    text-align: center;
    background: var(--primary-dark);
    color: #ffffff;
    padding: 3.5rem 2rem;
    border-radius: var(--radius-lg);
    margin-top: 3rem;
}
.cta-section h2 { font-size: var(--fs-xl); margin-bottom: 1rem; color: #ffffff; }
.cta-section p { font-size: var(--fs-base); max-width: 55ch; margin: 0 auto 2rem; color: rgba(255, 255, 255, 0.78); }
.cta-section .btn-primary { color: var(--primary); }

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-section { padding: 60px 2rem; background-color: var(--surface-alt); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 1000px; margin: 0 auto; }
.contact-info h2, .contact-form-wrapper h2 { font-size: var(--fs-lg); margin-bottom: 1rem; color: var(--ink); }
.contact-info > p { color: var(--text); margin-bottom: 2rem; line-height: 1.8; }

.contact-methods { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
    padding: 1.5rem;
    background: var(--surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.contact-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--fs-md);
}
.contact-item h3 i { font-size: 1.3rem; }
.contact-item a { color: var(--text); text-decoration: none; transition: var(--transition-fast); }
.contact-item a:hover { color: var(--primary); }

.contact-form-wrapper { background: var(--surface); padding: 2rem; border-radius: var(--border-radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }

.contact-form { display: flex; flex-direction: column; gap: 0; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--ink); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: var(--fs-base);
    transition: var(--transition-fast);
    background: var(--surface);
    color: var(--ink);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.12);
}
.contact-form .btn { width: 100%; margin-top: 0.5rem; }
.form-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    padding: 0.8rem;
    border-radius: var(--border-radius);
}
.form-message.success {
    color: #0ea466;
    background-color: rgba(14, 164, 102, 0.1);
}
.form-message.error {
    color: #d63031;
    background-color: rgba(214, 48, 49, 0.1);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .nav-menu { gap: 1rem; }
    .cta-buttons { flex-direction: column; }
    .projects-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .skills-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
    .nav-container { padding: 0 1rem; }
    .logo a { font-size: 1.2rem; }
    .nav-menu { gap: 0.5rem; font-size: 0.9rem; }
    .hero { padding: 60px 1rem; min-height: auto; }
    .featured-projects, .about-preview { padding: 40px 1rem; }
    .about-content { padding: 40px 1rem; }
    .skills-section { padding: 1.5rem; }
    .experience-item { padding: 1.5rem; padding-left: 2rem; }
    .contact-section { padding: 40px 1rem; }
    .contact-wrapper { gap: 1.5rem; }
    .contact-form-wrapper { padding: 1.5rem; }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
    header, .cta-buttons, .social-links, footer { display: none; }
    body { color: #000; background: #fff; }
    .hero { color: #000; background: none; }
    a { color: #000; text-decoration: underline; }
}