:root {
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --secondary-color: #1e40af;
    --accent-color: #7c3aed;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --gradient-blue: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-purple: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    background-image: url('../images/fest_background.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Navigation */
.nav-bar {
    background: rgba(255, 255, 255, 0.4); /* more transparent */
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    padding: 0.8rem 1.5rem;
    display: flex;
    height: 65px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 0 12px 12px; /* subtle curve for glassy look */
}

/* Back Button */
.back-btn {
    background: rgba(37, 99, 235, 0.85); /* semi-transparent blue */
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.back-btn:hover {
    transform: translateX(-3px) scale(1.05);
    background: rgba(29, 78, 216, 0.95); /* darker blue on hover */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Logo */
.snapmeet-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(3) contrast(2.9) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
    transition: all 0.35s ease;
    transform-origin: center;
}

.snapmeet-logo:hover {
    transform: scale(1.08);
    filter: brightness(1.15) contrast(1.2) drop-shadow(0 4px 10px rgba(37, 99, 235, 0.35));
}

/* Main Poster */
.main-poster-container {
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    margin: 2rem auto 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.main-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--border-radius);
}

.main-poster-placeholder {
    width: 100%;
    height: 50vh;
    background: var(--gradient-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    border-radius: var(--border-radius);
}

/* Organization Info */
.org-info-container {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin: -40px auto 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 5;
    width: 90%;
    max-width: 1000px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.org-name {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #141e30, #243b55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.presents-text {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.fest-name {
    font-family: 'Cinzel Decorative', serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #FFD700, #8E2DE2, #4A00E0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.1;
    position: relative;
    display: inline-block;
}

.fest-name::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.event-dates {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 1px;
}

/* Events Container */
.events-container {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.club-section {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.club-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.club-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.club-logo {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 16px;
    margin-right: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 2px solid white;
}

.club-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    position: relative;
}

.club-name::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-blue);
    border-radius: 2px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-purple);
}

.event-poster {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.event-poster-placeholder {
    width: 100%;
    padding-bottom: 125%;
    background: var(--gradient-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.event-poster-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0)
    );
    transform: rotate(30deg);
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) rotate(30deg);
    }
}

.event-title {
    padding: 1.25rem;
    font-weight: 700;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #232526, #414345);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
}

.no-events, .no-clubs {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-style: italic;
    grid-column: 1 / -1;
}

/* Footer */
.main-footer {
    background: linear-gradient(to right, #1a202c, #2d3748);
    color: white;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.footer-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-logos {
    height: 45px;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.social-link:hover {
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.contact-info i {
    width: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .fest-name {
        font-size: 3rem;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-bar {
        padding: 1rem;
    }
    
    .org-info-container {
        margin: -30px 1rem 2rem;
        padding: 2rem 1rem;
    }
    
    .org-name {
        font-size: 1.5rem;
    }
    
    .fest-name {
        font-size: 2.25rem;
    }
    
    .presents-text {
        letter-spacing: 2px;
        font-size: 1rem;
    }
    
    .events-container {
        padding: 0 1rem;
    }
    
    .club-section {
        padding: 1.5rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .club-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .club-logo {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .club-name::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .main-footer {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 3rem 1.5rem;
    }
    
    .footer-branding {
        align-items: center;
    }
    
    .footer-contact {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .fest-name {
        font-size: 1.75rem;
    }
    
    .event-dates {
        font-size: 1rem;
    }
    
    .club-name {
        font-size: 1.5rem;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
}

/* Animation enhancements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.club-section {
    animation: fadeIn 0.6s ease-out forwards;
}

.club-section:nth-child(2) {
    animation-delay: 0.1s;
}

.club-section:nth-child(3) {
    animation-delay: 0.2s;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}