/* =====================================================
   HOMEPAGE STYLES - IITG ODP CODING CLUB
   ===================================================== */

/* --- Base styles are kept, with layout matching the wireframe --- */

/* Global reset for consistent cross-browser rendering */
* {
  margin: 0; /* Remove default margins */
  padding: 0; /* Remove default padding */
  box-sizing: border-box; /* Include padding/border in element dimensions */
}

/* Body styling with dark theme and gradient background */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* Modern font stack */
  /* Complex gradient background using CSS custom properties for consistency */
  background: linear-gradient(
    135deg,
    /* Diagonal gradient direction */ var(--bg-dark) 0%,
    /* Start color - deepest blue */ var(--bg-darker) 50%,
    /* Middle color - medium blue */ var(--bg-darkest) 100%
      /* End color - darkest blue */
  );
  color: var(--text); /* Use CSS custom property for text color */
  line-height: 1.6; /* Improved readability with proper line spacing */
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

/* ================================================
   HEADER & NAVIGATION SYSTEM
   ================================================ */

/* Fixed header with glassmorphism effect */
.header {
  position: fixed; /* Stay at top during scroll */
  top: 0;
  width: 100%;
  z-index: 1000; /* Ensure header stays above other content */
  
}

/* Navigation container with flexbox layout */
.nav {
  display: flex;
  justify-content: space-between; /* Logo left, navigation right */
  align-items: center; /* Vertically center items */
  padding: 0rem 1rem; /* Internal spacing */
  max-width: 1200px; /* Constrain width on large screens */
  margin: 20px auto; /* Center navigation container */

  border-radius: 25px; /* Made the corners softer */

  background: rgba(0, 0, 0, 0.05); /* Semi-transparent dark background */
  backdrop-filter: blur(25px); /* Glassmorphism blur effect for modern look */
  border: 1.5px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
  transform: translateY(0); /* Ensure header is always visible */
  transition: transform 0.3s ease; /* Smooth transitions if needed */
}

/* Logo styling with brand color */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary); /* Use CSS custom property for brand color */
  text-decoration: none; /* Remove underline from link */

  margin-left: 2.5rem;
}

#clubLogo {
  width: 175px;
}

/* Navigation links container with flexbox */
.nav-links {
  margin-right: 3rem;
  display: flex;
  gap: 2rem; /* Space between navigation items */
  list-style: none; /* Remove bullet points from list */
}

/* Base navigation link styling */
.nav-links a {
  color: var(--text); /* Default text color */
  text-decoration: none; /* Remove underlines */
  transition: color 0.3s ease; /* Smooth color transitions on hover */
  position: relative; /* Required for pseudo-element positioning */
}

/* Active navigation link styling - highlights current page */
.nav-links a.active {
  color: var(--primary); /* Brand color for active state */
  font-weight: bold; /* Emphasize active link */
  background: var(--primary); /* Background highlight */
  color: var(--text); /* Text color override */
  border-radius: 8px; /* Rounded corners */
  padding: 0.25em 0.5em; /* Pill-shaped padding */
}

/* Navigation link hover effects */
.nav-links a:hover {
  color: var(--primary); /* Brand color on hover */
  background: rgba(0, 212, 255, 0.08); /* Subtle background highlight */
  border-radius: 8px; /* Rounded hover state */
  padding: 0.25em 0.5em; /* Consistent padding with active state */
}

/* Animated underline effect using pseudo-elements */
.nav-links a::after {
  content: ""; /* Required for pseudo-element */
  position: absolute; /* Position relative to parent link */
  bottom: -5px; /* Below the text */
  left: 0;
  width: 0; /* Start with no width */
  height: 2px; /* Thin underline */
  background: var(--primary); /* Brand color underline */
  transition: width 0.3s ease; /* Smooth width animation */
}

/* Expand underline on hover and active states */
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%; /* Full width underline on hover/active */
}

