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

body {
    font-family: poppins, sans-serif;
    background-color: #1f1a1a;

}



.header {
    position: relative;
    width: 100%;
    height: 50vh;

    overflow: hidden;
    margin-left: 350px;

    width: calc(100% - 350px);


}

.cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% 70%;
    filter: brightness(0.6);
    z-index: 1;
}

.heading {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 5.5rem;
    font-weight: bold;
    color: white;
    z-index: 2;

}



nav {
    background-color: #1E1919;
    height: 100vh;
    width: 350px;
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    top: 0;


}

.nav-list {
    list-style: none;

    padding: 10px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;




}

.nav-item a {
    text-decoration: none;
    color: #fff;
}

.nav-item a:hover {
    color: #949494;
}

.nav-heading {
    color: #fff;
    font-size: 1.5rem;
    margin: 20px 0;
    text-align: center;
}

.nav-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    vertical-align: middle;
    color: #fff;
}

/* Adjust image position for the music control */
.nav-image {
    width: 90%;
    height: auto;
    margin: 10px 20px 0 20px;
    /* lift image slightly */
    border-radius: 10px;
}

/* Spotify-style music player container */
.music-player {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

/* Play/pause button styling */
.play-pause {
    background: #000;
    border: 2px solid #1DB954;
    /* Spotify green */
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.play-pause:hover {
    background: #1DB954;
    transform: scale(1.05);
}

.play-pause svg {
    transition: transform 0.3s ease;
}

.play-pause.playing {
    box-shadow: 0 0 15px #1DB954;
}


.About {
    position: relative;
    width: 100%;
    height: 60vh;
    background-color: #414040;
    padding: 20px;
    margin-left: 350px;
    width: calc(100% - 350px);
}

.about-header {
    display: flex;
    align-items: center;

}

.profile {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
    object-position: 0 90%;

}

.about-heading {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.cards-about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* two columns */
    gap: 20px;
    margin-top: 20px;
}

/* one icon column + one text column inside each card */
.cards-about .card-items {
    display: grid;
    grid-template-columns: 24px 1fr;
    column-gap: 14px;
    row-gap: 6px;
    align-items: start;

    background: #2a2a2a;
    padding: 14px 18px;
    border-radius: 14px;
}

.card-image {
    width: 20px;
    height: 20px;
    grid-row: 1 / span 2;
    /* icon spans title + description */
}

/* text column */
.card-title {
    grid-column: 2;
    margin: 0 0 2px 0;
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}

.card-description {
    grid-column: 2;
    margin: 0;
    color: #cfcfcf;
    font-size: .9rem;

}

.card-items:hover {
    background: #4A4A4A;
}

.experience {
    background-color: #414040;
    padding: 20px;
    margin-left: 350px;

    width: calc(100% - 350px);
}

.experience-heading {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
}

/* Container for cards */
.experience-card {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    /* lets them wrap on smaller screens */
}

/* Individual card */
.experience-item {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 250px;
    /* fixed width for uniformity */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Image inside card */
.experience-image {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    border: 2px solid #484747;
    margin-bottom: 12px;
}

.experience-title {
    font-size: 1rem;
    color: #fff;
    font-weight: bold;
    margin: 8px 0 4px 0;
}

.experience-role {
    font-size: 0.9rem;
    color: #dcdcdc;
    margin: 0;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    /* allows wrapping on smaller screens */
    gap: 20px;
    background-color: #414040;
    /* match your site bg */
    padding: 15px 15px;

    /* align with other sections */

}

.tech-item {
    padding: 12px 15px;
    border-radius: 20px;
    background: #2a2a2a;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.tech-item:hover {
    background: #444;
}

.tech-item.active {
    background: #1db954;
    /* Spotify green */
    color: #000;
    font-weight: bold;
}

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 cards per row */
    gap: 20px;
    /* small cards */
    gap: 16px;
    margin-left: 350px;
    width: calc(100% - 350px);
    background-color: #414040;
}

.project-card {
    background: #1e1e1e;
    padding: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: background 0.2s;
    width: 100%;
    max-width: 500px;
    /* smaller than before */
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 10px;
    /* keeps centered inside grid cell */
    min-height: 80px;
}

.project-card:hover {
    background: #2a2a2a;
    /* subtle hover like Spotify */
}

.project-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-left img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.project-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1db954;
    transition: transform 0.2s;
}

.play-btn:hover {
    transform: scale(1.1);
}

.play-btn svg {
    fill: #000;
    width: 18px;
    height: 18px;
}

.play-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 120%;
    /* tooltip appears below the icon */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.play-btn:hover::after {
    opacity: 1;
}


footer {
    background-color: #232222;
    color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
    width: 100%;
    margin-left: 350px;
    /* Align with other sections */
    width: calc(100% - 350px);

}

footer a {
    color: #fff;
    text-decoration: none;
}

/* Action buttons (below header) */
.actions {
    margin-left: 350px !important;
    background-color: #1E1919;
    width: calc(100% - 350px);
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

/* Buttons styling */
.actions .btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* for tooltip */
    transition: transform 0.2s ease;
}

.actions .btn:hover {
    transform: scale(1.15);
}

/* Tooltip styling (below the icons) */
.actions .btn::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 120%;
    /* changed from bottom to top */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.actions .btn:hover::after {
    opacity: 1;
}

/* Individual button colors */
.actions .btn.play-btn {
    background-color: #1db954;
    color: white;
}

.actions .btn.download-btn {
    background-color: #444;
    color: white;
    font-size: 20px;
}

.actions .btn.add-btn {
    background-color: #444;
    color: white;
    font-size: 24px;
}


/* Socials list (Spotify-style table) */
.socials-list {
    background-color: #1E1919;
    margin-left: 350px;
    width: calc(100% - 350px);
    margin-top: 20px;
}

.socials-list table {
    width: 100%;
    border-collapse: collapse;
}

.socials-list th,
.socials-list td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333;
    color: #ddd;
}

