/* ===== DEVGRI MARATHI FONT ===== */
@font-face {
    font-family: 'Devgiri';
    src: url('fonts/devgiri.woff2') format('woff2'),
         url('fonts/devgiri.woff') format('woff'),
         url('fonts/devgiri.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/* ===== DEVGRI MARATHI FONT ===== */
@font-face {
    font-family: 'Devgiri';
    src: url('fonts/devgiri.woff2') format('woff2'),
         url('fonts/devgiri.woff') format('woff'),
         url('fonts/devgiri.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Devgiri';
    src: url('fonts/devgiri.ttf') format('truetype');
}

/* GLOBAL RESETS & FONTS */
:root {
    /* New Saffron Theme Palette */
    --color-saffron-primary: #ff9933;
    --color-saffron-mid: #ff6600;
    --color-saffron-deep: #ff7a18;
    --color-cream: #fff3d6;
    --color-soft-gold: #f5c26b;
    
    /* Text Colors */
    --color-maroon: #7A0C0C;     /* Deep Royal Maroon for Headings */
    --color-text-dark: #4a2c20;  /* Dark Brown for Body Text */
    
    /* Legacy/Accents */
    --color-gold: #D4AF37;
    --color-black-shadow: rgba(0, 0, 0, 0.2); /* Lighter shadow for light theme */

    --font-heading: 'Yatra One', serif;
    --font-subheading: 'Tiro Devanagari Marathi', serif;
    --font-body: 'Hind', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-cream); /* Light Cream Background */
    color: var(--color-text-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    margin: 0;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-maroon);
}

section {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--color-saffron-mid);
    margin-bottom: 60px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.1);
    opacity: 0; /* For animation */
    transform: translateY(20px);
    transition: all 1s ease-out;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}



/* ============================= */
/*        HERO SECTION           */
/* ============================= */

#hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center; /* Centering content */
    text-align: center;
    font-family: 'Tiro Devanagari Marathi', serif;
    /* Saffron Gradient Background */
    background: linear-gradient(
        180deg,
        var(--color-cream) 0%,
        var(--color-saffron-primary) 50%,
        var(--color-saffron-mid) 100%
    );
}

/* Sunrise Glow Effect */
.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center top,
        rgba(255, 255, 255, 0.6) 0%,
        transparent 60%
    );
    z-index: 1;
    animation: sunriseGlow 6s ease-in-out infinite alternate;
}

@keyframes sunriseGlow {
    from { opacity: 0.5; }
    to { opacity: 0.8; }
}

/* ----------------------------- */
/* Hero Text Content - MOVED UP */
/* ----------------------------- */

.hero-content {
    position: absolute;
    top: 10%; /* Adjusted for larger text and image */
    width: 100%;
    z-index: 10;
    text-align: center;
}

/* Main Heading */
.title {
    font-family: 'Devgiri';
    font-size: 5rem;
    letter-spacing: 2px;
    font-size: 6.5rem; /* Significantly larger */
    font-weight: 700;
    color: #7a1e00; /* Deep Saffron/Maroon */
    letter-spacing: 3px; /* Royal spacing */
    position: relative;
    animation: titleReveal 1.5s ease forwards;
    opacity: 0;
    transform: translateY(-40px);
    text-shadow: 
        0 0 20px rgba(255, 122, 0, 0.5), /* Glowing Saffron Shadow */
        0 2px 0 #fff;
}

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

.hero-desc {
     font-family: 'Hind', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #5c1b0b;
    margin-top: 10px;
    animation: fadeIn 2.5s ease forwards;
    opacity: 0;
}

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


/* ----------------------------- */
/* Images (Fixed Positions)      */
/* ----------------------------- */

/* Shivaji Image Center */
.shivaji-img {
    position: absolute;
    height: 90vh; /* Increased by 20% (was 75vh) */
    bottom: -100px; /* Moved downward to avoid heading overlap */
    z-index: 5; /* Below text, above background */
    animation: fadeUp 1.5s ease forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mawla Left & Right */
.mawla {
    position: absolute;
    bottom: 0;
    height: 55vh;
    z-index: 4; /* Behind Shivaji */
    animation: floatMawla 4s ease-in-out infinite;
}

.mawla-left {
    left: 2%; /* DO NOT CHANGE */
}

.mawla-right {
    right: 2%; /* DO NOT CHANGE */
}

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


/* ============================= */
/*        FIXED HEADER           */
/* ============================= */

.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    backdrop-filter: blur(10px);
    background: rgba(255, 243, 214, 0.9); /* Cream with transparency */
    border-bottom: 2px solid var(--color-saffron-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: auto;
    padding: 8px 5%; /* Reduced padding slightly to accommodate larger logo */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Area - INCREASED SIZE */
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Yatra One', cursive;
    font-size: 1.8rem;
    color: var(--color-maroon);
    font-weight: 700;
}

.logo-area img {
    height: 70px; /* Increased from 45px to 70px */
    transition: transform 0.3s ease;
}
.logo-area img:hover {
    transform: scale(1.1);
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    font-family: 'Hind', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-maroon);
    transition: 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 3px;
    background: var(--color-saffron-mid);
    transition: 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--color-saffron-mid);
}


