/* ==========================================================================
   Advana Highschool Coming Soon Page - Style Guide & Theme
   ========================================================================== */

:root {
    --color-primary: #1e2b22;       /* Deep charcoal forest green */
    --color-secondary: #4f5d44;     /* Soft sage/olive green */
    --color-bg-base: #f7f4eb;       /* Warm cream background */
    --color-accent-gold: #c5a880;   /* Muted gold/bronze detail */
    --color-text-dark: #2c3530;     /* Readable dark text */
    --color-text-light: #6b7770;    /* Muted secondary text */
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-sans: 'Outfit', sans-serif;
    --font-sanskrit: 'Noto Serif Devanagari', serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-base);
    background-image: url('main-bg.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--color-text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* Full Viewport BG Overlay for Mobile readability */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(247, 244, 235, 0.85) 0%, rgba(247, 244, 235, 0.4) 60%, rgba(247, 244, 235, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Main Layout Wrapper */
.main-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 80px;
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    align-items: center;
}

/* --------------------------------------------------------------------------
   Interactive / Ambient Animations
   -------------------------------------------------------------------------- */

/* Pulsing Halo behind Saraswati */
.halo-glow {
    position: absolute;
    right: 18%;
    top: 26%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 247, 222, 0.45) 0%, rgba(255, 238, 186, 0.15) 50%, rgba(255, 255, 255, 0) 75%);
    filter: blur(10px);
    z-index: 1;
    pointer-events: none;
    animation: haloPulse 8s ease-in-out infinite;
}

@keyframes haloPulse {
    0%, 100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Falling Lotus Petals */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.petal {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 225, 218, 0.7) 0%, rgba(255, 243, 238, 0.4) 100%);
    border-radius: 100% 0 100% 100%; /* Leaf shape */
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transform-origin: left top;
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(-10%) rotate(0deg) scale(0.7);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(110vh) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   Left Column: Main UI Layout
   -------------------------------------------------------------------------- */

.content-wrapper {
    max-width: 580px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80vh;
}

/* Header */
.header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    filter: drop-shadow(0 2px 4px rgba(30, 43, 34, 0.1));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-primary);
}

.logo-sub {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 5px;
    color: var(--color-secondary);
    text-transform: uppercase;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(247, 244, 235, 0.6);
    border: 1px solid rgba(30, 43, 34, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    width: fit-content;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-secondary);
    backdrop-filter: blur(4px);
    transition: var(--transition-smooth);
}

.location-badge:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-base);
    border-color: var(--color-primary);
}

.pin-icon {
    stroke: currentColor;
}

/* Hero Content */
.hero-content {
    margin-bottom: 40px;
}

.hero-tagline {
    font-family: var(--font-sans);
    font-size: 18px;
    color: var(--color-secondary);
    font-weight: 400;
    display: block;
    margin-bottom: 8px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.1;
}

.divider {
    margin: 16px 0 24px 0;
    display: flex;
    align-items: center;
}

.hero-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 35px;
    font-weight: 400;
    max-width: 480px;
}

/* Countdown Timer */
.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 45px;
    max-width: 450px;
}

.countdown-card {
    background-color: rgba(247, 244, 235, 0.7);
    border: 1px solid rgba(209, 180, 140, 0.25);
    border-radius: 12px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(30, 43, 34, 0.02);
    backdrop-filter: blur(4px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.countdown-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-accent-gold);
    transform: scaleX(0);
    transition: var(--transition-smooth);
    transform-origin: center;
}

.countdown-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-gold);
    box-shadow: 0 8px 25px rgba(79, 93, 68, 0.08);
    background-color: rgba(247, 244, 235, 0.95);
}

.countdown-card:hover::after {
    transform: scaleX(1);
}

.card-icon {
    color: var(--color-secondary);
    opacity: 0.6;
    margin-bottom: 8px;
    transition: var(--transition-smooth);
}

