:root {
    --primary-color: #ff7200;
    --primary-dark: #e65d00;
    --primary-light: #ff9a4d;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #121220;
    --background-darker: #0a0a15;
    --card-bg: #ffffff;
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s;
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--background-darker), var(--background-dark));
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 70px;
}

/* Hero Section Styles with Enhanced Bubbles */
.hero-section {
    position: relative;
    height: 40vh;
    background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460);
    overflow: hidden;
    margin-bottom: 30px;
}

.hero-overlay {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 2;
    text-align: center;
}

.animated-title {
    font-size: 4rem;
    font-weight: bold;
    color: #fff;
    position: relative;
    display: inline-block;
    opacity: 0;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 114, 0, 0.5);
    animation: titleFadeIn 1s ease forwards 0.5s;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1s;
}

/* Enhanced Bubble Animation */
.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    top: 0;
    left: 0;
}

.bubble {
    position: absolute;
    bottom: -100px;
    border-radius: 50%;
    opacity: 0;
    animation: rise 10s infinite ease-in, glow 4s infinite alternate;
}

/* Different sizes for bubbles */
.bubble:nth-child(odd) {
    width: 40px;
    height: 40px;
    background: rgba(255, 114, 0, 0.15);
}

.bubble:nth-child(even) {
    width: 70px;
    height: 70px;
    background: rgba(255, 114, 0, 0.1);
}

/* Multiple bubble positions and timing */
.bubble:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0.2s; }
.bubble:nth-child(2) { left: 20%; animation-duration: 8s; animation-delay: 1s; }
.bubble:nth-child(3) { left: 35%; animation-duration: 10s; animation-delay: 2s; }
.bubble:nth-child(4) { left: 40%; animation-duration: 14s; animation-delay: 0s; }
.bubble:nth-child(5) { left: 55%; animation-duration: 9s; animation-delay: 1.5s; }
.bubble:nth-child(6) { left: 65%; animation-duration: 11s; animation-delay: 3s; }
.bubble:nth-child(7) { left: 75%; animation-duration: 15s; animation-delay: 2s; }
.bubble:nth-child(8) { left: 80%; animation-duration: 9s; animation-delay: 2.5s; }
.bubble:nth-child(9) { left: 70%; animation-duration: 13s; animation-delay: 1s; }
.bubble:nth-child(10) { left: 25%; animation-duration: 10s; animation-delay: 4s; }
.bubble:nth-child(11) { left: 90%; animation-duration: 9s; animation-delay: 3s; }
.bubble:nth-child(12) { left: 50%; animation-duration: 12s; animation-delay: 2s; }
.bubble:nth-child(13) { left: 45%; animation-duration: 8s; animation-delay: 1s; }
.bubble:nth-child(14) { left: 85%; animation-duration: 11s; animation-delay: 0s; }
.bubble:nth-child(15) { left: 15%; animation-duration: 9s; animation-delay: 2s; }

/* Year Tabs Styling */
.year-tabs {
    margin-top: 20px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
    flex-wrap: wrap;
}

.year-tab {
    padding: 12px 25px;
    border: none;
    background-color: rgba(35, 35, 45, 0.7);
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.year-tab:hover {
    background-color: rgba(45, 45, 60, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.year-tab.active {
    background-color: #ff6200;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(255, 98, 0, 0.4);
    transform: translateY(-3px);
}

/* Added animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container[data-year] {
    animation: fadeIn 0.6s ease-out;
}

.member {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

@media (min-width: 601px) {
    .members-grid .member:nth-child(1) { animation-delay: 0.05s; }
    .members-grid .member:nth-child(2) { animation-delay: 0.1s; }
    .members-grid .member:nth-child(3) { animation-delay: 0.15s; }
    .members-grid .member:nth-child(4) { animation-delay: 0.2s; }
    .members-grid .member:nth-child(5) { animation-delay: 0.25s; }
    .members-grid .member:nth-child(6) { animation-delay: 0.3s; }
    .members-grid .member:nth-child(7) { animation-delay: 0.35s; }
    .members-grid .member:nth-child(8) { animation-delay: 0.4s; }
    /* and so on for other elements */
}

/* Events Container Styles */
.events-container { display: none; }

.events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Enhanced Event Card Styles */
.event-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-speed) ease;
    transform: translateY(0);
    opacity: 0;
    animation: cardFadeIn 0.8s ease forwards;
    animation-delay: calc(var(--card-order) * 0.1s);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.event-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 150, 255, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.event-card:hover .event-badge {
    transform: scale(1.05);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.event-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 114, 0, 0.9);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.event-card:hover .event-date {
    transform: scale(1.05);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.event-info {
    position: relative;
    padding: 1.5rem;
    background: white;
    z-index: 1;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-info h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.event-card:hover .event-info h3 {
    color: var(--primary-color);
}

.event-description {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.event-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
}

.view-details {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255, 114, 0, 0.2);
}

.view-details:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 114, 0, 0.3);
}

