/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --bg-color: #020412;
    --primary-blue: #0A84FF;
    --accent-cyan: #00E0FF;
    --text-light: #EAEBF0;
    --text-dark: #A5B1CC;
    --glass-bg: rgba(10, 15, 40, 0.5);
    --glass-border: rgba(0, 224, 255, 0.2);
    --glow-shadow: 0 0 20px rgba(0, 224, 255, 0.3);
    --font-family: 'Space Grotesk', sans-serif;
    --header-height: 70px;
    --section-padding: clamp(3rem, 8vh, 6rem);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    /* cursor: none; */
    background-image: radial-gradient(circle at 1% 1%, #10142b 0%, var(--bg-color) 25%);
      -webkit-user-select: none;
  -moz-user-select: none;    
  -ms-user-select: none;     
  user-select: none;         
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.content-section {
    padding: 6rem 2rem;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    /* margin: 0 1rem; */
}
.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 15px var(--accent-cyan);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* --- ANIMATED STARS BACKGROUND --- */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

#stars1, #stars2, #stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    background-size: cover;
    background-position: center;
}

/* Using box-shadow to create multiple stars in a single div.
   We will create three layers for a parallax effect. */

/* Layer 1: Smallest, slowest stars (farthest) */
#stars1 {
    background-image: radial-gradient(1px 1px at 20px 30px, #eee, rgba(0,0,0,0)), 
                      radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)), 
                      radial-gradient(1px 1px at 50px 160px, #ddd, rgba(0,0,0,0)), 
                      radial-gradient(1px 1px at 90px 40px, #fff, rgba(0,0,0,0)), 
                      radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)), 
                      radial-gradient(1px 1px at 160px 120px, #ddd, rgba(0,0,0,0));
    background-size: 200px 200px;
    animation: anim-stars 300s linear infinite;
}

/* Layer 2: Medium-sized, medium-speed stars */
#stars2 {
    background-image: radial-gradient(2px 2px at 10px 90px, #eee, rgba(0,0,0,0)), 
                      radial-gradient(2px 2px at 80px 30px, #fff, rgba(0,0,0,0)), 
                      radial-gradient(2px 2px at 120px 180px, #ddd, rgba(0,0,0,0)),
                      radial-gradient(2px 2px at 60px 170px, #ddd, rgba(0,0,0,0)),
                      radial-gradient(2px 2px at 175px 100px, #fff, rgba(0,0,0,0));
    background-size: 250px 250px;
    animation: anim-stars 250s linear infinite;
}

/* Layer 3: Largest, fastest stars (closest) */
#stars3 {
    background-image: radial-gradient(2px 2px at 50px 50px, #fff, rgba(0,0,0,0)), 
                      radial-gradient(3px 3px at 100px 100px, var(--accent-cyan), rgba(0,0,0,0)),
                      radial-gradient(3px 3px at 200px 150px, #eee, rgba(0,0,0,0)),
                      radial-gradient(2px 2px at 150px 50px, #fff, rgba(0,0,0,0));
    background-size: 300px 300px;
    animation: anim-stars 200s linear infinite;
}

@keyframes anim-stars {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-2000px); /* Move stars up a long distance */
    }
}

/* --- CUSTOM CURSOR --- */
.cursor {
    width: 25px;
    height: 25px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
    z-index: 9999;
}

/* Style for when hovering over interactive elements */
.cursor.grow {
    transform: translate(-50%, -50%) scale(1.5);
    /* REMOVE the background-color and transparent border */
    /* background-color: var(--accent-cyan); */
    /* border-color: transparent; */

    /* ADD a box-shadow to create a glow effect */
    box-shadow: 0 0 15px var(--accent-cyan);
}

body:hover .cursor {
    width: 50px;
    height: 50px;
    border-color: rgba(0, 224, 255, 0.5);
}

@media (max-width: 900px) {
  .cursor {
    display: none !important;
  }
}

/* --- LOADER --- */
#loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s 1s, visibility 0.5s 1s;
}
.loader-coin {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid var(--accent-cyan);
    border-left-color: transparent;
    border-right-color: transparent;
    animation: spin 1s infinite linear;
    position: relative;
}
.loader-coin::before {
    /* content: '₹'; */
    position: absolute;
    font-size: 2rem;
    color: var(--accent-cyan);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1s infinite ease-in-out;
}
.loader-text {
    margin-top: 1.5rem;
    color: var(--text-dark);
    letter-spacing: 2px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes pulse {
    50% { opacity: 0.5; }
}

/* --- HEADER --- */
#main-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background-color 0.3s, backdrop-filter 0.3s;
    height: var(--header-height);
    display: flex;
    align-items: center;
}
#main-header.scrolled {
    background-color: rgba(2, 4, 18, 0.8);
    backdrop-filter: blur(10px);
}
#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}
.logo span {
    color: var(--accent-cyan);
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
}
.nav-links a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px var(--accent-cyan);
}

/* --- MOBILE MENU BUTTON --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-light);
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* --- MOBILE SIDEBAR --- */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-logo {
    height: 40px;
    /* filter: brightness(0) invert(1); Makes the logo white */
}

.sidebar-close {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.sidebar-close:hover {
    color: var(--accent-cyan);
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    color: var(--accent-cyan);
    background: rgba(0, 224, 255, 0.1);
    border-left-color: var(--accent-cyan);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- HERO SECTION --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 1rem;
    text-align: center;
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(0, 224, 255, 0.5));
    transition: all 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 30px rgba(0, 224, 255, 0.8));
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
#hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    text-shadow: 0 0 25px rgba(10, 132, 255, 0.5);
}
#hero-title::after {
    content: '_';
    animation: blink 0.7s infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}