.countdown-card:hover .card-icon {
    opacity: 1;
    transform: scale(1.1);
    color: var(--color-primary);
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.countdown-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--color-text-light);
    letter-spacing: 1px;
}

/* Follow Us Section */
.follow-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 450px;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.feather-ornament {
    opacity: 0.45;
}

.feather-ornament.right {
    transform: scaleX(-1);
}

.follow-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--color-secondary);
}

.social-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(30, 43, 34, 0.15);
    background-color: rgba(247, 244, 235, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(4px);
}

.social-icon-btn:hover {
    color: var(--color-bg-base);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 4px 10px rgba(30, 43, 34, 0.15);
}

/* Footer Style */
.footer {
    margin-top: 40px;
}

.copyright {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   Right Column / Quote (Absolutely Positioned)
   -------------------------------------------------------------------------- */

.quote-container {
    position: absolute;
    top: 60px;
    right: 80px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 280px;
    text-align: left;
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 54px;
    color: var(--color-accent-gold);
    line-height: 0.5;
    margin-top: 8px;
}

.quote-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sanskrit-quote {
    font-family: var(--font-sanskrit);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

.translation-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 14px;
    color: var(--color-secondary);
}

/* --------------------------------------------------------------------------
   Entrance Animation Trigger Classes (Page Load)
   -------------------------------------------------------------------------- */

.fade-in-delay-1,
.fade-in-delay-2,
.fade-in-delay-3,
.fade-in-delay-4 {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-delay-1 { animation-delay: 0.2s; }
.fade-in-delay-2 { animation-delay: 0.4s; }
.fade-in-delay-3 { animation-delay: 0.6s; }
.fade-in-delay-4 { animation-delay: 0.8s; }

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   Responsive Styling (Media Queries)
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
    .main-container {
        padding: 40px;
    }
    
    .quote-container {
        right: 40px;
        top: 40px;
    }
}

@media (max-width: 992px) {
    body {
        background-position: right top;
        background-size: auto 60vh;
        background-attachment: fixed;
    }
    
    body::before {
        /* Transition from transparent at the top to solid cream where text starts */
        background: linear-gradient(180deg, 
            rgba(247, 244, 235, 0.1) 0%, 
            rgba(247, 244, 235, 0.3) 30%, 
            rgba(247, 244, 235, 0.85) 50%, 
            rgba(247, 244, 235, 1) 60%, 
            rgba(247, 244, 235, 1) 100%
        );
    }

    .main-container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 24px 20px;
        min-height: 100vh;
    }

    .quote-container {
        position: absolute;
        top: 20px;
        right: 20px;
        margin-bottom: 0;
        max-width: 220px;
        width: auto;
        justify-content: flex-end;
        text-align: right;
        background: rgba(247, 244, 235, 0.75);
        padding: 8px 12px;
        border-radius: 12px;
        backdrop-filter: blur(6px);
        border: 1px solid rgba(209, 180, 140, 0.25);
        box-shadow: 0 4px 15px rgba(79, 93, 68, 0.05);
        z-index: 10;
    }
    
    .quote-mark {
        font-size: 32px;
        margin-top: 2px;
    }

    .sanskrit-quote {
        font-size: 13px;
    }

    .translation-quote {
        font-size: 11px;
    }

    .content-wrapper {
        min-height: auto;
        align-items: center;
        text-align: center;
        max-width: 500px;
        margin-top: 52vh; /* Push content below the background Saraswati artwork */
        position: relative;
        z-index: 5;
    }

    .logo-block {
        justify-content: center;
    }

    .location-badge {
        margin: 0 auto;
    }

    .divider {
        justify-content: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .countdown-container {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .follow-section {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    
    .footer {
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 44px;
    }

    .countdown-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .countdown-card {
        padding: 16px 8px;
    }
    
    .countdown-number {
        font-size: 26px;
    }
}

/* --------------------------------------------------------------------------
   Ambient Background Music Controller
   -------------------------------------------------------------------------- */

.music-controller {
    position: fixed;
    bottom: 40px;
    right: 80px;
    z-index: 100;
}

.music-btn {
    background-color: rgba(247, 244, 235, 0.85);
    border: 1px solid rgba(209, 180, 140, 0.4);
    border-radius: 50px;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(30, 43, 34, 0.05);
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    color: var(--color-primary);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.music-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-base);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 43, 34, 0.15);
}

.sound-wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 20px;
    height: 16px;
}

