/*
Sportsfest Styles - Based on Sangram Theme
Custom styles for UEM Jaipur SportsFest 2025
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    padding-top: 80px;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-evenly {
    justify-content: space-evenly;
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

.bg-black {
    background-color: #000;
}

.bg-yellow-400 {
    background-color: #facc15;
}

.text-white {
    color: #fff;
}

.text-yellow-400 {
    color: #facc15;
}

.text-yellow-300 {
    color: #fde047;
}

.hidden {
    display: none;
}

/* Glass Morphism Effect for Header */
.glass {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

/* Header/Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
}

.navbar-logo {
    height: 60px;
    width: 60px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 50px;
}

.navbar-menu li {
    position: relative;
}

.navbar-menu a {
    color: #fff;
    text-decoration: none;
    font-family: 'Nova Square', system-ui, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-menu a:hover {
    color: #facc15;
    transform: scale(1.05);
}

/* Underline hover effect */
.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #facc15;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-menu a:hover::after {
    width: 100%;
}

/* Switch Button Styles - Subtle Navigation Style */
.navbar-switch {
    margin-left: 20px;
}

.switch-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(250, 204, 21, 0.3);
    backdrop-filter: blur(10px);
}

.switch-btn:hover {
    background: rgba(250, 204, 21, 0.2);
    border: 1px solid rgba(250, 204, 21, 0.6);
    color: #facc15;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

.switch-btn.techfest-switch {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.switch-btn.techfest-switch:hover {
    background: rgba(250, 204, 21, 0.2);
    border: 1px solid rgba(250, 204, 21, 0.6);
    color: #facc15;
}

.navbar-switch .nav-link {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
}

/* TechFest Button - Purple Gradient */
.navbar-switch .nav-link.bg-gradient-to-r.from-purple-500 {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.navbar-switch .nav-link.bg-gradient-to-r.from-purple-500:hover {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Sangram Button - Green Gradient (fallback) */
.navbar-switch .nav-link.bg-gradient-to-r.from-green-500 {
    background: linear-gradient(135deg, #10b981, #3b82f6);
}

.navbar-switch .nav-link.bg-gradient-to-r.from-green-500:hover {
    background: linear-gradient(135deg, #059669, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    padding: 5px;
}

.mobile-menu-toggle img {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 25px;
    z-index: 1001;
    border-bottom: 2px solid rgba(250, 204, 21, 0.3);
}

.mobile-menu.active {
    display: block;
    animation: menuSlideDown 0.3s ease forwards;
}

@keyframes menuSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-menu li {
    margin: 0;
    width: 100%;
    text-align: center;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Nova Square', system-ui, sans-serif;
    display: block;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
    letter-spacing: 1px;
}

.mobile-menu a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 0;
    height: 2px;
    background-color: #facc15;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-menu a:hover {
    color: #facc15;
    background-color: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

.mobile-menu a:hover::after {
    width: 50%;
}

/* Mobile Switch Button */
.mobile-menu .switch-btn.mobile {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    margin-top: 15px;
    text-align: center;
    display: block;
    border-radius: 4px;
    padding: 12px 20px;
    font-weight: 500;
    border: 1px solid rgba(250, 204, 21, 0.3);
    backdrop-filter: blur(10px);
}

.mobile-menu .switch-btn.mobile:hover {
    background: rgba(250, 204, 21, 0.2) !important;
    border: 1px solid rgba(250, 204, 21, 0.6);
    color: #facc15 !important;
    transform: none;
    box-shadow: none;
}

.mobile-menu .bg-gradient-to-r.from-purple-500 {
    background: linear-gradient(135deg, #8b5cf6, #6366f1) !important;
    margin-top: 10px;
}

.mobile-menu .bg-gradient-to-r.from-purple-500:hover {
    background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
}

.mobile-menu .bg-gradient-to-r.from-green-500 {
    background: linear-gradient(135deg, #10b981, #3b82f6) !important;
    margin-top: 10px;
}

.mobile-menu .bg-gradient-to-r.from-green-500:hover {
    background: linear-gradient(135deg, #059669, #2563eb) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
}

.hero-container {
    display: flex;
    width: 100%;
    min-height: 80vh;
    align-items: center;
}
.hero-section .container,
.hero-section .hero-container {
    max-width: 100%;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

.hero-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 70vh;
}

.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.hero-title {
    font-size: 6rem;
    font-weight: 900;
    color: #fff;
    text-align: center;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #facc15;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
}

.hero-logos {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-logo-main {
    width: 220px;
    height: auto;
}

.hero-logo-secondary {
    width: 130px;
    height: auto;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: #000;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-left {
    flex: 1;
    padding-left: 50px;
}

.about-title {
    font-family: 'Nova Square', system-ui, sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: #facc15;
    margin-bottom: 30px;
}

.about-right {
    flex: 2;
    padding-right: 50px;
}

.about-text {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #fff;
}

.about-text .highlight {
    color: #facc15;
    font-weight: bold;
}

/* Countdown Section */
.countdown-section {
    background: #facc15;
    padding: 60px 0;
    margin: 40px 20px;
    border-radius: 20px;
}

.countdown-title {
    font-family: 'Nova Square', system-ui, sans-serif;
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
}

.countdown-title-box {
    background: #000;
    color: #facc15;
    padding: 20px 30px;
    border-radius: 15px;
    display: inline-block;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
}

.countdown-card {
    background: #000;
    color: #facc15;
    border-radius: 15px;
    padding: 20px;
    min-width: 100px;
    margin-bottom: 10px;
}

.countdown-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.countdown-label {
    font-size: 1rem;
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
}

/* Metrics Section */
.metrics-section {
    padding: 80px 0;
    background: #000;
}

.metrics-container {
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.metrics-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    min-height: 380px;
    max-height: 640px;
    width: 100%;
}

.metrics-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.metrics-title {
    font-family: 'Nova Square', system-ui, sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #facc15;
    text-align: center;
}

.metrics-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.metric-card {
    background: #000;
    border: 4px solid #facc15;
    border-radius: 10px;
    width: 150px;
    height: 200px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
}

.metric-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(250, 204, 21, 0.3);
    border-color: #fde047;
}

.metric-number {
    flex: 3;
    background: #facc15;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: #000;
    transition: background-color 0.3s ease;
}

.metric-card:hover .metric-number {
    background: #fde047;
}

.metric-label {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #facc15;
    padding: 10px;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: #000;
}
.gallery-section .container { max-width: 100%; width: 100%; padding-left: 0; padding-right: 0; }

.gallery-title {
    font-family: 'Nova Square', system-ui, sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #facc15;
    margin-bottom: 20px;
}

.gallery-subtitle {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.3rem;
    color: #ddd;
    margin-bottom: 50px;
}

.gallery-subtitle .highlight {
    color: #facc15;
    font-weight: bold;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 16/9;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Optional marquee slider variant */
.gallery-marquee {
    --gap: 24px;
    display: flex;
    overflow: hidden;
    gap: var(--gap);
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}
.gallery-marquee .item {
    flex: 0 0 auto;
    width: clamp(260px, 24vw, 420px);
    height: clamp(180px, 28vw, 380px);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    animation: scroll-left 22s linear infinite;
}
.gallery-marquee .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-1 * (100% + var(--gap)))); }
}
.gallery-marquee.reverse .item { animation-direction: reverse; }

/* Footer socials */
.footer-socials {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}
.footer-socials img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: transform .2s ease, opacity .2s ease;
}
.footer-socials img:hover { transform: scale(1.08); opacity: 1; }

/* Simple scroll-reveal utility */
.reveal { 
  opacity: 0; 
  transform: translateY(24px); 
  transition: opacity .6s ease, transform .6s ease; 
}
.reveal.in { 
  opacity: 1; 
  transform: none; 
}

/* Skeleton loading states */
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: inherit;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.team-avatar, .event-image img {
  transition: opacity 0.3s ease;
}

.team-avatar.loading, .event-image img.loading {
  opacity: 0;
}

/* Footer */
.footer {
    background: #000;
    padding: 60px 0 30px;
    border-top: 1px solid #333;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-left {
    flex: 1;
}

.footer-logo-text {
    font-family: 'Nova Square', system-ui, sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.footer-subtitle {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.1rem;
    color: #facc15;
    letter-spacing: 1px;
}

.footer-center {
    flex: 1;
    text-align: center;
}

.footer-right {
    flex: 1;
    text-align: right;
}

.footer-title {
    font-family: 'Nova Square', system-ui, sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.footer-content {
    color: #ccc;
    line-height: 1.6;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #888;
}

/* Events Page */
.events-page { padding: 80px 0; }
.events-title {
        font-family: 'Nova Square', system-ui, sans-serif;
        font-size: 3rem;
        font-weight: 800;
        text-align: center;
        color: #facc15;
        letter-spacing: 2px;
        margin-bottom: 30px;
}
.events-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px 40px;
}
.event-card {
        background: #1f1f1f;
        border-radius: 16px;
        padding: 18px 18px 20px;
        border: 1px solid rgba(255,255,255,0.06);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.event-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(250, 204, 21, 0.18);
        border-color: rgba(250,204,21,0.5);
}
.event-card-inner { display: flex; flex-direction: column; height: 100%; gap: 14px; }
.event-card-head { min-height: 88px; }
.event-title { font-weight: 800; color: #fff; letter-spacing: .5px; font-size: 1.25rem; text-transform: uppercase; }
.event-slogan { color: #cfcfcf; font-size: .95rem; margin-top: 6px; line-height: 1.35; }
.event-image { width: 100%; aspect-ratio: 16/11; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid #2b2b2b; }
.event-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.event-card:hover .event-image img { transform: scale(1.05); }
.event-card-foot { margin-top: auto; padding-top: 10px; }
.btn-register {
        display: inline-block;
        padding: 10px 16px;
        border-radius: 999px;
        background: #0d0d0d;
        color: #fff;
        border: 1px solid #2b2b2b;
        text-decoration: none;
        font-weight: 700;
        font-size: .9rem;
        transition: background .3s ease, color .3s ease, border-color .3s ease, transform .2s ease;
}
.btn-register:hover { background: #facc15; color: #000; border-color: #facc15; transform: translateY(-1px); }

/* Subtle glow on hover using pseudo-element */
.event-card { position: relative; }
.event-card::after {
        content: '';
        position: absolute;
        inset: -2px;
        background: radial-gradient(80% 80% at 50% 0%, rgba(250,204,21,0.15), transparent);
        opacity: 0;
        border-radius: inherit;
        transition: opacity .35s ease;
        pointer-events: none;
}
.event-card:hover::after { opacity: 1; }

@media (max-width: 1200px) {
    .events-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .events-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .events-grid { grid-template-columns: 1fr; }
}

/* Team Page (React-like TeamCard styles) */
.team-page { padding: 80px 0; }
.team-page .events-title { margin-bottom: 80px; }
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 64px 64px; /* match lg:gap-16 (4rem) from React */
}
.team-card {
    padding: 4px;
    border-radius: 20px;
    position: relative;
    background: linear-gradient(135deg, rgba(168,85,247,.6), rgba(236,72,153,.6), rgba(239,68,68,.6));
    transition: transform .3s ease;
}
.team-card:hover { transform: translateY(-6px); }
.team-card-inner {
    text-align: center;
    background: #000;
    color: #9ca3af;
    border-radius: 18px;
    padding: 12px; /* React p-3 */
    overflow: hidden;
}
.team-avatar {
    width: 208px; /* 52 * 4px */
    height: 208px;
    border-radius: 9999px;
    object-fit: cover;
    display: block;
    margin: 0 auto 16px auto;
}
.team-name { color: #fff; font-size: 1.375rem; font-weight: 800; margin-bottom: 6px; }
.team-role { color: #9ca3af; font-weight: 700; }
.team-socials { display: flex; justify-content: center; gap: 20px; margin-top: 14px; list-style: none; }
.team-socials li a img { width: 22px; height: 22px; filter: none; transition: transform .2s ease, filter .2s ease; }
.team-socials li a:hover img { transform: scale(1.08); filter: drop-shadow(0 0 6px rgba(250,204,21,.4)); }

/* Subtle glow on hover similar to Event cards */
.gradient-border { position: relative; }
.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: radial-gradient(70% 70% at 50% 0%, rgba(250,204,21,0.15), transparent);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.gradient-border:hover::before { opacity: 1; }

@media (max-width: 1200px) { 
    .team-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}
@media (max-width: 900px) { 
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .team-avatar{ width: 184px; height:184px;}
}
@media (max-width: 560px) { 
    .team-grid { grid-template-columns: 1fr; gap: 24px; }
    .team-avatar{ width: 168px; height:168px;}
}

/* Particle Slider Container */
/* Particle text canvas */
#particleTextCanvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.hero-fallback {
    position: relative;
    z-index: 1;
    display: none; /* hidden on desktop/tablet */
}

/* Football 2D Canvas container */
.football2d-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60vh;
    min-height: 320px;
    max-height: 640px;
}
.football2d-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.count-up {
    animation: countUp 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .navbar-switch {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar-container {
        padding: 15px 20px;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .about-left,
    .about-right {
        padding: 0 20px;
    }
    
    .about-title {
        font-size: 2.5rem;
    }
    
.metrics-container {
    flex-direction: column;
    gap: 40px;
}

.metrics-left {
    min-height: 300px;
    height: auto;
}

#footballCanvas {
    width: 100% !important;
    height: 300px !important;
    max-width: 400px;
    margin: 0 auto;
}    .metrics-title {
        font-size: 2.5rem;
    }
    
    .metric-card {
        width: 120px;
        height: 160px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-center,
    .footer-right {
        text-align: center;
    }

    /* Enhanced mobile responsiveness for events and team */
    .events-grid {
        gap: 20px;
    }
    
    .event-card {
        padding: 14px;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
    
    .event-slogan {
        font-size: 0.85rem;
    }
    
    .team-grid {
        gap: 24px;
    }
    
    .team-card-inner {
        padding: 10px;
    }
    
    .team-name {
        font-size: 1.2rem;
    }
    
    .team-role {
        font-size: 0.9rem;
    }
    
    .team-socials li a img {
        width: 20px;
        height: 20px;
    }

    /* Hide particle effect on mobile, show fallback */
    #particleTextCanvas { display: none !important; }
    .hero-fallback { display: block; }
    .hero-left { min-height: 50vh; }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .metrics-title {
        font-size: 2rem;
    }
    
    .gallery-title {
        font-size: 2.5rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .metrics-cards {
        flex-direction: column;
        align-items: center;
    }
    
    /* Ultra-mobile refinements */
    .events-title, .team-page .events-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .event-card {
        padding: 12px;
    }
    
    .team-avatar {
        width: 140px;
        height: 140px;
    }
    
    .team-card-inner {
        padding: 8px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid #facc15;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #facc15;
    }
}