.tagline {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-dark);
    margin-bottom: 2rem;
}
.countdown {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 2.5rem;
    text-shadow: var(--glow-shadow);
}
.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}
.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 0;
    border: 2px solid transparent;
    white-space: nowrap;
    min-width: 180px;
    text-align: center;
}
.btn-primary {
    background-color: var(--primary-blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(10, 132, 255, 0.5);
}
.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(10, 132, 255, 0.7);
}
.btn-secondary {
    background-color: transparent;
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}
.btn-secondary:hover {
    background-color: rgba(0, 224, 255, 0.1);
    box-shadow: var(--glow-shadow);
    transform: translateY(-5px);
}

/* Specific styling for hero track buttons */
.hero-buttons .btn-secondary {
    background: linear-gradient(135deg, #c864ff 0%, #8b5cf6 100%);
    color: #fff;
    border-color: #c864ff;
    box-shadow: 0 0 20px rgba(200, 100, 255, 0.5);
}
.hero-buttons .btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(200, 100, 255, 0.7);
    background: linear-gradient(135deg, #d946ef 0%, #9333ea 100%);
}

/* --- 3D SPHERE --- */
.sphere-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    z-index: 1;
}
.sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(300px, 60vw, 700px);
    height: clamp(300px, 60vw, 700px);
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateX(-15deg);
    animation: rotate-sphere 30s infinite linear;
    opacity: 0.15;
}
.sphere::before, .sphere::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    box-sizing: border-box;
}
.sphere::after {
    transform: rotateY(90deg);
}
@keyframes rotate-sphere {
    to { transform: translate(-50%, -50%) rotateX(-15deg) rotateY(360deg); }
}

/* --- ABOUT SECTION --- */
.about-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: var(--glow-shadow);
    transform-style: preserve-3d;
}
.about-content {
    transform: translateZ(20px);
}
.about-content h2 {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}
.about-content p {
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 2rem;
}
.btn-disabled {
    background-color: rgba(165, 177, 204, 0.2);
    color: var(--text-dark);
    cursor: not-allowed;
}


/* --- STATS SECTION --- */
#stats-section {
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: var(--glow-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 224, 255, 0.3), var(--glow-shadow);
}

.stat-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px rgba(0, 224, 255, 0.7);
}

