* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #222;
}


/* NAVBAR */

header {
    background: #111827;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1100px;
    margin: auto;
    padding: 18px 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #38bdf8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.nav-links a:hover {
    color: #38bdf8;
}

.menu-btn {
    display: none;
    font-size: 25px;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
}


/* HERO */

.hero {
    min-height: 90vh;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    background:
        linear-gradient(135deg, #111827, #1e3a8a);

    color: white;

    padding: 30px;
}

.hero-content {
    max-width: 750px;
}

.hello {
    color: #38bdf8;
    font-size: 22px;
}

.hero h1 {
    font-size: 55px;
    margin: 10px 0;
}

.hero h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.hero p {
    line-height: 1.7;
}

.btn {
    display: inline-block;

    margin-top: 30px;
    padding: 13px 25px;

    background: #38bdf8;
    color: #111827;

    text-decoration: none;

    border-radius: 7px;

    font-weight: bold;
}

.btn:hover {
    background: white;
}


/* SECTIONS */

.section {
    max-width: 1100px;
    margin: auto;

    padding: 80px 25px;

    text-align: center;
}

.section h2 {
    font-size: 35px;
    margin-bottom: 35px;
}

.section > p {
    max-width: 750px;
    margin: auto;
    line-height: 1.8;
}


/* SKILLS */

.skills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.skill {
    background: white;

    padding: 20px 35px;

    border-radius: 8px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.1);

    font-weight: bold;

    transition: 0.3s;
}

.skill:hover {
    transform: translateY(-8px);
    background: #38bdf8;
}


/* PROJECTS */

.project-container {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 25px;
}

.project-card {
    background: white;

    padding: 30px;

    border-radius: 10px;

    box-shadow:
        0 4px 20px rgba(0,0,0,0.1);

    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card h3 {
    margin-bottom: 15px;
}

.project-card p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-card button {
    padding: 10px 18px;

    border: none;

    background: #1e3a8a;
    color: white;

    border-radius: 5px;

    cursor: pointer;
}

.project-card button:hover {
    background: #38bdf8;
    color: #111827;
}


/* CONTACT */

form {
    max-width: 600px;
    margin: auto;

    display: flex;
    flex-direction: column;

    gap: 15px;
}

input,
textarea {
    padding: 15px;

    border: 1px solid #ccc;

    border-radius: 6px;

    font-size: 16px;
}

textarea {
    height: 140px;
    resize: none;
}

form button {
    padding: 14px;

    border: none;

    border-radius: 6px;

    background: #1e3a8a;

    color: white;

    font-size: 16px;

    cursor: pointer;
}

form button:hover {
    background: #38bdf8;
    color: #111827;
}

#formMessage {
    margin-top: 20px;
    font-weight: bold;
}


/* FOOTER */

footer {
    background: #111827;
    color: white;

    text-align: center;

    padding: 25px;
}


/* MOBILE */

@media (max-width: 700px) {

    .menu-btn {
        display: block;
    }

    .nav-links {
        display: none;

        position: absolute;

        top: 65px;
        left: 0;

        width: 100%;

        background: #111827;

        flex-direction: column;

        text-align: center;

        padding: 25px;
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero h2 {
        font-size: 22px;
    }
}