/* supremacy.leaders - Styles */
/* Hierarchical Authority Minimalism */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0d0d0d;
    color: #f0f0f0;
    line-height: 1.65;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4af37 0%, #666666 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e8d89a 0%, #777777 100%);
}

/* Background overlay */
#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%);
    pointer-events: none;
    z-index: -1;
}

/* Section Base Styles */
section {
    position: relative;
    width: 100%;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Authority Foundation Section */
#section-0 {
    height: 100vh;
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.authority-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.authority-lines-top {
    width: 100%;
    height: 100px;
    margin-bottom: 40px;
    opacity: 0;
    animation: lineDrawTopIn 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.6s forwards;
}

.authority-lines-bottom {
    width: 100%;
    height: 100px;
    margin-top: 40px;
    opacity: 0;
    animation: lineDrawBottomIn 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.6s forwards;
}

.command-line {
    stroke: #2a2a2a;
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: lineStroke 1.2s ease-in-out 0.6s forwards;
}

@keyframes lineStroke {
    0% {
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes lineDrawTopIn {
    0% {
        opacity: 0;
        transform: scaleX(0);
        transform-origin: left center;
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes lineDrawBottomIn {
    0% {
        opacity: 0;
        transform: scaleX(0);
        transform-origin: right center;
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.domain-wrapper {
    position: relative;
    z-index: 5;
    text-align: center;
}

.domain-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    color: #f0f0f0;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
    animation: domainFadeIn 2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.6s forwards;
    opacity: 0;
    margin: 20px 0;
}

@keyframes domainFadeIn {
    0% {
        opacity: 0;
        letter-spacing: -0.02em;
    }
    100% {
        opacity: 1;
        letter-spacing: -0.02em;
    }
}

.hierarchy-text {
    position: relative;
    z-index: 5;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.hierarchy-word {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d4af37;
    opacity: 0;
    animation: wordFadeIn 1s cubic-bezier(0.25, 0.1, 0.25, 1) 2.1s forwards;
}

.hierarchy-word:last-child {
    animation-delay: 2.3s;
}

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

/* Leadership Section Styles */
.leadership-section {
    min-height: 80vh;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(29, 29, 29, 0.3) 50%, transparent 100%);
    border-top: 1px solid #3a3a3a;
}

.leadership-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 99px,
            rgba(58, 58, 58, 0.03) 99px,
            rgba(58, 58, 58, 0.03) 100px
        );
    pointer-events: none;
    opacity: 0.5;
}

.pyramid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pyramid-level-1 {
    background: 
        linear-gradient(180deg, 
            rgba(58, 58, 58, 0) 0%, 
            rgba(58, 58, 58, 0.15) 40%, 
            rgba(58, 58, 58, 0) 100%
        );
    opacity: 0;
    animation: levelRevealIn 1s cubic-bezier(0.25, 0.1, 0.25, 1) 0.3s forwards;
}

.pyramid-level-2 {
    background: 
        linear-gradient(180deg, 
            rgba(212, 175, 55, 0) 0%, 
            rgba(212, 175, 55, 0.08) 35%, 
            rgba(212, 175, 55, 0) 100%
        );
    opacity: 0;
    animation: levelRevealIn 1s cubic-bezier(0.25, 0.1, 0.25, 1) 0.5s forwards;
}

.pyramid-level-3 {
    background: 
        linear-gradient(180deg, 
            rgba(232, 216, 154, 0) 0%, 
            rgba(232, 216, 154, 0.1) 30%, 
            rgba(232, 216, 154, 0) 100%
        );
    opacity: 0;
    animation: levelRevealIn 1s cubic-bezier(0.25, 0.1, 0.25, 1) 0.7s forwards;
}

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

.leadership-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
    text-align: center;
    padding: 60px 40px;
    background: rgba(13, 13, 13, 0.4);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(58, 58, 58, 0.2);
    border-top: 2px solid #3a3a3a;
}

.tier-number {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #d4af37;
    margin-bottom: 15px;
    opacity: 0.8;
}

.tier-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    color: #f0f0f0;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.tier-description {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 25px;
    letter-spacing: 0.3px;
}

.tier-indicator {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    color: #d4af37;
    opacity: 0.7;
    margin-top: 30px;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Apex Section */
#section-4 {
    min-height: 100vh;
    background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.05) 50%, rgba(212, 175, 55, 0.1) 100%);
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.pyramid-level-final {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    animation: apexRevealIn 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.8s forwards;
}

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

.apex-container {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.apex-point {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37 0%, #8b7514 100%);
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.4),
        0 0 60px rgba(212, 175, 55, 0.2),
        inset -2px -2px 8px rgba(0, 0, 0, 0.5),
        inset 2px 2px 8px rgba(255, 255, 255, 0.1);
    animation: apexGlow 3s ease-in-out infinite;
    opacity: 0;
    animation-name: apexGlowAndFade;
    animation-duration: 3s;
    animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    animation-delay: 1s;
}

@keyframes apexGlowAndFade {
    0% {
        opacity: 0;
        box-shadow: 
            0 0 0px rgba(212, 175, 55, 0),
            0 0 0px rgba(212, 175, 55, 0);
    }
    100% {
        opacity: 1;
        box-shadow: 
            0 0 30px rgba(212, 175, 55, 0.4),
            0 0 60px rgba(212, 175, 55, 0.2);
    }
}

@keyframes apexGlow {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(212, 175, 55, 0.4),
            0 0 60px rgba(212, 175, 55, 0.2),
            inset -2px -2px 8px rgba(0, 0, 0, 0.5),
            inset 2px 2px 8px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(212, 175, 55, 0.6),
            0 0 80px rgba(212, 175, 55, 0.3),
            inset -2px -2px 8px rgba(0, 0, 0, 0.5),
            inset 2px 2px 8px rgba(255, 255, 255, 0.15);
    }
}

