/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* Creamy Theme Colors */
    --bg-color: #fdfbf7;       /* Very light cream */
    --section-bg: #f4f1ea;     /* Slightly darker cream for contrast */
    --text-color: #333333;     /* Dark charcoal for readability */
    --accent-color: #d4c4a8;   /* Muted gold/beige for accents */
    --accent-hover: #bfae92;   /* Darker beige for hover states */
    --white: #ffffff;
    
    /* Spacing */
    --container-width: 1100px;
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   2. NAVIGATION BAR
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--nav-height);
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

/* Slick Underline Animation Logic */
.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color);
    padding: 5px 0;
    transition: color 0.3s ease;
}

/* The underline element */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
}

/* Hover Effect */
.nav-link:hover {
    color: var(--accent-hover);
}

.nav-link:hover::after {
    width: 100%;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero-section {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--section-bg) 100%);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: #666;
}

/* =========================================
   4. SECTIONS GENERAL
   ========================================= */
.section-padding {
    padding: 80px 5%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

/* Small decorative line under titles */
.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background-color: var(--accent-color);
    margin-top: 5px;
    border-radius: 2px;
}

.content-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

/* =========================================
   5. PROJECTS GRID
   ========================================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--section-bg);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--accent-color);
}

.project-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

/* =========================================
   6. SKILLS LIST
   ========================================= */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skills-list li {
    background-color: var(--section-bg);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid var(--accent-color);
}

/* =========================================
   7. CONTACT FORM
   ========================================= */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, 
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: var(--bg-color);
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--accent-color);
}

.contact-form button {
    padding: 15px;
    background-color: var(--text-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--section-bg);
    margin-top: 50px;
    font-size: 0.9rem;
    color: #666;
}

/* =========================================
   9. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .nav-links {
        margin-top: 20px;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}