/* Event Type Specific Badge Colors */
.event-card[data-category="Technical"] .event-badge {
    background: linear-gradient(135deg, #4285f4, #34a853);
}

.event-card[data-category="Gaming"] .event-badge {
    background: linear-gradient(135deg, #9146FF, #6441a5);
}

.event-card[data-category="Workshop"] .event-badge {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.event-card[data-category="Entertainment"] .event-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.event-card[data-category="Sports"] .event-badge {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.event-card[data-category="Devotional"] .event-badge {
    background: linear-gradient(135deg, #f39c12, #d35400);
}

.event-card[data-category="Culinary"] .event-badge {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.event-card[data-category="Incridea"] .event-badge {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

/* Modal Styles */
.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.event-modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}


.modal-body {
    margin-top: 20px;
}

.modal-body img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-body h2 {
    color: #333;
    margin-bottom: 10px;
}

.modal-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.register-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 114, 0, 0.2);
}

.register-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 114, 0, 0.3);
}

/* Animations */
@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: 1080px;
        transform: translateX(calc(100px * (0.5 - var(--random))));
        opacity: 0;
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 114, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 114, 0, 0.6);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .event-image {
        height: 220px;
    }
    
    .animated-title {
        font-size: 3rem;
    }
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
    
    /* Adjust event grid to single column on mobile */
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    /* Reduce hero section height on mobile */
    .hero-section {
        height: 50vh;
    }
    
    /* Smaller title on mobile */
    .animated-title {
        font-size: 2.5rem;
    }
    
    
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .event-image {
        height: 180px;
    }
    
    .events-container {
        padding: 10px;
    }
    
    .animated-title {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 90%;
        padding: 15px;
    }
}


/* Navbar Styling */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    padding: 0.5rem 1rem;
    background-color: rgba(25, 25, 35, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar:hover {
    background-color: rgba(25, 25, 35, 0.95);
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: none;
    box-shadow: none;
}

.logo1 > img {
    max-height: 60px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(255, 98, 0, 0.3));
}

.navbar-nav {
    width: auto;
    display: flex;
    justify-content: space-around;
    margin-left: auto;
}

.nav-item {
    margin: 0 10px;
    position: relative;
}

.nav-link-text {
    color: #e0e0e0;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link-text:hover {
    color: #ff6200;
}

.nav-link-text::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ff6200;
    transition: width 0.3s ease;
}

.nav-link-text:hover::after {
    width: 100%;
}

.nav-link-text[style*="color: #ff5e00"] {
    color: #ff6200 !important;
}

.nav-link-text[style*="color: #ff5e00"]::after {
    width: 100%;
}

@media (max-width: 991px) {
    .navbar-toggler {
        display: block !important;
        border: none;
        background: rgba(212, 205, 201, 0.1);
        color: #ff6200;
        padding: 8px, 12px;
        border-radius: 4px;
        margin-left: auto;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: rgba(18, 18, 24, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        padding: 1rem;
        z-index: 1000;
        border-top: 1px solid rgba(255, 98, 0, 0.2);
    }
  
    .navbar-nav {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }
  
    .nav-item {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
  
    .logo1 > img {
        max-height: 50px;
    }
}

@media (max-width: 576px) {
    .logo1 > img {
        max-height: 40px;
    }
  
    .nav-link-text {
        font-size: 12px;
    }
    
    h1 {
        font-size: 1.5rem;
        padding: 0 15px;
    }
}
a{
    text-decoration: none;
}
ul{
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
}

ul li{
    list-style: none;
    margin-left: 60px;
    margin-top: 30px;
    font-size: 14px;
}

ul li a{
    text-decoration: none;
    color: #fff;
    font-family: Arial;
    font-weight: bold;
    transition: 0.4s ease-in-out;
}

ul li a:hover{
    color: #ff7200;
}