/* Casa Ascendente - Living Seraph Animations */
/* The Ascending Angel - Fully Immersive */

/* ============================================
   HERO SECTION - CLEAN & CENTERED
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 50% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(26, 31, 60, 0.2) 0%, transparent 60%),
        linear-gradient(180deg, #0a0a0f 0%, #0d0d14 50%, #0a0a0f 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    padding: 2rem;
}

/* ============================================
   SERAPH CONTAINER - PERFECTLY CENTERED
   ============================================ */
.seraph-container {
    position: relative;
    width: 320px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Divine aura behind seraph */
.seraph-aura {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.15) 0%,
        rgba(212, 175, 55, 0.08) 30%,
        rgba(212, 175, 55, 0.03) 50%,
        transparent 70%
    );
    animation: auraPulse 4s ease-in-out infinite;
}

@keyframes auraPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Outer ring */
.seraph-ring {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.15);
    animation: ringPulse 6s ease-in-out infinite;
}

.seraph-ring:nth-child(2) {
    width: 420px;
    height: 420px;
    animation-delay: -2s;
    border-style: dashed;
    opacity: 0.5;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(0.95); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.6; }
}

/* ============================================
   LIGHT RAYS - CLEAN & COORDINATED
   ============================================ */
.light-rays {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.light-ray {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 300px;
    background: linear-gradient(
        to bottom,
        rgba(255, 215, 100, 0.6) 0%,
        rgba(212, 175, 55, 0.3) 30%,
        rgba(212, 175, 55, 0.1) 60%,
        transparent 100%
    );
    transform-origin: top center;
    opacity: 0;
    animation: rayPulse 4s ease-in-out infinite;
}

/* 12 rays evenly distributed */
.light-ray:nth-child(1) { transform: rotate(0deg); animation-delay: 0s; }
.light-ray:nth-child(2) { transform: rotate(30deg); animation-delay: 0.15s; }
.light-ray:nth-child(3) { transform: rotate(60deg); animation-delay: 0.3s; }
.light-ray:nth-child(4) { transform: rotate(90deg); animation-delay: 0.45s; }
.light-ray:nth-child(5) { transform: rotate(120deg); animation-delay: 0.6s; }
.light-ray:nth-child(6) { transform: rotate(150deg); animation-delay: 0.75s; }
.light-ray:nth-child(7) { transform: rotate(180deg); animation-delay: 0.9s; }
.light-ray:nth-child(8) { transform: rotate(210deg); animation-delay: 1.05s; }
.light-ray:nth-child(9) { transform: rotate(240deg); animation-delay: 1.2s; }
.light-ray:nth-child(10) { transform: rotate(270deg); animation-delay: 1.35s; }
.light-ray:nth-child(11) { transform: rotate(300deg); animation-delay: 1.5s; }
.light-ray:nth-child(12) { transform: rotate(330deg); animation-delay: 1.65s; }

@keyframes rayPulse {
    0%, 100% { opacity: 0.2; height: 250px; }
    50% { opacity: 0.8; height: 350px; }
}

/* ============================================
   THE LIVING SERAPH - ANIMATED SVG
   ============================================ */
/* THE ACTUAL CREST IMAGE - Divine Glow */
.seraph-crest-image {
    position: relative;
    z-index: 10;
    width: 280px;
    height: auto;
    animation: 
        seraphFloat 6s ease-in-out infinite,
        divineGlowPulse 5s ease-in-out infinite;
}

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

@keyframes divineGlowPulse {
    0%, 100% { 
        filter: 
            drop-shadow(0 0 20px rgba(212, 175, 55, 0.5))
            drop-shadow(0 0 40px rgba(255, 215, 100, 0.3));
    }
    25% {
        filter: 
            drop-shadow(0 0 30px rgba(255, 223, 186, 0.6))
            drop-shadow(0 0 60px rgba(255, 215, 100, 0.4))
            drop-shadow(0 0 100px rgba(255, 245, 220, 0.2));
    }
    50% { 
        filter: 
            drop-shadow(0 0 40px rgba(255, 215, 100, 0.7))
            drop-shadow(0 0 80px rgba(212, 175, 55, 0.5))
            drop-shadow(0 0 120px rgba(255, 248, 231, 0.3));
    }
    75% {
        filter: 
            drop-shadow(0 0 25px rgba(255, 200, 150, 0.5))
            drop-shadow(0 0 50px rgba(255, 223, 186, 0.35))
            drop-shadow(0 0 90px rgba(212, 175, 55, 0.2));
    }
}

/* Remove old SVG styles that no longer apply */
.living-seraph-svg {
    display: none;
}

/* Divine Heaven Radiance - Multicolor pulse behind crest */
.seraph-divine-radiance {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    animation: divineRadiance 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes divineRadiance {
    0%, 100% {
        box-shadow: 
            0 0 60px rgba(212, 175, 55, 0.4),
            0 0 120px rgba(255, 215, 100, 0.2),
            inset 0 0 80px rgba(212, 175, 55, 0.15);
    }
    25% {
        box-shadow: 
            0 0 90px rgba(255, 223, 186, 0.5),
            0 0 160px rgba(255, 215, 100, 0.3),
            0 0 220px rgba(255, 200, 150, 0.15),
            inset 0 0 100px rgba(255, 223, 186, 0.2);
    }
    50% {
        box-shadow: 
            0 0 120px rgba(255, 215, 100, 0.6),
            0 0 200px rgba(212, 175, 55, 0.4),
            0 0 280px rgba(255, 245, 220, 0.2),
            inset 0 0 120px rgba(255, 215, 100, 0.25);
    }
    75% {
        box-shadow: 
            0 0 80px rgba(255, 200, 150, 0.45),
            0 0 150px rgba(255, 223, 186, 0.25),
            0 0 200px rgba(212, 175, 55, 0.15),
            inset 0 0 90px rgba(255, 200, 150, 0.15);
    }
}

/* Light rays enhanced for crest */
.light-ray {
    background: linear-gradient(
        to bottom,
        rgba(255, 223, 186, 0.5) 0%,
        rgba(255, 215, 100, 0.3) 20%,
        rgba(212, 175, 55, 0.15) 50%,
        transparent 100%
    );
}

/* Golden particles floating around seraph */
.seraph-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 215, 100, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 20%; top: 30%; animation-delay: 0s; }
.particle:nth-child(2) { left: 80%; top: 25%; animation-delay: 1s; }
.particle:nth-child(3) { left: 15%; top: 60%; animation-delay: 2s; }
.particle:nth-child(4) { left: 85%; top: 55%; animation-delay: 3s; }
.particle:nth-child(5) { left: 30%; top: 80%; animation-delay: 4s; }
.particle:nth-child(6) { left: 70%; top: 75%; animation-delay: 5s; }
.particle:nth-child(7) { left: 50%; top: 15%; animation-delay: 6s; }
.particle:nth-child(8) { left: 40%; top: 90%; animation-delay: 7s; }

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% { opacity: 1; }
    50% { 
        transform: translateY(-40px) scale(1.2);
        opacity: 0.8;
    }
    90% { opacity: 0; }
}

