/* CV Page - Clean Professional Design */

:root {
    --cream: #FAF7F2;
    --white: #FFFDF9;
    --sand: #E8E0D5;
    --terracotta: #C4704F;
    --terracotta-dark: #A85A3A;
    --sage: #7D9082;
    --sage-dark: #5A6B5E;
    --brown: #4A3F35;
    --charcoal: #2C2C2C;
    --text: #3D3D3D;
    --text-light: #6B6B6B;
    --border: #E0D8CC;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--cream);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--terracotta);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 1000;
}
.skip-link:focus { top: 0; }

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--cream);
    z-index: 100;
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

.nav.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

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

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--charcoal);
    text-decoration: none;
}

.nav-logo span {
    color: var(--terracotta);
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--terracotta);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: 0.3s;
}

/* Container */
.cv-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.cv-header {
    padding: 8rem 1.5rem 4rem;
    background: linear-gradient(135deg, var(--sand) 0%, var(--cream) 100%);
}

.cv-header-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.cv-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.cv-header-content h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.cv-tagline {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cv-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.25rem;
}

.cv-contact a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
}

.cv-contact a:hover {
    color: var(--terracotta);
}

.cv-download-btn {
    display: inline-block;
    background: var(--terracotta);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.cv-download-btn:hover {
    background: var(--terracotta-dark);
}

/* Sections */
.cv-section {
    padding: 3rem 1.5rem;
}

.cv-section-alt {
    background: var(--white);
}

.cv-section h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--terracotta);
    display: inline-block;
}

.cv-subheading {
    margin-top: 2.5rem;
}

/* Summary */
.cv-summary {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    max-width: 800px;
}

/* Featured Roles */
.cv-role {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.cv-role:last-of-type {
    border-bottom: none;
}

.cv-role-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.cv-date {
    font-size: 0.85rem;
    color: var(--terracotta);
    font-weight: 600;
}

.cv-current-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--sage);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.cv-role h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.cv-org {
    color: var(--sage);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.cv-role > p:last-child {
    color: var(--text);
    font-size: 0.95rem;
}

/* Compact Role Grid */
.cv-role-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.cv-role-compact {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.cv-role-compact .cv-date {
    flex-shrink: 0;
    min-width: 50px;
}

.cv-role-compact h4 {
    font-size: 0.95rem;
    color: var(--charcoal);
    margin-bottom: 0.15rem;
}

.cv-role-compact .cv-org {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Role List */
.cv-role-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cv-role-item {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.cv-role-item:last-child {
    border-bottom: none;
}

.cv-role-item .cv-date {
    flex-shrink: 0;
    min-width: 70px;
    font-size: 0.8rem;
}

.cv-role-item span:last-child {
    font-size: 0.95rem;
}

/* Projects */
.cv-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.cv-project {
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}

.cv-project:hover {
    border-color: var(--terracotta);
    box-shadow: 0 4px 15px rgba(196,112,79,0.1);
}

.cv-project-date {
    display: inline-block;
    font-size: 0.75rem;
    color: white;
    background: var(--terracotta);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.cv-project h4 {
    font-size: 1rem;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.cv-project p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* Qualifications */
.cv-quals-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
}

.cv-quals-list {
    list-style: none;
}

.cv-quals-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.cv-quals-list li:last-child {
    border-bottom: none;
}

.cv-quals-side {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 8px;
}

.cv-quals-side h3 {
    font-size: 0.9rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cv-quals-side p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.cv-quals-side p:last-child {
    margin-bottom: 0;
}

/* ============================================
   DOWNLOADS - ARTISTIC REDESIGN
   ============================================ */

.cv-downloads-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%);
    position: relative;
    overflow: hidden;
}

/* Artistic Background */
.cv-downloads-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.dl-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(196, 112, 79, 0.12);
}

.dl-circle-1 {
    width: 350px;
    height: 350px;
    top: -120px;
    right: -80px;
    animation: dlFloat 25s ease-in-out infinite;
}

.dl-circle-2 {
    width: 250px;
    height: 250px;
    bottom: -80px;
    left: -60px;
    border-color: rgba(125, 144, 130, 0.1);
    animation: dlFloat 30s ease-in-out infinite reverse;
}

.dl-line {
    position: absolute;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--terracotta), transparent);
    top: 40%;
    left: 10%;
    transform: rotate(-10deg);
    opacity: 0.3;
}

@keyframes dlFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(3deg); }
}

