:root {
    --primary-color: #3498db;
    --dark-color: #111;
    --light-color: #222;
    --text-color: #f4f4f4;
    --container-width: 960px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: var(--dark-color);
    color: var(--text-color);
}

.container {
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5rem;
}

header ul {
    display: flex;
    list-style: none;
}

header ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

header ul li a:hover {
    background: var(--primary-color);
    border-radius: 5px;
}

#hero {
    background: var(--light-color);
    padding: 10rem 0 4rem;
    text-align: center;
}

#hero .profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
}

#hero .hero-text h2 {
    font-size: 1.5rem;
    margin-top: 1rem;
}

#hero .hero-text h1 {
    font-size: 3rem;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #2980b9;
}

section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

#about ul {
    list-style: none;
    margin-top: 1rem;
}

#about ul li {
    margin-bottom: 0.5rem;
}

#skills .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    text-align: center;
}

#skills .skill {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 5px;
    font-weight: 600;
}

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

.project-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

#contact form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

#contact input, #contact textarea {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: var(--light-color);
    color: var(--text-color);
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

footer .social-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.5rem;
}

/* Hamburger menu styles */
.hamburger-menu {
    display: none; /* Hidden by default, shown on small screens */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Navigation links on small screens */
@media(max-width: 768px) {
    header nav {
        flex-wrap: wrap; /* Allow items to wrap */
        justify-content: space-between; /* Keep logo and hamburger separate */
        align-items: center;
    }

    header .logo {
        margin-bottom: 0; /* Reset margin */
    }

    .hamburger-menu {
        display: flex; /* Show hamburger on small screens */
    }

    header ul.nav-links {
        display: none; /* Hide nav links by default */
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: #333; /* Same as header background */
        padding: 1rem 0;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        right: 0;
    }

    header ul.nav-links.active { /* Class to be toggled by JS */
        display: flex; /* Show nav links when active */
    }

    header ul.nav-links li {
        margin: 0.5rem 0;
    }

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