/* Interactive Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  /* Allows clicks to pass through */
}

/* --- Universal Styles & Variables --- */
:root {
  --matte-black: #0d0d0d; /* Deeper matte black */
  --deep-charcoal: hsl(0, 0%, 9%); /* For dropdowns/cards */
  --electric-blue: #007bff; /* Main accent */
  --hover-blue: #0056b3;
  --off-white: #e8e8e8; /* Soft, readable text */
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", sans-serif;
}

body {
  background-color: var(--matte-black);
  color: var(--off-white);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* --- Navigation Bar Layout --- */
.main-navigation-bar {
  display: flex;
  justify-content: space-between; /* Center the groups globally */
  gap: 6vw; /* This creates a gap that automatically shrinks as the screen shrinks */
  align-items: center;
  padding: 1.5rem 5%;
  background-color: rgba(13, 13, 13, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(15px);
  transition:
    background-color 0.4s ease,
    box-shadow 0.4s ease;
}

.main-navigation-bar:hover {
  /* A very soft, wide blue glow to match the robotics vibe */
  box-shadow: 0 10px 40px rgba(0, 123, 255, 0.15);

  /* Slightly lighten the matte black to show depth */
  background-color: rgba(20, 20, 20, 0.98);

  /* Optional: a very thin blue line at the bottom on hover */
  border-bottom: 1px solid rgba(0, 123, 255, 0.3);
}

.nav-section {
  display: flex;
  align-items: center;
  flex: 0 1 auto; /* Change from 1 to allow items to naturally size */
}

/* --- Brand/Logo Styling --- */
.logo-container {
  justify-content: center;
  flex: 0 0 auto;
}

.brand-title {
  font-size: 1.7rem; /* Slightly larger to match button weight */
  letter-spacing: 3px;
  font-weight: 800;
  color: var(--off-white);
  text-transform: uppercase;
}

.highlight-blue {
  color: var(--electric-blue);
  text-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

/* --- Left Side Links --- */
.links-group {
  gap: 25px; /* Spacing between links */
}

.nav-item-link,
.dropdown-trigger {
  color: var(--off-white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
  opacity: 0.8;
}

.nav-item-link:hover,
.dropdown-trigger:hover {
  color: var(--electric-blue);
  opacity: 1;
}

/* Animated Underline */
.nav-item-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -8px;
  left: 0;
  background-color: var(--electric-blue);
  transition: var(--transition-smooth);
}

.nav-item-link:hover::after {
  width: 100%;
}

/* --- Dropdown Menu --- */
.nav-dropdown {
  position: relative;
}

.dropdown-content {
  visibility: hidden;
  position: absolute;
  background-color: var(--deep-charcoal);
  min-width: 200px;
  top: 40px;
  left: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  opacity: 0;
  transform: translateY(15px);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .dropdown-content {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content a {
  color: var(--off-white);
  padding: 14px 20px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background-color: var(--electric-blue);
  color: white;
}

/* --- Multi-Section Dropdown --- */
.multi-section-dropdown {
  min-width: 260px;
  padding: 8px 0;
  /* Start slightly to the left instead of bottom */
  transform: translateX(-20px);
}

/* Override the default drop-down transform for the multi-section one */
.nav-dropdown:hover .multi-section-dropdown {
  transform: translateX(0);
}

.dropdown-section {
  padding: 5px 0;
}

.dropdown-section:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 5px;
}

.dropdown-subheader {
  color: var(--electric-blue);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 20px 5px 20px;
  opacity: 0.9;
  font-weight: 700;
}

.multi-section-dropdown a {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Animations for new dropdown button */
.new-dropdown-btn.menu-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  /* Larger hamburger icon */
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.new-dropdown-btn.menu-icon-btn:hover {
  color: var(--electric-blue);
  transform: translateY(-2px) scale(1.1);
  /* Extra bright glow for the icon */
  text-shadow:
    0 0 15px var(--electric-blue),
    0 0 30px rgba(0, 123, 255, 0.6);
}

/* --- 1. Unified Base Button Styles (The "Snap-to-Size" Logic) --- */
#Contact-Button,
#Sign-in-Button,
#Profile-Button {
  /* Height is the secret to matching. This forces them all to be identical */
  height: 44px;
  box-sizing: border-box;

  /* Spacing & Typography */
  padding: 0 22px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  border-radius: 8px;

  /* Alignment */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  /* Interaction */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Inter", sans-serif;
  position: relative;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
}

#Contact-Button a {
  text-decoration: none;
  color: #e8e8e8;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.1px;
}

/* --- 2. Button Group Layout --- */
.button-group {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

/* --- 3. Individual Button Themes --- */

/* GHOST STYLE (Contact & Profile Default) */
#Contact-Button,
#Profile-Button {
  display: flex;
  background: var(--deep-charcoal);
  color: var(--off-white);
  border: 1px solid rgba(0, 123, 255, 0.3);
}

/* ACTION STYLE (Sign-In) */
#Sign-in-Button {
  display: flex;
  background-color: var(--electric-blue);
  color: var(--matte-black);
  border: 1px solid var(--electric-blue);
}

/* --- 4. Hover & Active States --- */

/* Hover for Ghost buttons */
#Contact-Button:hover,
#Profile-Button:hover {
  background: rgba(0, 123, 255, 0.1);
  border-color: var(--electric-blue);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
}

/* Hover for Action button */
#Sign-in-Button:hover {
  background-color: #006ae6;
  border-color: #006ae6;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
}