/* ============================= */
/*       STATUE SECTION          */
/* ============================= */

#statue-legacy {
    padding: 100px 5%;
    background: linear-gradient(135deg, #fff3d6 0%, #ffecd2 40%, #ffd699 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.statue-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/rajmudra-bg.png'); /* Using Rajmudra watermark */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40%;
    opacity: 0.04;
    pointer-events: none;
}

.statue-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Image Side Styles */
.statue-image-side {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.statue-main-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
    animation: statueFloat 6s ease-in-out infinite;
    z-index: 3;
    transition: filter 0.5s ease;
}

.statue-main-img:hover {
    filter: drop-shadow(0 25px 50px rgba(255, 153, 51, 0.4));
}

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

/* Saffron Glow Pulse */
.glow-pulse {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 153, 51, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.4); opacity: 0.8; }
}

/* Light Rays Effect */
.light-rays {
    position: absolute;
    width: 500px;
    height: 500px;
    background: repeating-conic-gradient(from 0deg, rgba(255, 215, 0, 0.05) 0deg 10deg, transparent 10deg 20deg);
    border-radius: 50%;
    z-index: 0;
    animation: rotateRays 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateRays {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Golden Particles */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-soft-gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFly 4s ease-in infinite;
}

.particle:nth-child(1) { left: 20%; bottom: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 40%; bottom: 10%; animation-delay: 1s; }
.particle:nth-child(3) { left: 60%; bottom: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 80%; bottom: 15%; animation-delay: 1.5s; }
.particle:nth-child(5) { left: 50%; bottom: 25%; animation-delay: 0.5s; }

@keyframes particleFly {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-150px) scale(0); opacity: 0; }
}

/* Content Side Styles */
.statue-content-side {
    text-align: left;
}

.statue-subtitle {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-saffron-mid);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.statue-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #7a1e00;
    line-height: 1.1;
    margin-bottom: 30px;
}

.statue-description p {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: #5c1b0b;
    margin-bottom: 20px;
    line-height: 1.8;
}

.statue-quote-box {
    margin-top: 40px;
    padding-left: 25px;
    border-left: 4px solid var(--color-saffron-mid);
    position: relative;
}

.statue-quote {
    font-family: var(--font-subheading);
    font-style: italic;
    font-size: 1.4rem;
    color: #8b1e00;
    margin-bottom: 10px;
    line-height: 1.5;
}

.statue-quote-author {
    display: block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-saffron-mid);
}

/* Animations for Section Reveal */
#statue-legacy .statue-image-side {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease;
}

#statue-legacy .statue-content-side {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
}

#statue-legacy.visible .statue-image-side,
#statue-legacy.visible .statue-content-side {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .statue-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .statue-content-side {
        text-align: center;
    }
    .statue-quote-box {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid var(--color-saffron-mid);
        padding-top: 20px;
    }
    .statue-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    .statue-title {
        font-size: 2.2rem;
    }
    .statue-main-img {
        max-width: 300px;
    }
}

/* ============================= */
/*    OFFICIAL TEASER & POSTER   */
/* ============================= */

#official-teaser, #official-poster {
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#official-teaser {
    background: linear-gradient(135deg, #fff9eb 0%, #ffe8c2 100%);
    min-height: 70vh;
}

#official-poster {
    background: linear-gradient(135deg, #ffe8c2 0%, #ffd699 100%);
    min-height: 80vh;
}

.glory-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/fort-silhouette.png');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 50%;
    opacity: 0.03;
    pointer-events: none;
}

.glory-container {
    max-width: 1200px;
    width: 100%;
    z-index: 2;
}

.glory-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Teaser Layout */
.teaser-content {
    display: flex;
    justify-content: center;
    width: 100%;
}

.glory-video-side {
    width: 100%;
    max-width: 900px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

.video-frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    background: #000;
    border: 3px solid rgba(255, 153, 51, 0.2);
    transition: all 0.5s ease;
}

.video-frame:hover {
    box-shadow: 0 20px 45px rgba(255, 153, 51, 0.25);
    border-color: var(--color-saffron-mid);
}

.video-frame iframe,
.video-frame video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

