/* =====================
   Base + Variables
   ===================== */

:root {
    --color-50: #f3fde8;
    --color-100: #e3facd;
    --color-200: #c3f496;
    --color-300: #a5ec6a;
    --color-400: #85df3c;
    --color-500: #65c41e;
    --color-600: #4c9d13;
    --color-700: #3b7714;
    --color-800: #325f15;
    --color-900: #2c5017;
    --color-950: #142c07;

    --primary: #65c41e;
    --primary-dark: #4c9d13;
    --primary-darker: #3b7714;
    --primary-light: #85df3c;

    --white: #ffffff;
    --light: #f3fde8;
    --text: #1a1a1a;
    --text-light: #666666;

    --shadow-sm: 0 2px 8px rgba(20, 44, 7, 0.08);
    --shadow-md: 0 8px 24px rgba(20, 44, 7, 0.12);
    --shadow-lg: 0 16px 40px rgba(20, 44, 7, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.6;
}

/* =====================
   Animations 
   ===================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =====================
   Navbar
   ===================== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 2px solid var(--color-100);
    box-shadow: var(--shadow-sm);
    z-index: 100;
}

.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: 800;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    position: relative;
}

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

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

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

/* =====================
   Hero
   ===================== */

.hero {
    margin-top: 70px;
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--light), var(--color-50));
    text-align: center;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeUp 0.8s ease-out;
}

.hero h1 {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(
        135deg,
        var(--primary-darker),
        var(--primary),
        var(--color-300)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.cta-button,
.cta-button-secondary {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.cta-button:hover,
.cta-button-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* =====================
   Global Sections
   ===================== */

section {
    padding: 6rem 2rem;
}

section > * {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3.5rem;
}

/* =====================
   About
   ===================== */

#about {
    background: linear-gradient(135deg, var(--light), var(--color-50));
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-darker);
}

.about-text p {
    margin-bottom: 1.75rem;
    color: var(--text-light);
    line-height: 1.9;
}

.about-image {
    display: flex;
    justify-content: center;
    animation: slideInRight 0.8s ease-out;
}

.about-image img {
    width: 100%;
    max-width: 350px;
    height: 450px;
    object-fit: cover;
    border-radius: 1.5rem;
    border: 4px solid var(--color-100);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

/* =====================
   Projects
   ===================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: white;
    border: 2px solid var(--color-100);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 240px;
}

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

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

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

.tag {
    background: var(--color-100);
    color: var(--primary-darker);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

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

/* =====================
   Skills 
   ===================== */

#skills {
    background: linear-gradient(135deg, var(--light), var(--color-50));
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    animation: fadeUp 0.8s ease-out;
}

.skill-category {
    background: white;
    padding: 2.5rem;
    border-radius: 1.25rem;
    border: 2px solid var(--color-100);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-darker);
}

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

.skill-list li {
    padding: 0.6rem 0;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.skill-list li::before {
    content: "→ ";
    color: var(--primary);
    font-weight: bold;
}

.skill-list li:hover {
    transform: translateX(6px);
}

/* =====================
   Contact + Footer
   ===================== */

#contact {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-darker), var(--primary-dark));
    color: white;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--color-100);
}

.contact-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.contact-link {
    color: white;
    border: 2px solid var(--color-200);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    background: var(--color-200);
    color: var(--primary-darker);
}

footer {
    background: var(--color-950);
    color: var(--color-100);
    text-align: center;
    padding: 3rem 2rem;
}

/* =====================
   Mobile
   ===================== */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

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