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

/* Responsive Base Font Size */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 1440px) {
    html {
        font-size: 17px;
    }
}

/* Light Theme (Default) */
:root {
    --bg: #F9F7F2;
    --panel: #FFFFFF;
    --text: #0A1A2F;
    --accent: #F57C00;
    --accent-2: #FFCB47;
    --muted: #7A7A7A;
}

/* Dark Theme */
body.dark-theme {
    --bg: #051020;
    --panel: #071428;
    --text: #F3F2EE;
    --accent: #FFB74D;
    --accent-2: #FFD97A;
    --muted: #A0A8B8;
}

body {
    font-family: 'Playfair Display', serif;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Navigation Bar - Mobile First */
.header {
    background-color: var(--panel);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    font-family: 'Cinzel Decorative', serif;
    margin: 0;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 1.5rem;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links li a:hover {
    color: var(--accent);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme:hover {
    background-color: var(--accent);
    color: var(--panel);
    transform: rotate(20deg);
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background-color: var(--panel);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu ul li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu ul li a:hover {
    background-color: var(--bg);
    color: var(--accent);
}

/* Hero Section - Mobile First */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 60px;
    padding: 2rem 1rem;
    background-color: var(--bg);
}

/* Animated Gradient Background */
.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--accent) 0%,
        var(--accent-2) 25%,
        var(--panel) 50%,
        var(--accent) 75%,
        var(--accent-2) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.15;
    z-index: 0;
}

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

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.1;
    filter: blur(40px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -10%;
    background: var(--accent);
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    top: 60%;
    right: -5%;
    background: var(--accent-2);
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: 20%;
    background: var(--accent);
    animation: float 18s ease-in-out infinite;
}

.shape-4 {
    width: 180px;
    height: 180px;
    top: 30%;
    right: 25%;
    background: var(--accent-2);
    animation: float 22s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    max-width: 90%;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
    margin-bottom: 2rem;
}

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

.hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Cinzel Decorative', serif;
}

.hero-content h1 span {
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn-primary,
.btn-secondary {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    max-width: 250px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 124, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: #FFFFFF;
    transform: translateY(-2px) scale(1.05);
    border-color: var(--accent);
}

/* Main Section */
.main {
    min-height: 100vh;
    padding: 2rem 1rem;
    background-color: var(--bg);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* About Brief Section */
.about-brief {
    padding: 4rem 1rem;
    background-color: var(--bg);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-family: 'Cinzel Decorative', serif;
}

.section-header h2 span {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header .subtitle {
    font-size: 1rem;
    color: var(--muted);
    font-style: italic;
}

.mantra-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 0 auto;
    max-width: 95%;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(245, 124, 0, 0.2);
    z-index: 10;
    position: relative;
    animation: fadeInUp 1.2s ease-out 0.3s backwards;
}

body.dark-theme .mantra-box {
    background: rgba(7, 20, 40, 0.4);
    box-shadow: 0 8px 32px rgba(255, 183, 77, 0.3);
}

.om-symbol {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.mantra-box h3 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 700;
}

.mantra-box .sanskrit {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.mantra-box .translation {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
    line-height: 1.5;
}

.about-content {
    max-width: 900px;
    margin: 2rem auto;
    text-align: center;
}

/* Daily Shloka Section */
.daily-shloka {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--bg), var(--panel));
}

.shloka-box {
    background: linear-gradient(135deg, var(--panel), var(--bg));
    border: 2px solid var(--accent);
    border-radius: 15px;
    padding: 2.5rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.shloka-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--text));
}

.shloka-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

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