/* Poster Layout */
.poster-content-split {
    display: flex;
    justify-content: center;
    width: 100%;
}

.glory-poster-side {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

.poster-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: posterFloat 6s ease-in-out infinite;
}

.glory-poster-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    transform: rotate(-1deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glory-poster-img:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 0 30px 70px rgba(255, 153, 51, 0.35);
}

.poster-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--color-saffron-deep);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.poster-light-beam {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

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

/* Reveal Animations */
#official-teaser.visible .glory-video-side,
#official-poster.visible .glory-poster-side {
    opacity: 1;
    transform: translateY(0);
}

/* Glory Particles */
.glory-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.g-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 153, 51, 0.4);
    border-radius: 50%;
    animation: gParticleFloat 5s infinite;
}

.g-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.g-particle:nth-child(2) { right: 15%; top: 40%; animation-delay: 1.5s; }
.g-particle:nth-child(3) { left: 20%; bottom: 10%; animation-delay: 3s; }
.g-particle:nth-child(4) { right: 10%; bottom: 30%; animation-delay: 2s; }

@keyframes gParticleFloat {
    0%, 100% { transform: translate(0, 0); opacity: 0; }
    50% { transform: translate(20px, -30px); opacity: 0.6; }
}

/* Responsive */
@media (max-width: 768px) {
    .glory-poster-img {
        max-width: 350px;
        transform: rotate(0);
    }
    .poster-badge {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
}

/* ============================= */
/*       ABOUT SECTION           */
/* ============================= */

#about-shivmahotsav {
    padding: 100px 5%;
    background: linear-gradient(135deg, #fff9eb 0%, #ffe8c2 100%);
    position: relative;
    overflow: hidden;
}

.about-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/fort-silhouette.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40%;
    opacity: 0.03;
    pointer-events: none;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-image-side {
    position: relative;
}

.about-img-wrapper {
    position: relative;
    padding: 20px;
}

.about-main-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 2;
    position: relative;
}

.img-border-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-saffron-mid);
    border-radius: 20px;
    transform: translate(-15px, 15px);
    z-index: 1;
}

.about-content-side {
    text-align: left;
}

.about-text p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #5c1b0b;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 153, 51, 0.1);
}

.h-icon {
    font-size: 1.5rem;
}

.h-text strong {
    display: block;
    font-size: 1rem;
    color: var(--color-saffron-deep);
}

.h-text span {
    font-size: 0.85rem;
    color: #8b4513;
}

.highlight-special {
    grid-column: span 2;
    background: linear-gradient(90deg, rgba(255, 153, 51, 0.1), transparent);
    border-left: 4px solid var(--color-saffron-deep);
}

/* ============================= */
/*       FOOTER SECTION          */
/* ============================= */

#main-footer {
    background: linear-gradient(135deg, #fff9eb 0%, #ffe8c2 100%);
    color: #5c1b0b;
    position: relative;
    padding: 60px 0 30px;
    border-top: 2px solid var(--color-saffron-mid);
}

.footer-main {
    padding: 0 5% 40px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr 1fr;
    gap: 40px;
}

.footer-inst-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-saffron-deep);
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.inst-details p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #5c1b0b;
    font-weight: 500;
}

.footer-title {
    font-family: var(--font-subheading);
    font-size: 1.25rem;
    color: var(--color-saffron-deep);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--color-saffron-mid);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #5c1b0b;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-saffron-deep);
    padding-left: 5px;
}

.contact-info p {
    margin-bottom: 15px;
    color: #5c1b0b;
    font-size: 0.95rem;
    display: flex;
    gap: 12px;
    line-height: 1.5;
}

.c-icon {
    color: var(--color-saffron-deep);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icon {
    width: 38px;
    height: 38px;
    background: #fff;
    color: var(--color-saffron-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 153, 51, 0.2);
}

.social-icon:hover {
    background: var(--color-saffron-deep);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 153, 51, 0.2);
}

.footer-map-small {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 2px solid #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 5% 0;
    border-top: 1px solid rgba(255, 153, 51, 0.2);
    text-align: center;
}

.footer-bottom-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.copyright-text {
    font-size: 0.9rem;
    color: #5c1b0b;
    font-weight: 500;
}

.visitor-badge {
    background: var(--color-saffron-deep);
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(255, 153, 51, 0.3);
}

.footer-credits {
    font-size: 0.85rem;
    color: #5c1b0b;
    opacity: 0.9;
}

.dev-names {
    color: var(--color-saffron-deep);
    font-weight: 700;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-top {
        flex-direction: column;
        gap: 10px;
    }
}

#posters {
    background: linear-gradient(135deg, var(--color-cream), #fff);
}