/* ============================================
   TEXT STYLING
   ============================================ */
.family-name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 4rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    background: linear-gradient(
        180deg,
        #FFE4A0 0%,
        #D4AF37 40%,
        #B8962E 70%,
        #D4AF37 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.4));
    animation: textGlow 4s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3)); }
    50% { filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.6)); }
}

.motto {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-style: italic;
    color: #FFE4A0;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    margin-bottom: 0.3rem;
}

.motto-translation {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(255, 228, 160, 0.7);
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: ctaShine 3s ease-in-out infinite;
}

@keyframes ctaShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.hero-cta:hover {
    background: var(--gold-light);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 50px; }
    50% { opacity: 1; height: 70px; }
}

.scroll-text {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .seraph-container {
        width: 280px;
        height: 340px;
    }
    
    .living-seraph-svg {
        width: 220px;
    }
    
    .seraph-aura {
        width: 320px;
        height: 320px;
    }
    
    .seraph-ring {
        width: 300px;
        height: 300px;
    }
    
    .seraph-ring:nth-child(2) {
        display: none;
    }
    
    .light-ray {
        height: 200px;
    }
    
    .family-name {
        letter-spacing: 0.15em;
    }
}

@media (max-width: 480px) {
    .seraph-container {
        width: 240px;
        height: 300px;
    }
    
    .living-seraph-svg {
        width: 180px;
    }
    
    .seraph-aura {
        width: 260px;
        height: 260px;
    }
    
    .light-ray:nth-child(even) {
        display: none;
    }
    
    .particle:nth-child(n+5) {
        display: none;
    }
}
