/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #000;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
}

nav {
    position: sticky;
    top: 0;
    z-index: 3;
}

.nav-container {
    height: 64px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    font-family: "Nosifer", sans-serif;
}

.hamburger {
    display: none;
}

.language-switcher {
    margin-right: 20px;
}

#lang-toggle {
    background-color: transparent;
    border: 1px solid white;
    border-radius: 6px;
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    font-family: "Nosifer", sans-serif;
    font-size: 14px;
}

#lang-toggle:hover {
    color: #fd6400;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 0 12px;
}

.mail-link {
    color: #fd6400;
    text-decoration: none;
    padding: 0 12px;
}

.mail-link:hover {
    color: #ffa162;
}

.nav-links li a:hover {
    color: #fd6400;
}

a {
    text-decoration: none;
}

/* ===== HEADER ===== */
header {
    background: url('./assets/image_1.jpg') center/cover no-repeat;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-top: -64px;
    text-align: center;
    flex-direction: column;
}

.logo-big {
    width: 320px;
    height: 320px;
    border-radius: 12px;
}

/* ===== COMMON SECTIONS ===== */
section {
    width: 100%;
    display: flex;
    color: white;
    padding: 80px 24px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.services {
    background: url('./assets/image_3.jpg') center/cover no-repeat;
}

.my-work {
    background: url('./assets/image_4.jpg') center/cover no-repeat;
}

.about-me {
    background: url('./assets/image_2.jpg') center/cover no-repeat;
}

.request-a-quote {
    background: url('./assets/image_5.jpg') center/cover no-repeat;
}

/* ===== CARDS ===== */
.card-1,
.card-2,
.card-3 {
    background-color: rgba(0, 0, 0, 0.8);
    margin: 40px auto;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    text-align: center;
}

/* ===== IMAGES, TEXT, PLAYERS ===== */
.mixing-mastering-img,
.image-me {
    width: 200px;
    height: auto;
    margin: 24px auto;
    display: block;
}

.mixing-mastering-img {
    filter: invert(100%);
}

.image-me {
    border-radius: 50%;
    filter: contrast(112%);
}

.description-text {
    padding: 20px;
    letter-spacing: 2px;
}

.player {
    width: 100%;
    max-width: 400px;
    background: #000;
    padding: 24px;
    margin: 48px auto 0;
    border-radius: 12px;
}

/* ===== FORMS ===== */
form {
    width: 100%;
    max-width: 500px;
    margin: 24px auto;
    padding: 32px;
    border-radius: 10px;
    background-color: #111;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

textarea::placeholder {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.button-request,
.button-submit {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 24px auto;
    padding: 16px 0;
    font-weight: bold;
    font-size: 16px;
    color: #000;
    background: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
}

.button-request:hover,
.button-submit:hover {
    background-color: #fd6400;
    color: #fff;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: clamp(24px, 6vw, 48px);
}

h2,
h3 {
    font-family: "Nosifer", sans-serif;
    font-size: clamp(16px, 4vw, 20px);
    padding: 24px 0;
    letter-spacing: 2px;
}


.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #000;
    color: #fff;
}

.footer-button {
    width: 320px;
    background-color: rgba(0, 0, 0, 0);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Nosifer", sans-serif;
}

.footer-button:hover {
    color: #fd6400;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 1.5rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    color: #000;
}

.close {
    color: #aaa;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.spotify-player {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px 15px;
    margin-top: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: 'Helvetica Neue', sans-serif;
    width: 100%;
    gap: 15px;
    box-sizing: border-box;
}

.player-img {
    flex-basis: 20%;
    /* take 20% width */
    max-width: 20%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    /* keep square */
    flex-shrink: 0;
}

.player-info {
    flex-basis: 80%;
    /* take 80% width */
    max-width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.track-title {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.play-btn {
    background-color: #fd6400;
    border: none;
    border-radius: 50%;
    color: white;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.progress-container {
    flex-grow: 1;
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
}

.progress-hitbox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 8px;
    width: 100%;
    background: #555;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #fd6400;
    transition: width 0.1s linear;
}

.time {
    width: 40px;
    font-size: 0.9rem;
    text-align: right;
    user-select: none;
    flex-shrink: 0;
}


@media (max-width: 1024px) {
    .spotify-player {
        padding: 15px 10px;
        gap: 12px;
    }

    .player-img {
        flex-basis: 25%;
        max-width: 25%;
    }

    .player-info {
        flex-basis: 75%;
        max-width: 75%;
    }

    .track-title {
        font-size: 1rem;
    }

    .play-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .progress-container {
        height: 20px;
    }

    .progress-hitbox {
        height: 7px;
    }

    .time {
        font-size: 0.85rem;
        width: 35px;
    }
}


/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 768px) {
    .spotify-player {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        gap: 10px;
    }

    .player-img {
        width: 40%;
        /* use width instead of flex-basis here */
        max-width: none;
        aspect-ratio: 1 / 1;
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .player-info {
        flex-basis: auto;
        max-width: 100%;
        width: 100%;
    }

    .track-title {
        font-size: 1.1rem;
        white-space: normal;
        margin-bottom: 12px;
    }

    .controls {
        width: 100%;
        gap: 8px;
    }

    .play-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .progress-container {
        height: 24px;
    }

    .progress-hitbox {
        height: 10px;
    }

    .time {
        font-size: 1rem;
        width: 50px;
    }

    .nav-container {
        justify-content: flex-start;
        padding: 0 16px;
    }

    .language-switcher {
        margin-left: 48px;
    }

    .hamburger {
        display: flex;
        width: 30px;
        height: 22px;
        position: relative;
        cursor: pointer;
        transition: transform 0.5s ease-in-out;
        margin: 0;
    }

    .hamburger span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: #fd6400;
        border-radius: 3px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: 0.25s ease-in-out;
    }

    .hamburger span:nth-child(1) {
        top: 0px;
    }

    .hamburger span:nth-child(2),
    .hamburger span:nth-child(3) {
        top: 9px;
    }

    .hamburger span:nth-child(4) {
        top: 18px;
    }

    .hamburger.active span:nth-child(1),
    .hamburger.active span:nth-child(4) {
        top: 9px;
        width: 0%;
        left: 50%;
    }

    .hamburger.active span:nth-child(2) {
        transform: rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        flex-direction: column;
        width: 60%;
        height: calc(100vh - 64px);
        background: black;
        display: none;
        padding: 24px;
        z-index: 5;
    }

    .nav-links.active {
        display: flex;
        margin: 0;
    }

    .nav-links li {
        text-align: left;
        padding: 12px 0;
    }
}

@media (max-width: 872px) {
    .nav-links li a {
        padding: 0;
    }
}