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


body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    width: 100%;

    font-family: Arial, Helvetica, sans-serif;

    background-image: url(img/bg.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #010d2671;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 10px black;
    z-index: 100;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

nav p {
    padding: 1rem 0;
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: bold;
    color: #fff;
}

header ul {
    list-style: none;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 3vw, 20px);
    font-size: clamp(1.2rem, 4vw, 1.8rem);
}

header ul li a {
    text-decoration: none;
    color: #B48FD9;

    transition: text-shadow 180ms ease;
}

header ul li a:hover {
    text-shadow: 0 0 10px #B48FD9;
}

/* MAIN */
main {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* TOP */
main .top {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 80px;
    padding: 1rem;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: calc(100vh - 80px);
}

/* PORTFOLIO */

main .portfolio {
    min-height: calc(30vh - 80px);
    max-width: 100%;

    margin-bottom: 30px;
    padding: 20px;

    background-color: #010d2671;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 10px black;

    color: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

main .portfolio h1 {
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    text-align: center;
}

main .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(0.75rem, 2vw, 1.2rem);
    width: 100%;
    max-width: 1200px;
    padding: 0.5rem;
    align-items: center;
    min-height: 300px;
}

main .grid .container {
    min-height: 220px;
    padding: clamp(1rem, 2vw, 1.4rem);

    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);

    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

main .grid .container:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.45);
}

main .grid .container h1 {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin-bottom: 0.6rem;
    color: #fff;
}

main .grid .container p {
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    line-height: 1.5;
    color: #ddd;
}


/* LEFT */
main .left-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    padding: clamp(20px, 5vw, 50px);
}

.left-main h1 {
    color: #fff;
    font-size: clamp(1.2rem, 3vw, 2rem);
    line-height: 1.1;
}

.left-main h1 span {
    color: #fff;
    font-size: clamp(2.5rem, 8vw, 5rem);
    display: block;
}

.left-main h2 {
    color: #fff;
    font-size: clamp(1rem, 3vw, 2rem);
}

.left-main p {
    color: #fff;
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    line-height: 1.6;
    max-width: 480px;
}

.left-main button {
    padding: 0.8rem 1.5rem;
    width: auto;
    min-width: 140px;
    border: none;
    border-radius: 30px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: bold;
    background-color: #8041BF;
    color: #fff;
    cursor: pointer;
    transition: background-color 200ms ease, box-shadow 200ms ease;
}

.left-main button:hover {
    background-color: #9b55d4;
    box-shadow: 0 0 12px #8041BF;
}

/* RIGHT */
main .right-main {
    width: 40%;
    max-width: 420px;
    min-height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #021f599a;
    border-radius: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 0px 0px 10px black;
}

main .right-main img {
    width: 100%;
    max-height: 70vh;
    display: block;
    object-fit: scale-down;
    padding: 20px;
    border-radius: 30px;
}

/* TABLETS */
@media (max-width: 768px) {
    main {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        width: 95%;
        padding: 1rem 0.5rem;
    }

    main .top {
        flex-direction: column;
    }

    main .left-main {
        align-items: center;
        padding: clamp(15px, 4vw, 30px);
        gap: 16px;
    }

    .left-main p {
        text-align: center;
    }

    .left-main button {
        width: 60%;
        max-width: 240px;
    }

    main .right-main {
        width: 70%;
        max-width: 320px;
        min-height: 220px;
    }
}

/* MOBILE */
@media (max-width: 480px) {
    nav {
        justify-content: space-between;
    }

    main .top {
        flex-direction: column;
    }

    main .right-main {
        width: 85%;
    }

    .left-main button {
        width: 80%;
    }
}

/* LARGE */
@media (min-width: 1400px) {
    main {
        max-width: 1200px;
    }
}