/* Universal Press Effect */
#Contact-Button:active,
#Sign-in-Button:active,
#Profile-Button:active {
  transform: translateY(0);
  filter: brightness(0.8);
}

/* --- 5. Profile Specific Icon Logic --- */

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; /* Sized to not grow the button height */
  height: 20px;
  transition: transform 0.3s ease;
}

.icon-wrapper img {
  height: 100%;
  width: auto;
  filter: drop-shadow(0 0 5px rgba(0, 123, 255, 0.5));
}

/* Pop effect for the icon on hover */
#Profile-Button:hover .icon-wrapper {
  transform: scale(1.1) rotate(-10deg);
}

/* When Profile is "Active/Clicked", turn icon black to match text */
#Profile-Button:active .icon-wrapper img {
  filter: brightness(0);
}

/* Responsive adjustment: Ensure links don't crowd the logo on smaller screens */
@media (max-width: 1100px) {
  .nav-item-link,
  .dropdown-trigger {
    margin-right: 10px;
    font-size: 0.85rem;
  }
  #Contact-Button,
  #Sign-in-Button {
    padding: 10px 25px;
  }
}

/* ── MOBILE HAMBURGER BUTTON ─────────────────────────────── */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--off-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.3s;
  z-index: 1100;
  flex-shrink: 0;
}
.mobile-menu-toggle:hover {
  color: var(--electric-blue);
}

/* ── MOBILE OVERLAY MENU ─────────────────────────────────── */
.mobile-menu-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: rgba(13, 13, 13, 0.99);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.2);
  overflow: hidden;
  max-height: 0;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.3s ease;
  z-index: 999;
}
.mobile-menu-overlay.open {
  max-height: 600px;
  padding: 1rem 0 1.5rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 0 5%;
  gap: 0;
}
.mobile-nav-links .nav-item-link {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 1rem;
  opacity: 1;
}
.mobile-nav-links .nav-item-link::after {
  display: none;
}

/* Mobile accordion dropdown */
.mobile-dropdown-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.mobile-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--off-white);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 13px 0;
  cursor: pointer;
  transition: color 0.3s;
}
.mobile-dropdown-trigger:hover {
  color: var(--electric-blue);
}
.mobile-dropdown-trigger .arrow {
  transition: transform 0.3s ease;
  font-size: 0.75rem;
}
.mobile-dropdown-trigger.active .arrow {
  transform: rotate(180deg);
}

.mobile-dropdown-inner {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding-left: 12px;
}
.mobile-dropdown-inner.open {
  max-height: 300px;
}
.mobile-dropdown-inner .dropdown-subheader {
  padding: 8px 0 4px;
  font-size: 0.68rem;
}
.mobile-dropdown-inner a {
  color: rgba(232, 232, 232, 0.75);
  text-decoration: none;
  display: block;
  padding: 9px 0;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.mobile-dropdown-inner a:hover {
  color: var(--electric-blue);
}

.mobile-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 1.2rem 5% 0;
}
.mobile-buttons #Contact-Button,
.mobile-buttons #Sign-in-Button,
.mobile-buttons #Profile-Button {
  width: 100%;
  height: 48px;
  font-size: 0.88rem;
}

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────────── */
@media (max-width: 1100px) {
  .nav-item-link,
  .dropdown-trigger {
    font-size: 0.85rem;
  }
  #Contact-Button,
  #Sign-in-Button,
  #Profile-Button {
    padding: 0 14px;
    font-size: 0.78rem;
  }
  .links-group {
    gap: 14px;
  }
}