/* Search bar styling with glassmorphism effect */
.search-bar {
  padding: 0.5rem 1rem; /* Internal spacing */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Semi-transparent border */
  border-radius: 25px; /* Pill-shaped input */
  background: rgba(255, 255, 255, 0.1); /* Glassmorphism background */
  color: var(--text); /* Text color */
  outline: none; /* Remove default focus outline */
  transition: all 0.3s ease; /* Smooth focus transitions */
}

/* Search bar focus state */
.search-bar:focus {
  border-color: var(--primary); /* Brand color border on focus */
  background: rgba(255, 255, 255, 0.15); /* Slightly more opaque on focus */
}

/* ================================================
   LAYOUT CONTAINERS
   ================================================ */

/* Main content container with responsive max-width */
.container {
  max-width: 1200px; /* Optimal reading width */
  margin: 0 auto; /* Center container */
  padding: 0 2rem; /* Horizontal padding for content */
}

/* ================================================
   HERO SECTION - MAIN LANDING AREA
   ================================================ */

/* Hero section with split-screen layout */
.hero {
  padding-top: 140px; /* Account for fixed header height */
  padding-bottom: 80px; /* Bottom spacing */
  display: grid; /* CSS Grid for layout */
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 4rem; /* Space between content and visual */
  align-items: center; /* Vertically center content */
  min-height: 80vh; /* Minimum viewport height for impact */
}

/* Hero content text styling */
.hero-content h1 {
  font-size: 3.5rem; /* Large impact font size */
  margin-bottom: 1.5rem; /* Space below heading */
  line-height: 1.2; /* Tight line spacing for headings */
  min-height: 4.5em; /* Reserve space for typewriter animation */
  display: block; /* Block-level for consistent layout */
}

/* Gradient text effect for highlighted words */
.hero-content .highlight {
  /* Create gradient background that will be clipped to text */
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  -webkit-background-clip: text; /* Webkit-specific property */
  -webkit-text-fill-color: transparent; /* Make text transparent to show background */
  background-clip: text; /* Standard property for future compatibility */
}

/* Hero description paragraph */
.hero-content p {
  font-size: 1.2rem; /* Slightly larger than body text */
  margin-bottom: 2rem; /* Space before call-to-action buttons */
  opacity: 0.9; /* Subtle transparency for hierarchy */
  max-width: 500px; /* Constrain width for readability */
}

/* Call-to-action buttons container */
.cta-buttons {
  display: flex; /* Horizontal layout for buttons */
  gap: 1rem; /* Space between buttons */
}

/* Base button styling */
.btn {
  padding: 12px 24px; /* Comfortable click target size */
  border: none; /* Remove default button border */
  border-radius: 8px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor for interactivity */
  font-size: 1rem; /* Readable font size */
  transition: all 0.3s ease; /* Smooth hover animations */
  text-decoration: none; /* Remove underlines from links styled as buttons */
  display: inline-block; /* Allow width/height while staying inline */
}

/* Primary button with gradient background */
.btn-primary {
  background: linear-gradient(135deg, #00d4ff, #0099cc); /* Brand gradient */
  color: white; /* White text for contrast */
}

/* Secondary button with outline style */
.btn-secondary {
  background: transparent; /* No background fill */
  color: #00d4ff; /* Brand color text */
  border: 2px solid #00d4ff; /* Brand color border */
}

/* Button hover effects */
.btn:hover {
  transform: translateY(-2px); /* Subtle lift effect */
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3); /* Glowing shadow */
}

/* ================================================
   HERO VISUAL SECTION - 3D CUBE ANIMATION
   ================================================ */

/* Container for 3D visual element */
.hero-visual {
  display: flex;
  align-items: center; /* Vertically center cube */
  justify-content: center; /* Horizontally center cube */
  height: 350px; /* Fixed height for consistent layout */
  background: rgba(0, 212, 255, 0.05); /* Subtle background tint */
  border: 1px solid rgba(0, 212, 255, 0.1); /* Subtle border */
  border-radius: 15px; /* Rounded container */
  perspective: 1000px; /* 3D perspective for child elements - crucial for 3D effect */
}