.shloka-box h3 {
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.shloka-box .sanskrit {
    font-size: 1.15rem;
    color: var(--text);
    font-weight: 600;
    line-height: 2;
    margin-bottom: 1.5rem;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.shloka-box .translation {
    font-size: 1rem;
    color: var(--muted);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.shloka-reference {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.about-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.about-content strong {
    color: var(--accent);
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
}

/* Events Preview Section */
.events-preview {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, var(--panel), var(--bg));
}

.events-preview-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 4rem;
    overflow: visible;
}

.event-preview-card {
    display: none;
    background-color: var(--panel);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
    width: 100%;
    max-width: 100%;
}

.event-preview-card.event-active {
    display: block;
}

.event-preview-card.slide-left {
    animation: slideFromRight 0.5s ease-in-out;
}

.event-preview-card.slide-right {
    animation: slideFromLeft 0.5s ease-in-out;
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.event-preview-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-preview-badge.cultural {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
}

.event-preview-badge.trip {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    color: white;
}

.event-preview-layout {
    display: flex;
    flex-direction: column;
}

.event-preview-poster {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.event-preview-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-preview-content {
    padding: 2rem;
}

.event-preview-content h3 {
    font-size: 1.5rem;
    font-family: 'Cinzel Decorative', serif;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.event-preview-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.event-preview-description {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Event Navigation Buttons */
.event-nav-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.event-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.event-nav-btn.prev {
    left: 0;
}

.event-nav-btn.next {
    right: 0;
}

/* Event Indicators */
.event-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    width: 30px;
    border-radius: 6px;
}

.indicator:hover {
    background-color: var(--accent);
}

/* About Page Styles */
.about-page,
.teams-page {
    padding: 6rem 1rem 4rem;
    background-color: var(--bg);
}

.page-hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--panel), var(--bg));
    border-radius: 20px;
    margin-bottom: 0;
}

.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    font-family: 'Cinzel Decorative', serif;
}

.page-hero h1 span {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero .subtitle {
    font-size: 1.05rem;
    color: var(--muted);
    font-style: italic;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.mission-card,
.vision-card {
    background-color: var(--panel);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--accent);
}

.mission-card h3,
.vision-card h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cinzel Decorative', serif;
}

.mission-card p,
.vision-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.what-we-do-card {
    background-color: var(--panel);
    border-radius: 15px;
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--accent-2);
}

.what-we-do-card h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cinzel Decorative', serif;
}

.what-we-do-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.mentors-section {
    margin: 4rem 0;
}

.mentors-section h3 {
    font-size: 1.7rem;
    text-align: center;
    color: var(--text);
    margin-bottom: 1rem;
    font-family: 'Cinzel Decorative', serif;
}

.mentors-section .subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 3rem;
}

.mentors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.mentor-card {
    background-color: var(--panel);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mentor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.mentor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.mentor-card h4 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-family: 'Cinzel Decorative', serif;
}

.mentor-card .title {
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.mentor-quote {
    font-size: 0.95rem;
    color: var(--text);
    font-style: italic;
    line-height: 1.6;
    padding: 1rem;
    background-color: var(--bg);
    border-radius: 10px;
    border-left: 3px solid var(--accent-2);
}

/* Responsive Tablet */
@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .mantra-box {
        max-width: 600px;
        padding: 2rem;
    }
    
    .om-symbol {
        font-size: 3.5rem;
    }
    
    .mantra-box h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .mantra-box .sanskrit {
        font-size: 1.2rem;
        line-height: 1.8;
        margin-bottom: 1rem;
    }
    
    .mantra-box .translation {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .mission-vision-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mentors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-hero h1 {
        font-size: 3.5rem;
    }
    
    .upcoming-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .past-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Events Page Styles */
.events-page {
    padding: 6rem 1rem 4rem;
    background-color: var(--bg);
}

.events-section {
    margin: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    font-family: 'Cinzel Decorative', serif;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 1rem;
    color: var(--muted);
    font-style: italic;
}

/* Upcoming Events */
.upcoming-events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    background-color: var(--panel);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.event-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-badge.cultural {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
}

.event-badge.trip {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    color: white;
}

/* Event Layout: Poster Left, Content Right */
.event-layout {
    display: flex;
    flex-direction: column;
}

.event-poster {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.event-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-poster img {
    transform: scale(1.05);
}

.event-content {
    padding: 2rem;
    flex: 1;
}

.event-content h3 {
    font-size: 1.5rem;
    font-family: 'Cinzel Decorative', serif;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-size: 0.9rem;
}

.detail-item i {
    color: var(--accent);
    font-size: 1rem;
}

.event-description {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Countdown Timer */
.countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg), var(--panel));
    border-radius: 15px;
    border: 2px solid var(--accent);
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Cinzel Decorative', serif;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Past Events */
.past-events-section {
    background: linear-gradient(135deg, var(--bg), var(--panel));
    padding: 4rem 1rem;
    border-radius: 20px;
}

.past-events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.past-event-card {
    background-color: var(--panel);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.past-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.past-event-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--bg);
}

.past-event-header h3 {
    font-size: 1.3rem;
    font-family: 'Cinzel Decorative', serif;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.past-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.past-event-date,
.past-event-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
}

.past-event-date i,
.past-event-type i {
    color: var(--accent);
}

.past-event-content {
    padding: 1.5rem;
}

.past-event-description {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.past-event-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg);
}