@media (max-width: 860px) {
  .main-navigation-bar {
    padding: 1rem 4%;
  }
  .links-group {
    display: none;
  }
  .button-group {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .logo-container {
    flex: 1;
  }
  .brand-title {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }
  .mobile-menu-overlay {
    display: block;
  }
}

@media (max-width: 480px) {
  .main-navigation-bar {
    padding: 0.9rem 4%;
  }
  .brand-title {
    font-size: 1.05rem;
    letter-spacing: 1.5px;
  }
}

/* --- Home Page Section Layout --- */
#home-page-section {
  min-height: 90vh; /* Takes up most of the viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8%;
  overflow: hidden;
}

#home-page-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px; /* Increased slightly to allow more expansion */
  gap: 80px; /* Double the gap to push the image away */
}

/* --- Text Content Styling --- */
#home-page-text {
  flex: 1.8; /* Higher number = takes up more of the row */
  z-index: 2;
  text-align: left;
}

#home-page-image {
  flex: 1; /* Keeps the image smaller relative to the massive text */
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--deep-charcoal), #1a1a1a);
  border-radius: 24px;
  border: 1px solid rgba(0, 123, 255, 0.15);
  box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.6); /* Shadow shifted to emphasize the right-side position */

  /* Pushes the image further right */
  margin-left: 50px;

  animation: float 6s ease-in-out infinite;
  position: relative;
}

/* Add a glowing effect behind the image */
#home-page-image::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  background: var(--electric-blue);
  filter: blur(100px);
  opacity: 0.15;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* --- Typewriter Styles --- */
#home-page-text1 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  min-height: 1.5em; /* Prevents layout jump when text is empty */
}

#typewriter-text {
  color: var(--electric-blue);
  font-weight: 700;
}

.cursor {
  color: var(--electric-blue);
  font-weight: 300;
  animation: blink 0.8s infinite;
  margin-left: 5px;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

#home-page-text2 {
  font-size: 6rem; /* Significantly bigger */
  font-weight: 800;
  line-height: 1.1;
  color: var(--off-white);
  text-transform: uppercase;
  letter-spacing: -1px; /* Tighter spacing for a modern, massive look */
}

#home-page-text3 {
  font-size: 6rem; /* Same size as text2 */
  font-weight: 800; /* Same weight as text2 */
  line-height: 1.1;
  color: var(--electric-blue); /* Keeps the blue accent */
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

#creativity,
#talent {
  color: var(--electric-blue);
  font-weight: 700;
}

#home-page-text4 {
  max-width: 700px;
  font-size: 1rem;
  color: rgba(232, 232, 232, 0.6); /* Muted off-white */
  margin-bottom: 20px;
  line-height: 1.8;
}

/* --- Socials Styling --- */
#home-page-socials {
  display: flex;
  list-style: none;
  gap: 25px;
  margin-top: 30px;
}

#home-page-socials li i {
  font-size: 1.5rem;
  color: var(--off-white);
  cursor: pointer;
  transition: var(--transition-smooth);
  opacity: 0.6;
}

#home-page-socials li i:hover {
  color: var(--electric-blue);
  opacity: 1;
  transform: translateY(-5px);
}

/* --- Animations --- */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive Scaling */
@media (max-width: 992px) {
  #home-page-container {
    flex-direction: column;
    text-align: center;
    padding-top: 50px;
  }

  #home-page-text2 {
    font-size: 3.5rem;
  }
  #home-page-text3 {
    font-size: 1.8rem;
    letter-spacing: 6px;
  }

  #home-page-socials {
    justify-content: center;
  }

  #home-page-text4 {
    margin: 0 auto 40px auto;
  }

  #home-page-image {
    width: 100%;
    height: 300px;
  }
}

#event-participate-button-home-page {
  position: relative;
  background: transparent;
  color: var(--electric-blue);
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 16px 35px;
  border: 1px solid var(--electric-blue); /* Solid box border */
  border-radius: 4px; /* Tiny rounding for a "premium" finish */
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden; /* Vital for the slide effect */
  z-index: 1;
  display: inline-block;
}

/* The "Charging" Background Animation */
#event-participate-button-home-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%; /* Hidden to the left */
  width: 100%;
  height: 100%;
  background: var(--electric-blue);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: -1;
}

/* Hover States */
#event-participate-button-home-page:hover {
  color: var(--matte-black); /* Text turns dark when background fills */
  box-shadow: 0 0 25px rgba(0, 123, 255, 0.5);
  transform: translateY(-2px);
}

#event-participate-button-home-page:hover::before {
  left: 0; /* Background slides in */
}

#event-participate-button-home-page:active {
  transform: scale(0.98); /* Slight click feedback */
}

/* The Breathing Glow Animation */
@keyframes neonPulse {
  0% {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
  }
}

#event-participate-button-home-page {
  animation: neonPulse 2.5s infinite ease-in-out;
}

#event-participate-button-home-page {
  animation: neonPulse 2s infinite ease-in-out;
}