.stat-label {
  font-size: 1rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.region-stats {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: var(--glow-shadow);
}

.region-title {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  text-shadow: var(--glow-shadow);
}

.region-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.region-list li {
  background: rgba(0, 224, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid rgba(0, 224, 255, 0.2);
  transition: all 0.2s ease;
}

.region-list li:hover {
  background: rgba(0, 224, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--text-light);
}

/* --- GENDER BREAKDOWN STYLES --- */
.gender-breakdown {
  display: flex;
  justify-content: space-around;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.gender-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.gender-icon {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.gender-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 224, 255, 0.5);
}

.gender-label {
  font-size: 0.8rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- ENHANCED REGION STYLES --- */
.region-subtitle {
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-style: italic;
}

.region-map-container {
  position: relative;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.region-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.region-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-shadow);
  transform: translateY(-5px) scale(1.02);
}

.region-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 224, 255, 0.1) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.4s ease;
  opacity: 0;
}

.region-card:hover::before {
  transform: scale(2);
  opacity: 1;
}

.region-pin {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.region-pin svg {
  width: 32px;
  height: 32px;
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 8px rgba(0, 224, 255, 0.5));
  transition: all 0.3s ease;
}

.region-card:hover .region-pin svg {
  color: #ffffff;
  filter: drop-shadow(0 0 12px rgba(0, 224, 255, 0.8));
  transform: scale(1.1);
}

.region-card h4 {
  color: var(--accent-cyan);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 10px rgba(0, 224, 255, 0.3);
}

.region-card p {
  color: var(--text-dark);
  font-size: 0.9rem;
  margin: 0;
}

.additional-regions {
  margin-top: 2rem;
  text-align: center;
}

.more-regions {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 500;
}

.region-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.region-tag {
  background: rgba(0, 224, 255, 0.1);
  color: var(--text-light);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(0, 224, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.region-tag:hover {
  background: rgba(0, 224, 255, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

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

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .gender-breakdown {
    flex-direction: row;
    gap: 1rem;
  }
  
  .gender-item {
    flex: 1;
  }
  
  .gender-count {
    font-size: 1.2rem;
  }
  
  .region-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .region-card {
    padding: 1rem;
  }
  
  .region-card h4 {
    font-size: 1.1rem;
  }
  
  .region-pin {
    font-size: 1.5rem;
  }
  
  .region-pin svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gender-breakdown {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }
  
  .gender-count {
    font-size: 1rem;
  }
  
  .gender-label {
    font-size: 0.7rem;
  }
  
  .region-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  
  .region-card {
    padding: 0.8rem;
  }
  
  .region-card h4 {
    font-size: 1rem;
  }
  
  .region-card p {
    font-size: 0.8rem;
  }
  
  .region-tag {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .region-pin svg {
    width: 20px;
    height: 20px;
  }
}


/* --- TIMELINE SECTION --- */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-content {
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}
.timeline-item:hover .timeline-content {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-shadow);
    transform: scale(1.05);
}
.timeline-dot {
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: var(--glow-shadow);
    z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}
.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}
.timeline-content h3 { color: var(--accent-cyan); }

/* --- SPONSORS SECTION --- */
.sponsor-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.sponsor-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    width: 280px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.sponsor-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.sponsor-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.sponsor-logo h3 {
    color: var(--accent-cyan);
    margin: 0.5rem 0 0;
    font-size: 1.2rem;
}

.sponsor-details {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sponsor-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.4;
}

.sponsor-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-cyan));
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: center;
    width: 80%;
}

.sponsor-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 132, 255, 0.4);
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-cyan);
}

