/* ================= GENERAL ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: #222;
    background: #fff;
}

.container {
    max-width: 1150px;
}


/* ================= NAVBAR ================= */

.navbar {
    background: #151515;
    padding: 15px 0;
}

.navbar-brand {
    color: #d8b477 !important;
    font-size: 25px;
    font-weight: 700;
}

.nav-link {
    color: #fff !important;
    margin-left: 15px;
    transition: 0.3s;
}

.nav-link:hover {
    color: #d8b477 !important;
}


/* ================= HOME ================= */

#home {
    min-height: 90vh;

    background:
        linear-gradient(
            rgba(20, 20, 20, 0.75),
            rgba(20, 20, 20, 0.75)
        ),
        url("profile.png.webp");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    color: white;
}

.hero-content {
    max-width: 700px;
}

.hero-content > p:first-child {
    color: #d8b477;
    font-size: 18px;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 65px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 30px;
    color: #d8b477;
    margin-bottom: 20px;
}

.hero-content p {
    line-height: 1.8;
    color: #ddd;
}

.hero-btn {
    display: inline-block;

    margin-top: 25px;
    margin-right: 10px;

    padding: 12px 25px;

    background: #d8b477;
    color: #151515;

    text-decoration: none;

    border-radius: 4px;

    font-weight: 600;

    transition: 0.3s;
}

.hero-btn:hover {
    background: white;
}

.second-btn {
    background: transparent;
    color: white;
    border: 1px solid #d8b477;
}

.second-btn:hover {
    background: #d8b477;
    color: #151515;
}


/* ================= SECTIONS ================= */

section {
    padding: 90px 20px;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading p {
    color: #b08a4a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

.section-heading h2 {
    font-size: 40px;
    margin-top: 10px;
}


/* ================= ABOUT ================= */

#about {
    background: #f8f5ef;
}

.about-text {
    max-width: 750px;
    margin: auto;
    text-align: center;
}

.about-text p {
    color: #666;
    line-height: 1.9;
    font-size: 17px;
}


/* ================= SKILLS ================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.skill-card {
    text-align: center;

    padding: 35px 20px;

    border: 1px solid #eee;

    border-radius: 6px;

    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-card i {
    font-size: 45px;
    color: #d8b477;
    margin-bottom: 15px;
}

.skill-card h3 {
    font-size: 20px;
}


/* ================= PROJECTS ================= */

#projects {
    background: #f8f5ef;
}

.projects-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;
}

.project-card {
    background: white;

    border-radius: 7px;

    overflow: hidden;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);

    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-card img {
    width: 100%;
    height: 260px;

    object-fit: cover;

    display: block;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 23px;
    margin-bottom: 10px;
}

.project-content p {
    color: #666;
    line-height: 1.6;
}

.project-btn {
    display: inline-block;

    margin-top: 12px;

    padding: 9px 18px;

    background: #151515;
    color: white;

    text-decoration: none;

    border-radius: 3px;

    transition: 0.3s;
}

.project-btn:hover {
    background: #d8b477;
    color: #151515;
}


/* ================= SERVICES ================= */

.services-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.service-card {
    text-align: center;

    padding: 40px 25px;

    border: 1px solid #eee;

    border-radius: 6px;

    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 40px;

    color: #d8b477;

    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    color: #666;
    line-height: 1.7;
}


/* ================= CONTACT ================= */

#contact {
    background: #f8f5ef;
}

#contactForm {
    max-width: 700px;
    margin: auto;
}

#contactForm input,
#contactForm textarea {
    width: 100%;

    padding: 13px;

    margin-bottom: 15px;

    border: 1px solid #ddd;

    border-radius: 4px;

    outline: none;
}

#contactForm textarea {
    min-height: 150px;
    resize: vertical;
}

#contactForm input:focus,
#contactForm textarea:focus {
    border-color: #d8b477;
}

#contactForm button {
    border: none;

    padding: 12px 28px;

    background: #151515;

    color: white;

    border-radius: 4px;

    cursor: pointer;

    transition: 0.3s;
}

#contactForm button:hover {
    background: #d8b477;
    color: #151515;
}

#formMessage {
    margin-top: 15px;
    text-align: center;
}


/* ================= FOOTER ================= */

footer {
    background: #151515;

    color: #aaa;

    text-align: center;

    padding: 25px;
}

footer p {
    margin: 0;
}


/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .hero-content h1 {
        font-size: 45px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .nav-link {
        margin-left: 0;
        margin-top: 5px;
    }

}


@media (max-width: 500px) {

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-btn {
        display: block;
        width: fit-content;
    }

}