#events-page-section {
  padding: 80px 5%;
  background-color: transparent;
}

.heading {
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 50px;
  text-align: center;
  color: var(--off-white);
}

#events-container-main {
  display: grid;
  /* Changed to 3 columns */
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px; /* Slightly wider to accommodate 4 items */
  margin: 0 auto;
  border-top: 1px solid rgba(0, 123, 255, 0.1);
}

.event-container {
  background: var(--deep-charcoal);
  border-radius: 15px;
  overflow: hidden;
  height: 700px; /* Vertical rectangle */
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 20px 0px;
  margin-bottom: 50px;
}

/* Glow Effect on Hover */
.event-container:hover {
  transform: translateY(-50px);
  border-color: var(--electric-blue);
  box-shadow: 0 0 30px rgba(0, 123, 255, 0.2);
}

.event-container img {
  width: 100%;
  height: 45%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(40%);
  transition: var(--transition-smooth);
}

.event-container:hover img {
  filter: grayscale(0%);
}

.events-text {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#events-heading-div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: left;
  gap: 30px;
  margin-top: 20px;
}

.events-heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--electric-blue);
  padding: 0px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 4px;
}

/* Container for the tags */
#events-tags-div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 15px; /* Aligns with your heading padding */
}

/* Individual Tag Styling */
#events-tags-div span {
  background: rgba(0, 123, 255, 0.1); /* Subtle blue tint */
  color: var(--electric-blue);
  border: 1px solid rgba(0, 123, 255, 0.3);
  padding: 5px 12px;
  border-radius: 10px; /* Pill shape */
  font-size: 0.75rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

/* Hover effect for tags when card is hovered */
.event-container:hover #events-tags-div span {
  background: var(--electric-blue);
  color: white;
  border-color: var(--electric-blue);
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
}

.events-text p {
  font-size: 0.9rem;
  color: rgba(232, 232, 232, 0.7);
  line-height: 1.6;
  /* Clips text after a few lines to keep cards uniform */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-number {
  position: absolute;
  bottom: 20px;
  right: 25px;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03); /* Ghost number background */
}

/* PathFinders Modal */

#modalBackground {
  display: none; /* Hidden by default - trigger with JS */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent; /* Dark dim effect */
  backdrop-filter: blur(8px); /* Modern frosted glass effect on the main site */
  z-index: 999; /* Sits just below the modal container */
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* 1. Main Modal Wrapper (The pop-up box) */
#pathFinders-modal-conatiner {
  position: fixed;
  display: none;
  top: 55%; /*I LEGIT HAVE NO IDEA HOW THIS MADE THE MODAL CENTERED*/
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-height: 80vh;
  background: rgba(10, 10, 10, 0.95); /* Deep charcoal with transparency */
  border: 2px solid rgba(0, 123, 255, 0.3);
  border-radius: 20px;
  box-shadow:
    0 0 50px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 123, 255, 0.1);
  padding: 40px;
  overflow-y: auto;
  z-index: 1000;
  flex-direction: column;
  gap: 30px;
  max-width: 1100px; /* Increased from 800px */
  width: 95%;
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: var(--electric-blue) var(--matte-black);
  z-index: 1000;
}

/* Custom Scrollbar for Chrome, Edge, and Safari */
#pathFinders-modal-conatiner::-webkit-scrollbar {
  width: 8px;
}

#pathFinders-modal-conatiner::-webkit-scrollbar-track {
  background: var(--matte-black);
  border-radius: 10px;
}

#pathFinders-modal-conatiner::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--electric-blue), #003d7a);
  border-radius: 10px;
  border: 2px solid var(--matte-black);
}

#pathFinders-modal-heading {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--electric-blue);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#pathFinders-gallery-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Space between buttons and image */
  width: 100%;
  margin: 20px 0;
}

#pathFinders-gallery-viewport {
  width: 100%;
  max-width: 850px; /* Adjust based on your modal width */
  height: 450px; /* Give it a consistent height */
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  border: 2px solid rgba(0, 123, 255, 0.2);
  background-color: #000; /* Black background for empty space */
}

.gallery-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Keeps the whole image visible without cropping */
  opacity: 0; /* Hidden by default */
  transition: opacity 0.5s ease-in-out;
  background: var(--matte-black);
}

/* This class is added/removed by your JavaScript */
.gallery-img.active {
  opacity: 1;
  z-index: 5;
}

/* Base Style for both buttons */
.slider-btn {
  background: rgba(10, 10, 10, 0.6); /* Semi-transparent dark background */
  color: var(--electric-blue);
  border: 1px solid rgba(0, 123, 255, 0.4);

  width: 50px;
  height: 50px;
  border-radius: 50%; /* Makes them perfectly circular */

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(5px); /* Blurs whatever is behind the button */

  line-height: 1; /* Helps keep the arrow centered */
}