.sponsor-card:hover .sponsor-logo img {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sponsor-card {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .sponsor-logo img {
        width: 100px;
        height: 100px;
    }
    
    .sponsor-card {
        padding: 1.2rem;
    }
}


/* --- FAQ SECTION --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    background: transparent;
    border: none;
    color: var(--text-light);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-size: 1.8rem;
    color: var(--accent-cyan);
    transition: transform 0.3s;
}
.faq-question.active::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-dark);
}

/* --- FOOTER --- */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    position: relative;
    z-index: 10;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-content .btn {
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 100;
}
.footer-brand h3 {
    font-size: 2rem;
    color: var(--accent-cyan);
}
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}
.footer-socials {
    display: flex;
    gap: 1.5rem;
}
.footer-socials a {
    color: var(--text-dark);
    transition: all 0.3s ease;
}
.footer-socials a:hover {
    color: var(--accent-cyan);
    transform: translateY(-3px);
}
.footer-map {
    width: 250px;
    max-width: 250px;
}
.footer-socials svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.copyright {
    color: var(--text-dark);
    font-size: 0.9rem;
}



/* --- TEAM PAGE --- */
.major-council-container {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.major-council-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: var(--glow-shadow);
    text-align: center;
    max-width: 500px;
    position: relative;
    transition: all 0.3s ease;
}

.major-council-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 224, 255, 0.3);
}

.council-logo, .chapter-logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem auto;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.council-logo img, .chapter-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.council-name, .chapter-name {
    color: var(--accent-cyan);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.council-description, .chapter-description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.council-links, .chapter-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 224, 255, 0.3);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.chapter-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: var(--glow-shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 224, 255, 0.2);
}

.chapter-card .chapter-logo {
    width: 150px;
    height: 150px;
}

.chapter-card .chapter-name {
    font-size: 1.5rem;
}

.chapter-card .chapter-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.chapter-card .chapter-links {
    gap: 0.8rem;
}

.chapter-card .social-link {
    width: 45px;
    height: 45px;
}

.chapter-card .social-link svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .major-council-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .council-logo, .chapter-logo {
        width: 120px;
        height: 120px;
    }
    
    .council-name, .chapter-name {
        font-size: 1.5rem;
    }
    
    .chapters-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .chapter-card {
        padding: 2rem;
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .major-council-card {
        padding: 1.5rem;
    }
    
    .chapter-card {
        padding: 1.5rem;
    }
    
    .council-logo, .chapter-logo {
        width: 100px;
        height: 100px;
    }
    
    .council-name, .chapter-name {
        font-size: 1.3rem;
    }
    
    .council-description, .chapter-description {
        font-size: 0.9rem;
    }
}

/* --- SUBPAGES --- */
.subpage-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.subpage-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 16px;
    text-align: center;
    max-width: 800px;
    box-shadow: var(--glow-shadow);
    position: relative;
    z-index: 10;
}

.subpage-container .btn {
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 100;
}
.subpage-container h1 {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}
.subpage-container p {
    color: var(--text-dark);
    margin-bottom: 2rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    /* Header mobile styles */
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Adjust header height for mobile */
    #main-header {
        padding: 1rem 0;
        height: 60px;
    }
    
    .logo img {
        height: 50px !important;
    }
    
    /* Adjust subpage body padding for mobile header */
    .subpage-body {
        padding-top: 60px;
    }
    
    /* Hero section mobile adjustments */
    .hero-logo {
        width: 140px;
        margin-bottom: 1.5rem;
    }
    
    #hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        margin-bottom: 1rem;
    }
    
    .tagline {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 1.5rem;
    }
    
    .countdown {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        margin-bottom: 2rem;
    }
    
    /* Timeline mobile adjustments */
    .timeline-container {
        padding: 0 1rem;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    
    .timeline-dot {
        left: 22px;
    }
    
    /* Sponsor section mobile adjustments */
    .sponsor-logos {
        gap: 1rem;
    }
    
    .sponsor-logo {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* FAQ mobile adjustments */
    .faq-container {
        padding: 0 1rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Container adjustments */
    .container {
        padding: 0 1rem;
    }
    
    /* Hero logo mobile adjustments */
    .hero-logo {
        width: 120px;
        margin-bottom: 1rem;
    }
    
    /* Hero buttons mobile layout */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Section spacing */
    .content-section {
        /* padding: 3rem 0; */
        padding: 6rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* About card mobile padding */
    .about-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    /* Theme card mobile padding */
    .theme-card {
        margin: 0 1rem;
    }
    
    /* Footer mobile adjustments */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-right {
        align-items: center;
    }
    
    .footer-map {
        width: 100%;
        max-width: 300px;
    }
    
    .copyright {
        padding: 1rem;
        text-align: center;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    #hero-title {
        font-size: 2rem;
    }
    
    .about-card,
    .timeline-content {
        padding: 2rem;
    }
    
    .sponsor-logos {
        gap: 2rem;
    }
}

/* Landscape mode fixes */
@media (max-height: 600px) and (orientation: landscape) {
    #hero {
        height: auto;
        min-height: 100vh;
        padding: 6rem 0;
    }
    
    .hero-content {
        margin: 2rem auto;
    }
    
    #hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .hero-buttons {
        margin-top: 1.5rem;
    }
}

/* --- SOFTWARE/HARDWARE SUBPAGE STYLES --- */
.subpage-body {
    display: block; /* Override flex to allow scrolling */
    padding-top: var(--header-height);
}

#subpage-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    text-align: center;
}