/* ================================================
   3D CUBE ANIMATION SYSTEM
   ================================================ */

/* 3D Cube container with transform-style preservation */
.cube {
  width: 200px; /* Cube dimensions */
  height: 200px;
  position: relative; /* Positioning context for faces */
  transform-style: preserve-3d; /* CRITICAL: Preserves 3D positioning of child elements */
  animation: rotate-cube 20s infinite linear; /* Continuous rotation animation */
}

/* Keyframe animation for smooth 3D rotation */
@keyframes rotate-cube {
  from {
    transform: rotateX(0) rotateY(0); /* Start position */
  }
  to {
    transform: rotateX(360deg) rotateY(360deg); /* Full rotation on both axes */
  }
}

/* Individual cube face styling - each face is positioned in 3D space */
.face {
  position: absolute; /* Absolute positioning for 3D transforms */
  width: 200px; /* Match cube dimensions */
  height: 200px;
  border: 2px solid #00d4ff; /* Brand color borders */
  background: rgba(0, 212, 255, 0.1); /* Semi-transparent fill */
  backdrop-filter: blur(5px); /* Glassmorphism effect */
  display: flex; /* Center content within each face */
  align-items: center;
  justify-content: center;
}

/* Images within cube faces */
.face img {
  width: 100px; /* Consistent image size */
  height: 100px;
  filter: grayscale(1) brightness(2); /* Stylized monochrome effect */
}

/* 3D Positioning for each cube face using CSS transforms */
/* Each face is rotated and translated to form a cube shape */

.front {
  transform: rotateY(0deg) translateZ(100px); /* Front face - no rotation, moved forward */
}

.back {
  transform: rotateY(180deg) translateZ(100px); /* Back face - 180° rotation, moved forward */
}

.right {
  transform: rotateY(90deg) translateZ(100px); /* Right face - 90° rotation, moved forward */
}

.left {
  transform: rotateY(-90deg) translateZ(100px); /* Left face - -90° rotation, moved forward */
}

.top {
  transform: rotateX(90deg) translateZ(100px); /* Top face - X-axis rotation, moved forward */
}

.bottom {
  transform: rotateX(-90deg) translateZ(100px); /* Bottom face - negative X-axis rotation */
}

/* ================================================
   CONTENT SECTIONS & CARDS LAYOUT
   ================================================ */
/* Section containers with consistent vertical spacing */
.section {
  padding: 4rem 0; /* Generous vertical spacing between sections */
}

/* Section header with flex layout for title and "view more" link */
.section-header {
  display: flex;
  justify-content: space-between; /* Title left, link right */
  align-items: center; /* Vertically align items */
  margin-bottom: 2rem; /* Space before content */
}

/* Section title styling */
.section-title {
  font-size: 2rem; /* Prominent section headings */
}

/* "View More" link with animated underline */
.view-more {
  color: #00d4ff; /* Brand color */
  text-decoration: none; /* Remove default underline */
  font-weight: bold; /* Emphasize link */
  border-bottom: 2px solid transparent; /* Hidden underline initially */
  transition: border-color 0.3s; /* Smooth underline animation */
}

/* Show underline on hover */
.view-more:hover {
  border-color: #00d4ff; /* Brand color underline */
}

/* Responsive grid layout for cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  gap: 2rem; /* Space between cards */
}

/* ================================================
   ADVANCED CARD SYSTEM WITH ANIMATED BORDERS
   ================================================ */

/* Card container with animated border effect */
.card {
  position: relative; /* Positioning context for pseudo-elements */
  padding: 2px; /* Space for animated border */
  border-radius: 15px; /* Rounded corners */
  overflow: hidden; /* Contain animated elements */
  background: transparent; /* No default background */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
}

