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

:root {
    --primary: #8B4513;
    --secondary: #2C3E50;
    --accent: #5D4E37;
    --dark: #1a1a1a;
    --light: #FAF9F6;
    --text: #2C2C2C;
    --border: #D4C5B9;
    --gradient: linear-gradient(135deg, #8B7355 0%, #5D4E37 100%);
}

body {
    font-family: 'Merriweather', serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--light);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        /* Dark overlay for text readability */
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)),
        url('soybeanfield.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
    color: white;
}

.hero-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-name {
    font-family: 'Roboto', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.subtitle {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    margin: 1rem 0 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    overflow: hidden;
}

.subtitle-left {
    display: inline-block;
    animation: slideFromLeft 1s ease-out;
}

.subtitle-right {
    display: inline-block;
    animation: slideFromRight 1s ease-out;
}

@keyframes slideFromLeft {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideFromRight {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    font-family: 'Roboto', sans-serif;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    min-width: 160px;
    text-align: center;
}

.btn-primary {
    background: white;
    color: var(--secondary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--secondary);
    transform: translateY(-3px);
}



/* Navigation */
.navbar {
    background: var(--dark);
    padding: 1rem 2rem;
    display: flex;
    gap: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-family: 'Roboto', sans-serif;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.resume-container {
    max-width: none;
    padding: 0;
}

/* Resume Styles */
.resume-layout {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 2fr;
    gap: 0;
    align-items: start;
    min-height: 100vh;
}

.resume-left {
    background: linear-gradient(160deg, #1f1b16 0%, #2b241b 55%, #3d2f1f 100%);
    color: #f4efe7;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.resume-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04) 2px, transparent 2px, transparent 10px);
    pointer-events: none;
}

.resume-right {
    background: white;
    padding: 2.5rem;
    border-left: 2px solid #efe6dc;
}

.resume-portrait {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(244, 239, 231, 0.2);
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #f4efe7;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.name-block h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.6rem;
    letter-spacing: 2px;
    color: #f4efe7;
    margin: 0.25rem 0 0;
}

.name-kicker {
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #d7b58c;
    margin: 0;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary);
}

.resume-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.tagline {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
    margin-top: 5.5rem;
}


.contact-info {
    margin-top: 1rem;
    font-size: 1rem;
}

.contact-link {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
}

.contact-link:hover {
    color: var(--primary);
}

.resume-section {
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    z-index: 1;
}

.resume-section h2 {
    font-family: 'Oswald', sans-serif;
    color: var(--secondary);
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.resume-left .resume-section h2 {
    color: #f4efe7;
}

.resume-left p,
.resume-left li {
    color: #efe7dc;
}

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

.competency-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.competency-card:hover {
    transform: translateY(-5px);
}

.competency-card h3 {
    font-family: 'Roboto', sans-serif;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 700;
}

.resume-left .competencies-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.resume-left .competency-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.resume-left .competency-card h3 {
    color: #f0c89e;
}

.competency-card ul {
    list-style: none;
}

.competency-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.competency-card li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.job {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

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

.job-header h3 {
    font-family: 'Roboto', sans-serif;
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 700;
}

.job-title {
    color: var(--accent);
    font-weight: 600;
}

.job-date {
    color: #666;
    font-weight: 600;
}

.job ul {
    list-style: none;
}

.job li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.job li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Expandable Job Details */
.expandable-section {
    margin-bottom: 1.5rem;
}

.section-header {
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: #F5F1ED;
    border-radius: 5px;
    transition: all 0.3s ease;
    user-select: none;
}

.section-header:hover {
    background: #EDE7E0;
}

.section-header h4 {
    font-family: 'Roboto', sans-serif;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-content {
    list-style: none;
    margin-top: 0.5rem;
    padding-left: 1rem;
    animation: fadeInUp 0.3s ease-out;
}

.section-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.section-content li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.job-subtitle {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.25rem;
}

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

.education-grid h4 {
    font-family: 'Roboto', sans-serif;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 700;
}

.education-grid ul {
    list-style: none;
}

.education-grid li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.education-grid li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Cover Letter Generator */
.cover-letter-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.form-section h1 {
    font-family: 'Roboto', sans-serif;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.form-description {
    color: #666;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

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

.preview-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.preview-header h2 {
    font-family: 'Roboto', sans-serif;
    color: var(--secondary);
    font-weight: 700;
}

.letter-preview {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.placeholder-text {
    color: #999;
    text-align: center;
    padding: 3rem 1rem;
}

.letter-preview h3 {
    font-family: 'Roboto', sans-serif;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.letter-preview p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .subtitle {
        font-size: 1.2rem;
    }

    .resume-layout {
        grid-template-columns: 1fr;
    }

    .resume-left,
    .resume-right {
        padding: 2rem 1.5rem;
    }
    
    .cover-letter-container {
        grid-template-columns: 1fr;
    }
    
    .preview-section {
        position: static;
    }
    
    .competencies-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }
}