.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.poster-card {
    background: #fff;
    height: 350px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-maroon);
    border: 1px solid var(--color-soft-gold);
    transition: transform 0.3s ease;
}

.poster-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 122, 0, 0.15);
}

/* 4. GUEST SECTION */
#guests {
    background: var(--color-cream);
}

.guest-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.guest-card {
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 5px solid var(--color-saffron-mid);
}

.guest-photo {
    width: 150px;
    height: 150px;
    background-color: #eee;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid var(--color-soft-gold);
}

/* ================= MEMORIES SECTION (RESTRUCTURED) ================= */

#memories {
    padding: 100px 5%;
    background: linear-gradient(135deg, #fff3d6 0%, #ffecd2 40%, #ffd699 100%);
    position: relative;
    overflow: hidden;
}

.memories-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

#memories .section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #8b1e00;
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-subheading);
    font-size: 1.4rem;
    color: #5a2c00;
    margin-bottom: 60px;
    text-align: center;
    opacity: 0.8;
}

/* Tabs Styling */
.tabs-wrapper {
    margin-bottom: 50px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.year-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    min-width: max-content;
    margin: 0 auto;
}

.tab-btn {
    padding: 12px 25px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--color-soft-gold);
    border-radius: 30px;
    color: #8b1e00;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(255, 153, 51, 0.1);
}

.tab-btn.active {
    background: var(--color-saffron-mid);
    color: #white;
    border-color: var(--color-saffron-mid);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
    color: #fff;
}

/* Tab Content Transitions */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.year-header {
    text-align: center;
    margin-bottom: 40px;
}

.year-headline {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #a62e00;
    margin-bottom: 15px;
}

.year-description {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #5c1b0b;
    max-width: 800px;
    margin: 0 auto;
}

/* Restructured Memory Grid */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
}

.memory-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
}

.memory-item.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.memory-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.memory-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 153, 51, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.memory-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(139, 30, 0, 0.15);
}

.memory-item:hover img {
    transform: scale(1.1);
}

.memory-item:hover::after {
    opacity: 1;
}

/* Mobile Adjustments for Grid */
@media (max-width: 768px) {
    .memory-item.featured {
        grid-column: span 1;
        grid-row: span 1;
    }
    .memory-grid {
        grid-auto-rows: 200px;
    }
    #memories .section-title {
        font-size: 2.5rem;
    }
}


.memory-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Hover Effects */
.memory-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 30, 0, 0.15);
}

.memory-item:hover img {
    transform: scale(1.1);
}

/* Subtle Warm Overlay on Hover */
.memory-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 122, 0, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.memory-item:hover::after {
    opacity: 1;
}

/* Animations - Overriding the defaults for this section */
.year-block {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.year-block.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    #memories {
        padding: 80px 5%;
    }
    #memories .section-title {
        font-size: 2.8rem;
    }
    .section-subtitle {
        font-size: 1.2rem;
    }
    .year-title {
        font-size: 2.5rem;
    }
    .memory-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}


/* 6. COMMITTEE SECTION */
#committee {
    background: linear-gradient(to bottom, var(--color-cream), #fff);
}

.committee-layout {
    display: flex;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.committee-col h3 {
    color: var(--color-saffron-deep);
    margin-bottom: 20px;
}

.committee-col ul {
    list-style: none;
}

.committee-col li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--color-text-dark);
}

/* 7. FOOTER */
footer {
    background-color: #3e2723; /* Dark footer for contrast */
    color: var(--color-soft-gold);
    padding: 60px 20px 20px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.social-links {
    margin-bottom: 30px;
}

.social-links a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--color-saffron-primary);
}

/* ----------------------------- */
/* Responsive                  */
/* ----------------------------- */

@media (max-width: 992px) {
    .title { font-size: 3.5rem; }
    .shivaji-img { height: 60vh; }
    .mawla { height: 40vh; }
    .hero-content { top: 12%; }
}

@media (max-width: 600px) {
    .title { font-size: 2.5rem; }
    .hero-desc { font-size: 1.2rem; }
    .shivaji-img { height: 50vh; }
    .mawla { display: none; } /* Hide Mawlas on mobile to avoid clutter */
    .hero-content { top: 15%; }
    .logo-area img { height: 50px; }
    .nav-menu { display: none; } /* Use hamburger in future */
}
/* Scroll Animation Base */
.section-title,
.swarajya-quote,
.poster-card,
.guest-card,
.year-block {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(.17,.67,.83,.67);
}

/* Visible State */
.section-title.visible,
.swarajya-quote.visible,
.poster-card.visible,
.guest-card.visible,
.year-block.visible {
    opacity: 1;
    transform: translateY(0);
}
