* {
    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: 
        radial-gradient(ellipse at 20% 30%, rgba(139, 69, 19, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(93, 78, 55, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(101, 67, 33, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(0, 0, 0, 0.02) 2px, rgba(0, 0, 0, 0.02) 4px),
        linear-gradient(135deg, #8B7355 0%, #5D4E37 100%);
    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: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.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 Styles */
.resume-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--primary);
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.2);
}

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

.tagline {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 300;
}


.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: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.resume-section h2 {
    font-family: 'Roboto', sans-serif;
    color: var(--secondary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.resume-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

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

.competency-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    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;
}

.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: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.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;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
    user-select: none;
}

.section-header:hover {
    background: #EDE7E0;
    border-left-width: 6px;
}

.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;
}

.toggle-icon {
    color: var(--primary);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.section-header.expanded .toggle-icon {
    transform: rotate(180deg);
}

.section-summary {
    list-style: none;
    margin-top: 0.5rem;
}

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

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

.section-content {
    list-style: none;
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
    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;
}

.section-details {
    list-style: none;
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
    animation: fadeInUp 0.3s ease-out;
}

.section-details li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: #555;
}

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

.expand-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.expand-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.expand-btn.expanded {
    background: var(--secondary);
}

.detailed-content {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light);
    animation: fadeInUp 0.4s ease-out;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h4 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary);
}

.detail-section ul {
    list-style: none;
}

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

.detail-section 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;
}

.summary-list {
    list-style: none;
}

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

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

.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) {
    .glitch {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .cover-letter-container {
        grid-template-columns: 1fr;
    }
    
    .preview-section {
        position: static;
    }
    
    .competencies-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }
}