/* Hover Effect */
.slider-btn:hover {
  background: var(--electric-blue);
  color: white;
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.6);
  transform: scale(1.1); /* Slightly grows when you hover */
  border-color: var(--electric-blue);
}

/* Active (Click) Effect */
.slider-btn:active {
  transform: scale(0.95); /* Shrinks slightly when clicked */
}

/* Specific positioning if you want them to feel "Cyberpunk" */
.prev-btn {
  margin-right: 5px;
}

.next-btn {
  margin-left: 5px;
}

#closeModal {
  width: 35px;
  height: 35px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 3px solid #0056b3;
  background: none;
  color: #888;
  position: absolute;
  top: 20px;
  right: 20px;
}

#closeModal:hover {
  background: #0056b3;
  color: white;
}
/* 3. Important Details Grid */
#pathFinders-modal-important-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pathFinders-modal-event-info {
  font-size: 0.85rem;
  color: #888;
  margin: 0;
}

.pathFinders-modal-event-info span {
  color: var(--off-white);
  font-weight: 600;
  display: block; /* Puts the detail value on a new line for a cleaner look */
  font-size: 1rem;
  margin-top: 5px;
}

/* 4. Description Section */
#pathFinders-modal-event-description h3 {
  color: var(--electric-blue);
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}

#pathFinders-modal-event-description p {
  color: rgba(232, 232, 232, 0.8);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* 5. Action Buttons (Footer) */
#pathFinders-modal-other-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 10px;
}

.pathFindersButton {
  background: transparent;
  border: 1px solid var(--electric-blue);
  color: var(--electric-blue);
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s all ease;
  flex: 1; /* Makes buttons equal width */
  min-width: 150px;
}

.pathFindersButton:hover {
  background: var(--electric-blue);
  color: white;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
}

/* Define the Animation */
@keyframes popupReveal {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Apply it to your modal */
#pathFinders-modal-conatiner {
  /* ... your existing styles ... */

  /* Animation Properties */
  animation: popupReveal 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Optional: Animate the dark background separately */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#modalBackground {
  /* ... your existing styles ... */
  animation: fadeIn 0.3s ease-out forwards;
}

/* Responsive adjustment: 4 columns won't fit on small tablets/phones */
@media (max-width: 1100px) {
  #events-container-main {
    grid-template-columns: repeat(2, 1fr); /* 2x2 on medium screens */
  }
}

@media (max-width: 600px) {
  #events-container-main {
    grid-template-columns: 1fr; /* Stacked on mobile */
  }
}

/* Upcoming Event Area */

#up-coming-event-details {
  background: rgba(22, 22, 22, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 15px;
  padding: 80px 5%;
  max-width: 600px;
  margin: 40px auto;
  text-align: left;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Status Heading */
#up-coming-event-details h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--off-white);
  margin-bottom: 10px;
  opacity: 0.8;
}

#event-status {
  color: var(--electric-blue);
  font-weight: 800;
}

#up-coming-event-details {
  background: rgba(22, 22, 22, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 123, 255, 0.25);
  border-radius: 20px;
  padding: 50px 30px;
  max-width: 700px;
  margin-bottom: 200px;

  /* Center-align everything */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);

  animation: float 6s ease-in-out infinite;
  position: relative;
}

#event-status {
  display: block; /* Moves the status to its own line for impact */
  font-size: 2.2rem;
  color: var(--electric-blue);
  text-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
  margin-top: 10px;
}

/* The Digital Timer */
#upcoming-event-countdown {
  font-family: "Courier New", Courier, monospace;
  font-size: 3.5rem;
  font-weight: 900;
  color: #e8e8e8; /* Off-white for the numbers */
  letter-spacing: 2px;
}

#upcoming-event-date {
  font-size: 1.2rem;
  color: var(--electric-blue); /* Blue date for high-tech feel */
  opacity: 0.9;
  font-weight: 600;
  margin-bottom: 20px;
}

#upcoming-event-description {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(232, 232, 232, 0.7);
  max-width: 550px; /* Limits width to keep center-aligned text readable */
  margin-bottom: 35px;
}

/* Button override to ensure it stays centered */
#event-participate-button-home-page {
  margin: 0 auto;
}

/* Projects section starts from here  */

#projects-page-section {
  padding: 80px 5%;
  background-color: transparent;
  border-top: 1px solid rgba(0, 123, 255, 0.1);
}