/* Animated rotating border using pseudo-element and conic gradient */
.card::before {
  content: ""; /* Required for pseudo-element */
  position: absolute; /* Position relative to card */
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  width: 200%; /* Larger than card for rotation effect */
  height: 200%;
  /* Conic gradient creates a spinning light effect */
  background: conic-gradient(
    from 0deg at 50% 50%,
    /* Start angle and center point */ #00d4ff,
    /* Brand color segments */ transparent,
    /* Transparent segments create gaps */ transparent,
    #00d4ff
  );
  transform: translate(-50%, -50%); /* Perfect centering */
  animation: spin 4s linear infinite; /* Continuous rotation */
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease; /* Smooth fade in/out */
}

/* Keyframe animation for border rotation */
@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg); /* Start position */
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg); /* Full rotation */
  }
}

/* Card content with glassmorphism background */
.card-content {
  /* Multi-stop gradient background for depth */
  background: linear-gradient(
    145deg,
    rgba(26, 26, 46, 0.9),
    /* Lighter dark blue */ rgba(15, 15, 35, 0.9) /* Darker blue */
  );
  backdrop-filter: blur(10px); /* Glassmorphism blur effect */
  border-radius: 15px; /* Slightly smaller radius than container */
  padding: 2rem; /* Internal spacing */
  height: 100%; /* Fill container height */
  position: relative; /* Above animated border */
  z-index: 1; /* Ensure content stays above border animation */
}

/* Card hover effects */
.card:hover {
  transform: translateY(-10px); /* Lift effect on hover */
}

/* Show animated border on hover */
.card:hover::before {
  opacity: 1; /* Fade in the rotating border */
}

/* Card title styling */
.card h3 {
  color: #00d4ff; /* Brand color for headings */
  margin-bottom: 1rem; /* Space below heading */
  font-size: 1.3rem; /* Slightly larger than body text */
}

/* Card metadata styling */
.card small {
  opacity: 0.7; /* Subtle styling for secondary text */
}

/* ================================================================================
   ADVANCED CARD SYSTEM FOR THE ABOUT SECTION WITH GLOWING BORDERS WHEN HOVERED ON
   ================================================================================ */

/* Card container */
.about-card {
  position: relative; /* Positioning context for pseudo-elements */
  padding: 2px; /* Space for animated border */
  border-radius: 15px; /* Rounded corners */
  overflow: hidden; /* Contain animated elements */
  background: transparent; /* No default background */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
}

/* Card content with glassmorphism background */
.about-card-content {
  /* Multi-stop gradient background for depth */
  background: linear-gradient(
    145deg,
    rgba(26, 26, 46, 0.9),
    /* Lighter dark blue */ rgba(15, 15, 35, 0.9) /* Darker blue */
  );
  backdrop-filter: blur(10px); /* Glassmorphism blur effect */
  border-radius: 15px; /* Slightly smaller radius than container */
  padding: 2rem; /* Internal spacing */
  height: 100%; /* Fill container height */
  position: relative; /* Above animated border */
  z-index: 1; /* Ensure content stays above border animation */
}

/* Card hover effects */
.about-card:hover {
  transform: translateY(-5px); /* Lift effect on hover */
  box-shadow: 0 0 30px 10px rgba(0, 212, 255, 0.2);
}

/* Card title styling */
.about-card h3 {
  color: #00d4ff; /* Brand color for headings */
  margin-bottom: 1rem; /* Space below heading */
  font-size: 1.3rem; /* Slightly larger than body text */
}

/* Card metadata styling */
.about-card small {
  opacity: 0.7; /* Subtle styling for secondary text */
}

/* ================================================
   UPDATE SOON TEXT STYLES
   ================================================ */
.update-soon {
  /* Text styling for "coming soon" message */
  text-align: center; /* Center the text */
  font-size: 1.5rem; /* Larger font size */
  font-weight: 600; /* Semi-bold text */
  color: #ffffff; /* White text for contrast */
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.5); /* Strong shadow for better readability */
  
  /* Positioning and spacing */
  padding: 2.5rem 0rem 2.5rem 0rem; /* Inner padding */
  margin: 0; /* Remove default margins */
  
  /* Center vertically within parent */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%; /* Take full height of parent */
  gap: 1rem; /* Space between lock icon and text */
  
  /* Ensure text appears above background effects */
  position: relative;
  z-index: 3; /* Above background overlay and blur */
}

