/* --- SIGNATURE THEME --- */

/* 1. Root Variables */
:root {
    --signature-blue: #234C6A;
    --signature-blue-dark: #1a384f;
    --signature-dark-text: #423529;
    --signature-beige: #f5e1c3;
    --signature-light-text: #f0f0f0;
    --signature-accent: #d97706;
    --signature-beige-rgb: 245, 225, 195;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* 2. General Styles */
body.signature-theme {
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: var(--signature-dark-text);
    font-family: var(--font-body);
}

/* 3. Header & Logos */
.header-logo { height: 50px; }
.hero-logo { height: 60px; }
@media (min-width: 768px) { .hero-logo { height: 100px; } }
@media (min-width: 1024px) { .hero-logo { height: 120px; } }
header .signature-heading {
    color: var(--signature-dark-text);
    text-shadow: none;
}

/* 4. Headings */
section .signature-heading {
    color: var(--signature-light-text);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
h4.signature-heading {
    color: var(--signature-dark-text);
    text-shadow: none;
    font-weight: bold;
}
.signature-heading-main {
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}
h4.schedule-day-heading {
    color: var(--signature-light-text);
    border-bottom: 2px solid var(--signature-light-text);
    font-weight: bold;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* 5. Links & Buttons */
.signature-link {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--signature-dark-text);
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}
.signature-link:hover {
    color: var(--signature-blue);
    border-color: var(--signature-blue);
}
.signature-button {
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    background-color: var(--signature-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}
.signature-button:hover {
    background-color: var(--signature-blue-dark);
}

/* 6. Section Backgrounds & Text */
.bg-signature-blue { background-color: rgba(35, 76, 106, 0.95); }
.bg-signature-beige { background-color: rgba(245, 225, 195, 0.97); border: 1px solid rgba(66, 53, 41, 0.1); }
#about .signature-text { color: var(--signature-light-text); }
#contribute .signature-text { color: var(--signature-light-text); }
/* Rule to make text dark ONLY inside the beige bank detail boxes */
#contribute .bg-signature-beige .signature-text { color: var(--signature-dark-text); }

/* 7. Schedule */
.schedule-day-subtitle { color: var(--signature-light-text); opacity: 0.8; }
.schedule-arrow { font-size: 1.25rem; color: var(--signature-accent); padding-top: 0.25rem; }
.schedule-item-text { background-color: var(--signature-beige); padding: 0.75rem 1rem; border-radius: 0.25rem; box-shadow: 1px 1px 3px rgba(0,0,0,0.1); flex: 1; font-weight: 500; color: var(--signature-dark-text); }

/* 8. Gallery & Lightbox */
.album-cover { position: relative; cursor: pointer; overflow: hidden; border-radius: 4px; box-shadow: 3px 3px 8px rgba(0,0,0,0.3); transition: transform 0.3s, box-shadow 0.3s; }
.album-cover:hover { transform: scale(1.05); box-shadow: 5px 5px 15px rgba(0,0,0,0.4); }
.album-cover img { display: block; width: 100%; height: 250px; object-fit: cover; transition: transform 0.3s; }
.album-cover:hover img { transform: scale(1.1); }
.album-title { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.7); color: white; padding: 1rem; text-align: center; font-family: var(--font-heading); font-size: 1.5rem; letter-spacing: 0.05em; transform: translateY(100%); transition: transform 0.3s ease-in-out; }
.album-cover:hover .album-title { transform: translateY(0); }
.lightbox-hidden { display: none !important; }
.lightbox-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 998; }
.lightbox-content { 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    max-width: 90vw; 
    max-height: 85vh; 
    z-index: 999; 
}
.lightbox-content img { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 4px; box-shadow: 0 5px 20px rgba(0,0,0,0.5); }
.lightbox-button { position: absolute; background: rgba(0,0,0,0.5); color: white; border: none; font-size: 2rem; font-weight: bold; cursor: pointer; transition: background 0.3s; padding: 0.5rem 1rem; z-index: 1000; }
.lightbox-button:hover { background: rgba(0,0,0,0.8); }
.close-btn { top: -40px; right: 0px; font-size: 2.5rem; padding: 0 1rem; }
.prev-btn { top: 50%; left: -60px; transform: translateY(-50%); }
.next-btn { top: 50%; right: -60px; transform: translateY(-50%); }
#lightbox-caption { color: white; text-align: center; margin-top: 1rem; }

/* 9. Contribution Bands */
#contribution-bands .contribution-card { 
    border-top: 8px solid; 
    transition: transform 0.3s, box-shadow 0.3s; 
}
#contribution-bands .contribution-card:hover { 
    transform: translateY(-10px) scale(1.05); 
    box-shadow: 0 12px 24px rgba(0,0,0,0.2); 
}
#contribution-bands #diamond-card { border-color: #b9f2ff; }
#contribution-bands #platinum-card { border-color: #e5e4e2; }
#contribution-bands #gold-card { border-color: #ffd700; }
#contribution-bands #silver-card { border-color: #c0c0c0; }
#contribution-bands .contribution-amount { 
    font-size: 2rem; 
    font-weight: 700; 
    color: var(--signature-blue); 
    margin-top: 0.5rem; 
}

/* 10. Contact Section */
.contact-icon { font-size: 1.5rem; color: var(--signature-blue); width: 2rem; text-align: center; }

/* 11. Modal Trigger Cards & Info Modal */
.modal-trigger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.modal-source-content {
    display: none; 
}
.modal-trigger-icon { font-size: 1.25rem; }
.modal-hidden { display: none !important; }
.modal-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 998;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: var(--signature-beige);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    width: 90%;
    max-width: 500px;
    position: relative;
}
.modal-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 2.5rem;
    color: var(--signature-dark-text);
    background: none;
    border: none;
    cursor: pointer;
}

