/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --sidebar-bg: #1a1a1a;
    --sidebar-text: #e0e0e0;
    --sidebar-heading: #ffffff;
    --content-bg: #ffffff;
    --content-text: #333333;
    --content-heading: #1a1a1a;
    --accent: #4a90e2;
    --accent-hover: #357abd;
    --border: #e5e5e5;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Layout */
    --resume-max-width: 1000px;
    --hero-height: 240px;
    --sidebar-width: 30%;
    --content-width: 70%;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--content-text);
    background-color: #0e0e10;
    padding: var(--spacing-md) var(--spacing-sm);
}

/* ===================================
   CONTAINER & LAYOUT
   =================================== */
.container {
    max-width: var(--resume-max-width);
    margin: 0 auto;
    position: relative;
}

.resume-card {
    background: var(--content-bg);
    box-shadow: 0 4px 20px var(--shadow-strong);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    min-height: 600px;
}

/* ===================================
   HERO ACTIONS (HIRE ME + PRINT)
   =================================== */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.btn-hire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-hire:hover,
.btn-hire:focus {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

.print-btn {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.45);
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.print-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.print-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ===================================
   HERO HEADER
   =================================== */
.hero-header {
    width: 100%;
    position: relative;
    margin-bottom: var(--spacing-xl);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-xl);
    color: white;
    width: 100%;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-name {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-role {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    margin-bottom: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 3px 15px rgba(0, 0, 0, 0.6);
}

.hero-open {
    font-size: clamp(0.88rem, 1.65vw, 1rem);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75), 0 2px 12px rgba(0, 0, 0, 0.55);
}

.hero-tagline {
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    font-weight: 400;
    line-height: 1.45;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 3px 15px rgba(0, 0, 0, 0.6);
}

.hero-tagline--secondary {
    font-size: clamp(0.85rem, 1.6vw, 0.98rem);
    opacity: 0.95;
    margin-bottom: var(--spacing-sm);
}

.hero-location {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 300;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-availability {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* ===================================
   SIDEBAR (LEFT)
   =================================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: var(--spacing-lg) var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sidebar-heading);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.05em;
}

.profile-location {
    font-size: 0.9rem;
    color: var(--sidebar-text);
    margin-bottom: 0;
    opacity: 0.9;
}

.profile-image-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0;
}

.profile-initials {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Sidebar Sections */
.sidebar-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--spacing-md);
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-heading {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sidebar-heading);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* Contact Info */
.contact-info {
    font-size: 0.9rem;
    line-height: 1.8;
}

.contact-item {
    margin-bottom: var(--spacing-md);
}

.contact-item strong {
    color: var(--sidebar-heading);
}

.contact-item a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover,
.contact-item a:focus {
    color: var(--accent-hover);
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.social-link {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.social-link:hover,
.social-link:focus {
    background: var(--accent);
    color: white;
}

/* Languages */
.language-list {
    list-style: none;
    font-size: 0.9rem;
    line-height: 1.8;
}

.language-list li {
    padding: 0.25rem 0;
}

.language-level {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Tech Badges */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tech-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--sidebar-text);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
}

/* ===================================
   MAIN CONTENT (RIGHT)
   =================================== */
.main-content {
    width: var(--content-width);
    padding: var(--spacing-xl) var(--spacing-lg) calc(var(--spacing-xl) + 0.5rem);
    background: var(--content-bg);
}

.main-content a[href^="http"],
.main-content a[href^="mailto:"] {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.main-content a[href^="http"]:hover,
.main-content a[href^="http"]:focus,
.main-content a[href^="mailto:"]:hover,
.main-content a[href^="mailto:"]:focus {
    color: var(--accent-hover);
}

.content-section {
    margin-bottom: calc(var(--spacing-xl) + 0.25rem);
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-heading {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--content-heading);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 3px solid var(--border);
}

/* Summary */
.summary-text p {
    margin-bottom: 0;
    line-height: 1.75;
}

/* About Section */
.about-text p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-aside {
    font-size: 0.95rem;
    font-style: italic;
    color: #555;
    margin-top: var(--spacing-sm);
    margin-bottom: 0 !important;
    line-height: 1.5;
}

/* What you get */
.what-you-get-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.what-you-get-list li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.55;
    color: var(--content-text);
}

.what-you-get-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Skills (grouped) */
.skills-grouped {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.skill-group-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--content-heading);
    margin-bottom: var(--spacing-xs);
}

.keywords-line {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #888;
    margin-top: var(--spacing-lg);
    margin-bottom: 0;
}

.skills-list {
    list-style: none;
    padding-left: 0;
}

.skills-list li {
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.55;
}

.skills-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Experience Section */
.experience-item {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.experience-item:last-of-type {
    border-bottom: 2px solid var(--border);
    margin-bottom: var(--spacing-md);
}

.experience-header {
    margin-bottom: var(--spacing-sm);
}

.experience-company {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--content-heading);
    margin-bottom: 0.25rem;
}

.experience-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.experience-meta {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.experience-bullets {
    margin-top: var(--spacing-sm);
    padding-left: 1.5rem;
    line-height: 1.8;
}

.experience-bullets li {
    margin-bottom: 0.5rem;
}

.other-roles {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border);
}

.other-roles-list {
    list-style: none;
    padding-left: 0;
    margin-top: var(--spacing-sm);
}

.other-roles-list li {
    padding: 0.4rem 0;
    line-height: 1.6;
}

.other-roles-list strong {
    color: var(--content-heading);
    font-weight: 600;
}