/* Specific styling for the lock icon */
#lockIcon{
  font-size: 1.25rem; /* Slightly smaller than text for better balance */
  color: #007cf0;
  /* background: linear-gradient(to bottom, #4de0ff, #00d4ff, #00c0eb); */
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.5); /* Shadow to match text */
  border-radius: 5px;

  /* background-clip: text;
  -webkit-background-clip: text; /* For WebKit browsers */

  /* color: transparent; Fallback for other browsers */
  /* -webkit-text-fill-color: transparent; For WebKit browsers */
}



.background-image {
  /* Background image for "coming soon" section */
  background-image: url(/assets/coming_soon_background.png);
  background-size: cover; /* Scale image to cover entire container */
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Prevent image repetition */
  background-attachment: local; /* Image scrolls with content */
  
  /* Container styling */
  min-height: 200px; /* Minimum height to show background */
  padding: 2rem; /* Inner spacing */
  border-radius: 12px; /* Rounded corners */
  position: relative; /* Positioning context for child elements */
  
  /* Create blurred background effect using pseudo-element */
  overflow: hidden; /* Hide overflow from pseudo-element */
}

/* Pseudo-element to create the blurred background effect */
.background-image::before {
  content: ""; /* Required for pseudo-element */
  position: absolute; /* Position over the entire container */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  /* Same background as parent but blurred */
  background-image: url(/assets/coming_soon_background.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  /* Apply blur effect to the background image */
  filter: blur(8px); /* Blur the background image */
  
  /* Semi-transparent overlay */
  background-color: rgba(0, 0, 0, 0.1); /* Dark overlay for better text contrast */
  background-blend-mode: overlay; /* Blend overlay with background */
  
  /* Ensure it's behind the text */
  z-index: 1; /* Behind text but above container */
}

/* ================================================
   TESTIMONIALS SECTION
   ================================================ */
/* Testimonials section with auto-scrolling animation */
.testimonials {
  padding: 4rem 0; /* Section spacing */
  background: rgba(0, 0, 0, 0.1); /* Subtle background differentiation */
  overflow: hidden; /* Hide scrolling content outside bounds */
}

/* Testimonial slider container */
.testimonial-slider {
  width: 100%; /* Full width container */
  position: relative; /* Positioning context for fade overlays */
}

/* Fade overlay effects using pseudo-elements */
.testimonial-slider::before,
.testimonial-slider::after {
  content: ""; /* Required for pseudo-elements */
  position: absolute; /* Position over slider content */
  top: 0;
  width: 200px; /* Width of fade effect */
  height: 100%; /* Full height of slider */
  z-index: 2; /* Above slider content */
}

/* Left fade overlay - creates seamless infinite scroll illusion */
.testimonial-slider::before {
  left: 0; /* Position at left edge */
  background: linear-gradient(
    to right,
    #1a1a2e,
    transparent
  ); /* Fade from solid to transparent */
}

/* Right fade overlay - matches left side */
.testimonial-slider::after {
  right: 0; /* Position at right edge */
  background: linear-gradient(
    to left,
    #1a1a2e,
    transparent
  ); /* Fade from solid to transparent */
}

/* Testimonial track - contains all testimonial cards */
.testimonial-track {
  display: flex; /* Horizontal layout for cards */
  width: calc(290px * 8); /* Total width: card width × number of cards */
  animation: scroll-left 40s linear infinite; /* Continuous left scroll animation */
}

/* Keyframe animation for infinite horizontal scrolling */
@keyframes scroll-left {
  from {
    transform: translateX(0); /* Start at original position */
  }
  to {
    transform: translateX(-50%); /* Move left by half width for seamless loop */
  }
}

/* Individual testimonial card styling */
.testimonial {
  width: 250px; /* Fixed card width */
  margin: 0 20px; /* Horizontal spacing between cards */
  background: rgba(255, 255, 255, 0.05); /* Glassmorphism background */
  backdrop-filter: blur(25px);
  border-radius: 15px; /* Rounded corners */
  padding: 1.5rem; /* Internal spacing */
  flex-shrink: 0; /* Prevent cards from shrinking */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
}

/* Testimonial header with avatar and name - vertically centered layout */
.testimonial-header {
  display: flex; /* Vertical layout for avatar and name */
  flex-direction: column; /* Stack avatar above name */
  align-items: center; /* Center items horizontally */
  text-align: center; /* Center text alignment */
  margin-bottom: 1rem; /* Space before testimonial text */
}

/* Style the strong tag (name) inside testimonial header */
.testimonial-header strong {
  margin-top: 0.5rem; /* Space between avatar and name */
  font-size: 1rem; /* Adjust name font size */
  color: var(--primary); /* Brand color for names */
}

/* Wrapper for testimonial name to control spacing */
.testimonial-name {
  margin-top: 0.5rem; /* Space between avatar and name */
}

/* Avatar styling with gradient background - centered layout */
.testimonial-avatar {
  width: 60px; /* Slightly larger for better visibility */
  height: 60px;
  background: linear-gradient(135deg, #00d4ff, #0099cc); /* Brand gradient */
  border-radius: 50%; /* Circular avatar */
  box-shadow: 0 0 30px 5px rgba(0, 212, 255, 0.2); /* Glowing shadow */
  display: flex; /* Center image within avatar */
  align-items: center; /* Vertically center image */
  justify-content: center; /* Horizontally center image */
  overflow: hidden; /* Ensure image doesn't overflow rounded borders */
}

/* Avatar image styling */
.testimonial-avatar img {
  width: 100%; /* Fill avatar container */
  height: 100%;
  object-fit: cover; /* Maintain aspect ratio while filling container */
  border-radius: 50%; /* Ensure image is also circular */
}

/* Testimonial text styling */
.testimonial p {
  font-style: italic; /* Italicize testimonial quotes */
  opacity: 0.9; /* Slight transparency for hierarchy */
}

/* ================================================
   ABOUT SECTION
   ================================================ */
/* About section with two-column layout */
.about {
  padding: 6rem 0; /* Extra padding for section emphasis */
  display: contents; /* CSS Grid layout */
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 4rem; /* Space between content and visual */
  align-items: center; /* Vertically center content */
}

.about p {
  font-size: large;
  margin-left: 3%;
  margin-right: 2%;
}

.about ul {
  font-size: large;
  font-weight: bold;
}

.about-content {
  background: rgba(0, 212, 255, 0.05); /* Subtle brand color tint */
  border: 1px solid rgba(0, 212, 255, 0.1); /* Subtle border */
  border-radius: 20px;
  margin-top: 3%;
  margin-bottom: 3%;
}

/* About section visual element */
.about-visual {
  height: 250px; /* Fixed height for consistency */
  background: rgba(0, 212, 255, 0.05); /* Subtle brand color tint */
  border: 1px solid rgba(0, 212, 255, 0.1); /* Subtle border */
  border-radius: 15px; /* Rounded corners */
  display: flex; /* Center icon within container */
  align-items: center; /* Vertically center */
  justify-content: center; /* Horizontally center */
  text-align: center; /* Center any text content */
}

/* Icon within about visual */
.about-visual .icon {
  font-size: 3rem; /* Large decorative icon */
  color: #00d4ff; /* Brand color */
}

/* ================================================
   FOOTER SECTION
   ================================================ */

/* Footer container with dark background */
.footer {
  background: rgba(0, 0, 0, 0.3); /* Dark semi-transparent background */
  padding: 3rem 2rem 1rem; /* Generous padding with less bottom space */
  text-align: center; /* Center all footer content */
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle top border */
}

/* Footer navigation links container */
.footer-links {
  display: flex; /* Horizontal layout */
  justify-content: center; /* Center the links */
  gap: 2rem; /* Space between links */
  margin-bottom: 2rem; /* Space before additional footer content */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Individual footer link styling */
.footer-links a {
  color: #00d4ff; /* Brand color */
  text-decoration: none; /* Remove underlines */
  transition: color 0.3s ease; /* Smooth color transitions */
}

/* Footer link hover state */
.footer-links a:hover {
  color: white; /* White text on hover */
}

/* Active footer link styling - matches navigation */
.footer-links a.active {
  color: var(--primary); /* Brand color */
  font-weight: bold; /* Emphasize active state */
  background: var(--primary); /* Background highlight */
  color: var(--text); /* Text color override */
  border-radius: 8px; /* Rounded corners */
  padding: 0.25em 0.5em; /* Pill-shaped padding */
}

/* Footer link hover effects - matches navigation */
.footer-links a:hover {
  color: var(--primary); /* Brand color on hover */
  background: rgba(0, 212, 255, 0.08); /* Subtle background highlight */
  border-radius: 8px; /* Rounded hover state */
  padding: 0.25em 0.5em; /* Consistent padding */
}

/* ================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ================================================ */

/* Large tablet breakpoint - 3 columns to 2 columns */
@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns instead of 3 */
  }
}

/* Mobile breakpoint - major layout changes */
@media (max-width: 768px) {
  /* Switch two-column layouts to single column */
  .hero,
  .about {
    grid-template-columns: 1fr; /* Single column layout */
    text-align: center; /* Center content on mobile */
  }

  /* Adjust hero content spacing */
  .hero-content p {
    margin: 1rem auto 2rem; /* Center paragraph with auto margins */
  }

  /* Center call-to-action buttons */
  .cta-buttons {
    justify-content: center; /* Center button group */
  }

  .nav {
    padding: 1rem 2rem; /* Internal spacing */
    margin-top: 0%;
  }

  /* Hide navigation links on mobile (hamburger menu would replace this) */
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    margin-right: 0%;
  }

  .logo {
    margin-left: 1.5rem;
  }

  #clubLogo {
    width: 120px;
    margin-right: 1rem;
  }

  /* Fade overlay effects using pseudo-elements */
  .testimonial-slider::before,
  .testimonial-slider::after {
    content: ""; /* Required for pseudo-elements */
    position: absolute; /* Position over slider content */
    top: 0;
    width: 200px; /* Width of fade effect */
    height: 100%; /* Full height of slider */
    z-index: 2; /* Above slider content */
  }

  /* Single column for cards on mobile */
  .cards-grid {
    grid-template-columns: 1fr; /* Force single column */
  }

  /* Stack section headers vertically on mobile */
  .section-header {
    flex-direction: column; /* Vertical layout */
    gap: 1rem; /* Space between title and link */
    align-items: flex-start; /* Align to left edge */
  }
}