/* --- Projects Layout Container --- */
#projects-main-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-direction: row;
  gap: 30px;
  max-width: 1600px;
  margin: 0 auto;
  height: 85vh;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- The Featured Side: Aerosense --- */
#project-container1 {
  flex: 1.5;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(22, 22, 22, 0.5) 0%,
    var(--deep-charcoal) 100%
  );
  border: 5px solid rgba(0, 123, 255, 0.2);
  padding: 50px 5%;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

#project-container1:hover {
  flex: 2.5;
  border: 5px solid var(--electric-blue);
}

/* --- The Column Side: Other Projects --- */
#other-projects-layout-div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

#other-projects-layout-div:has(.project-container:hover) {
  flex: 1.2;
}

#other-projects-layout-div .project-container {
  flex: 1;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

#other-projects-layout-div .project-container:hover {
  flex: 2;
}

#projects-main-container:has(#project-container1:hover)
  #other-projects-layout-div {
  flex: 0.8;
}

/* --- Shared Container Styles --- */
.project-container {
  background: var(--deep-charcoal);
  border-radius: 50px;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.03);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Hover Effect: Elevate and Glow */
.project-container:hover {
  transform: translateY(-15px) scale(1.04);
  border-color: var(--electric-blue);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 123, 255, 0.1);
}

/* --- Internal Content Fixes --- */
.project-container img {
  width: 100%;
  height: 60%;
  /* Image takes top portion */
  object-fit: cover;
  filter: brightness(0.8);
  transition: 0.5s ease;
}

.project-container:hover img {
  filter: brightness(1);
  transform: scale(1.05);
  /* Subtle zoom on hover */
}

/* Featured specific text scaling */
#project-container1 #project-container1-texts-container {
  padding: 40px;
}

#project-container1-heading p {
  font-size: 3.5rem;
  /* Massive aesthetic heading */
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.project-info {
  margin-top: 30px;
  margin-left: 30px;
}

.p-title {
  font-size: 1.2rem;
  /* Massive aesthetic heading */
  font-weight: 900;
}

.projects-number {
  position: absolute;
  bottom: -10px;
  /* Slightly "bleeding" off the edge for an edgy look */
  right: 10px;

  /* Typography */
  font-size: 8rem;
  /* Massive scale */
  font-weight: 900;
  line-height: 1;
  font-family: "Inter", sans-serif;
  /* Clean, geometric font */

  /* The "Ghost" Look */
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  /* Thin subtle outline */

  /* High-Tech Accent */
  text-shadow: 0 0 15px rgba(0, 123, 255, 0);

  pointer-events: none;
  /* So it doesn't interfere with clicks */
  transition: var(--transition-smooth);
  z-index: 1;
}

/* Interaction: Make it "Wake Up" when the container is hovered */
.project-container:hover .projects-number,
#project-container1:hover .projects-number {
  -webkit-text-stroke: 1px rgba(0, 123, 255, 0.3);
  /* Turns Blue */
  text-shadow: 0 0 20px rgba(0, 123, 255, 0.2);
  /* Soft blue glow */
  transform: translateY(-10px);
  /* Moves up slightly */
  opacity: 1;
}

/* --- Projects Responsive Media Queries --- */

/* For Tablets and smaller Laptops */
@media (max-width: 1100px) {
  #projects-page-section {
    height: auto;
    /* Allow section to grow with content */
    padding-top: 80px;
    overflow: visible;
  }

  #projects-main-container {
    flex-direction: column;
    /* Stack columns vertically */
    height: auto;
  }

  #project-container1 {
    width: 100%;
    /* Take full width */
    height: 500px;
    /* Set a fixed height for mobile balance */
  }

  #other-projects-layout-div {
    width: 100%;
    /* Take full width */
    height: auto;
  }

  .small-p {
    height: 300px;
    /* Give smaller projects a bit more height on mobile */
  }
}

/* For Mobile Phones */
@media (max-width: 650px) {
  #project-container1-heading p {
    font-size: 2.2rem;
    /* Shrink massive text for small screens */
  }

  #project-container1 img {
    height: 50%;
    /* Adjust image-to-text ratio */
  }

  .projects-number {
    font-size: 4rem;
    /* Smaller ghost numbers */
    bottom: 5px;
    right: 10px;
  }

  .project-container {
    border-width: 2px;
    /* Thinner border for smaller screens */
  }

  /* Stack image and text inside the small projects if they feel cramped */
  .small-p {
    height: auto;
    padding-bottom: 20px;
  }
}

/* Screen-reader only helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Optional: scroll-to-top floating button (toggle via JS) */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--electric-blue);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
  cursor: pointer;
  z-index: 9999;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.scroll-top.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