#subpage-hero .hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.code-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--bg-color)),
                repeating-linear-gradient(0deg, 
                    rgba(0, 224, 255, 0) 0, 
                    rgba(0, 224, 255, 0.2) 1px, 
                    transparent 1px, 
                    transparent 12px);
    background-size: 100% 100%, 100% 24px;
    animation: anim-code-stream 20s linear infinite;
    opacity: 0.3;
    z-index: 0;
}

@keyframes anim-code-stream {
    from { background-position: 0 0; }
    to { background-position: 0 -480px; }
}

/* --- PRIZE POOL SECTION --- */
.prize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.prize-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    margin: 1rem;
}
.prize-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-shadow);
    transform: translateY(-10px) scale(1.05);
}
.prize-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.prize-card h3 {
    font-size: 1.8rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}
.prize-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.prize-desc {
    color: var(--text-dark);
}

/* --- PROBLEM STATEMENT SECTION --- */
.problem-statement-card {
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    margin: 0 2rem;
}
.problem-statement-card p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}
.glitch {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    position: relative;
    letter-spacing: 2px;
}
.glitch:before, .glitch:after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.glitch:before {
    left: -2px;
    text-shadow: 1px 0 #0A84FF;
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.glitch:after {
    left: 2px;
    text-shadow: -1px 0 #E81Cff;
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    10% { clip: rect(17px, 9999px, 96px, 0); }
    20% { clip: rect(50px, 9999px, 52px, 0); }
    /* ... add more steps for variety ... */
    100% { clip: rect(50px, 9999px, 100px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(2px, 9999px, 98px, 0); }
    /* ... add more steps ... */
    100% { clip: rect(80px, 9999px, 50px, 0); }
}


/* --- IMAGE GALLERY SECTION --- */
.gallery-container {
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glow-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    box-sizing: border-box;
}

.gallery-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    min-width: 100%;
    max-width: 100%;
}

.gallery-slide:hover {
    transform: scale(1.05);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(2, 4, 18, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
    background-color: var(--primary-blue);
    box-shadow: 0 0 15px var(--primary-blue);
}

.gallery-nav-btn.prev {
    left: 1rem;
}

.gallery-nav-btn.next {
    right: 1rem;
}

.gallery-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--glass-border);
    transition: all 0.3s ease;
    cursor: none;
}

.gallery-dot.active {
    background-color: var(--accent-cyan);
    transform: scale(1.2);
    box-shadow: var(--glow-shadow);
}

@media (max-width: 600px) {
  .gallery-container {
    margin: 1rem 0.5rem;
  }
  .problem-statement-card {
    margin: 0 0.5rem;
    padding: 2rem 0.5rem;
  }
}