/* ================================================
   BACKGROUND PARTICLE SYSTEM
   ================================================ */

/* Particle container - identical to events.css implementation */
.particles {
  position: fixed; /* Fixed to viewport */
  top: 0;
  left: 0;
  width: 100%; /* Full viewport coverage */
  height: 100%;
  pointer-events: none; /* Don't interfere with interactions */
  z-index: -1; /* Behind all content */
}

/* Individual particle styling */
.particle {
  position: absolute; /* Absolute positioning for animation */
  width: 2px; /* Small particle size */
  height: 2px;
  background: #00d4ff; /* Brand color particles */
  opacity: 0.5; /* Semi-transparent for subtle effect */
  animation: float 6s infinite linear; /* Continuous floating animation */
}

/* Particle floating animation - creates upward movement with rotation */
@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg); /* Start below viewport */
    opacity: 0; /* Fade in */
  }
  10% {
    opacity: 0.5; /* Reach full opacity */
  }
  90% {
    opacity: 0.5; /* Maintain opacity */
  }
  100% {
    transform: translateY(-10vh) rotate(360deg); /* End above viewport with rotation */
    opacity: 0; /* Fade out */
  }
}

/* ================================================
   CSS CUSTOM PROPERTIES (THEME VARIABLES)
   ================================================ */