/* Education Section */
.education-item {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.education-item:last-child {
    border-bottom: none;
}

.education-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--content-heading);
    margin-bottom: 0.25rem;
}

.education-school {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.education-status,
.education-meta {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.education-note {
    font-size: 0.9rem;
    color: #555;
    margin: var(--spacing-sm) 0;
    font-style: italic;
}

.education-link {
    margin-top: var(--spacing-sm);
}

.education-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.education-link a:hover,
.education-link a:focus {
    color: var(--accent-hover);
    text-decoration: underline;
}

.education-bullets {
    margin-top: var(--spacing-sm);
    padding-left: 1.5rem;
    line-height: 1.8;
}

.education-bullets li {
    margin-bottom: 0.5rem;
}

/* Photography Section */
.photography-text {
    line-height: 1.8;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.portfolio-item {
    background: #f9f9f9;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portfolio-item:hover {
    box-shadow: 0 2px 8px var(--shadow);
    transform: translateY(-2px);
    z-index: 1;
    position: relative;
}

.portfolio-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

.portfolio-content {
    padding: var(--spacing-md);
}

.portfolio-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--content-heading);
    margin-bottom: var(--spacing-xs);
}

.portfolio-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
}

/* ===================================
   FEATURED PROJECTS
   =================================== */
.featured-projects-section {
    margin-top: var(--spacing-sm);
}

.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.featured-project-card {
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.featured-project-card:hover {
    box-shadow: 0 8px 28px var(--shadow-strong);
    transform: translateY(-3px);
}

.featured-project-shot {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(145deg, #e8e8ea 0%, #d4d4d8 100%);
    overflow: hidden;
}

.featured-project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.featured-project-body {
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg);
}

.featured-project-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--content-heading);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.02em;
}

.main-content .featured-project-title a {
    color: var(--content-heading);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(74, 144, 226, 0.45);
    text-underline-offset: 3px;
}

.main-content .featured-project-title a:hover,
.main-content .featured-project-title a:focus {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.featured-project-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #555;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    body {
        padding: var(--spacing-sm);
    }

    .resume-card {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: var(--spacing-md);
    }

    .main-content {
        width: 100%;
        padding: var(--spacing-md);
    }

    .hero-header {
        min-height: 300px;
    }

    .profile-image-container {
        width: 150px;
        height: 150px;
    }

    .profile-placeholder {
        font-size: 3rem;
    }

    .portfolio-grid,
    .featured-projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-hire,
    .print-btn {
        width: 100%;
        justify-content: center;
    }

    .portfolio-item {
        border-radius: 4px !important;
        margin-bottom: var(--spacing-md);
    }

    .portfolio-item:last-child {
        margin-bottom: 0;
    }

}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }

    .hero-header {
        min-height: 250px;
    }

    .hero-name {
        font-size: 1.75rem;
    }

    .content-heading {
        font-size: 1.25rem;
    }

    .experience-company,
    .education-title {
        font-size: 1.1rem;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        background: white;
        padding: 0;
    }

    .container {
        max-width: 100%;
    }

    .hero-actions {
        display: none !important;
    }

    /* Hero: readable on paper — no photo, no overlay, black text on white */
    .hero-header {
        position: relative !important;
        display: block !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        min-height: 0 !important;
        margin-bottom: 1rem !important;
        padding: 20px 0 !important;
        overflow: visible !important;
        background: #fff !important;
        background-image: none !important;
        page-break-inside: avoid;
        border-radius: 0 !important;
    }

    .hero-header::before,
    .hero-header::after {
        display: none !important;
    }

    .hero-image-container,
    .hero-overlay {
        display: none !important;
    }

    .hero-image {
        display: none !important;
    }

    .hero-content {
        position: static !important;
        transform: none !important;
        z-index: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 0.5rem !important;
        color: #000 !important;
        text-align: center;
    }

    .hero-name,
    .hero-role,
    .hero-open,
    .hero-tagline,
    .hero-tagline--secondary,
    .hero-location,
    .hero-availability {
        color: #000 !important;
    }

    .resume-card {
        box-shadow: none;
        border: 1px solid #ddd;
        border-radius: 0;
        flex-direction: row;
        page-break-inside: avoid;
    }

    .sidebar {
        background: #f5f5f5;
        color: #333;
        border-right: 1px solid #ddd;
    }

    .sidebar-heading {
        color: #000;
        border-bottom-color: #999;
    }

    .contact-item a,
    .education-link a {
        color: #000;
        text-decoration: underline;
    }

    .social-link,
    .tech-badge {
        background: #e5e5e5 !important;
        border-color: #ccc !important;
        color: #333 !important;
    }

    .main-content {
        background: white;
    }

    .content-heading {
        border-bottom-color: #ccc;
    }

    .experience-item,
    .education-item {
        page-break-inside: avoid;
        border-bottom-color: #ddd;
    }

    .portfolio-item {
        background: white;
        border-color: #ddd;
        page-break-inside: avoid;
    }

    .featured-project-card {
        background: white !important;
        border-color: #ddd !important;
        box-shadow: none !important;
        transform: none !important;
        page-break-inside: avoid;
    }

    .featured-project-card:hover {
        transform: none !important;
    }

    .profile-image-container {
        border-color: #ccc;
    }

    .profile-placeholder {
        background: #ddd !important;
        color: #333 !important;
    }

    /* Ensure links are visible in print */
    a {
        text-decoration: underline;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    /* Avoid breaking inside sections */
    .content-section {
        page-break-inside: avoid;
    }
}

/* ===================================
   ACCESSIBILITY ENHANCEMENTS
   =================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}
