/* ==========================================================
   Design System & Reset
   ========================================================== */
:root {
    --bg-main: #000000;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #8b5cf6; /* Brutalist Purple */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
}

/* ==========================================================
   Preloader
   ========================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-text {
    font-size: 10vw;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--text-main);
}

/* ==========================================================
   Hero Section
   ========================================================== */
.hero-section {
    height: 70vh; /* Stable height */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-main);
    z-index: 10; /* Prevent clipping from overlapping sections */
}

.hero-inner {
    text-align: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 18vw;
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    text-align: center;
}

.logo-in-text {
    height: 0.95em;
    width: auto;
    border-radius: 50%;
    margin: 0 0.02em;
    object-fit: cover;
    aspect-ratio: 1/1;
    vertical-align: middle;
    transform: translate(0.08em, -0.08em);
}

/* ==========================================================
   Video Scaler Section
   ========================================================== */
.video-scaler-section {
    padding: 10vh 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    position: relative;
    z-index: 1; /* Keep behind hero to prevent clipping */
}

.video-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video {
    width: 85vw;
    max-width: 1920px;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: contain;
    border-radius: 20px;
    pointer-events: none;
}

/* ==========================================================
   Works Section
   ========================================================== */
.works-section {
    padding: 10vh 5vw;
    background: var(--bg-main);
}

.works-title {
    font-size: 4vw;
    font-weight: 900;
    margin-bottom: 5vh;
    letter-spacing: -0.04em;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2vw;
}

.work-block {
    position: relative;
    aspect-ratio: 16/9;
    background: #111;
    overflow: hidden;
    border-radius: 20px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
    cursor: pointer;
}

.work-block iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.work-block.is-playing .video-overlay {
    display: none;
}

.work-block.is-playing iframe {
    pointer-events: auto;
}

/* ==========================================================
   Bridging Section
   ========================================================== */
.bridging-section {
    padding: 10vh 5vw;
    text-align: center;
    background: var(--bg-main);
}

.massive-text {
    font-size: 12vw;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

/* ==========================================================
   Horizontal Creators Section
   ========================================================== */
.horizontal-section {
    background: var(--text-main);
    color: var(--bg-main);
}

.horizontal-container {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5vw;
    will-change: transform;
}

.horizontal-item {
    flex-shrink: 0;
    margin-right: 15vw;
}

.text-item h2 {
    font-size: 10vw;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.creator-item {
    width: 30vw;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.creator-link {
    text-decoration: none;
    color: var(--bg-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.creator-link:hover {
    transform: translateY(-10px);
}

.creator-pfp {
    width: 30vw;
    height: 30vw;
    max-width: 400px;
    max-height: 400px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.creator-pfp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.creator-link:hover .creator-pfp img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.creator-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.creator-name {
    font-size: 2vw;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .creator-name {
        font-size: 1.5rem;
    }
    .creator-subs {
        font-size: 1rem;
    }
}

.verified-badge {
    width: 1.2em;
    height: 1.2em;
}

.creator-subs {
    font-size: 1.2vw;
    font-weight: 600;
    color: #555;
}

/* ==========================================================
   Footer Section
   ========================================================== */
.footer-section {
    padding: 15vh 5vw;
    background: var(--bg-main);
    text-align: center;
}

.footer-title {
    font-size: 15vw;
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.05em;
    margin-bottom: 5vh;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2vw;
}

.icon-link {
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.3s ease;
    background: transparent;
    text-decoration: none;
}

.icon-link:hover {
    background: var(--text-main);
    color: var(--bg-main);
    transform: scale(1.1);
}

.icon-link svg {
    width: 32px;
    height: 32px;
}

/* ==========================================================
   Toast Notification
   ========================================================== */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-main);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.toast.show {
    bottom: 40px;
    opacity: 1;
}

/* ==========================================================
   Floating Socials
   ========================================================== */
.floating-social {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-social:hover {
    transform: scale(1.1) translateY(-5px);
    background: #fff;
    color: var(--accent);
}

.floating-social svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================
   Responsive Breakpoints
   ========================================================== */
@media (max-width: 768px) {
    /* Hero */
    .hero-title { font-size: 22vw; }
    
    /* Video */
    .video-container video { width: 95vw; }
    
    /* Works */
    .works-title { font-size: 8vw; margin-bottom: 3vh; }
    .works-grid { grid-template-columns: 1fr; gap: 4vw; }
    
    /* Bridging */
    .massive-text { font-size: 15vw; }
    
    /* Creators */
    .text-item h2 { font-size: 15vw; }
    .horizontal-item { margin-right: 10vw; }
    .creator-item { width: 60vw; }
    .creator-pfp { width: 60vw; height: 60vw; margin-bottom: 15px; }
    .creator-name { font-size: 1.8rem; }
    .creator-subs { font-size: 1.2rem; }
    
    /* Footer */
    .footer-title { font-size: 20vw; margin-bottom: 4vh; }
    .footer-links { gap: 4vw; }
    .icon-link { width: 60px; height: 60px; }
    .icon-link svg { width: 24px; height: 24px; }
    
    /* Floating Social */
    .floating-social { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .floating-social svg { width: 20px; height: 20px; }
}
