/* ==========================================================================
   Core Layout Base (Navy Palette)
   ========================================================================== */
   body {
    margin: 0;
    padding: 7rem 2rem 3rem 2rem;
    background-color: #030712;    
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    color: #F8FAFC;
    overflow-x: hidden;
}

/* ==========================================================================
   FIXED: True Centered Social Navigation Bar (Per image_4aa38c.png)
   ========================================================================== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4.5rem;
    background: rgba(3, 7, 18, 0.9); 
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #1E293B;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    z-index: 100; 
}

.nav-brand {
    font-weight: 700;
    font-size: 2.0rem;
    letter-spacing: 0.05em;
    color: #F8FAFC;
    /* Keeps title locked to the far left without pushing other elements */
    margin-right: auto; 
}

/* 
   THE CENTERING FIX:
   Using absolute positioning handles true dead-center alignment on the screen,
   completely independent of how wide or narrow your "Title" text on the left is.
*/
.nav-links-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2.5rem;
}

.nav-links-container a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links-container a:hover {
    color: #38BDF8;
    transform: translateY(-1px);
}

/* ==========================================================================
   Master Grid System
   ========================================================================== */
.page-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px; 
    gap: 4rem; 
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* Left side layout contains standard spacing between carousels */
.left-media-column {
    display: flex;
    flex-direction: column;
    gap: 6rem; 
}

.portfolio-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #38BDF8; 
    margin: 0;
    padding-left: 0.5rem;
    border-left: 3px solid #1D4ED8; 
}

/* ==========================================================================
   Golden Ratio Media Carousel Structure
   ========================================================================== */
.carousel-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem; 
    width: 100%;
    perspective: 1200px; 
}

.card {
    border-radius: 16px;
    overflow: hidden;
    background-color: #0B1329; 
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card img, .card video {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    background-color: #020617;
}

.center-card {
    width: 50%; 
    aspect-ratio: 1 / 1.618; 
    max-height: 600px;
    opacity: 1;
    filter: blur(0px);
    z-index: 5;
    position: relative;
    border: 1px solid #1E3A8A;
    cursor: pointer;
}

.side-card {
    width: 20%; 
    aspect-ratio: 1 / 1.618;
    max-height: 420px;
    opacity: 0.15; 
    filter: blur(6px) grayscale(60%); 
    transform: scale(0.9);
    pointer-events: none; 
    z-index: 1;
}

/* ==========================================================================
   FIXED: Fluid & Responsive Right Side Scrolling Column
   ========================================================================== */
.right-shop-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky; 
    top: 6.5rem; /* Sticks right below your header while scrolling pages */
}

/* 
   THE SCROLLING FIX:
   Explicitly maps the container height to the remaining screen space.
   This guarantees that the container will never pull down past the bottom fold, 
   forcing a smooth, native inner scrollable track for your shop cards.
*/
.shop-vertical-scroll {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: calc(100vh - 12rem); 
    overflow-y: auto;             /* Activates seamless vertical wheel scrolling */
    padding-right: 0.75rem;       /* Padding room prevents scrollbar from clipping cards */
    scrollbar-width: thin;
    scrollbar-color: #1E293B #030712;
}

/* Custom scrollbar styles for Webkit Engines (Chrome, Safari) */
.shop-vertical-scroll::-webkit-scrollbar {
    width: 6px;
}
.shop-vertical-scroll::-webkit-scrollbar-track {
    background: #030712;
}
.shop-vertical-scroll::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 10px;
}

/* Individual Shop Interface Blocks */
.shop-card {
    display: block;
    
    /* THE CRUCIAL FIX: Forces the cards to keep their full size 
       and tells the browser NEVER to squish them vertically. */
    flex-shrink: 0; 
    
    background-color: #0B1329;
    border: 1px solid #1E293B;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none; 
    color: inherit;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-3px);
    border-color: #38BDF8; 
}

.shop-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1; 
    background-color: #020617;
    overflow: hidden;
}

.shop-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shop-card:hover .shop-img-wrapper img {
    transform: scale(1.04);
}

.shop-info {
    padding: 1rem;
}

.shop-info h4 {
    margin: 0 0 0.4rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #F8FAFC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-info .price {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #38BDF8;
}

/* ==========================================================================
   Overlay Text Popups
   ========================================================================== */
   .info-popup {
    position: absolute;
    
    /* THE FIX: Anchors the popup bar strictly to the bottom fold */
    bottom: 0;
    left: 0;
    right: 0;
    top: auto; 
    
    /* THE FIX: Uses a dark navy vertical gradient so it blends into your media */
    background: linear-gradient(to top, rgba(3, 7, 18, 0.95) 0%, rgba(11, 21, 40, 0.85) 100%);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(56, 189, 248, 0.2); /* Subtle ice-blue top border line */
    
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem; /* Tighter padding designed for a bottom banner layout */
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.center-card:hover .info-popup { opacity: 1; }
.popup-content { text-align: center; }
.popup-content h3 { margin: 0 0 0.75rem 0; color: #38BDF8; font-size: 1.3rem; }
.popup-content p { margin: 0; color: #94A3B8; line-height: 1.6; font-size: 0.95rem; }