/* --- Executives Section: 3D Coverflow Carousel --- */
/* --- Executives Section: 3D Coverflow Carousel --- */
#executives-page-section {
  padding: 80px 5% 80px;
  background-color: transparent;
  overflow: hidden;
  border-top: 1px solid rgba(0, 123, 255, 0.1);
}

#executives-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 40px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.carousel-track {
  position: relative;
  width: 60%;
  height: 450px;
  perspective: 1500px;
  transform-style: preserve-3d;
}

/* Individual Executive Nodes */
.exec-node {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateZ(-1000px); /* Hidden in back by default */
  width: 320px;
  height: 400px;
  transition:
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.6s ease,
    box-shadow 0.6s ease,
    border-color 0.6s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.8), #0b0e14);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 18px;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.exec-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
}

.exec-img-container {
  width: 140px;
  height: 140px;
  background: rgba(0, 123, 255, 0.1);
  border: 2px solid rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: #007bff;
  box-shadow: 0 0 30px rgba(0, 123, 255, 0.1);
  transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  font-size: 3rem;
}

.exec-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exec-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f8f9fa;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.exec-role {
  font-size: 0.85rem;
  color: #007bff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  opacity: 0.9;
}

/* States managed by JS */
.exec-node.active {
  opacity: 1;
  z-index: 10;
  transform: translateX(-50%) translateZ(0) scale(1.1);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(0, 123, 255, 0.25);
  border-color: rgba(0, 123, 255, 0.4);
  pointer-events: auto;
}

.exec-node.active:hover {
  transform: translateX(-50%) translateZ(0) scale(1.15);
}

.exec-node.active .exec-img-container {
  border-color: #007bff;
  box-shadow: 0 0 40px rgba(0, 123, 255, 0.3);
  transform: scale(1.05);
}

.exec-node.prev {
  opacity: 0.6;
  z-index: 5;
  transform: translateX(-120%) translateZ(-250px) rotateY(25deg);
  pointer-events: auto;
}

.exec-node.prev-2 {
  opacity: 0.25;
  z-index: 2;
  transform: translateX(-170%) translateZ(-500px) rotateY(35deg) scale(0.9);
}

.exec-node.next {
  opacity: 0.6;
  z-index: 5;
  transform: translateX(20%) translateZ(-250px) rotateY(-25deg);
  pointer-events: auto;
}

.exec-node.next-2 {
  opacity: 0.25;
  z-index: 2;
  transform: translateX(70%) translateZ(-500px) rotateY(-35deg) scale(0.9);
}

/* Buttons */
.carousel-btn {
  background: rgba(22, 22, 22, 0.6);
  color: #f8f9fa;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 100;
  display: grid;
  place-items: center;
  transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-prev {
  left: 20px;
}
.carousel-next {
  right: 20px;
}

.carousel-btn:hover {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 900px) {
  .carousel-track {
    width: 100%;
    perspective: 1000px;
  }
  .exec-node {
    width: 260px;
    height: 350px;
  }
  .exec-node.active {
    transform: translateX(-50%) translateZ(0) scale(1.05);
  }
  .exec-node.prev {
    transform: translateX(-105%) translateZ(-200px) rotateY(15deg);
  }
  .exec-node.next {
    transform: translateX(5%) translateZ(-200px) rotateY(-15deg);
  }
}

#main-footer {
  background-color: transparent;
  padding: 0 5% 20px 5%;
  color: #e8e8e8;
  position: relative;
}

/* The Blue Separation Line */
.footer-divider {
  width: 100%;
  height: 2px;
  background: var(--electric-blue);
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.6);
  margin-bottom: 50px;
  margin-top: 200px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  color: var(--electric-blue);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.8;
  opacity: 0.7;
  margin-bottom: 10px;
}

/* Developed By Link */
.dev-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  position: relative;
  transition: 0.3s;
}

.dev-link:hover {
  color: var(--electric-blue);
  text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* Sponsors Area */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 15px;
}

.sponsor-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  font-size: 0.7rem;
  text-align: center;
  border-radius: 5px;
  opacity: 0.6;
  transition: 0.3s;
}

.sponsor-box:hover {
  opacity: 1;
  border-color: var(--electric-blue);
  background: rgba(0, 123, 255, 0.05);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  font-size: 0.8rem;
  opacity: 0.4;
}

/* Responsive Fix */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .sponsors-grid {
    justify-content: center;
  }
}

/* Sign-in button link styling */
#Sign-in-Button a {
  color: #ffffff;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Fix doodoo */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .sponsors-grid {
    justify-content: center;
  }
}

/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
}

