/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* BODY */
body {
    background: #0f172a; /* dark navy */
    color: #e2e8f0;
    line-height: 1.6;
}

/* CONTAINER */
section {
    padding: 80px 10%;
}

/* NAVBAR */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background: #020617;
    padding: 15px 10%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    color: #38bdf8;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #e2e8f0;
    transition: 0.3s;
}

nav a:hover {
    color: #38bdf8;
}

/* HERO SECTION */
#home {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
}

#home h2 {
    font-size: 3rem;
}

#home p {
    margin: 15px 0;
    font-size: 1.2rem;
}

#home a {
    background: #38bdf8;
    color: #020617;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    width: fit-content;
    transition: 0.3s;
}

#home a:hover {
    background: #0ea5e9;
}

/* ABOUT */
#about p {
    max-width: 600px;
}

/* SKILLS */
#skills ul {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

#skills li {
    background: #1e293b;
    padding: 10px 15px;
    border-radius: 5px;
}

/* PROJECTS */
#projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

#projects article {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
}

#projects article:hover {
    transform: translateY(-5px);
}

#projects a {
    display: inline-block;
    margin-top: 10px;
    color: #38bdf8;
    text-decoration: none;
}

/* CONTACT */
form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
}

form input,
form textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

form button {
    background: #38bdf8;
    border: none;
    padding: 10px;
    cursor: pointer;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #020617;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav ul {
        display: none; /* later JS se menu bana sakte ho */
    }

    #home h2 {
        font-size: 2rem;
    }
}