/* ============================================
   ARCHITECTURAL PRECISION - Portfolio Stylesheet
   Typography: DM Serif Display + DM Sans
   Accent: Warm Terracotta
   ============================================ */

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

/* --- Color System --- */
:root {
    --bg-primary: #FAFAF8;
    --bg-alt: #F2F0EC;
    --text-primary: #1C1C1C;
    --text-secondary: #5C5C5C;
    --text-tertiary: #8A8A8A;
    --accent: #C45D3E;
    --accent-hover: #A84E33;
    --border: #E5E3DF;
    --nav-bg: rgba(250, 250, 248, 0.95);
    --card-bg: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    --bg-primary: #141413;
    --bg-alt: #1C1C1A;
    --text-primary: #EDEDEB;
    --text-secondary: #A0A09C;
    --text-tertiary: #6E6E6A;
    --accent: #D4785E;
    --accent-hover: #E08B6E;
    --border: #2E2E2C;
    --nav-bg: rgba(20, 20, 19, 0.95);
    --card-bg: #1C1C1A;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* --- Scroll Progress Indicator --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    z-index: 2000;
    transition: width 0.3s ease;
    width: 0%;
}

/* --- Skip Link for Accessibility --- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 2000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* --- Focus Styles --- */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus {
    outline: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

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

.nav-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.4rem;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    width: 100%;
}

/* ============================================
   HERO SECTION - 2 Column Split
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    padding-top: 80px;
}

.hero-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    z-index: 1;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 3.8rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.hero-title {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

/* Stats: Large serif numbers with vertical separators */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2.5rem;
}

.stat-item {
    text-align: left;
    padding: 0 2rem;
}

.stat-item:first-child {
    padding-left: 0;
}

.stat-separator {
    width: 1px;
    height: 48px;
    background: var(--border);
    flex-shrink: 0;
}

.stat-number {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--accent);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 0.25rem;
}

/* Buttons: Small rounded-rectangle, understated */
.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.7rem 1.75rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

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

/* Hero Social: Clean inline links */
.hero-social {
    display: flex;
    gap: 0.75rem;
}

.hero-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-tertiary);
    border-radius: 6px;
    text-decoration: none;
    transition: color 0.2s ease;
    border: 1px solid var(--border);
}

.hero-social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.hero-social-link svg,
.social-link svg {
    width: 100%;
    height: 100%;
    max-width: 20px;
    max-height: 20px;
}