/* Global theme variables for consistent styling and easy updates */
:root {
  --primary: #00d4ff; /* Main brand color - bright cyan */
  --primary-dark: #0099cc; /* Darker brand shade for hover states */
  --bg-dark: #0f0f23; /* Primary dark background */
  --bg-darker: #1a1a2e; /* Secondary dark background */
  --bg-darkest: #16213e; /* Tertiary dark background */
  --text: #fff; /* Primary text color */
  --contrast: #222; /* High contrast color for accessibility */
}

/* ================================================
   ACCESSIBILITY FEATURES
   ================================================ */

/* Skip link for keyboard navigation - hidden by default */
.skip-link {
  position: absolute; /* Position off-screen */
  left: -999px; /* Hide far left */
  top: auto;
  width: 1px; /* Minimal dimensions when hidden */
  height: 1px;
  overflow: hidden; /* Ensure content is hidden */
  z-index: 10000; /* Above all other content when focused */
  background: var(--primary); /* Brand color background */
  color: var(--contrast); /* High contrast text */
  padding: 8px 16px; /* Comfortable padding when visible */
  border-radius: 4px; /* Rounded corners */
  font-weight: bold; /* Emphasize important navigation */
}

/* Show skip link when focused via keyboard */
.skip-link:focus {
  left: 1rem; /* Position on screen */
  top: 1rem;
  width: auto; /* Auto-size to content */
  height: auto;
  outline: 2px solid var(--primary-dark); /* Visible focus indicator */
}