/* Header */
.cv-downloads-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.dl-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--terracotta);
    margin-bottom: 0.75rem;
}

.cv-downloads-header h2 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
    font-weight: 500;
    border: none;
    padding: 0;
}

.dl-divider {
    width: 50px;
    height: 2px;
    background: var(--terracotta);
    margin: 0 auto;
}

/* Downloads Grid */
.cv-downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

/* Download Card */
.dl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--terracotta);
    opacity: 0;
    transition: all 0.3s ease;
}

.dl-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(74, 63, 53, 0.12);
    border-color: rgba(196, 112, 79, 0.3);
}

.dl-card:hover::before {
    opacity: 1;
    width: 100%;
}

/* Icon */
.dl-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    position: relative;
}

.dl-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(196, 112, 79, 0.08);
    border-radius: 50%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    z-index: -1;
}

.dl-card:hover .dl-icon::after {
    transform: scale(1.1);
}

.dl-icon svg {
    width: 36px;
    height: 36px;
    color: var(--terracotta);
    transition: transform 0.3s ease;
}

.dl-card:hover .dl-icon svg {
    transform: scale(1.1);
}

/* Card Variants */
.dl-card-cv .dl-icon svg { color: var(--sage-dark); }
.dl-card-cv .dl-icon::after { background: rgba(125, 144, 130, 0.1); }
.dl-card-cv:hover::before { background: var(--sage-dark); }

.dl-card-portfolio .dl-icon svg { color: var(--terracotta); }

.dl-card-report .dl-icon svg { color: var(--brown); }
.dl-card-report .dl-icon::after { background: rgba(74, 63, 53, 0.08); }
.dl-card-report:hover::before { background: var(--brown); }

.dl-card-archive .dl-icon svg { color: var(--sage); }
.dl-card-archive .dl-icon::after { background: rgba(125, 144, 130, 0.1); }
.dl-card-archive:hover::before { background: var(--sage); }

/* Title & Type */
.dl-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.35rem;
    transition: color 0.3s ease;
}

.dl-card:hover .dl-title {
    color: var(--terracotta);
}

.dl-type {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* CTA */
.cv-cta {
    padding: 4rem 1.5rem;
    background: var(--terracotta);
    text-align: center;
}

.cv-cta h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
    border: none;
}

.cv-cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.cv-cta-btn {
    display: inline-block;
    background: white;
    color: var(--terracotta);
    padding: 0.875rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.cv-cta-btn:hover {
    background: var(--charcoal);
    color: white;
}

/* Footer */
.cv-footer {
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--charcoal);
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
    .cv-projects {
        grid-template-columns: repeat(2, 1fr);
    }

    .cv-quals-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cv-downloads {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--border);
        display: none;
    }

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

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

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

    .nav-toggle {
        display: flex;
    }

    .cv-header {
        padding: 7rem 1.5rem 3rem;
    }

    .cv-header-inner {
        flex-direction: column;
        text-align: center;
    }

    .cv-photo {
        width: 140px;
        height: 140px;
    }

    .cv-header-content h1 {
        font-size: 2rem;
    }

    .cv-contact {
        justify-content: center;
    }

    .cv-role-grid {
        grid-template-columns: 1fr;
    }

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

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

    /* New Downloads Section */
    .cv-downloads-section {
        padding: 4rem 0;
    }

    .cv-downloads-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .cv-role-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .cv-role-item .cv-date {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .cv-section {
        padding: 2rem 1rem;
    }

    .cv-header {
        padding: 6rem 1rem 2.5rem;
    }

    .cv-downloads {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .cv-dl {
        padding: 1rem 0.75rem;
    }

    .cv-dl-icon {
        font-size: 1.5rem;
    }

    .cv-dl-name {
        font-size: 0.75rem;
    }

    /* New Downloads Section - Responsive */
    .cv-downloads-section {
        padding: 3rem 0;
    }

    .cv-downloads-header h2 {
        font-size: 1.75rem;
    }

    .cv-downloads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .dl-card {
        padding: 1.5rem 1rem;
    }

    .dl-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 1rem;
    }

    .dl-icon svg {
        width: 28px;
        height: 28px;
    }

    .dl-title {
        font-size: 0.9rem;
    }

    .dl-circle-1 {
        width: 200px;
        height: 200px;
        top: -60px;
        right: -40px;
    }

    .dl-circle-2 {
        width: 150px;
        height: 150px;
        bottom: -40px;
        left: -30px;
    }
}
