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

:root {
    --primary-color: #6B8E23; /* Sage green */
    --secondary-color: #556B2F; /* Dark olive green */
    --accent-color: #8FBC8F; /* Dark sea green */
    --dark-bg: #2F4F4F; /* Dark slate gray */
    --light-bg: #F5F5F5; /* Light gray */
    --text-primary: #333333; /* Dark gray */
    --text-secondary: #666666; /* Medium gray */
    --white: #ffffff;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: #e8e8e8;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(232, 232, 232, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    position: relative;
}

.hero-content {
    z-index: 1;
    padding: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--white);
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

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

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Sections */
.section {
    padding: 3rem 0;
    min-height: 60vh;
}

.alternate-bg {
    background: var(--light-bg);
}

.section-title {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    font-weight: 500;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0.75rem auto;
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.highlight-card {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid #d0d0d0;
    transition: box-shadow 0.3s ease;
}

.highlight-card:hover {
    box-shadow: var(--shadow-lg);
}

.highlight-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.highlight-card h3 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.highlight-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 50px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
    margin-right: auto;
    text-align: left;
}

.timeline-content {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: var(--shadow);
    width: calc(50% - 40px);
    position: relative;
    border: 1px solid #d0d0d0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-institution {
    color: var(--text-secondary);
    font-style: italic;
}

/* Experience Grid */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.experience-card {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: var(--shadow);
    border: 1px solid #d0d0d0;
    transition: box-shadow 0.3s ease;
}

.experience-card:hover {
    box-shadow: var(--shadow-lg);
}

.experience-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.experience-card h3 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.experience-org {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.experience-card ul {
    list-style: none;
    padding-left: 0;
}

.experience-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.experience-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

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

.project-card {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: var(--shadow);
    border: 1px solid #d0d0d0;
    border-left: 3px solid var(--primary-color);
    transition: box-shadow 0.3s ease;
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
}

.project-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.project-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-type {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Skills */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-category {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: var(--shadow);
    border: 1px solid #d0d0d0;
}

.skill-category h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

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

.skill-tag {
    background: var(--light-bg);
    color: var(--text-primary);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 400;
    border: 1px solid #d0d0d0;
    cursor: default;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f5f5f5;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    box-shadow: var(--shadow);
    border: 1px solid #d0d0d0;
}

.contact-icon {
    font-size: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 4px;
    color: white;
}

.contact-item h3 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-cta {
    text-align: center;
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: var(--shadow);
    border: 1px solid #d0d0d0;
}

.contact-cta p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #e8e8e8;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        text-align: left;
    }

    .timeline-item::before {
        left: 20px;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Remove typing effect reference */
.hero-subtitle {
    animation: none;
}

/* Animations on Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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