/* ================================================
   UTILITY COMPONENTS
   ================================================ */

/* Scroll to top button */
.scroll-to-top {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1001;
  background: #00d4ff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  cursor: pointer;
}

/* ================================================
   CONSISTENT THEMING FOR INTERACTIVE ELEMENTS
   ================================================ */

/* Base styling for all interactive elements using theme variables */
.nav-links a,
.btn,
.footer-links a {
  color: var(--primary); /* Brand color for all interactive elements */
  background: transparent; /* Transparent background by default */
}

/* Active and hover states for interactive elements */
.nav-links a.active,
.nav-links a:hover,
.btn-primary,
.footer-links a:hover {
  color: var(--text); /* White text for contrast */
  background: var(--primary); /* Brand color background */
}

.typewriter-cursor {
  display: inline-block;
  font-weight: 900;
  font-size: inherit;
  color: #fff;
  animation: blink 1s steps(1) infinite;
  margin-left: 2px;
  margin-top: 7rem !important;
}
@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.hero-title {
  margin-bottom: 0 !important;
}
.hero-subtitle,
.hero-content > p {
  margin-top: 0 !important;
}
.hero-container {
  gap: 2rem !important;
}

.center {
  text-align: center;
}
.mb-2rem {
  margin-bottom: 2rem;
}
.avatar-round {
  border-radius: 50%;
}

/* 404 PAGE STYLES */
body.error-404 {
  background: #0a192f;
  color: #b6eaff;
  font-family: "Segoe UI", "Roboto", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
}
.logo.error-404 {
  margin-bottom: 2rem;
}
.error {
  font-size: 6rem;
  font-weight: bold;
  color: #00d4ff;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px #00d4ff44;
}
.message {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  max-width: 400px;
}
.home-btn {
  background: linear-gradient(90deg, #00d4ff, #007cf0);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.8em 2.2em;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 16px #00d4ff33;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  display: inline-block;
}
.home-btn:hover {
  background: linear-gradient(90deg, #007cf0, #00d4ff);
  transform: translateY(-2px) scale(1.04);
}
@media (max-width: 600px) {
  .error {
    font-size: 3.5rem;
  }
  .message {
    font-size: 1.1rem;
  }
}

.about-title {
  margin-top: 2%;
  margin-left: 3%;
}
.about-indent {
  margin-left: 2%;
}
.about-list {
  margin-left: 7%;
}
.about-indent-right {
  margin-right: 2%;
}
.about-indent-bottom {
  margin-bottom: 3%;
}

.scroll-to-top i {
  color: #fff !important;
}