/* Add this to your existing style.css file */
#event-modal {
    z-index: 1000;
}

.logo-container {
    perspective: 1000px;
}

.logo-3d {
    transition: transform 0.5s, box-shadow 0.5s;
    transform-style: preserve-3d;
}

.logo-3d:hover {
    transform: scale(1.2) translateZ(50px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.logo-3d:hover {
    transform: rotateY(20deg) rotateX(10deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* In style.css */

/* 12. Footer */
footer.bg-signature-blue-dark { background-color: var(--signature-blue-dark); }


/* NEW FOOTER LOGO SCROLLER */
.footer-logo-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
    mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
}

.logo-track-sponsors {
    display: flex;
    width: calc(200px * 6); /* 200px per logo times 3 logos + 3 duplicates */
    animation: scroll-sponsors 40s linear infinite;
}

.logo-track-cosponsors {
    display: flex;
    width: calc(200px * 16); /* 200px per logo times 8 logos + 8 duplicates */
    animation: scroll-cosponsors 40s linear infinite;
}

.footer-logo {
    height: 60px; /* Adjust height as needed */
    width: 200px; /* Fixed width for consistent spacing */
    padding: 0 40px;
    object-fit: contain;
}

@keyframes scroll-sponsors {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 3)); }
}

@keyframes scroll-cosponsors {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 8)); }
}

/* 13. Responsive Media Queries */

/* For Tablets (screens smaller than 1024px) */
@media (max-width: 1023px) {
    .signature-heading-main {
        font-size: 3rem; /* Reduce main heading size */
    }

    #contribution-bands .grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    }

    #contribute .grid {
        grid-template-columns: 1fr; /* Stack bank details boxes */
    }
}


/* For Mobile Phones (screens smaller than 767px) */
@media (max-width: 767px) {
    /* Hide the main navigation links */
    header nav .hidden {
        display: none;
    }

    .hero-logo {
        height: 50px; /* Make hero logos smaller */
    }

    .signature-heading-main {
        font-size: 2.25rem; /* Further reduce main heading */
        line-height: 1.2;
    }

    #schedule .grid {
        grid-template-columns: 1fr; /* Stack schedule days */
    }

    #highlights .grid {
        grid-template-columns: 1fr; /* Stack highlight cards */
    }
    
    #contribution-bands .grid {
        grid-template-columns: 1fr; /* 1 card per row */
    }

    #gallery-grid {
        grid-template-columns: 1fr; /* 1 gallery item per row */
    }
}

/* 14. Reusable Hover Zoom Effect */
.hover-zoom {
    transition: transform 0.3s ease-in-out;
}

.hover-zoom:hover {
    transform: scale(1.05); /* Adjust the scale value for more or less zoom */
}
.mobile-menu-styles {
    border-top: 1px solid rgba(66, 53, 41, 0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@media (max-width: 767px) {
    .signature-heading {
        font-size: 1.5rem; /* Adjust font size to prevent overlap */
    }
    header nav .hidden {
        display: none;
    }

    .hero-logo {
        height: 50px; /* Make hero logos smaller */
    }

    .signature-heading-main {
        font-size: 2.25rem; /* Further reduce main heading */
        line-height: 1.2;
    }

    #schedule .grid {
        grid-template-columns: 1fr; /* Stack schedule days */
    }

    #highlights .grid {
        grid-template-columns: 1fr; /* Stack highlight cards */
    }
    
    #contribution-bands .grid {
        grid-template-columns: 1fr; /* 1 card per row */
    }

    #gallery-grid {
        grid-template-columns: 1fr; /* 1 gallery item per row */
    }
}

/* 14. Reusable Hover Zoom Effect */
.hover-zoom {
    transition: transform 0.3s ease-in-out;
}

.hover-zoom:hover {
    transform: scale(1.05); /* Adjust the scale value for more or less zoom */
}
#registration {
    background: var(--signature-beige);
    background-size: cover;
    position: relative;
}

#registration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-image: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><g fill="%23234C6A" fill-opacity="0.1"><rect x="50" width="50" height="50"/><rect y="50" width="50" height="50"/></g></svg>'); */
    z-index: 1;
}

#registration > .container {
    position: relative;
    z-index: 2;
}

/* --- PRELOADER STYLES --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.75s ease;
}

#preloader.preloader-hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-images {
    position: relative;
    width: 90vw;
    max-width: 400px;
    height: 60vw;
    max-height: 270px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.preloader-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: image-fade 3s infinite;
}

.preloader-images img:nth-child(1) { animation-delay: 0s; }
.preloader-images img:nth-child(2) { animation-delay: 0.5s; }
.preloader-images img:nth-child(3) { animation-delay: 1s; }
.preloader-images img:nth-child(4) { animation-delay: 1.5s; }
.preloader-images img:nth-child(5) { animation-delay: 2s; }
.preloader-images img:nth-child(6) { animation-delay: 2.5s; }


@keyframes image-fade {
    0% { opacity: 0; transform: scale(1.05); }
    5% { opacity: 1; transform: scale(1); }
    15% { opacity: 1; transform: scale(1); }
    20% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

.preloader-text {
    font-family: var(--font-heading);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><g fill="%23234C6A" fill-opacity="0.1"><rect x="50" width="50" height="50"/><rect y="50" width="50" height="50"/></g></svg>');
    z-index: 1;
}

#schedule {
    background-color: var(--signature-blue);
}