@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;500;600;700&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

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

:root {
    --color-cream: #f5efeb;
    --color-white: #fff;
    --color-dark: #000;
}

body {
    background-color: var(--color-dark);
    font-family: "Josefin Sans", sans-serif, "Roboto", sans-serif;
}

a {
    text-decoration: none;
}

/* ----NAVBAR START---- */
.nav {
    background-color: var(--color-dark);
    box-shadow: 0 0 25px 0 rgba(255, 251, 251, 0.6);
    margin: 0;
    padding: 0 5rem;
    width: 100%;
    padding: 20px 100px;
    position: relative;
}

.nav ul {
    display: flex;
    flex-direction: row-reverse;
    margin: 0;
    padding: 0;
}

.nav li {
    list-style: none;
}

.nav a {
    color: var(--color-white);
    padding: 15px 20px;
    font-weight: bold;
    display: block;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-white);
    opacity: 0;
    transition: width 0.3s ease-in, opacity 0.3s ease-in;
}

.nav a:hover::after {
    width: 100%;
    opacity: 1;
}

/* ----NAVBAR END---- */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;

    font-size: 1.5rem;
    height: 100dvh;
    background-color: var(--color-cream);
    background-color: #000;
    color: #fff;
}

.home-title {
    font-size: 5rem;
    margin-top: 0;
    margin-bottom: 1em;
}

.name {
    font-family: "Josefin Sans", sans-serif;
    color: var(--color-dark);
    font-weight: 400;
    font-style: normal;
    text-shadow:
        0 0 3px rgba(255, 251, 251, 0.8),
        0 0 5px rgba(255, 251, 251, 0.6),
        0 0 20px rgba(255, 251, 251, 0.4);
}

.home-text {
    max-width: 50%;
    line-height: 1.2em;
    margin-bottom: 1em;
}

.home-button {
    background-color: var(--color-dark);
    color: var(--color-cream);
    font-size: 16px;
    margin-top: 2em;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 0 5px 1px rgba(255, 251, 251, 0.6);
    border: none;
}

.home-button:hover {
    background-color: var(--color-cream);
    color: var(--color-dark);
}

/* ------PROJECTS STARTS-------- */
.project-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 10px;
}

.card-link {
    color: var(--color-cream);
    font-size: 1.2rem;
    line-height: 30px;
    letter-spacing: 1.5px;
}

.card-title {
    color: var(--color-cream);
    border-bottom: 2px solid hsla(24, 4%, 49%, 0.592);
    margin-bottom: 1em;
    width: 100%;
    position: relative;
    z-index: 1;
    padding-bottom: 0px;
}

.card-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 10px;
    width: 100%;
    background: hsla(24, 4%, 49%, 0.592);
    z-index: -1;
}

.project-cards .card-link {
    background: rgb(255, 255, 255, 0.2);
    width: 100%;
    max-width: 300px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 1em;
    cursor: pointer;
}

.card-link:hover {
    box-shadow: 0px 0px 10px 4px rgba(239, 232, 232, 0.6);
}

/* ------PROJECTS END-------- */

/* -----FOOTER----- */
footer {
    text-align: center;
    padding: 2rem 0 1rem 0;
    background-color: var(--color-dark);
    color: var(--color-white);
    box-shadow: 0 8px 35px 5px rgba(255, 251, 251, 0.6);
}

footer a {
    background-color: var(--color-white);
    margin: 0.5rem;
    color: var(--color-dark);
    font-size: 1rem;
    padding: 0.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

footer a:hover {
    color: var(--color-dark);
    box-shadow: 0 0 20px var(--color-cream);
    transform: scale(1.1);
}

footer a:hover>i {
    transform: scale(1.3) rotate(360deg);
}

footer a i {
    transition: 1.4s all;
    font-size: 1.5rem;
}

footer .copyright {
    color: var(--color-white);
    font-size: 1em;
    margin-top: 10px;
    padding: 1rem;
}

.copyright-link {
    margin: 0;
    padding: 0;
    background-color: var(--color-dark);
    color: var(--color-white);
    border-radius: none;
}

.copyright-link:hover {
    color: var(--color-white);
    box-shadow: none;
}

/* Tablet & Smaller Laptops (≤1024px) */
@media (max-width: 1024px) {
    .nav {
        padding: 20px 50px;
    }

    .home-title {
        font-size: 4rem;
    }

    .home-text {
        max-width: 80%;
        font-size: 1.5rem;
    }

    .home-button {
        font-size: 1.2rem;
        padding: 14px 36px;
    }

    .project-cards {
        gap: 24px;
        padding: 30px 10px;
    }
}

/* Tablet Devices (≤768px) */
@media (max-width: 768px) {
    .home-title {
        font-size: 3rem;
    }

    .home-text {
        max-width: 90%;
        font-size: 1.3rem;
    }

    .home-button {
        font-size: 1rem;
        padding: 12px 30px;
    }

    .project-cards {
        flex-direction: column;
        gap: 20px;
    }
}

/* Small Devices & Phones (≤600px) */
@media (max-width: 600px) {
    .home-title {
        font-size: 2.5rem;
    }

    .home-text {
        font-size: 1.1rem;
    }

    .home-button {
        font-size: 0.9rem;
        padding: 10px 24px;
    }

    .project-cards .card-link {
        max-width: 90%;
        height: auto;
        padding: 1em;
    }

    footer a {
        font-size: 0.9rem;
        padding: 0.4rem;
    }

    footer a i {
        font-size: 1.2rem;
    }
}

/* Extra Small Devices (≤480px) */
@media (max-width: 480px) {
    .home-title {
        font-size: 2rem;
    }

    .home-text {
        font-size: 1rem;
    }

    .home-button {
        font-size: 0.8rem;
        padding: 10px 20px;
    }
}