@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #E65100;
    --primary-dark: #BF360C;
    --primary-light: #FF8F00;
    --saffron: #FF9933;
    --gold: #FFD700;
    --deep-saffron: #E65100;
    --accent: #FFB347;
    --festive-red: #C62828;
    --festive-yellow: #F9A825;
    --bg: #FFF8E1;
    --card-bg: #FFFFFF;
    --text: #3E2723;
    --text-secondary: #6D4C41;
    --shadow-sm: 0 2px 8px rgba(230,81,0,.08);
    --shadow-md: 0 4px 20px rgba(230,81,0,.12);
    --shadow-lg: 0 8px 40px rgba(230,81,0,.18);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* =========================================================
   NAVBAR - Festive Auspicious Style
========================================================= */
.navbar {
    background: linear-gradient(135deg, #E65100 0%, #FF9933 50%, #FF8F00 100%) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 3px solid #FFD700;
    padding: .6rem 0;
    transition: all .3s ease;
    box-shadow: 0 4px 20px rgba(230,81,0,.3);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -.3px;
    text-shadow: 0 2px 10px rgba(0,0,0,.2);
}

.navbar .btn-warning {
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: .85rem;
    padding: 8px 20px;
    border: none;
    background: #FFD700;
    color: #E65100;
    transition: all .2s ease;
    box-shadow: 0 4px 15px rgba(255,215,0,.4);
}

.navbar .btn-warning:hover {
    background: #FFC107;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255,215,0,.5);
}

/* =========================================================
   HERO - Festive Celebration
========================================================= */
.hero-img {
    width: 100%;
    height: 70vh;
    min-height: 450px;
    object-fit: cover;
    object-position: center;
}

.hero-caption {
    background: linear-gradient(135deg, rgba(230,81,0,.9) 0%, rgba(255,153,51,.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 3px solid #FFD700;
    box-shadow: 0 8px 40px rgba(230,81,0,.4);
}

.hero-caption h1 {
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 3.5rem);
    letter-spacing: -1px;
    text-shadow: 0 3px 15px rgba(0,0,0,.3);
    color: #FFD700;
}

.hero-caption p {
    font-weight: 500;
    opacity: 1;
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.placeholder-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #BF360C 0%, #E65100 25%, #FF9933 50%, #FFD700 75%, #FF9933 100%);
    background-size: 200% 200%;
    animation: festiveGradient 8s ease infinite;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

@keyframes festiveGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.placeholder-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,.2) 0%, transparent 60%);
    animation: shimmer 6s ease-in-out infinite;
}

.placeholder-hero::after {
    content: '🙏';
    position: absolute;
    font-size: 120px;
    opacity: 0.1;
    animation: float 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(5deg); }
}

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

.placeholder-hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -2px;
    text-shadow: 0 4px 25px rgba(0,0,0,.3);
    color: #FFD700;
}

.placeholder-hero .lead {
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.2);
}

/* =========================================================
   SECTION HEADINGS - Festive Style
========================================================= */
.section-title {
    font-weight: 800;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    letter-spacing: -.5px;
    color: var(--primary);
    text-shadow: 0 2px 10px rgba(230,81,0,.1);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================================
   EVENT INFO CARDS - Festive Style
========================================================= */
.info-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: all .3s ease;
    border: 2px solid rgba(255,153,51,.2);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF9933, #FFD700, #FF9933);
}

.info-card b {
    display: inline-flex;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF9933, #FFD700);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(255,153,51,.4);
    border: 3px solid #fff;
}

.info-card h5 {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -.3px;
    color: var(--primary);
}

.info-card p {
    color: var(--text-secondary);
    font-size: .95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* =========================================================
   GALLERY CARDS - Festive Instagram Style
========================================================= */
.gallery-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    border: 2px solid rgba(255,153,51,.15);
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(230,81,0,.2);
    border-color: rgba(255,153,51,.3);
}

.gallery-image-wrap {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 1;
}

.gallery-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.gallery-image-wrap:hover img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    opacity: 0;
    transition: all .3s ease;
    backdrop-filter: blur(0);
}

.gallery-image-wrap:hover .image-overlay {
    opacity: 1;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(2px);
}

