/* ----------------------------------------
   RESET & VARIABLES
---------------------------------------- */
:root {
    --primary-color: #2C5F2D;      /* Deep Forest Green */
    --secondary-color: #97BC62;    /* Fresh Light Green */
    --accent-color: #1b1b1b;       /* Dark Grey text */
    --light-bg: #f8f9fa;           /* Off-white */
    --white: #ffffff;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--accent-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ----------------------------------------
   NAVIGATION
---------------------------------------- */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--accent-color);
    transition: var(--transition);
}

/* ----------------------------------------
   HERO SECTION
---------------------------------------- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(44, 95, 45, 0.9), rgba(44, 95, 45, 0.8)), url('https://images.unsplash.com/photo-1500937386664-56d1dfef3854?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 70px; /* Offset for fixed nav */
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin: 10px 0 20px;
}

.subtitle {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    font-weight: 700;
}

.tagline {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ----------------------------------------
   ABOUT SECTION
---------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #444;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-item {
    background: var(--light-bg);
    padding: 20px;
    border-left: 5px solid var(--secondary-color);
    border-radius: 4px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
}

/* ----------------------------------------
   EXPERIENCE / PORTFOLIO
---------------------------------------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
}

.card-header h3 {
    font-size: 1.2rem;
}

.card-header .date {
    font-size: 0.9rem;
    opacity: 0.8;
    display: block;
    margin-top: 5px;
}

.card-body {
    padding: 25px;
}

.card-body p {
    font-size: 0.95rem;
    color: #555;
}

/* ----------------------------------------
   SKILLS SECTION
---------------------------------------- */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.skills-category h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.skills-list li, .education-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.skills-list li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

.education-list li strong {
    display: block;
    color: #333;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-tags li {
    background: var(--light-bg);
    border: 1px solid var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ----------------------------------------
   CONTACT SECTION
---------------------------------------- */
.contact-section {
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-section .section-title {
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info a {
    color: var(--secondary-color);
    font-weight: 600;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

/* ----------------------------------------
   FOOTER
---------------------------------------- */
footer {
    background: #1a1a1a;
    color: #888;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* ----------------------------------------
   ANIMATION UTILITIES
---------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------
   MEDIA QUERIES
---------------------------------------- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transition: 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 15px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        gap: 30px;
    }
}