:root {
    /* Define primary colors for easy editing */
    --bg-color: #fcfbf9;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --highlight-color: #799a82; /* Sage green from the design */
    --card-bg: #f4f3f0;
    --border-color: #e5e5e5;
    --footer-bg: #2d2d2d;
    --footer-text: #ffffff;
    --accent-orange: #a85232;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Typography Base */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(252, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links a {
    margin: 0 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

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

.nav-actions i {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-actions i:hover {
    color: var(--text-primary);
}

.btn-contact {
    background-color: var(--highlight-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-contact:hover {
    background-color: #63826b;
    transform: translateY(-2px);
    color: white;
}

/* Main Layout */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding-top: 10rem;
    padding-bottom: 6rem;
    border-bottom: none;
}

.profile-pic-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.profile-pic-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.profile-pic-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-title .highlight {
    color: var(--highlight-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.contact-info a:hover {
    color: var(--highlight-color);
}

.contact-info i {
    margin-right: 0.5rem;
}

.hero-separator {
    width: 40px;
    height: 2px;
    background-color: var(--accent-orange);
    margin: 0 auto;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent-orange);
    text-transform: uppercase;
    font-weight: 600;
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--border-color);
    z-index: 1;
}

.timeline-item:first-child .timeline-dot {
    border-color: var(--accent-orange);
}

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

.timeline-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.company {
    font-size: 0.85rem;
    color: var(--accent-orange);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.date {
    font-size: 0.75rem;
    background-color: var(--card-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 1px;
}

.duties {
    list-style-type: disc;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.duties li {
    margin-bottom: 0.5rem;
}

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

.project-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tags span {
    font-size: 0.7rem;
    background-color: var(--card-bg);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-link {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    color: var(--highlight-color);
}

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

.skill-category {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
}

.skill-category h3 {
    font-size: 0.75rem;
    color: var(--accent-orange);
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tags span {
    font-size: 0.85rem;
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    color: var(--text-primary);
}

/* Education */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.education-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.education-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.edu-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.institution {
    font-size: 0.9rem;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.edu-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.edu-meta {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* CTA */
.cta {
    text-align: center;
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 4rem 2rem;
    margin: 4rem 0;
    border: none;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: var(--highlight-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #63826b;
    transform: translateY(-3px);
    color: white;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-left p {
    font-size: 0.85rem;
    color: #999;
}

.footer-right {
    display: flex;
    gap: 2rem;
}

.footer-right a {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ccc;
}

.footer-right a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-links {
        /* Fallback for mobile: show links wrapped */
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .nav-content {
        flex-direction: column;
    }

    .timeline-header, .education-item {
        flex-direction: column;
    }
    
    .date, .edu-meta {
        margin-top: 0.5rem;
        align-self: flex-start;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        justify-content: center;
    }
}

/* Animation Classes */
.section-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}