.sound-wave .bar {
    width: 2.5px;
    height: 4px;
    background-color: currentColor;
    border-radius: 2px;
    transition: height 0.2s ease;
}

/* Sound Wave Animations when playing */
.music-btn.playing .bar:nth-child(1) {
    animation: bounceBar 0.8s ease-in-out infinite alternate;
}
.music-btn.playing .bar:nth-child(2) {
    animation: bounceBar 0.5s ease-in-out infinite alternate 0.15s;
}
.music-btn.playing .bar:nth-child(3) {
    animation: bounceBar 0.7s ease-in-out infinite alternate 0.3s;
}
.music-btn.playing .bar:nth-child(4) {
    animation: bounceBar 0.6s ease-in-out infinite alternate 0.05s;
}

@keyframes bounceBar {
    0% {
        height: 4px;
    }
    100% {
        height: 16px;
    }
}

@media (max-width: 992px) {
    .music-controller {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 24px;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .music-btn {
        padding: 12px 26px;
    }
}

/* --------------------------------------------------------------------------
   Ambient Flying Birds and Floating Lotuses
   -------------------------------------------------------------------------- */

/* Flying Birds Layer */
.birds-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 50vh; /* Keep birds in the upper sky region */
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bird {
    position: absolute;
    width: 28px;
    height: 28px;
    opacity: 0;
    animation: fly-across linear forwards;
}

.bird-svg {
    width: 100%;
    height: 100%;
    transform: rotate(3deg);
}

.wing-left {
    transform-origin: 25px 25px;
    animation: flap-left 0.35s ease-in-out infinite alternate;
}

.wing-right {
    transform-origin: 25px 25px;
    animation: flap-right 0.35s ease-in-out infinite alternate;
}

@keyframes flap-left {
    0% {
        transform: rotate(25deg);
    }
    100% {
        transform: rotate(-35deg);
    }
}

@keyframes flap-right {
    0% {
        transform: rotate(-25deg);
    }
    100% {
        transform: rotate(35deg);
    }
}

@keyframes fly-across {
    0% {
        transform: translate(-10vw, var(--start-y)) scale(var(--scale));
        opacity: 0;
    }
    10% {
        opacity: var(--opacity);
    }
    90% {
        opacity: var(--opacity);
    }
    100% {
        transform: translate(110vw, var(--end-y)) scale(var(--scale));
        opacity: 0;
    }
}

/* Floating Lotuses in Water (Bottom Right Area near Saraswati) */
.water-lotus-container {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 20vh;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.floating-lotus-wrapper {
    position: absolute;
    filter: drop-shadow(0 4px 8px rgba(79, 93, 68, 0.12));
    animation: float-lotus 6s ease-in-out infinite;
}

.lotus-svg {
    width: 100%;
    height: auto;
}

/* Position lotuses on top of water elements in background image */
.lotus-1 {
    bottom: 6%;
    right: 28%;
    width: 48px;
    animation-delay: 0s;
}

.lotus-2 {
    bottom: 12%;
    right: 14%;
    width: 38px;
    animation-delay: 1.8s;
    opacity: 0.85;
}

.lotus-3 {
    bottom: 3%;
    right: 43%;
    width: 60px;
    animation-delay: 3.2s;
}

@keyframes float-lotus {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-4px) rotate(2deg) scale(1.02);
    }
}

@media (max-width: 992px) {
    /* Hide foreground floating lotuses on mobile so text overlay remains readable */
    .water-lotus-container {
        display: none;
    }
}


