/* style.css */
/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --void: #050505;
    --void-deep: #000000;
    --white: #f5f4f2;
    --white-dim: #a8a5a0;
    --ash: #6b6864;
    --hairline: rgba(245, 244, 242, 0.09);
    --ember: #d9c9a8;
}

html, body {
    height: 100%;
}

body {
    background: var(--void-deep);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    position: relative;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- LAYER 0: mist canvas — particle fog, passive drift + active cursor ripples --- */
#blackhole {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
    pointer-events: none;
    /* Removed radial gradient to let mist show */
}

/* soft light bloom from within the mist, passive breathing */
.disk-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vmin; /* Full screen glow */
    height: 100vmin;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 244, 242, 0.03) 0%, rgba(245, 244, 242, 0.01) 50%, transparent 80%);
    filter: blur(50px);
    animation: glow-breathe 15s ease-in-out infinite;
}

@keyframes glow-breathe {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* --- LAYER 1: cursor-following ambient glow across whole page, active --- */
.spotlight {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        circle 420px at var(--mx, 50%) var(--my, 40%),
        rgba(245, 244, 242, 0.07),
        transparent 65%
    );
    transition: background 0.4s ease;
}

/* --- grain + vignette, quiet passive texture --- */
.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 35%, var(--void-deep) 105%);
}

/* --- LAYOUT --- */
.container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.floating-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* --- GLASS CARD --- */
.glass-card {
    position: relative;
    background: linear-gradient(150deg, rgba(245, 244, 242, 0.045), rgba(245, 244, 242, 0.01));
    backdrop-filter: blur(26px) saturate(140%);
    -webkit-backdrop-filter: blur(26px) saturate(140%);
    border: 1px solid var(--hairline);
    border-radius: 22px;
    padding: 52px 42px 42px;
    text-align: center;
    box-shadow:
        0 30px 90px -20px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform-style: preserve-3d;
    overflow: hidden;
}

/* moving glass sheen that tracks the cursor, active */
.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle 220px at var(--cx, 50%) var(--cy, 30%),
        rgba(245, 244, 242, 0.12),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
}

/* animated rim light — monochrome, slow sweep like light bending around the event horizon */
.glass-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: conic-gradient(
        from var(--rim-angle, 0deg),
        rgba(245, 244, 242, 0.75),
        transparent 25%,
        transparent 75%,
        rgba(245, 244, 242, 0.5)
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: rim-rotate 10s linear infinite;
}

@keyframes rim-rotate {
    to { --rim-angle: 360deg; }
}

@property --rim-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.card-content {
    position: relative;
    transform: translateZ(30px);
}

/* --- TYPOGRAPHY --- */
.gothic-title {
    font-family: 'Cinzel', serif;
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15), 0 0 34px rgba(245, 244, 242, 0.3);
    margin-bottom: 10px;
    transition: letter-spacing 0.5s ease, text-shadow 0.5s ease;
}

.gothic-title:hover {
    letter-spacing: 9px;
    text-shadow: 0 0 26px rgba(255, 255, 255, 0.6), 0 0 50px rgba(245, 244, 242, 0.5);
}

.divider {
    width: 50px;
    height: 2px;
    margin: 0 auto 20px auto;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    transition: width 0.5s ease, background 0.5s ease;
}

.divider::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--white-dim);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 10px rgba(245, 244, 242, 0.5);
}

.glass-card:hover .divider {
    width: 150px;
    background: rgba(255, 255, 255, 0.5);
}

.subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white-dim);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 26px;
}

.description {
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.85;
    color: rgba(245, 244, 242, 0.72);
    max-width: 320px;
    margin: 0 auto 36px;
}

.description em {
    font-style: normal;
    color: var(--white);
}

/* --- CONTACT SECTION --- */
.contact-section {
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
}

.whisper-text {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-style: italic;
    color: var(--white-dim);
    letter-spacing: 1px;
    margin-bottom: 18px;
    opacity: 0.75;
    animation: whisper-pulse 4.5s ease-in-out infinite;
}

@keyframes whisper-pulse {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 0.9; }
}

.glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 400;
    font-size: 0.9rem;
    padding: 13px 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.25s ease;
    overflow: hidden;
    position: relative;
}

.glass-btn svg {
    transition: transform 0.4s ease;
}

.glass-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    transition: left 0.6s ease;
}

.glass-btn:hover::before {
    left: 100%;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 34px -8px rgba(245, 244, 242, 0.3), 0 0 22px rgba(255, 255, 255, 0.14);
    transform: translateY(-2px) scale(1.03);
}

.glass-btn:hover svg {
    transform: rotate(-8deg) scale(1.08);
}

.glass-btn:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .glass-card {
        padding: 44px 26px 34px;
    }
    .gothic-title {
        font-size: 2.1rem;
        letter-spacing: 3px;
    }
    .gothic-title:hover {
        letter-spacing: 5px;
    }
}