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

:root {
    --bg-color: #000000;
    --card-color: #0a0a0a;
    --accent-color: #bb86fc; /* Retained a subtle purple accent */
    --text-color: #ffffff;
    --secondary-text-color: #a0a0a0;
    --hover-color: #1a1a1a;
    --navbar-color: #000000;
    --font-family: 'Inter', sans-serif;
}

/* Base and Layout */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px; /* Space for fixed navbar */
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 680px;
    width: 100%;
    text-align: center;
    padding: 20px;
}

main {
    padding-bottom: 40px;
}

/* Typography and Headings */
h1, h2, h3 {
    margin: 0;
    font-weight: 700;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 8px auto 0;
    border-radius: 2px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--hover-color);
    margin: 40px 0;
}

/* Navbar and Dropdown */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--navbar-color);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.nav-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 1px;
}

#menu-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

#menu-toggle:hover {
    color: var(--accent-color);
}

.dropdown-menu {
    display: none;
    position: absolute;
    width: 100%;
    background-color: var(--navbar-color);
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: max-height 0.4s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

.dropdown-menu.open {
    display: flex;
    max-height: 500px; /* Sufficient height to cover all items */
}

.menu-item {
    color: var(--text-color);
    text-decoration: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu-item:hover, .menu-item.active {
    background-color: var(--hover-color);
    color: var(--accent-color);
}

/* Artist Info */
#artist-title {
    margin-bottom: 30px;
}

#titleName {
    font-size: 3rem;
    font-weight: 900;
    margin-top: 15px;
    line-height: 1;
}

#userName {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary-text-color);
    margin-bottom: 20px;
}

.profile-picture-container {
    padding: 10px;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    display: inline-block;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-picture:hover {
    transform: scale(1.05);
}

/* Card Styling */
.card {
    background-color: var(--card-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--hover-color);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* YouTube Card */
.youtube-card {
    padding: 25px;
}

.youtube-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.youtube-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.youtube-channel-info {
    text-align: left;
    flex-grow: 1;
}

.youtube-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.youtube-username {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    margin: 0;
}

.subscribe-btn {
    background-color: #ff0000;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
    background-color: #cc0000;
}

.youtube-stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--hover-color);
    padding-top: 15px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    min-height: 1.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--secondary-text-color);
    margin: 0;
    text-transform: uppercase;
}

/* Social Links */
#links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link {
    background-color: var(--card-color);
    color: var(--text-color);
    border: 1px solid var(--hover-color);
    border-radius: 8px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.link:hover {
    transform: translateY(-2px);
    background-color: var(--hover-color);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.link i {
    font-size: 1.2rem;
}

/* Portfolio/Latest Work Section */
#work {
    text-align: left;
}

.portfolio-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    text-decoration: none;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

.portfolio-card-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: var(--card-color);
}

.portfolio-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    color: white;
}

.portfolio-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.portfolio-link-icon {
    font-size: 1rem;
    opacity: 0.8;
}

/* Tracks Section */
.tracks-section {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* WHO I AM specific styles */
.bio-card {
    text-align: left;
    padding: 30px;
}

.bio-card .section-title {
    text-align: center;
    margin-bottom: 30px;
}

.bio-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-color);
}

.tech-note {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    margin-top: 20px;
}

/* Gallery Card (Reuses portfolio-card styling) */
.gallery-card {
    cursor: pointer;
}

/* Modal for Gallery */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    max-width: 900px;
    width: 90%;
}

.close-btn {
    color: #fff;
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover, .close-btn:focus {
    color: var(--accent-color);
    text-decoration: none;
}

.gallery-viewer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.gallery-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-image:hover {
    opacity: 1;
    transform: scale(1.05);
}


/* Footer */
footer {
    margin-top: 40px;
    padding: 20px 0;
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    width: 100%;
    border-top: 1px solid var(--hover-color);
}

/* Media Queries */
@media (min-width: 768px) {
    /* Hide menu button on desktop */
    #menu-toggle {
        display: none;
    }

    /* Desktop menu as full-width dropdown is not needed, keep it simple by default */
    .dropdown-menu {
        display: none !important; /* Force hide on desktop */
    }

    .nav-content {
        justify-content: center;
        gap: 30px;
    }

    .nav-logo {
        margin-right: auto;
    }

    /* For desktop, we can show navigation links directly in the header */
    #navbar {
        position: static;
        padding: 10px 0;
        height: auto;
    }

    body {
        padding-top: 0;
    }

    .nav-content {
        max-width: 900px;
        justify-content: flex-start;
    }

    /* Redefine Nav for Desktop */
    #navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: var(--navbar-color);
        box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
        z-index: 1000;
        height: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-content {
        max-width: 1000px;
        width: 100%;
        margin: 0;
        padding: 0 40px;
    }

    .nav-logo {
        margin-right: 40px;
    }

    #navbar .dropdown-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        width: auto;
        max-height: none;
        box-shadow: none;
        background: none;
        padding: 0;
        margin-left: auto;
    }

    .menu-item {
        padding: 10px 15px;
        border-radius: 5px;
    }

    .menu-item.active {
        border-bottom: 2px solid var(--accent-color);
        background-color: transparent;
        color: var(--accent-color);
    }
    
    .menu-item:hover {
        background-color: var(--hover-color);
    }

    .container {
        max-width: 800px;
        margin-top: 80px; /* Space for fixed desktop navbar */
    }
}


@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    #titleName {
        font-size: 2.5rem;
    }

    .youtube-header {
        flex-direction: column;
        gap: 15px;
    }

    .youtube-channel-info {
        text-align: center;
    }

    .subscribe-btn {
        width: 100%;
        justify-content: center;
    }

    .portfolio-overlay {
        padding: 15px;
    }

    .portfolio-title {
        font-size: 1.1rem;
    }
}
/* New rule for the logo image in the toolbar */
.nav-logo .logo-img {
    height: 40px; /* Adjust height as needed to fit the bar */
    width: auto;
    display: block;
}

/* Update nav-logo style to remove old text formatting */
.nav-logo {
    /* font-size: 1.4rem;  Remove or comment out this line */
    font-weight: 900;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 1px;
}
