/* --- Chase Studios Master CSS v10.0 --- */

/* 1. MERGE LOADER (CENTERED & CLAMPED) */
#loader-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000; z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.6s ease; overflow: hidden;
}

.loader-wrapper {
    position: relative; width: 250px; height: 250px;
    display: flex; justify-content: center; align-items: center;
}

.loader-img {
    position: absolute; border-radius: 50%; object-fit: cover;
    width: 80px; height: 80px; left: 50%; top: 50%; margin-left: -40px; margin-top: -40px;
}

#side-left { 
    opacity: 0; transform: translateX(-120px); 
    animation: mergeLeft 1.2s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

#side-right { 
    opacity: 0; transform: translateX(120px); 
    animation: mergeRight 1.2s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

#main-pop {
    width: 140px; height: 140px; opacity: 0; margin-left: -70px; margin-top: -70px;
    transform: scale(0); border: 3px solid #fff; z-index: 100;
    animation: popOut 0.6s 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes mergeLeft {
    0% { opacity: 0; transform: translateX(-120px); }
    50% { opacity: 1; transform: translateX(-30px); }
    100% { opacity: 0; transform: translateX(0) scale(0.2); }
}

@keyframes mergeRight {
    0% { opacity: 0; transform: translateX(120px); }
    50% { opacity: 1; transform: translateX(30px); }
    100% { opacity: 0; transform: translateX(0) scale(0.2); }
}

@keyframes popOut {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}

body.loaded #loader-overlay { opacity: 0; pointer-events: none; }

/* 2. LAYOUT & GLASS CONTAINER */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { 
    margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; 
    background: #050505; color: white; 
    display: flex; justify-content: center; align-items: flex-start; min-height: 100vh;
}

.background-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: url('images/background.jpg') center/cover no-repeat; z-index: -1; }

.container { 
    background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 40px;
    padding: 50px 20px; margin: 40px 15px; width: 95%; max-width: 600px; text-align: center;
}

/* 3. LOGO TRIPLE WRAP */
.triple-logo-wrap { display: flex; justify-content: center; align-items: center; margin-bottom: 25px; }
.circle-frame { border-radius: 50%; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.15); background: #000; flex-shrink: 0; aspect-ratio: 1/1; }
.circle-frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-side { width: 85px; height: 85px; margin: 0 -15px; z-index: 1; opacity: 0.6; }
.frame-center { width: 125px; height: 125px; z-index: 5; border: 2px solid #fff; }

/* 4. NAVIGATION (Socials & Categories) */
/* --- Master Bubble Fix (Horizontal Scroll) --- */

.social-bubbles, 
.category-nav { 
    display: flex;            /* Puts bubbles in a row */
    flex-wrap: nowrap;       /* Prevents them from stacking */
    overflow-x: auto;        /* Allows side-to-side swiping */
    gap: 10px;               /* Space between buttons */
    padding: 10px 5px;       /* Padding so they don't touch the edges */
    margin-bottom: 25px; 
    scrollbar-width: none;   /* Hides scrollbar on Firefox */
    -webkit-overflow-scrolling: touch; /* Smooth swiping on iPhone */
}

/* Hides scrollbar on Chrome, Safari, and Opera */
.social-bubbles::-webkit-scrollbar, 
.category-nav::-webkit-scrollbar { 
    display: none; 
}

.bubble { 
    flex: 0 0 auto;          /* Prevents buttons from squishing */
    padding: 10px 20px; 
    border-radius: 50px; 
    background: rgba(255,255,255,0.1);
    color: white; 
    text-decoration: none; 
    font-size: 0.75rem; 
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.15); 
    white-space: nowrap;     /* Keeps text on one line */
    transition: 0.3s;
}

.bubble:hover { 
    background: #fff; 
    color: #000; 
}

/* 5. PHOTO GRID & LIGHTBOX */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; width: 100%; }
.photo-item { border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.15); aspect-ratio: 1/1; background: #111; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }

.lightbox { 
    display: none; position: fixed; z-index: 999999; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.96); backdrop-filter: blur(20px);
    justify-content: center; align-items: center; flex-direction: column; 
}
.lightbox-content { max-width: 90%; max-height: 70vh; border-radius: 15px; }
.action-btn { display: none; margin-top: 25px; padding: 16px 35px; background: #fff; color: #000; text-decoration: none; border-radius: 50px; font-weight: 900; }
.lightbox[style*="display: flex"] .action-btn { display: inline-block; }

/* Pushes the Return Home button down for better spacing */
.return-btn {
    display: inline-block;
    margin-top: 40px !important; /* Forces 40px of space above the button */
    margin-bottom: 20px;
}
