:root {
    --background: #faf9f7;
    --foreground: #2d2d2d;
    --primary: #5a6c57;
    --primary-foreground: #faf9f7;
    --secondary: #f0ede8;
    --secondary-foreground: #6b6b6b;
    --muted-foreground: #6b6b6b;
    --border: rgba(107, 107, 107, 0.2);
    --radius: 0.625rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    font-size: 14px;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(250, 249, 247, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    position: relative;
}

.logo {
    font-weight: 500;
    color: var(--primary);
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: left;
}

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

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    z-index: 1002;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding: 200px 0 150px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    gap: 48px;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
}

.hero-buttons {
    display: flex;
    gap: 24px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-title {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
}


.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #4a5a47;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid rgba(90, 108, 87, 0.2);
}

.btn-outline:hover {
    background-color: rgba(90, 108, 87, 0.05);
}


/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    margin-bottom: 48px;
}

.separator {
    height: 1px;
    background-color: var(--border);
    margin: 0 auto;
    max-width: 1200px;
}

.separator:first-of-type {
    margin-top: 0px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.about-text p {
    color: var(--muted-foreground);
    margin-bottom: 32px;
}

.skills-title {
    font-weight: 400;
    color: var(--primary);
    margin-bottom: 32px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-badge {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    border: 1px solid var(--border);
}

/* Experience Section */
.experience-item {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 32px;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.experience-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.experience-company {
    color: var(--muted-foreground);
}

.experience-period {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid rgba(90, 108, 87, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
}

.experience-description {
    color: var(--muted-foreground);
}

/* Projects Section */
.project-card {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.project-image {
    position: relative;
    aspect-ratio: 16/9;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 24px;
}

.project-title {
    font-weight: 500;
    margin-bottom: 16px;
}

.project-description {
    color: var(--muted-foreground);
    margin-bottom: 16px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tech-badge {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    padding: 8px 12px;
    border-radius: 50px;
    font-size: 10px;
    border: 1px solid var(--border);
}

/* Contact Section */
#contact .section-title {
    text-align: center;
}

.contact-text {
    color: var(--muted-foreground);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.contact-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    background-color: rgba(240, 237, 232, 0.3);
    padding: 32px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    color: var(--muted-foreground);
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 150px 0 100px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1.125rem;
    }

    .stat-title {
        font-size: 1.125rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 300px;
    }

    .contact-buttons {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
    }


    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .experience-header > div {
        order: 2;
    }

    .experience-period {
        order: 1;
        border: none;
        padding: 0;
        background: none;
    }

    /* Mobile navigation */
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--primary);
        padding: 8px;
        transition: all 0.3s ease;
    }

    .mobile-nav-toggle.active {
        transform: rotate(90deg);
    }

    .mobile-nav-toggle.active i:before {
        content: "\f00d";
    }

    .nav-links.active,
    .nav-links.closing {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--background);
        padding: 120px 24px 24px;
        justify-content: flex-start;
        gap: 0;
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-links.active {
        animation: slideInFromRight 0.3s ease-out;
    }

    .nav-links.closing {
        animation: slideOutToRight 0.3s ease-out;
    }

    .nav-links.active a,
    .nav-links.closing a {
        color: var(--primary);
        font-size: 1.5rem;
        font-weight: 500;
        text-align: center;
        width: 100%;
    }

    .nav-links.active li,
    .nav-links.closing li {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
        border-bottom: 2px solid var(--border);
    }

    .nav-links.active li:last-child,
    .nav-links.closing li:last-child {
        border-bottom: none;
    }

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

    @keyframes slideInFromRight {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }

    @keyframes slideOutToRight {
        from {
            transform: translateX(0);
            opacity: 1;
        }
        to {
            transform: translateX(100%);
            opacity: 1;
        }
    }
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* Smooth transitions for all interactive elements */
.btn, .nav-links a, .project-card, .experience-item {
    transition: all 0.3s ease;
}