/* --- THEME SECTION --- */
.theme-layout {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.theme-content {
    flex: 1.5;
    text-align: center; /* Centers the heading and paragraphs */
}

.theme-content h3 {
    font-size: 2.2rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.theme-content p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    max-width: 500px; /* Constrains paragraph width for better reading */
    margin-left: auto;
    margin-right: auto;
}

.theme-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
    display: inline-block;
    text-align: left; /* Aligns list text for readability */
}

.theme-content li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.theme-icon {
    font-size: 1.2rem;
    color: var(--accent-cyan);
}

.theme-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 300px;
}

.graph-container {
    display: flex;
    gap: 1rem;
    width: 100%;
    height: 100%;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    border-bottom: 2px solid var(--glass-border);
}

.graph-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-blue), var(--accent-cyan));
    border-radius: 4px 4px 0 0;
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.5);
    height: var(--height);
    animation: grow-and-pulse 2s ease-in-out infinite alternate;
    transform-origin: bottom;
}

.graph-bar:nth-child(2) { animation-delay: 0.2s; }
.graph-bar:nth-child(3) { animation-delay: 0.4s; }
.graph-bar:nth-child(4) { animation-delay: 0.6s; }
.graph-bar:nth-child(5) { animation-delay: 0.8s; }

@keyframes grow-and-pulse {
    0% { transform: scaleY(0.1); opacity: 0.5; }
    100% { transform: scaleY(1); opacity: 1; }
}

/* RESPONSIVE STYLES FOR THEME SECTION */
@media (max-width: 768px) {
    .theme-layout {
        flex-direction: column; /* Stack columns on mobile */
    }
    .theme-visual {
        width: 100%;
        margin-top: 2rem;
    }
}

/* --- THEME LAYOUT: Always horizontal except on very small screens --- */
.theme-layout {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 3rem;
}
.theme-content {
  flex: 1.5;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.theme-visual {
  flex: 1;
  min-width: 180px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 220px;
}
@media (max-width: 900px) {
  .theme-layout {
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  .theme-layout {
    flex-direction: row;
    gap: 1rem;
  }
  .theme-content, .theme-visual {
    min-width: 120px;
  }
}
@media (max-width: 600px) {
  .theme-layout {
    flex-direction: column;
    gap: 1.2rem;
  }
  .theme-content, .theme-visual {
    min-width: 0;
  }
  .theme-visual {
    display: none !important;
  }
  .graph-container {
    width: 100%;
    min-width: 220px;
    max-width: 100vw;
    overflow-x: auto;
    justify-content: center;
    align-items: flex-end;
    padding: 0.5rem 0.2rem;
    gap: 0.5rem;
  }
  .graph-bar {
    min-width: 18px;
    max-width: 32px;
  }
}
@media (max-width: 400px) {
  .theme-layout {
    gap: 0.5rem;
  }
}

/* --- THEME CARD (for Theme Section) --- */
.theme-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: var(--glow-shadow);
  margin: 0 auto 3rem auto;
  max-width: 1000px;
}

@media (max-width: 900px) {
  .theme-card {
    padding: 2rem 1rem;
    max-width: 92vw;
  }
}
@media (max-width: 600px) {
  .theme-card {
    padding: 1rem 0.5rem;
    border-radius: 10px;
  }
  .theme-layout {
    gap: 1.2rem;
  }
  .theme-content h3 {
    font-size: 1.3rem;
  }
  .theme-content p,
  .theme-content li {
    font-size: 0.98rem;
  }
  .graph-container {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  .graph-bar {
    min-width: 12px;
    max-width: 22px;
  }
}
@media (max-width: 400px) {
  .theme-card {
    padding: 0.5rem 0.2rem;
  }
  .theme-content h3 {
    font-size: 1.1rem;
  }
}

/* --- EVENT DETAILS SECTION --- */
.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 224, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.2);
    transform: translateY(-2px);
}

.detail-icon {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    min-width: 30px;
}

.detail-item strong {
    color: var(--accent-cyan);
}