/* Hero Profile Photo: Rectangular with rounded corners */
.hero-profile {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-profile img {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Section title: Left-aligned with accent line */
.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text-primary);
    text-align: left;
    margin-bottom: 3rem;
    position: relative;
    padding-left: 1.25rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Remove old centered underline */
.section-title::after {
    display: none;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS (reduced to 12px)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children > * {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.stagger-children.active > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.active > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.active > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.active > *:nth-child(9) { transition-delay: 0.45s; }
.stagger-children.active > *:nth-child(10) { transition-delay: 0.5s; }
.stagger-children.active > *:nth-child(11) { transition-delay: 0.55s; }
.stagger-children.active > *:nth-child(12) { transition-delay: 0.6s; }
.stagger-children.active > *:nth-child(13) { transition-delay: 0.65s; }
.stagger-children.active > *:nth-child(14) { transition-delay: 0.7s; }

.stagger-children.active > * {
    opacity: 1;
    transform: translateY(0);
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .stagger-children > * {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--bg-alt);
    max-width: 100%;
    padding: 6rem 2rem;
}

.about .section-title {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.about-image {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.profile-photo {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 4 / 5;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.about-heading {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.skills-heading {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Skills: accent-bordered list items */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.5rem 0.75rem;
    border-left: 2px solid var(--accent);
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.skill-tag:hover {
    background: rgba(196, 93, 62, 0.06);
}

[data-theme="dark"] .skill-tag:hover {
    background: rgba(212, 120, 94, 0.1);
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.experience-timeline {
    position: relative;
    padding-left: 2rem;
}

/* Thin 1px timeline */
.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.experience-item {
    position: relative;
    margin-bottom: 2.5rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: border-color 0.2s ease;
}

.experience-item:hover {
    border-color: var(--accent);
}

/* Small 8px accent dots */
.experience-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 2.2rem;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

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

.experience-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.company-name {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.experience-date {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.experience-list {
    list-style: none;
    margin-top: 0.75rem;
}

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

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

.highlight {
    color: var(--text-primary);
    font-weight: 600;
    padding: 0;
    background: none;
    position: relative;
    padding-left: 0;
}

/* Remove the emoji from highlight */
.highlight::before {
    display: none;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    background: var(--bg-alt);
    max-width: 100%;
    padding: 6rem 2rem;
}

.projects .section-title {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: border-color 0.2s ease;
}

.project-card:hover {
    border-color: var(--accent);
}

.project-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

/* Large accent-colored metric numbers */
.project-metrics {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.metric {
    text-align: left;
}

.metric-value {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--accent);
    line-height: 1.2;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.15rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.project-highlights {
    list-style: none;
}

.project-highlights li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
.education {
    background: var(--bg-primary);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.education-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: left;
    transition: border-color 0.2s ease;
}

.education-card:hover {
    border-color: var(--accent);
}

.degree-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.university-name {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.education-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.degree-year {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    background: var(--bg-alt);
    max-width: 100%;
    padding: 6rem 2rem;
}

.testimonials .section-title {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Serif italic quotes */
.testimonial-text {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Small accent line above author name */
.testimonial-author {
    padding-top: 1rem;
    border-top: none;
    position: relative;
}

.testimonial-author::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.testimonial-author strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.testimonial-author span {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
    background: var(--bg-primary);
}

.contact-content {
    max-width: 600px;
}

.contact-content > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Clean inline contact items */
.contact-info {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.contact-item:hover {
    color: var(--accent);
}

.contact-item i {
    font-size: 1rem;
    color: var(--accent);
    width: 18px;
    text-align: center;
}

/* Small social icon links */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ============================================
   FOOTER - Thin top border, minimal
   ============================================ */
footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 2rem;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    background: var(--bg-primary);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 42px;
    height: 42px;
    background: var(--card-bg);
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.2s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

/* ============================================
   MOBILE MENU STYLES
   ============================================ */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    width: 30px;
    height: 30px;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s ease;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 7px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 14px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 21px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    top: 14px;
    transform: rotate(135deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -40px;
}

.mobile-menu-toggle.active span:nth-child(3) {
    top: 14px;
    transform: rotate(-135deg);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border);
    }

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

    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Hero stacks vertically on mobile */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    /* Photo goes first on mobile (reorder) */
    .hero-profile {
        order: -1;
    }

    .hero-profile img {
        max-width: 260px;
        margin: 0 auto;
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1rem;
    }

    /* Stats stack on mobile */
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

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

    .stat-separator {
        width: 40px;
        height: 1px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-social {
        justify-content: center;
    }

    /* Section titles centered on mobile */
    .section-title {
        text-align: center;
        padding-left: 0;
    }

    .section-title::before {
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        bottom: -8px;
        width: 40px;
        height: 2px;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        justify-content: center;
    }

    .profile-photo {
        max-width: 220px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-timeline {
        padding-left: 1.5rem;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-content {
        text-align: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-author::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .testimonial-author {
        text-align: center;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    nav,
    .scroll-progress,
    .skip-link,
    .hero-social,
    .social-links,
    .theme-toggle,
    .mobile-menu-toggle,
    .back-to-top,
    .cta-buttons {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
        font-size: 11pt;
        line-height: 1.5;
    }

    .hero {
        min-height: auto;
        background: none !important;
        padding: 1rem 0;
        page-break-after: always;
    }

    .hero-grid {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 22pt;
        color: #000;
    }

    .hero-title {
        color: #333;
    }

    .stat-number,
    .metric-value {
        color: #000 !important;
    }

    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }

    .section-title {
        font-size: 16pt;
        color: #000;
        page-break-after: avoid;
    }

    .section-title::before {
        background: #000;
    }

    .experience-item,
    .education-card,
    .project-card,
    .testimonial-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        background: #fff !important;
        page-break-inside: avoid;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .contact-item[href^="mailto:"]:after {
        content: " (" attr(href) ")";
    }

    * {
        animation: none !important;
        transition: none !important;
    }

    .about,
    .projects,
    .testimonials {
        background: #fff !important;
    }
}