.socials-list th {
    color: #aaa;
    font-size: 14px;
    text-transform: uppercase;
}

.socials-list tr:hover {
    background-color: #2a2a2a;
}

.socials-list a {
    color: #1db954;
    text-decoration: none;
}

.socials-list a:hover {
    text-decoration: underline;
}

/* Contact form */
.contact-form {
    margin-left: 350px;
    width: calc(100% - 350px);
    margin-top: 40px;
}

.contact-form h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    background: #222;
    border: 1px solid #444;
    padding: 12px;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    max-width: 800px;
}

.contact-form button {
    background: #1db954;
    border: none;
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    max-width: 200px;
}

.contact-form button:hover {
    background: #17a74a;
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    z-index: 10000;
    cursor: pointer;
}




/* Large Tablets and smaller (≤ 1079px) */
@media (max-width: 1079px) {
    nav {
        width: 280px;
    }

    .experience {
        padding-top: 100px;
    }

    .header,
    .About,
    .experience,
    .projects,
    footer,
    .actions,
    .socials-list,
    .contact-form {
        margin-left: 280px;
        width: calc(100% - 280px);

    }

    .heading {
        font-size: 4rem;
    }

    .about-heading,
    .experience-heading {
        font-size: 2.5rem;
    }
}

/* Tablets (≤ 768px) */
@media (max-width: 768px) {
    nav {
        position: fixed;
        width: 220px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 9999;
    }

    nav.active {
        transform: translateX(0);
    }

    .header,
    .About,
    .experience,
    .projects,
    footer,
    .actions,
    .socials-list,
    .contact-form {
        margin-left: 0;
        width: 100%;


    }

    .experience {
        padding-top: 300px;
    }

    .heading {
        font-size: 3rem;
    }

    .cards-about {
        grid-template-columns: 1fr;
        /* single column */
    }

    .experience-card {
        justify-content: center;
    }

    .experience-item {
        width: 45%;
    }

    .projects {
        grid-template-columns: 1fr;
        /* one card per row */
    }

    .project-card {
        max-width: 100%;
    }



    .tech-stack {
        justify-content: center;
    }

    .socials-list table {
        font-size: 14px;
    }

    .contact-form input,
    .contact-form textarea {
        max-width: 100%;
        margin-left: 10px;
    }

    .contact-form h2 {
        width: 100%;
        max-width: none;
        margin-left: 10px;
    }
}

/* Show the button on tablets & smaller screens */
@media (max-width: 768px) {


    .actions {
        justify-content: start;
        gap: 10px;
        margin-left: 10px !important;
    }

    .menu-toggle {
        display: block;
    }
}

/* Mobile phones (≤ 480px) */
@media (max-width: 480px) {



    .heading {
        font-size: 2.2rem;
    }

    .about-heading,
    .experience-heading {
        font-size: 2rem;
    }

    .profile {
        width: 80px;
        height: 80px;
    }

    .cards-about {
        gap: 12px;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .card-description {
        font-size: 0.8rem;
    }

    .experience-item {
        width: 100%;
    }

    .experience-image {
        height: 120px;
    }

    .project-left img {
        width: 40px;
        height: 40px;
    }

    .project-title {
        font-size: 14px;
    }

    .play-btn {
        width: 35px;
        height: 35px;
    }

    .play-btn svg {
        width: 14px;
        height: 14px;
    }

    footer {
        font-size: 14px;
        padding: 12px;
    }

    .contact-form h2 {
        font-size: 20px;
        margin-left: 10px;
    }

    .contact-form button {
        width: 100%;
        max-width: none;
        margin-left: 10px;
    }

    .actions {
        justify-content: start;
        gap: 10px;
        margin-left: 10px !important;
    }
}