/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a1628;
    color: #e8e5e0;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.72;
    letter-spacing: 0.005em;
    overflow-x: hidden;
}

/* === AURORA BACKGROUND === */
.aurora {
    position: fixed;
    width: 60vmax;
    height: 60vmax;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(100px);
}

.aurora-1 {
    background: radial-gradient(ellipse, rgba(0, 180, 216, 0.12), transparent 70%);
    top: -20%;
    left: -10%;
    animation: drift1 18s ease-in-out infinite;
}

.aurora-2 {
    background: radial-gradient(ellipse, rgba(123, 47, 247, 0.08), transparent 70%);
    top: 30%;
    right: -20%;
    animation: drift2 24s ease-in-out infinite;
}

.aurora-3 {
    background: radial-gradient(ellipse, rgba(232, 67, 147, 0.05), transparent 70%);
    bottom: -10%;
    left: 20%;
    animation: drift3 31s ease-in-out infinite;
}

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10vw, 5vh) scale(1.1); }
    66% { transform: translate(-5vw, 10vh) scale(0.95); }
}

@keyframes drift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-8vw, -5vh) scale(1.05); }
    66% { transform: translate(5vw, -10vh) scale(1.1); }
}

@keyframes drift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8vw, -8vh) scale(1.08); }
}

/* === TYPOGRAPHY === */
h1, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.08;
}

.card-number, .step-number, .footer-domain, .footer-tagline, .footer-date {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
}

/* === HERO SECTION === */
#hero {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

#hero-headline {
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    max-width: 14ch;
    margin-bottom: 1.5rem;
}

#hero-headline .word {
    display: inline-block;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: #8b95a5;
    max-width: 50ch;
    margin-bottom: 2rem;
}

.accent-line {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, #00b4d8, #7b2ff7);
    transform-origin: center;
}

/* === CREDENTIALS SECTION === */
#credentials {
    position: relative;
    z-index: 1;
    padding: 8rem 2rem;
}

.cards-container {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.card-wrapper {
    perspective: 1200px;
    width: 320px;
    height: 420px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-wrapper:hover .card,
.card-wrapper.flipped .card {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-front {
    background: #162447;
    border: 1px solid #1f4068;
    animation: breathe 4s ease-in-out infinite;
}

.card-front h3 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
}

.card-front p {
    color: #8b95a5;
    max-width: 62ch;
}

.card-number {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: #c9a84c;
    text-transform: uppercase;
}

.card-back {
    background: linear-gradient(135deg, #162447, #1f4068 40%, #7b2ff7 100%);
    transform: rotateY(180deg);
    overflow: hidden;
}

/* Collage elements */
.collage {
    position: relative;
    width: 100%;
    height: 100%;
}

.collage-rect {
    position: absolute;
    mix-blend-mode: overlay;
}

.collage-rect-1 {
    width: 60%;
    height: 40%;
    top: 10%;
    left: 15%;
    border: 2px dashed #e84393;
    transform: rotate(17deg);
}

.collage-rect-2 {
    width: 45%;
    height: 50%;
    bottom: 10%;
    right: 10%;
    background: rgba(0, 180, 216, 0.1);
    transform: rotate(-23deg);
}

.collage-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1.5px dashed rgba(201, 168, 76, 0.5);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.collage-text {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #e8e5e0;
}

.collage-text-1 {
    top: 20%;
    left: 10%;
    transform: rotate(17deg);
    opacity: 0.5;
}

.collage-text-2 {
    bottom: 30%;
    right: 10%;
    transform: rotate(-23deg);
    opacity: 0.3;
}

.collage-text-3 {
    top: 55%;
    left: 30%;
    transform: rotate(41deg);
    opacity: 0.15;
}

@keyframes breathe {
    0%, 100% { border-color: #162447; }
    50% { border-color: #1f4068; }
}

/* === PROCESS SECTION === */
#process {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
    max-width: 900px;
}

.process-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number {
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #00b4d8;
    border: 1px solid #1f4068;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text {
    color: #8b95a5;
    max-width: 28ch;
}

.process-line {
    width: 200px;
    height: 60px;
    flex-shrink: 0;
}

/* === DESCENT SECTION === */
#descent {
    position: relative;
    z-index: 1;
    padding: 8rem 2rem;
    display: flex;
    gap: 4rem;
    min-height: 100vh;
}

.descent-column {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.descent-column p {
    max-width: 62ch;
}

.descent-column em {
    font-style: italic;
    color: #00b4d8;
}

.descent-void {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.drift-text {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 12vw, 10rem);
    color: #e8e5e0;
    opacity: 0.05;
    pointer-events: none;
    white-space: nowrap;
}

.drift-1 { left: 10%; top: 10%; transform: rotate(-3deg); animation: floatUp 45s linear infinite; }
.drift-2 { left: 30%; top: 40%; transform: rotate(2deg); animation: floatUp 55s linear infinite; animation-delay: -10s; }
.drift-3 { left: 5%; top: 65%; transform: rotate(-5deg); animation: floatUp 38s linear infinite; animation-delay: -20s; }
.drift-4 { left: 50%; top: 80%; transform: rotate(4deg); animation: floatUp 50s linear infinite; animation-delay: -5s; }
.drift-5 { left: 20%; top: 90%; transform: rotate(-2deg); animation: floatUp 60s linear infinite; animation-delay: -30s; }

@keyframes floatUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-120vh); }
}

/* === FOOTER === */
#business-card {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding: 8rem 2rem;
}

.card-content {
    background: #e8e5e0;
    color: #0a1628;
    aspect-ratio: 3.5 / 2;
    width: min(350px, 90vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-radius: 4px;
    box-shadow: 0 -12px 40px rgba(0, 180, 216, 0.10), 0 -4px 16px rgba(123, 47, 247, 0.06);
    transition: box-shadow 0.6s ease;
}

.card-content:hover {
    box-shadow: 0 -16px 56px rgba(0, 180, 216, 0.18), 0 -6px 24px rgba(123, 47, 247, 0.10);
}

.footer-domain {
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: #8b95a5;
}

.footer-date {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: #8b95a5;
    margin-top: 0.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .aurora {
        filter: blur(60px);
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .card-wrapper {
        width: min(320px, 90vw);
    }

    .process-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .process-line {
        width: 60px;
        transform: rotate(90deg);
    }

    #descent {
        flex-direction: column;
    }

    .descent-void {
        min-height: 300px;
    }

    .drift-text {
        font-size: 4rem;
    }
}
