/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --gold: #D4AF37;
    --white: #ffffff;
    --light-gray: #b0b0b0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: var(--black);
    border-bottom: 1px solid var(--gold);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

/* ===== HERO ===== */
.hero {
    padding: 28px 0 24px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--gold);
}

.hero-subtitle {
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--white);
}

/* ===== WORK SECTION ===== */
.work {
    padding: 28px 0;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
    color: var(--white);
}

.portfolio-category {
    margin-bottom: 28px;
}

.category-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
    color: var(--white);
}

/* ===== CAROUSEL CONTAINER ===== */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    gap: 10px;
}

/* Remix-specific layout */
.remix-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 20px 0;
}

/* ===== Hide scrollbar but keep horizontal scrolling ===== */
.carousel-wrapper,
.portfolio-grid,
.remix-grid {
    overflow-x: auto;       /* enable horizontal scroll */
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE 10+ */
    scrollbar-width: none;      /* Firefox */
}

.carousel-wrapper::-webkit-scrollbar,
.portfolio-grid::-webkit-scrollbar,
.remix-grid::-webkit-scrollbar {
    display: none;              /* Chrome, Safari, Edge */
}


/* Carousel wrapper in the middle */
.carousel-wrapper {
    flex: 1;
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .carousel-wrapper {
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
}

.remix-grid {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

/* Remix cards */
.remix-card {
    flex: 0 0 calc(25% - 15px); /* 4 cards visible minus gap */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #1a1a1a;
    padding: 10px;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Iframe inside cards */
.remix-card iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: none;
    display: block;
}

/* Audio inside cards */
.remix-card audio {
    width: 100%;
    height: 60px;
    border: none;
    overflow: hidden;
    margin-top: 10px;
}

/* Inside the wrapper */
#composed-carousel,
#remixes-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
}

/* Arrows */
.carousel-arrow {
    flex: 0 0 auto;
    background: rgba(200, 200, 200, 0.3); /* lighter grey with transparency */
    color: white; /* arrow color */
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.45); /* slightly brighter on hover */
    transform: scale(1.08); /* subtle pop effect */
}

.carousel-arrow.left {
    margin-right: 20px;
}

.carousel-arrow.right {
    margin-left: 20px;
}

/* ===== FEATURED WORK GRID ===== */
.portfolio-grid {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
    scroll-behavior: smooth;
}

.portfolio-grid .portfolio-item {
    min-width: calc((100% - 30px) / 3);
    max-width: calc((100% - 30px) / 3);
    flex-shrink: 0;
    flex-grow: 0;
}

.portfolio-item {
    cursor: pointer;
    transition: transform 0.3s;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
}

.portfolio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.video-container .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1); /* combine translate and scale */
    font-size: 32px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.video-container .play-button.hidden {
    display: none !important;
}

.portfolio-item:hover {
    transform: translateY(-6px);
}

.portfolio-media {
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.portfolio-item:hover .video-placeholder {
    transform: scale(1.03);
}

.play-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    font-size: 20px;
    color: var(--black);
    cursor: pointer;
    transition: all 0.3s;
}

.video-container .play-button:hover {
    background-color: var(--gold);
    transform: translate(-50%, -50%) scale(1.1); /* stay centered and pop */
}

.portfolio-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.portfolio-info .subtitle {
    font-size: 11px;
    color: var(--light-gray);
}

/* ===== REMIXES GRID ===== */
.remix-grid {
    display: flex;
    gap: 13px;
    transition: transform 0.3s ease;
    scroll-behavior: smooth;
}

.remix-grid .remix-card {
    min-width: calc((100% - 39px) / 4);
    flex-shrink: 0;
}

.remix-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(20, 20, 20, 0.95) 100%);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.remix-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.remix-header {
    display: flex;
    gap: 11px;
    margin-bottom: 14px;
    align-items: center;
}

.remix-artist-image {
    width: 48px;
    height: 48px;
    border-radius: 5px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.remix-text {
    flex: 1;
    min-width: 0;
}

.remix-text h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.remix-text p {
    font-size: 11px;
    color: var(--light-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.remix-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.time {
    font-size: 9px;
    color: var(--light-gray);
    min-width: 28px;
    font-weight: 500;
}

.play-button-remix {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    font-size: 12px;
    color: var(--black);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

.play-button-remix:hover {
    transform: scale(1.12);
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.progress-bar {
    flex: 1;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.progress-bar:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

/* ===== PODCASTS ===== */
.podcast-single {
    width: 100%;
}

.podcast-embed {
    background-color: var(--dark-gray);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.podcast-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.podcast-description {
    font-size: 13px;
    color: var(--light-gray);
    margin-bottom: 18px;
    line-height: 1.5;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 70px 0;
    background-color: var(--dark-gray);
}

.about-content {
    max-width: 950px;
}

.about-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #d0d0d0;
    margin-bottom: 22px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 70px 0;
}

.contact-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 15px;
    color: #d0d0d0;
    margin-bottom: 32px;
}

.contact-button {
    display: inline-block;
    background-color: var(--gold);
    color: var(--black);
    padding: 14px 38px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin-bottom: 35px;
}

.contact-button:hover {
    transform: scale(1.05);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 38px;
}

.social-icon {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 500;
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--gold);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-gray);
    padding: 32px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
}

.footer p {
    font-size: 11px;
    color: var(--light-gray);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .portfolio-grid .portfolio-item {
        min-width: calc((100% - 15px) / 2);
        max-width: calc((100% - 15px) / 2);
    }
    .remix-grid .remix-card {
        min-width: calc((100% - 39px) / 2);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .hero-title {
        font-size: 40px;
    }
    .section-title {
        font-size: 22px;
    }
    .category-title {
        font-size: 22px;
    }
    
    /* Mobile carousel: show 1 item across */
    .portfolio-grid .portfolio-item {
        min-width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        flex: 0 0 calc(100% - 20px);
        scroll-snap-align: start; /* Add snap alignment */
    }
    
    .remix-grid .remix-card {
        min-width: calc(100% - 20px);
        flex: 0 0 calc(100% - 20px);
        scroll-snap-align: start; /* Add snap alignment */
    }
    
    /* Ensure grids can scroll */
    .portfolio-grid,
    .remix-grid {
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory; /* Add snapping for mobile */
    }
    
    .podcast-card-large {
        flex-direction: column;
    }
    .podcast-artwork-large {
        width: 100%;
        height: 200px;
    }
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    /* Show carousel arrows on mobile, but make them smaller and position them better */
    .carousel-arrow {
        display: flex !important; /* Override the desktop hide */
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        opacity: 0.8;
    }
    .carousel-arrow.left {
        left: 0;
        margin-right: 0; /* Remove desktop margin */
    }
    .carousel-arrow.right {
        right: 0;
        margin-left: 0; /* Remove desktop margin */
    }
    
    /* Adjust carousel container for mobile */
    .carousel-container,
    .remix-carousel-container {
        gap: 0;
        /* Revert to row layout on mobile to position arrows correctly */
        flex-direction: row; 
        align-items: center;
    }
    
    /* Ensure carousel wrapper scrolls on mobile */
    .carousel-wrapper {
        /* Remove mobile overflow-x: auto from wrapper, keep it on the grid */
        overflow-x: hidden !important; 
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
}
