/* === CUSTOM PROPERTIES === */
:root {
    --color-bg: #050510;
    --color-text: #F9FAFB;
    --color-accent: 56, 189, 248;        /* sky-400 RGB for rgba() usage */
    --color-accent-hex: #38bdf8;
    --color-purple: #a78bfa;
    --color-muted: rgba(209, 213, 219, 0.85);
    --color-muted-dim: rgba(209, 213, 219, 0.6);
    --color-border: rgba(255, 255, 255, 0.06);
    --card-radius: 1.25rem;
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* === BASE === */
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

/* Noise grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* === CANVAS === */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

/* === HEADER === */
#main-header {
    border-bottom: 1px solid transparent;
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
}

#main-header.scrolled {
    background-color: rgba(5, 5, 16, 0.6);
    backdrop-filter: blur(20px);
    border-bottom-color: var(--color-border);
}

/* === CONTENT SECTIONS === */
.content-section {
    position: relative;
    z-index: 1;
    padding: 10vh 2rem;
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#end.content-section {
    min-height: 70vh;
}

/* === ANIMATED TITLE === */
#animated-title {
    position: relative;
    text-shadow: 0 0 80px rgba(var(--color-accent), 0.3);
}

/* === BRAND CARDS — CLEAN GLASS === */
.brand-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border-radius: var(--card-radius);
    padding: 2.5rem;
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(60px) scale(0.97);
    transition: opacity 1s var(--transition-smooth),
        transform 1s var(--transition-smooth);
    border: none;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.brand-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.brand-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* === BRAND TYPOGRAPHY === */
.brand-title {
    display: inline-block;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-accent-hex) 50%, var(--color-purple) 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: none;
    position: relative;
}

.brand-description {
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--color-muted);
    letter-spacing: 0.01em;
}

/* === SECTION NUMBER BADGE === */
.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(var(--color-accent), 0.3);
    color: rgba(var(--color-accent), 0.8);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: rgba(var(--color-accent), 0.05);
}

/* === END SECTION === */
#end h2 {
    background: linear-gradient(135deg, #ffffff, var(--color-accent-hex));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#end p {
    color: var(--color-muted-dim);
}

/* === FOOTER === */
footer {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    animation: pulseScroll 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.scroll-indicator svg {
    width: 1.25rem;
    height: 1.25rem;
    color: rgba(255, 255, 255, 0.4);
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes pulseScroll {
    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes bounceDown {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .brand-card {
        padding: 1.75rem;
    }

    .brand-title {
        font-size: 1.75rem;
    }

    .brand-description {
        font-size: 1rem;
    }
}