.past-event-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.past-event-stats i {
    color: var(--accent);
}

/* Image Carousel */
.event-carousel {
    padding: 1rem;
    background-color: var(--bg);
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-images {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--panel);
}

.carousel-images img {
    display: none;
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.carousel-images img.carousel-active {
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-indicator {
    text-align: center;
    padding: 1rem 0 0.5rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
}

.carousel-indicator .current-slide {
    color: var(--accent);
    font-size: 1rem;
}

.carousel-indicator .total-slides {
    color: var(--muted);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    color: var(--text);
    padding: 0;
    margin-top: 4rem;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--panel) 0%, rgba(245, 124, 0, 0.05) 100%);
    border-top: 3px solid var(--accent);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent) 20%, 
        var(--accent-2) 50%, 
        var(--accent) 80%, 
        transparent 100%
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 1rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(245, 124, 0, 0.2);
}

.footer-brand h2 {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel Decorative', serif;
    text-shadow: 0 2px 4px rgba(245, 124, 0, 0.2);
}

.footer-tagline {
    font-size: 1rem;
    color: var(--accent-2);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.footer-description {
    color: var(--text);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-motto {
    font-style: italic;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
    margin-top: 1rem;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel Decorative', serif;
    font-weight: 600;
}

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

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-contact a {
    color: var(--text);
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent);
    opacity: 1;
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    opacity: 0.8;
}

.footer-contact i {
    color: var(--accent);
    font-size: 1.1rem;
    min-width: 20px;
}

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

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.3);
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 124, 0, 0.5);
}

.footer-bottom {
    padding: 1.5rem 0 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text);
    opacity: 0.7;
    margin: 0;
    font-size: 0.95rem;
}