.apex-text {
    text-align: center;
    opacity: 0;
    animation: apexTextFade 1s cubic-bezier(0.25, 0.1, 0.25, 1) 1.5s forwards;
}

.apex-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    color: #f0f0f0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.apex-text p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: #d4af37;
    text-transform: uppercase;
    font-weight: 500;
}

@keyframes apexTextFade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 40px 20px;
        min-height: auto;
    }

    #section-0 {
        height: auto;
        padding: 80px 20px;
    }

    .authority-lines-top,
    .authority-lines-bottom {
        height: 60px;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    .domain-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hierarchy-text {
        flex-direction: column;
        gap: 10px;
    }

    .hierarchy-word {
        font-size: clamp(0.9rem, 2vw, 1.3rem);
    }

    .leadership-section {
        min-height: 60vh;
    }

    .leadership-content {
        padding: 40px 25px;
    }

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

    .tier-description {
        font-size: 0.95rem;
    }

    .tier-indicator {
        font-size: 1rem;
    }

    #section-4 {
        padding-top: 60px;
    }

    .apex-point {
        width: 40px;
        height: 40px;
    }

    .apex-text h2 {
        font-size: clamp(1.5rem, 6vw, 3rem);
    }

    .apex-text p {
        font-size: 1rem;
    }
}

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

    section {
        padding: 30px 15px;
    }

    #section-0 {
        padding: 60px 15px;
    }

    .authority-lines-top,
    .authority-lines-bottom {
        height: 50px;
        margin: 15px 0;
    }

    .domain-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .hierarchy-word {
        font-size: clamp(0.8rem, 1.5vw, 1rem);
    }

    .leadership-section {
        min-height: 50vh;
    }

    .leadership-content {
        padding: 30px 15px;
        border: none;
        background: transparent;
    }

    .tier-title {
        font-size: clamp(1.2rem, 4vw, 2rem);
        margin-bottom: 15px;
    }

    .tier-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .tier-indicator {
        font-size: 0.9rem;
        margin-top: 15px;
    }

    .apex-point {
        width: 35px;
        height: 35px;
    }

    .apex-text h2 {
        font-size: clamp(1.2rem, 5vw, 2rem);
        margin-bottom: 8px;
    }

    .apex-text p {
        font-size: 0.9rem;
    }
}