/* --- WHY HACKCELESTIAL SECTION --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.why-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-shadow);
    transform: translateY(-5px) scale(1.02);
}

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.why-card h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* --- PROBLEM CATEGORIES SECTION --- */
.categories-container {
    max-width: 900px;
    margin: 0 auto;
}

.category-item {
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.category-item:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.3);
    transform: translateY(-5px);
}

.category-question {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--glass-bg);
    border: none;
    color: var(--text-light);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.category-question:hover {
    color: var(--accent-cyan);
    background: rgba(0, 224, 255, 0.1);
}

.category-question::after {
    content: '›';
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--accent-cyan);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    margin-left: auto;
    transform: rotate(90deg);
}

.category-question.active::after {
    transform: rotate(-90deg);
}

.category-icon {
    font-size: 2rem;
    color: var(--accent-cyan);
    min-width: 40px;
    text-align: center;
    transition: transform 0.3s ease;
}

.category-question:hover .category-icon {
    transform: scale(1.1);
}

.category-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    background: rgba(2, 4, 18, 0.3);
    border-top: 1px solid transparent; /* Use transparent border for smooth transition */
}

.category-question.active + .category-answer {
    border-top-color: var(--glass-border);
}

.category-answer p {
    padding: 1.5rem 2rem 0 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.sample-problems {
    padding: 0 2rem 1.5rem 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.sample-problems h4 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.sample-problems ul {
    list-style: none;
    padding-left: 0;
}

.sample-problems li {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.sample-problems li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* --- RESPONSIVE STYLES FOR NEW SECTIONS --- */
@media (max-width: 768px) {
    .event-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Hide Why HackCelestial section on mobile */
    #why-hackcelestial {
        display: none;
    }
    
    .category-question {
        padding: 1rem;
        font-size: 1.05rem;
        min-height: 75px;
        align-items: center;
        line-height: 1.3;
    }
    
    .category-icon {
        font-size: 1.5rem;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    .event-details {
        margin-top: 1.5rem;
    }
    
    .detail-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .category-question {
        padding: 0.75rem;
        font-size: 0.95rem;
        min-height: 70px;
        align-items: center;
        line-height: 1.3;
    }
    
    .sample-problems {
        padding: 0 0.75rem 0.75rem;
    }
}

/* --- EVENT DETAILS SECTION --- */
.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 224, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.2);
    transform: translateY(-2px);
}

.detail-icon {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    min-width: 30px;
}

.detail-item strong {
    color: var(--accent-cyan);
}

/* --- WHY HACKCELESTIAL SECTION --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.why-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-shadow);
    transform: translateY(-5px) scale(1.02);
}

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.why-card h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* --- PROBLEM CATEGORIES SECTION --- */
.categories-container {
    max-width: 900px;
    margin: 0 auto;
}

.category-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-item:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.2);
}