/* Modal Box */
.modal-content {
  background: #161616;
  border: 1px solid #007bff;
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

/* Internal Elements */
.modal-main-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
  object-fit: cover;
}

.modal-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.modal-tag {
  background: rgba(0, 123, 255, 0.2);
  color: #007bff;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: bold;
}

.modal-scroll-area {
  max-height: 200px;
  overflow-y: auto;
  color: #ccc;
  line-height: 1.6;
}

.modal-action-area {
  margin-top: 30px;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #555;
}

/* View Project Button - Aerosense Styling */
.view-project-btn {
  background: #007bff;
  color: #ffffff;
  border: none;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 15px rgba(0, 123, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.view-project-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* Hover Effects */
.view-project-btn:hover {
  background: #0056b3;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 123, 255, 0.5);
}

.view-project-btn:hover i {
  transform: translateX(5px);
}

/* Active Click Effect */
.view-project-btn:active {
  transform: translateY(1px);
  box-shadow: 0 5px 10px rgba(0, 123, 255, 0.4);
}

.modal-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.modal-tag {
  background: rgba(0, 123, 255, 0.2);
  color: #007bff;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: bold;
}

.modal-scroll-area {
  max-height: 200px;
  overflow-y: auto;
  color: #ccc;
  line-height: 1.6;
}

.modal-action-area {
  margin-top: 30px;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #555;
}

/* View Project Button - Aerosense Styling */
.view-project-btn {
  background: #007bff;
  color: #ffffff;
  border: none;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 15px rgba(0, 123, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.view-project-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* Hover Effects */
.view-project-btn:hover {
  background: #0056b3;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 123, 255, 0.5);
}

.view-project-btn:hover i {
  transform: translateX(5px);
}

/* Click Effect */
.view-project-btn:active {
  transform: translateY(1px);
  box-shadow: 0 5px 10px rgba(0, 123, 255, 0.4);
}

#timeline-section {
  position: relative;
  padding: 100px 5%;
  background: transparent;
  overflow: hidden;
  margin-top: 60px;
  border-top: 1px solid rgba(0, 123, 255, 0.1);
}

#timeline-section .heading {
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 50px;
  text-align: center;
  color: var(--off-white);
}

.timeline-subtitle {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 100px auto;
  color: rgba(232, 232, 232, 0.6);
  font-size: 1.1rem;
  line-height: 1.6;
}

.horizontal-timeline-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 150px auto 250px auto;
  /* Extra bottom margin for content */
  padding: 0 40px;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 10%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.1) 90%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.timeline-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.timeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline-year {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 30px;
  position: absolute;
  bottom: 100%;
  transform: translateY(-20px);
  transition: var(--transition-smooth);
  opacity: 0.9;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 4px solid var(--matte-black);
  outline: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 5;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.4);
  box-shadow: 0 0 25px #fff;
  outline-color: var(--electric-blue);
}

.timeline-content {
  position: absolute;
  top: 100%;
  transform: translateY(40px);
  width: 260px;
  text-align: center;
  opacity: 0.6;
  transition: var(--transition-smooth);
}

.timeline-item.staggered .timeline-content {
  transform: translateY(140px);
}

.timeline-content p {
  font-size: 0.95rem;
  color: #e8e8e8;
  line-height: 1.6;
  font-weight: 400;
}

.timeline-item:hover .timeline-content {
  opacity: 1;
  transform: translateY(35px);
}

.timeline-item.staggered:hover .timeline-content {
  transform: translateY(135px);
}

.timeline-item:hover .timeline-year {
  color: var(--electric-blue);
  transform: translateY(-25px);
  opacity: 1;
}

/* Vertical lines */
.timeline-item::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.timeline-item.staggered::before {
  height: 140px;
}

/* Mobile Responsiveness */
@media (max-width: 1100px) {
  .horizontal-timeline-wrapper {
    margin: 100px 20px 100px 20px;
    padding-bottom: 0;
    height: auto;
  }

  .timeline-line {
    width: 2px;
    height: 100%;
    left: 30px;
    top: 0;
    transform: none;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.8) 50%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .timeline-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 80px;
    padding-left: 15px;
  }

  .timeline-item {
    flex-direction: row;
    width: 100%;
    align-items: center;
    gap: 30px;
  }

  .timeline-year,
  .timeline-content,
  .timeline-item.staggered .timeline-content {
    position: static;
    transform: none !important;
    text-align: left;
    width: auto;
    opacity: 1;
  }

  .timeline-year {
    font-size: 1.4rem;
    min-width: 80px;
    margin-bottom: 0;
  }

  .timeline-content {
    flex: 1;
  }

  .timeline-item::before {
    display: none;
  }

  .timeline-dot {
    margin-left: 5px;
  }
}
