:root {
    --navy-dark: #0f172a;
    --navy-light: #1e3a8a;
    --gold: #c3a343;
    --gold-light: #eab308;
    --white: #ffffff;
    --off-white: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --font-hindi: 'Tiro Devanagari Hindi', serif;

    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--off-white);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--navy-light), var(--gold));
    width: 0%;
    z-index: 1000;
    transition: width 0.1s;
}

/* Typography Utilities */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.sanskrit {
    font-family: var(--font-hindi);
    color: var(--navy-light);
    font-weight: 700;
    font-size: 1.1rem;
}

.hindi {
    font-family: var(--font-hindi);
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-wrapper {
    margin-bottom: 1.5rem;
}

.kv-logo {
    width: 110px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.school-name {
    margin-top: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dark);
}

.divider-gold {
    height: 2px;
    width: 60px;
    background-color: var(--gold);
    margin: 1.5rem auto;
}

.main-title {
    font-size: 3rem;
    color: var(--navy-dark);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
    font-style: italic;
}

.date-badge {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--gold);
    border-radius: 50px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.emotional-quote {
    margin-top: 2rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--navy-light);
    font-style: italic;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.scroll-indicator .arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-dark);
    border-bottom: 2px solid var(--text-dark);
    transform: rotate(45deg);
}

/* Sections */
.content-section {
    padding: 4rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--navy-dark);
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: 0.5rem auto 0;
}

.text-content p {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Ornament Divider */
.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0.4;
    margin: 2rem 0;
}

.ornament-divider .line {
    width: 100px;
    height: 1px;
    background: var(--navy-dark);
}

.ornament-divider .dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    transform: rotate(45deg);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.gallery-item {
    aspect-ratio: 1;
    background-color: #e2e8f0;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s var(--ease-out);
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 2s infinite;
}

.gallery-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1rem;
}

/* Junior Cards */
.cards-scroller {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1.5rem;
    scrollbar-width: none;
    /* Firefox */
}

.cards-scroller::-webkit-scrollbar {
    display: none;
}

.card {
    min-width: 260px;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.card-author {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
}

/* Final Section */
.final-section {
    background-color: var(--navy-dark);
    color: white;
    margin-top: 2rem;
    text-align: center;
    border-radius: 20px 20px 0 0;
    /* Slight visual flair */
}

.final-box h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.final-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.signature {
    margin-top: 2rem;
    font-family: var(--font-heading);
    font-style: italic;
}

/* Footer */
footer {
    background-color: var(--navy-dark);
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 2rem;
    font-size: 0.75rem;
}

.developer-credit {
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Animations */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes loading {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

/* Fade In Classes (Triggered by JS) */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s var(--ease-out) forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Media Queries */
@media (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
    }

    .emotional-quote {
        font-size: 1.2rem;
    }

    .content-section {
        padding: 3rem 1.25rem;
    }
}