/* ============================================
   SUPREMACY.BOO - BRUTALIST MINIMALISM STYLES
   ============================================ */

/* ============= RESET & BASICS ============= */

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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background: #0a0a0a;
    color: #e8e8e8;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    line-height: 1.65;
    font-size: 16px;
}

/* ============= TYPOGRAPHY ============= */

h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: clamp(2.5rem, 10vw, 8rem);
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    letter-spacing: -0.01em;
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

p {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.75;
    max-width: 50em;
    margin-bottom: 1.5rem;
    color: #e8e8e8;
}

/* ============= SECTIONS ============= */

.section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    overflow: hidden;
}

.section-0 {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-1, .section-2, .section-3 {
    height: 80vh;
    position: relative;
    padding: 2rem;
}

.section-4 {
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

/* ============= HERO SECTION ============= */

.hero-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}

.pinning-lines {
    position: absolute;
    width: 100%;
    height: auto;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 0;
    opacity: 0;
    animation: pinningLinesAppear 2s ease-in-out forwards;
    animation-delay: 0.6s;
}

@keyframes pinningLinesAppear {
    0% {
        opacity: 0;
        stroke-dashoffset: 200;
    }
    100% {
        opacity: 1;
        stroke-dashoffset: 0;
    }
}

.pinning-line-left, .pinning-line-right {
    stroke: #1a1a1a;
    stroke-width: 1;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

.domain-title {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0;
    opacity: 0;
}

.domain-title .letter {
    display: inline-block;
    opacity: 0;
    animation: letterFadeIn 0.1s ease-out forwards;
}

.domain-title .letter:nth-child(1) { animation-delay: 0.6s; }
.domain-title .letter:nth-child(2) { animation-delay: 0.64s; }
.domain-title .letter:nth-child(3) { animation-delay: 0.68s; }
.domain-title .letter:nth-child(4) { animation-delay: 0.72s; }
.domain-title .letter:nth-child(5) { animation-delay: 0.76s; }
.domain-title .letter:nth-child(6) { animation-delay: 0.8s; }
.domain-title .letter:nth-child(7) { animation-delay: 0.84s; }
.domain-title .letter:nth-child(8) { animation-delay: 0.88s; }
.domain-title .letter:nth-child(9) { animation-delay: 0.92s; }
.domain-title .letter:nth-child(10) { animation-delay: 0.96s; }
.domain-title .letter:nth-child(11) { animation-delay: 1s; }
.domain-title .letter:nth-child(12) { animation-delay: 1.04s; }
.domain-title .letter:nth-child(13) { animation-delay: 1.08s; }

@keyframes letterFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.absolute-word {
    position: relative;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 2rem;
    opacity: 0;
    animation: absoluteWordFadeIn 1s ease-out forwards;
    animation-delay: 2s;
    color: #d4af37;
}

@keyframes absoluteWordFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* ============= DIAGONAL LINES SVG ============= */

.diagonal-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.diagonal-line {
    stroke: #333333;
    stroke-width: 1;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

/* ============= CONTENT SECTIONS ============= */

.section-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: #d4af37;
    opacity: 0.6;
    z-index: 2;
}

.content-column {
    position: relative;
    z-index: 3;
    max-width: 55em;
    text-align: left;
}

.section-1, .section-2, .section-3 {
    position: relative;
}

/* ============= GEOMETRIC OVERLAYS ============= */

.geometric-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.overlay-1 {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        #333333 35px,
        #333333 70px
    );
}

.overlay-2 {
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 35px,
        #333333 35px,
        #333333 70px
    );
}

.overlay-3 {
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 35px,
        #333333 35px,
        #333333 70px
    );
}

/* ============= APEX SECTION ============= */

.apex-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    z-index: 10;
}

.apex-point {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #d4af37 0%, #8b6914 100%);
    box-shadow: 0 0 20px 4px #d4af37;
    margin-bottom: 3rem;
    animation: apexGlow 3s ease-in-out infinite;
}

@keyframes apexGlow {
    0%, 100% {
        box-shadow: 0 0 20px 4px #d4af37;
    }
    50% {
        box-shadow: 0 0 40px 8px #d4af37;
    }
}

.section-4 h2 {
    color: #d4af37;
}

/* ============= SCROLL ADJUSTMENTS ============= */

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #d4af37 #1a1a1a;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f0d76b;
}

/* ============= RESPONSIVE DESIGN ============= */

@media (max-width: 768px) {
    .section {
        height: 60vh;
    }

    .section-0 {
        height: 100vh;
    }

    .section-1, .section-2, .section-3 {
        height: 60vh;
        padding: 1.5rem;
    }

    .section-4 {
        height: 100vh;
    }

    .section-number {
        top: 1rem;
        right: 1rem;
        font-size: 1.2rem;
    }

    h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    p {
        font-size: clamp(0.9rem, 1vw, 1rem);
        line-height: 1.6;
    }

    .content-column {
        max-width: 90%;
    }

    .pinning-lines {
        display: none;
    }

    /* Simplify diagonal lines on mobile */
    .diagonal-tl, .diagonal-tr, .diagonal-bl, .diagonal-br {
        display: none;
    }

    .diagonal-secondary-1 {
        x1: 100;
        x2: 500;
        y2: 1500;
    }

    .diagonal-secondary-2 {
        x1: 900;
        x2: 500;
        y2: 1500;
    }

    /* Hide secondary diagonals on smaller screens */
    .diagonal-secondary-3, .diagonal-secondary-4 {
        display: none;
    }

    .overlay-1, .overlay-2, .overlay-3 {
        opacity: 0.03;
    }

    .apex-point {
        width: 30px;
        height: 30px;
        box-shadow: 0 0 15px 2px #d4af37;
    }
}

@media (max-width: 480px) {
    html, body {
        font-size: 14px;
    }

    .section {
        height: 50vh;
    }

    .section-number {
        font-size: 1rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.2rem, 4vw, 2rem);
    }

    p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .content-column {
        max-width: 95%;
    }

    .absolute-word {
        font-size: 1rem;
        letter-spacing: 0.08em;
    }

    .apex-point {
        width: 25px;
        height: 25px;
        box-shadow: 0 0 10px 2px #d4af37;
    }
}

/* ============= UTILITY CLASSES ============= */

.text-gold {
    color: #d4af37;
}

.text-steel {
    color: #333333;
}

.text-platinum {
    color: #e8e8e8;
}

/* ============= ANIMATION TIMING ============= */

* {
    --transition-fast: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-normal: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ============= ACCESSIBILITY & INTERACTIONS ============= */

a {
    color: #d4af37;
    text-decoration: none;
    border-bottom: 1px solid #d4af37;
    transition: opacity var(--transition-fast);
}

a:hover {
    opacity: 0.7;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .domain-title .letter {
        animation: none;
        opacity: 1;
    }

    .absolute-word {
        animation: none;
        opacity: 1;
    }

    .pinning-lines {
        animation: none;
        opacity: 1;
    }
}
