/* Harlem Hustler - Clean Restructured CSS */
/* Color Palette: Navy #142238, White #FFFFFF, Silver #C0C6CD */

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* ===== PARALLAX SECTIONS ===== */
#parallax1 {
    background-image: url('../Images/Hhbg1.jpg');
    min-height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

#parallax2 {
    background-image: url('../Images/Hhbg2.jpg');
    min-height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* ===== CONTENT OVERLAY ===== */
.content-overlay {
    width: 70%;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.3);
    min-height: 100vh;
    padding: 80px 5%;
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: flex-start;
}

/* ===== CONTENT CARDS ===== */
.content-card {
    background-color: #142238;
    width: 47%;
    margin: 0;
    margin-bottom: 40px;
    padding: 3rem 2.5rem;
    text-align: center;
}

.content-card:last-child {
    margin-bottom: 40px;
}

/* Full-width cards on landing page */
#hustlersCard,
#blogCard,
.logo-divider,
.scroll-indicator {
    width: 100%;
}

/* Logo divider always after last card */
.logo-divider {
    display: block;
    order: 999;
}

.content-card h1,
.content-card h2,
.content-card h3 {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.content-card h2 {
    font-family: 'Rubik Wet Paint', system-ui, sans-serif;
    font-weight: 200;
    margin-bottom: 1.8rem;
}

/* Apply consistent font sizing to direct children (excludes blog carousel content) */
.content-card > h2 {
    font-size: 1.44em;
}

.content-card h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-card h2 a:hover {
    color: #C0C6CD;
}

.content-card p {
    color: #C0C6CD;
    line-height: 1.8;
}

.content-card > p {
    font-size: 0.88rem;
}

/* Content width for non-carousel cards */
.content-card:not(.carousel-card) > *:not(h1):not(h2):not(h3) {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

/* Allow carousel buttons to be visible outside card */
.carousel-card {
    overflow: visible;
}

/* ===== HIGHLIGHTED TEXT COLORS ===== */
.highlight-white {
    color: #FFFFFF;
}

.highlight-gold {
    color: gold;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: #FFFFFF;
    padding: 0;
    width: 100%;
    position: relative;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0.5376rem 15%;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 46.592px;
    width: auto;
    display: block;
}

.logo-desktop {
    display: block;
}

.logo-mobile {
    display: none;
}

.nav-menu-left,
.nav-menu-right {
    display: flex;
    list-style: none;
    gap: 3.2rem;
}

.nav-menu-mobile {
    display: none;
}

.nav-link {
    color: #142238;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:active {
    color: #C0C6CD;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4.9px;
}

.hamburger span {
    width: 24.5px;
    height: 2.8px;
    background-color: #142238;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7.7px, 7.7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7.7px, -7.7px);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    text-align: center;
    padding: 24px 0 60px;
}

.scroll-arrow {
    color: #142238;
    font-size: 4.2rem;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

.scroll-indicator p {
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 0 8px #142238, 0 0 12px #142238;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== CAROUSEL STYLES ===== */
.carousel {
    position: relative;
    width: 100%;
    overflow: visible;
}

.carousel-slides {
    position: relative;
    width: 100%;
    min-height: 300px;
}

/* Override blog and latest carousel heights to match clothing card */
#blogCarousel .carousel-slides,
#latestCarousel .carousel-slides {
    min-height: 300px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    padding: 0;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.carousel-slide h3 {
    color: #FFFFFF;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.carousel-slide p {
    color: #C0C6CD;
    line-height: 1.8;
    font-size: 1rem;
}

/* Hide text in Logos carousel */
#logosCarousel .carousel-slide h3,
#logosCarousel .carousel-slide p {
    display: none;
}

/* Carousel Images */
.carousel-image-wrapper {
    width: calc(90% + 2rem);
    max-width: calc(100% - 1rem);
    max-height: 250px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    border-radius: 0;
    overflow: hidden;
    background-color: #142238;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    width: auto;
    max-width: 100%;
    max-height: 250px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.carousel-image:hover {
    transform: scale(1.02);
}

/* Carousel Links */
.carousel-link {
    color: #FFFFFF;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.carousel-link:hover {
    color: #C0C6CD;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    border: 1.2px solid #FFFFFF;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: none;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: -50px;
}

.carousel-btn.next {
    right: -50px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #FFFFFF;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

/* ===== PROJECTS CAROUSEL SPECIFIC ===== */
#projectsCarousel {
    width: 95%;
    margin: 0 auto;
}

/* ===== DESIGN CAROUSEL SPECIFIC ===== */
#designCarousel {
    width: 95%;
    margin: 0 auto;
}

/* ===== BLOG CAROUSEL SPECIFIC ===== */
.medium-feed {
    padding: 0;
    margin: 0 -2.5rem;
    width: calc(100% + 5rem);
}

#blogCarousel {
    margin: 0 -2.5rem;
    width: calc(100% + 5rem);
}

#latestCarousel {
    margin: 0 -2.5rem;
    width: calc(100% + 5rem);
}

.feed-loading,
.feed-error {
    color: #C0C6CD;
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

.medium-article-wrapper {
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    background-color: transparent;
    scrollbar-width: thin;
    scrollbar-color: #C0C6CD rgba(255, 255, 255, 0.1);
}

.medium-article-wrapper::-webkit-scrollbar {
    width: 12px;
}

.medium-article-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.medium-article-wrapper::-webkit-scrollbar-thumb {
    background: #C0C6CD;
    border-radius: 4px;
}

.medium-article-wrapper::-webkit-scrollbar-thumb:hover {
    background: #FFFFFF;
}

.medium-thumbnail-full {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 1.5rem;
}

.medium-article-content {
    padding: 0 2rem 2rem 2rem;
}

.medium-article-content h3 {
    margin-bottom: 0.75rem;
}

.medium-post-title {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
}

.medium-post-title:hover {
    color: #C0C6CD;
}

.medium-date {
    color: #C0C6CD;
    font-size: 0.5rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.medium-excerpt-full {
    color: #C0C6CD;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.medium-excerpt-full p {
    font-size: inherit;
    color: inherit;
    line-height: inherit;
    margin-bottom: 1rem;
}

.medium-excerpt-full h1,
.medium-excerpt-full h2,
.medium-excerpt-full h3,
.medium-excerpt-full h4 {
    font-size: 1rem;
    color: #FFFFFF;
    margin: 1rem 0 0.5rem;
}

.read-more-btn {
    display: inline-block;
    color: #FFFFFF;
    background-color: rgba(192, 198, 205, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.read-more-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

.medium-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(192, 198, 205, 0.3);
}

.medium-link a {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===== SHOPIFY PRODUCT STYLES (Latest Card - Future) ===== */
.shopify-product-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    text-align: center;
}

.shopify-product-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    border-radius: 6px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
}

.shopify-product-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shopify-product-title {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.shopify-product-title:hover {
    color: #C0C6CD;
}

.shopify-price {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.shopify-description {
    color: #C0C6CD;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

.cta-link {
    display: inline-block;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.cta-link:hover {
    color: #C0C6CD !important;
}

/* ===== BOOK COVER STYLES ===== */
.book-cover-container {
    margin: 1rem auto;
    max-width: 200px;
}

.book-cover {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-cover:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.7), 0 12px 35px rgba(0, 0, 0, 0.5);
}

.book-title {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Hide repeating content on desktop */
.mobile-only-repeat {
    display: none;
}

/* Hustlers Section Text - Match Blog Card */
#hustlersScrollSection {
    color: #C0C6CD;
    line-height: 1.7;
    font-size: 0.9rem;
    max-height: 400px;
    overflow-y: auto;
    margin-right: -2.5rem;
    padding-right: 2.5rem;
    scrollbar-width: thin;
    scrollbar-color: #C0C6CD rgba(255, 255, 255, 0.1);
}

#hustlersScrollSection::-webkit-scrollbar {
    width: 12px;
}

#hustlersScrollSection::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#hustlersScrollSection::-webkit-scrollbar-thumb {
    background: #C0C6CD;
    border-radius: 4px;
}

#hustlersScrollSection::-webkit-scrollbar-thumb:hover {
    background: #FFFFFF;
}

#hustlersScrollSection p {
    font-size: inherit;
    color: inherit;
    line-height: inherit;
}

/* ===== MOBILE RESPONSIVE (MAX-WIDTH 768PX) ===== */
@media screen and (max-width: 768px) {
    /* Mobile Navigation */
    .hamburger {
        display: flex;
    }

    .nav-menu-left,
    .nav-menu-right {
        display: none;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
        height: 45.5px;
    }

    .nav-container {
        padding: 0.648rem 2rem;
        justify-content: space-between;
    }

    .nav-menu-mobile {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #FFFFFF;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        list-style: none;
    }

    .nav-menu-mobile.active {
        max-height: 300px;
    }

    .nav-menu-mobile li {
        border-bottom: 1px solid rgba(20, 34, 56, 0.1);
    }

    .nav-menu-mobile li:last-child {
        border-bottom: none;
    }

    .nav-menu-mobile .nav-link {
        display: block;
        padding: 1rem 2rem;
    }

    .nav-container {
        position: relative;
        justify-content: space-between;
    }

    /* Mobile Content Overlay - single column */
    .content-overlay {
        flex-direction: column;
        padding: 80px 5%;
    }

    /* Mobile Content Cards - full width, single column */
    .content-card {
        width: 100%;
        margin: 0;
        margin-bottom: 30px;
    }

    .content-card:not(.carousel-card) > * {
        width: 100%;
    }

    /* Mobile Carousel Images - 90% of card width, centered */
    .carousel-image-wrapper {
        width: calc(90% + 1rem);
        max-width: calc(100% - 0.5rem);
        margin-left: auto;
        margin-right: auto;
        position: relative;
        left: 0;
        transform: none;
    }

    /* Hide carousel buttons on mobile */
    .carousel-btn {
        display: none;
    }

    /* Show repeating content on mobile */
    .mobile-only-repeat {
        display: inline;
    }

    /* Mobile Carousel Sizing - 20% wider */
    #projectsCarousel,
    #designCarousel {
        width: 100%;
    }

    /* Mobile h3 top margin */
    .carousel-slide h3 {
        margin-top: 15px;
    }

    /* Projects Carousel Mobile */
    #projectsCarousel .carousel-image-wrapper {
        width: 90%;
        max-width: 90%;
    }

    /* Design Carousel Mobile */
    #designCarousel .carousel-image-wrapper {
        width: 90%;
        max-width: 90%;
    }

    /* Web Design Carousel Mobile */
    #webDesignCarousel .carousel-image-wrapper {
        width: 90%;
        max-width: 90%;
    }

    /* Logos Carousel Mobile - Reduce height by 60% */
    #logosCarousel .carousel-slides {
        min-height: 150px !important;
    }

    #logosCarousel .carousel-slide {
        max-height: 120px;
    }

    #logosCarousel .carousel-image-wrapper {
        max-height: 100px;
        width: 90%;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #logosCarousel .carousel-image {
        max-height: 100px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    /* Clothing Carousel Mobile */
    #clothingCarousel .carousel-image-wrapper {
        width: 90%;
        max-width: 90%;
    }

    /* Book Covers Carousel Mobile */
    #bookCoversCarousel .carousel-image-wrapper {
        width: 90%;
        max-width: 90%;
    }

    /* Books Carousel Mobile */
    #booksCarousel .carousel-image-wrapper {
        width: 90%;
        max-width: 90%;
    }

    /* Blog Carousel Mobile Adjustments */
    #blogCarousel,
    #latestCarousel {
        max-height: 700px;
    }

    #blogCarousel .carousel-slides,
    #latestCarousel .carousel-slides {
        max-height: 620px;
    }

    .medium-article-wrapper {
        max-height: 580px;
    }

    .medium-excerpt-full {
        font-size: 0.7rem;
    }

    .medium-excerpt-full h1,
    .medium-excerpt-full h2,
    .medium-excerpt-full h3,
    .medium-excerpt-full h4 {
        font-size: 0.8rem;
    }

    #blogCarousel .carousel-dots,
    #latestCarousel .carousel-dots {
        margin-top: 10px;
    }

    /* Hustlers Card Mobile Styles */
    #hustlersCard .content-inner {
        display: flex;
        flex-direction: column;
    }

    #hustlersCard h2 {
        margin-bottom: 15px;
    }

    #hustlersScrollSection {
        max-height: 500px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #C0C6CD rgba(255, 255, 255, 0.1);
        width: calc(100% + 2.5rem);
        margin-right: -2.5rem;
        padding-right: 0.75rem;
    }

    #hustlersScrollSection::-webkit-scrollbar {
        width: 12px;
    }

    #hustlersScrollSection::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }

    #hustlersScrollSection::-webkit-scrollbar-thumb {
        background: #C0C6CD;
        border-radius: 4px;
    }

    #hustlersScrollSection::-webkit-scrollbar-thumb:hover {
        background: #FFFFFF;
    }
}