.footer-bottom i {
    color: #ff6b6b;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
    .heading {
        font-size: 1.75rem;
    }

    .nav-links {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary {
        width: auto;
    }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
    .nav-bar {
        padding: 1.5rem 2rem;
    }

    .heading {
        font-size: 2rem;
    }

    .nav-links {
        gap: 2.5rem;
    }

    .nav-links li a {
        font-size: 1rem;
    }

    .hero-content {
        max-width: 800px;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-content p {
        font-size: 1.3rem;
        margin-bottom: 2.5rem;
    }
    
    .mantra-box {
        max-width: 700px;
        padding: 2.5rem;
        border-radius: 25px;
    }
    
    .om-symbol {
        font-size: 4rem;
    }
    
    .mantra-box h3 {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }
    
    .mantra-box .sanskrit {
        font-size: 1.4rem;
        line-height: 2;
        margin-bottom: 1.25rem;
    }
    
    .mantra-box .translation {
        font-size: 1.1rem;
    }

    .main {
        padding: 3rem 2rem;
    }
    
    /* Desktop: Poster Left, Content Right */
    .event-layout {
        flex-direction: row;
    }
    
    .event-poster {
        width: 40%;
        height: auto;
        min-height: 500px;
    }
    
    .event-content {
        width: 60%;
    }
    
    .upcoming-events-grid {
        grid-template-columns: 1fr;
    }
    
    /* Events Preview Desktop Layout */
    .event-preview-layout {
        flex-direction: row;
    }
    
    .event-preview-layout .event-poster {
        width: 40%;
        height: auto;
        min-height: 400px;
    }
    
    .event-preview-layout .event-content {
        width: 60%;
    }
}

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .hero-content h1 {
        font-size: 4.5rem;
    }

    .hero-content p {
        font-size: 1.4rem;
    }
    
    .shape-1 {
        width: 400px;
        height: 400px;
    }
    
    .shape-2 {
        width: 350px;
        height: 350px;
    }
    
    .shape-3 {
        width: 300px;
        height: 300px;
    }
    
    .shape-4 {
        width: 280px;
        height: 280px;
    }
}

/* ========================================
   TEAMS PAGE STYLES
   ======================================== */

/* Team Section */
.team-section {
    margin-bottom: 4rem;
}

.team-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.team-section-header h2 {
    font-size: 2.5rem;
    font-family: 'Cinzel Decorative', serif;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    margin: 0 auto;
    border-radius: 2px;
}

/* Team Grid Layouts */
.team-grid {
    display: grid;
    gap: 2rem;
    justify-items: center;
    justify-content: center; /* center the grid columns within the container */
}

/* President/VP/Secretary/Treasurer - Single centered card */
.president-grid,
.vp-grid,
.secretary-grid,
.treasurer-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 900px;
    margin: 0 auto;
}

/* Team Heads - 3 columns on desktop */
.heads-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}

/* Deputy Heads - 3 columns on desktop */
.deputy-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}

/* Members - 4 columns on desktop */
.members-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1400px;
    margin: 0 auto;
}

/* Team Card */
.team-card {
    background-color: var(--panel);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
}

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

/* Team Image */
.team-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

/* Team Info */
.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h3 {
    font-size: 1.3rem;
    font-family: 'Cinzel Decorative', serif;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Team Social Links */
.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.3s ease;
    border: 2px solid var(--border);
}

.team-social a:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

/* Footer Responsive Styles */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-container {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-brand h2 {
        font-size: 1.5rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-social {
        text-align: center;
    }
}

/* Event Navigation - Hide on Mobile, Enable Touch Swipe */
@media (max-width: 768px) {
    .event-nav-btn {
        display: none !important;
    }
    
    .events-preview-carousel {
        touch-action: pan-y pinch-zoom;
        overflow-x: hidden;
    }
}

/* Confetti Animation for Event Start */
.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.event-started-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 10000;
    text-align: center;
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.event-started-message h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel Decorative', serif;
}

.event-started-message p {
    font-size: 1.2rem;
    opacity: 0.9;
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .nav-logo {
        height: 32px;
    }
    
    .heading {
        font-size: 1rem;
    }
    
    /* Make event preview cards 90% width on mobile */
    .events-preview-carousel {
        padding: 0 5%;
        max-width: 100%;
    }
    
    .event-preview-card {
        width: 100%;
        max-width: 100%;
    }
    
    .event-preview-poster {
        height: 250px;
    }
    
    .event-preview-content {
        padding: 1.5rem;
    }
    
    .event-preview-content h3 {
        font-size: 1.3rem;
    }
    
    .event-started-message {
        padding: 1.5rem 2rem;
        width: 90%;
        max-width: 400px;
    }
    
    .event-started-message h2 {
        font-size: 1.8rem;
    }
    
    .event-started-message p {
        font-size: 1rem;
    }
}