.category-question {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    background: transparent;
    border: none;
    color: var(--text-light);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.category-question:hover {
    color: var(--accent-cyan);
}

.category-question::after {
    content: '+';
    font-size: 2rem;
    color: var(--accent-cyan);
    transition: transform 0.3s;
    margin-left: auto;
}

.category-question.active::after {
    transform: rotate(45deg);
}

.category-icon {
    font-size: 1.8rem;
    color: var(--accent-cyan);
    min-width: 40px;
    text-align: center;
}

.category-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.category-answer p {
    padding: 0 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.sample-problems {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 1rem;
    padding-top: 1rem;
}

.sample-problems h4 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.sample-problems ul {
    list-style: none;
    padding-left: 0;
}

.sample-problems li {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.sample-problems li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* --- ENHANCED HACKCELESTIAL TITLE STYLING --- */
.enhanced-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
}

/* Mobile: Original section-title styling */
@media (max-width: 768px) {
    .enhanced-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        color: var(--accent-cyan);
        text-shadow: 0 0 15px var(--accent-cyan);
        display: block;
        flex-direction: unset;
        gap: unset;
        letter-spacing: normal;
        text-transform: none;
    }
    
    .title-gradient,
    .title-glow {
        background: none !important;
        -webkit-text-fill-color: var(--accent-cyan) !important;
        color: var(--accent-cyan) !important;
        text-shadow: 0 0 15px var(--accent-cyan) !important;
        animation: none !important;
        text-transform: none;
    }
    
    .version-badge {
        background: none !important;
        color: var(--accent-cyan) !important;
        border: none !important;
        box-shadow: none !important;
        animation: none !important;
        margin-left: 0;
        top: 0;
        font-size: 1em;
        padding: 0;
        backdrop-filter: none !important;
        border-radius: 0;
        text-shadow: 0 0 15px var(--accent-cyan);
    }
    
    .enhanced-title::before {
        display: none !important;
    }
    
    /* Make it look like one continuous title */
    .enhanced-title .title-gradient::after {
        content: "";
    }
    .enhanced-title .title-glow::after {
        content: " ";
    }
}

/* Desktop: Enhanced styling with effects */
@media (min-width: 769px) {

.title-gradient {
    background: linear-gradient(135deg, 
        #00E0FF 0%, 
        #0A84FF 25%, 
        #6B5CE7 50%, 
        #FF6B9D 75%, 
        #00E0FF 100%);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s ease-in-out infinite;
    position: relative;
}

.title-glow {
    color: #EAEBF0;
    text-shadow: 
        0 0 10px rgba(0, 224, 255, 0.8),
        0 0 20px rgba(0, 224, 255, 0.6),
        0 0 30px rgba(0, 224, 255, 0.4),
        0 0 40px rgba(0, 224, 255, 0.2);
    animation: pulse-glow 2s ease-in-out infinite alternate;
    position: relative;
}

.version-badge {
    font-size: 0.6em;
    background: linear-gradient(45deg, #FF6B9D, #6B5CE7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 25px;
    margin-left: 1rem;
    box-shadow: 
        0 4px 15px rgba(255, 107, 157, 0.3),
        0 0 20px rgba(107, 92, 231, 0.2);
    animation: float 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    top: -0.5rem;
}

/* Animations */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse-glow {
    0% { 
        text-shadow: 
            0 0 10px rgba(0, 224, 255, 0.8),
            0 0 20px rgba(0, 224, 255, 0.6),
            0 0 30px rgba(0, 224, 255, 0.4),
            0 0 40px rgba(0, 224, 255, 0.2);
    }
    100% { 
        text-shadow: 
            0 0 15px rgba(0, 224, 255, 1),
            0 0 30px rgba(0, 224, 255, 0.8),
            0 0 45px rgba(0, 224, 255, 0.6),
            0 0 60px rgba(0, 224, 255, 0.4);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(2deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

/* Enhanced title hover effects */
.enhanced-title:hover .title-gradient {
    animation-duration: 1s;
}

.enhanced-title:hover .title-glow {
    text-shadow: 
        0 0 20px rgba(0, 224, 255, 1),
        0 0 40px rgba(0, 224, 255, 0.8),
        0 0 60px rgba(0, 224, 255, 0.6),
        0 0 80px rgba(0, 224, 255, 0.4),
        0 0 100px rgba(0, 224, 255, 0.2);
}

.enhanced-title:hover .version-badge {
    transform: translateY(-15px) rotate(5deg) scale(1.1);
    box-shadow: 
        0 8px 25px rgba(255, 107, 157, 0.5),
        0 0 30px rgba(107, 92, 231, 0.4);
}

    /* Add particle effect behind title */
    .enhanced-title::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 120%;
        height: 120%;
        background: radial-gradient(circle, rgba(0, 224, 255, 0.1) 0%, transparent 70%);
        transform: translate(-50%, -50%);
        z-index: -1;
        animation: particle-pulse 4s ease-in-out infinite;
    }

    @keyframes particle-pulse {
        0%, 100% { 
            transform: translate(-50%, -50%) scale(1);
            opacity: 0.3;
        }
        50% { 
            transform: translate(-50%, -50%) scale(1.2);
            opacity: 0.1;
        }
    }
} /* End desktop media query */