/* =========================================================
   GALLERY INFO
========================================================= */
.gallery-info {
    padding: 14px;
}

.participant-name {
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -.2px;
}

.participant-location {
    color: var(--text-secondary);
    font-size: .8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-stats {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: var(--text-secondary);
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: 1px solid rgba(0,0,0,.06);
    margin-top: 10px;
}

.gallery-buttons {
    display: flex;
    gap: 8px;
}

.gallery-buttons button {
    flex: 1;
    white-space: nowrap;
    border-radius: var(--radius-full) !important;
    font-weight: 600;
    font-size: .82rem;
    padding: 8px 0;
    transition: all .2s ease;
    border: none !important;
}

.gallery-buttons .like-btn {
    background: linear-gradient(135deg, #FF9933, #FFD700);
    color: #fff;
    box-shadow: 0 3px 10px rgba(255,153,51,.3);
}

.gallery-buttons .like-btn:hover {
    background: linear-gradient(135deg, #E65100, #FF9933);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,153,51,.4);
}

.gallery-buttons .share-btn {
    background: linear-gradient(135deg, #FFD700, #FF9933);
    color: #fff;
    box-shadow: 0 3px 10px rgba(255,215,0,.3);
}

.gallery-buttons .share-btn:hover {
    background: linear-gradient(135deg, #FF9933, #E65100);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,153,51,.4);
}

/* =========================================================
   LIGHTBOX
========================================================= */
.lightbox-image {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.modal-content {
    border-radius: var(--radius-lg) !important;
    border: none !important;
    overflow: hidden;
}

/* =========================================================
   SPONSORS / ORGANIZERS - Festive Style
========================================================= */
.sponsors-section {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border-top: 3px solid #FFD700;
    border-bottom: 3px solid #FFD700;
    overflow: hidden;
    padding: 30px 0;
    border-radius: 0;
}

.sponsors-section-alt {
    background: var(--card-bg);
    overflow: hidden;
}

/* =========================================================
   MARQUEE
========================================================= */
.marquee-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-track.marquee-reverse {
    animation: marquee-scroll-reverse 30s linear infinite;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-scroll-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.marquee-wrapper:hover .marquee-track,
.marquee-wrapper:hover .marquee-track.marquee-reverse {
    animation-play-state: paused;
}

.marquee-card {
    flex-shrink: 0;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px 36px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    height: 120px;
    transition: all .3s ease;
    border: 1px solid rgba(0,0,0,.04);
}

.marquee-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.marquee-card img {
    max-height: 70px;
    max-width: 180px;
    object-fit: contain;
}

.marquee-card a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsors-prominent-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 5px 18px;
    border-radius: var(--radius-full);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.sponsor-item img {
    max-height: 55px;
    max-width: 150px;
    object-fit: contain;
    transition: all .3s ease;
}

.sponsor-item img:hover {
    transform: scale(1.08);
}

.sponsor-item a {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   FOOTER - Festive Style
========================================================= */
footer {
    background: linear-gradient(135deg, #BF360C 0%, #E65100 50%, #FF9933 100%) !important;
    padding: 40px 0;
    border-radius: 0;
    border-top: 4px solid #FFD700;
}

footer .small {
    color: rgba(255,255,255,.8);
    font-weight: 500;
}

/* =========================================================
   MOBILE - Native App Experience - Festive
========================================================= */
@media (max-width: 767px) {
    body {
        padding-bottom: 80px;
    }

    .hero-img {
        height: 55vh;
        min-height: 320px;
    }

    .hero-caption {
        bottom: 20px;
        left: 5%;
        right: 5%;
        padding: 20px;
        border-radius: var(--radius-md);
    }

    .hero-caption h1 {
        font-size: 1.6rem;
        color: #FFD700;
    }

    .hero-caption p {
        font-size: .9rem;
    }

    .gallery-image-wrap {
        aspect-ratio: auto;
    }

    .gallery-image-wrap img {
        height: 220px;
    }

    .gallery-info {
        padding: 12px 14px;
    }

    .participant-name {
        font-size: .9rem;
        color: #E65100;
    }

    .participant-location {
        font-size: .8rem;
    }

    .gallery-stats {
        font-size: .75rem;
    }

    .gallery-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .gallery-buttons button {
        width: 100%;
        padding: 12px 0;
        font-size: .9rem;
    }

    .info-card {
        padding: 26px 18px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .marquee-card {
        min-width: 220px;
        height: 110px;
        padding: 18px 28px;
        border-radius: var(--radius-sm);
    }

    .marquee-card img {
        max-height: 55px;
        max-width: 150px;
    }

    .marquee-track {
        gap: 18px;
    }

    .sponsor-item img {
        max-height: 45px;
        max-width: 120px;
    }
}

/* =========================================================
   SMALL MOBILE - Festive
========================================================= */
@media (max-width: 400px) {
    .gallery-image-wrap img {
        height: 180px;
    }

    .hero-img {
        height: 50vh;
    }

    .hero-caption {
        left: 4%;
        right: 4%;
    }

    .placeholder-hero h1 {
        font-size: 2rem;
    }
}

/* =========================================================
   BOTTOM NAV - Mobile App Style - Festive
========================================================= */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #E65100 0%, #FF9933 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 3px solid #FFD700;
    padding: 8px 0;
    padding-bottom: calc(8px + var(--safe-bottom));
    z-index: 1050;
    box-shadow: 0 -4px 25px rgba(230,81,0,.3);
}

@media (max-width: 767px) {
    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: rgba(255,255,255,.7);
    font-size: .65rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    transition: all .2s ease;
}

.bottom-nav a.active,
.bottom-nav a:hover {
    color: #FFD700;
    transform: translateY(-2px);
}

.bottom-nav a i {
    font-size: 1.3rem;
}

.bottom-nav .nav-upload {
    background: linear-gradient(135deg, #FFD700, #FF9933);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    margin-top: -24px;
    box-shadow: 0 6px 20px rgba(255,215,0,.5);
    transition: all .2s ease;
}

.bottom-nav .nav-upload:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,215,0,.6);
}

/* =========================================================
   SCROLL ANIMATIONS
========================================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all .7s cubic-bezier(.4,0,.2,1);
}

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

/* Pulse Animation for Buttons */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,215,0,.3), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

/* Glow Effect */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255,153,51,.3); }
    50% { box-shadow: 0 0 40px rgba(255,153,51,.6); }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* =========================================================
   UPLOAD FORM - Mobile App Style - Festive
========================================================= */
.form-control, .form-select {
    border-radius: var(--radius-sm) !important;
    border: 2px solid rgba(255,153,51,.3);
    padding: 14px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    transition: all .2s ease;
    background: #FFFBF0;
}

.form-control:focus, .form-select:focus {
    border-color: #FF9933;
    box-shadow: 0 0 0 4px rgba(255,153,51,.15);
}

.form-label {
    font-weight: 700;
    font-size: .9rem;
    color: #E65100;
    margin-bottom: 8px;
}

.btn-warning {
    background: linear-gradient(135deg, #FF9933, #FFD700) !important;
    border: none !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700;
    padding: 14px 36px;
    font-size: 1.1rem;
    letter-spacing: .5px;
    transition: all .2s ease;
    box-shadow: 0 6px 20px rgba(255,153,51,.4);
    text-transform: uppercase;
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,153,51,.5);
    background: linear-gradient(135deg, #E65100, #FF9933) !important;
}

/* =========================================================
   PHOTO PAGE
========================================================= */
.photo-page-image {
    background: linear-gradient(135deg, #3E2723, #5D4037);
    text-align: center;
    padding: 10px;
}

.photo-page-image img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: inline-block;
    border-radius: var(--radius-sm);
}

/* =========================================================
   UTILITIES - Festive Colors
========================================================= */
.text-primary { color: #E65100 !important; }
.bg-primary { background-color: #E65100 !important; }

/* Festive Decorations */
.festive-divider {
    height: 4px;
    background: linear-gradient(90deg, #FF9933, #FFD700, #FF9933);
    border: none;
    margin: 30px 0;
}

.glow-text {
    text-shadow: 0 0 20px rgba(255,153,51,.5);
}

/* Floating Elements */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}
