/* Global Styles */
:root {
    --primary-color: #8a2be2;
    --primary-dark: #6a0dad;
    --secondary-color: #ffdb58;
    --accent-color: #ff69b4;
    --light-color: #ffffff;
    --dark-color: #1a1a2e;
    --grey-color: #f8f9fa;
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    --form-bg-dark: rgba(49, 49, 53, 0.24);
}
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Poppins', sans-serif;
    background-image: url("bgcopy.png");
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    line-height: 1.6;
    background-color: var(--grey-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Scrollbar styling */
  /* Hide scrollbar for Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for Firefox */
html {
  scrollbar-width: none;
}

/* Hide scrollbar for Edge and IE */
body {
  -ms-overflow-style: none;
}

/* Ensure smooth scrolling on iOS */
html, body {
  -webkit-overflow-scrolling: touch;
}
  
  /* Typography */
  h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
  }
  
  .section-title {
    position: relative;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    display: inline-block;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 60px;
    background: var(--accent-color);
  }
  
  .text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  p {
    margin-bottom: 1rem;
  }
  
  .lead {
    font-size: 1.2rem;
    font-weight: 300;
  }
  
  /* Navigation */
.navbar {
  background: transparent; 
  transition: var(--transition);
  padding: 15px 0;
  margin: 8px 10px;
  border-radius: 20px;
  position: sticky; 
  box-shadow: none; 
}

.navbar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(0, 0, 0, 0.1); /* Slight dark tint */
  mask: linear-gradient(180deg, rgba(0,0,0,1) 46%, rgba(0,0,0,0.54) 82%, rgba(0,0,0,0) 100%);
  -webkit-mask: linear-gradient(180deg, rgba(0,0,0,1) 46%, rgba(0,0,0,0.54) 82%, rgba(0,0,0,0) 100%);
  z-index: -1;
  border-radius: 20px;
}

.navbar.scrolled {
  padding: 8px 0;
}

.navbar.scrolled::after {
  background: rgba(0, 0, 0, 0.3); /* Slightly darker when scrolled */
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: white !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  -webkit-text-fill-color: white; 
  background: none; 
}

.navbar-dark .navbar-nav .nav-link {
  color: white;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
}

.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  outline: none;
  color: white;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-secondary);
  transition: var(--transition);
  z-index: -1;
}

.btn-primary:hover::before {
  width: 100%;
}

  /* Hero Section */
  .hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    color: var(--light-color);
    padding: 3rem 0;
  }
  
  .hero-section h1, .hero-section p {
    color: var(--light-color);
  }
  
  .hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: white;
  }
  
  .hero-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 1.5rem;
  }
  
  /* Countdown Timer */
  .countdown-timer {
    margin: 2rem 0;
  }
  
  .timer-container {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
  }
  
  .timer-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .timer-container {
      justify-content: center;
    }
    
    .timer-box {
      width: 70px;
      height: 70px;
    }
    
    .timer-box span {
      font-size: 1.5rem;
    }
    
    .hero-section {
      padding: 60px 0;
      justify-content: center;
    }
  }
  
  @media (max-width: 576px) {
    .timer-box {
      width: 60px;
      height: 60px;
      margin-bottom: 10px;
    }
    
    .hero-section h1 {
      font-size: 2.5rem;
    }
    
    .hero-section {
      text-align: center;
    }
    
    .hero-content {
      padding: 2rem 0;
    }
    
    .timer-container {
      gap: 1rem;
    }
  }
  
  /* Backup background for iOS devices that don't support backdrop-filter */
  @supports not ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .timer-box {
      background: rgba(26, 26, 46, 0.8);
    }
  }
  
  .timer-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.25);
  }
  
  .timer-box span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
  }
  
  .timer-box p {
    font-size: 0.8rem;
    margin-bottom: 0;
    font-weight: 500;
    color: var(--light-color);
    letter-spacing: 1px;
  }
  
  .hero-section img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    padding: 5px;
  }
  
  /* About Section */
  #about {
    position: relative;
    padding: 5rem 0;
    color: var(--light-color);
    overflow: hidden; 
}

#about p, #about h2 {
    color: var(--light-color) !important;
}

.theme-box h3 {
    position: relative;
    z-index: 1;
    color: var(--light-color);
}
  
  .theme-box {
    background: rgba(255, 255, 255, 0.1); /* Glassmorphism background */
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border-top: 5px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px); /* Apply blur for glass effect */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Add a subtle border */
    z-index: 2; /* Ensure theme-box content is above circles */
  }
  
  .theme-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
  }
  
  .theme-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
  }
  
  .theme-box:hover::before {
    opacity: 0.05;
  }
  
  .theme-box .theme-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-sm);
  }
  
  .theme-box .theme-icon i {
    font-size: 2rem;
    color: var(--light-color);
  }
  
  .theme-box h3 {
    position: relative;
    z-index: 1;
    color: var(--primary-color);
  }
  
  .theme-box p {
    position: relative;
    z-index: 1;
  }
  
  /* Timeline Section */
  #timeline {
    position: relative;
    padding: 5rem 0;
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    top: 15px;
    border: 4px solid var(--light-color);
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: var(--transition);
    border-left: 5px solid var(--accent-color);
    border: 1px solid rgba(255, 255, 255, 0.2); 
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--primary-color);
    color: white; 
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    color: white; 
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: white;
    margin-bottom: 0;
  }
  /* Event/Hackathon section */
  .flyer-container{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    background: rgba(234, 165, 245, 0.438);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
  }


/* Sponsors sections */
.section-title {
  color: white;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(186, 85, 211, 0.8);
}

.sponsor-card {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  background: rgba(25, 10, 41, 0.8);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(186, 85, 211, 0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(186, 85, 211, 0.3);
}

.sponsor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(186, 85, 211, 0.1), transparent);
  z-index: -1;
}

.sponsor-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  margin: 1rem;
  transition: all 0.3s ease;
}

.sponsor-wrapper img {
  height: auto;
  max-height: 70px;
  max-width: 100%;
  filter: drop-shadow(0 0 5px rgba(186, 85, 211, 0.7));
  transition: all 0.3s ease;
}

.sponsor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(186, 85, 211, 0.7);
}

.sponsor-wrapper:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(186, 85, 211, 1));
}

/* Responsive styles */
@media (max-width: 992px) {
  .sponsor-wrapper {
      padding: 0.75rem;
      margin: 0.75rem;
  }
  
  .sponsor-wrapper img {
      max-height: 60px;
  }
}

@media (max-width: 768px) {
  .section-title {
      font-size: 2rem;
  }
  
  .sponsor-card {
      padding: 1.5rem;
  }
  
  .sponsor-wrapper {
      flex-basis: 40%;
      margin: 0.5rem;
  }
}

@media (max-width: 576px) {
  .sponsor-card {
      flex-direction: column;
      padding: 1rem;
  }
  
  .sponsor-wrapper {
      width: 80%;
      margin: 1rem 0;
  }
  
  .sponsor-wrapper img {
      max-height: 65px;
  }
}
  /* Prizes Section */
  #prizes {
    position: relative;
    padding: 5rem 0;
}

.prize-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2); 
    text-align: center;
}

.prize-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.prize-card-title {
    color: white;
    font-size: 1.5rem;
    position: relative;
}

.prize-card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
}

.prize-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 1.5rem 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.prize-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.highlight-card {
    background: linear-gradient(135deg, #cb6bff2c, #30013429);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    font-size: 1.8rem;
    font-weight: 800;
}

.highlight-card .prize-amount {
    font-size: 3rem;
    color: white;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

  
  /* Registration Section - FIXED FOR iOS COMPATIBILITY */
  .registration-section {
    color: var(--light-color);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
  }
  
  .registration-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTTAgMjAgTDIwIDAgTDQwIDIwIEwyMCA0MCBMMCAyMFoiIHN0cm9rZT0iI2ZmNjliNCIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBvcGFjaXR5PSIwLjA1Ii8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+');
    opacity: 0.1;
  }
  
  .registration-section h2 {
    margin-bottom: 2.5rem;
    color: var(--light-color);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
  }
  
  .registration-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
  }
  
  .text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* iOS COMPATIBILITY FIX - Registration Form */
  .registration-form {
    background: var(--form-bg-dark); /* Solid background color for iOS */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  /* Fixed card styling for iOS */
  .card {
    background: var(--form-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  
  .card-header {
    background: rgba(138, 43, 226, 0.2);
    color: var(--light-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    padding: 1rem;
    border-radius: 10px 10px 0 0;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  /* Updated form controls for better iOS compatibility */
  .form-control {
    background: rgba(0, 0, 0, 0.2); /* Darker background for iOS */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    -webkit-appearance: none; /* Better form control rendering on iOS */
    appearance: none;
  }
  
  .form-control:focus {
    background: rgba(0, 0, 0, 0.3);
    box-shadow: none;
    border-color: var(--accent-color);
  }
  
  .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }
  
  .form-control.error {
    border-color: #dc3545;
  }
  
  .error-text {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
  }
  
  .input-group .btn {
    border-radius: 0 8px 8px 0;
  }
  
  .input-group .form-control {
    border-radius: 8px 0 0 8px;
  }
  
  /* Footer */
  footer {
    color: var(--light-color);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  footer p {
    margin-bottom: 0;
  }
  
  /* Responsive Design */
  /* Desktop view specific styles */
@media (min-width: 992px) {
  .hero-section .col-lg-6:last-child img {
      width: 500px !important;
      max-height: 700px;
      object-fit: contain;
  }
}

/* Tablet view specific styles */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-section .col-md-12:last-child img {
      width: 400px !important;
      max-height: 600px;
      object-fit: contain;
  }
}

/* Mobile view specific styles */
@media (max-width: 767px) {
  .hero-section .col-md-12:last-child img {
      width: 280px !important;
      max-height: 500px;
      object-fit: contain;
      margin: 0 auto;
      border-radius: 2px;
  }
}

  @media (max-width: 992px) {
    .navbar {
      padding: 10px 0;
    }
  
    .navbar-brand {
      font-size: 1.5rem;
    }
  
    .hero-section h1 {
      font-size: 2.5rem;
    }
  
    .timer-container {
      gap: 1rem;
    }
  
    .timer-box {
      width: 70px;
      height: 70px;
    }
  
    .timer-box span {
      font-size: 1.5rem;
    }
  
    .timeline-container::before {
      left: 31px;
    }
  
    .timeline-item::before {
      left: 31px;
    }
  
    .registration-form {
      padding: 1.5rem;
    }
  }
  
  @media (max-width: 767px) {
    .section-title {
      font-size: 1.8rem;
    }
    .hero-section {
        background-attachment: scroll; /* Disable parallax on small screens if it causes issues */
    }
  
    .hero-section h1 {
      font-size: 2rem;
    }
  
    .hero-section p {
      font-size: 1rem;
    }
  
    .timer-container {
      gap: 0.5rem;
    }
  
    .timer-box {
      width: 65px;
      height: 65px;
    }
  
    .timer-box span {
      font-size: 1.2rem;
    }
  
    .timer-box p {
      font-size: 0.7rem;
    }
  
    .prize-amount {
      font-size: 2rem;
    }
  
    .registration-form {
      padding: 1rem;
    }
  }
  
  /* Animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .fade-in {
    animation: fadeIn 0.6s ease forwards;
  }
  
  /* Additional JS-triggered animations */
  .scrolled-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
  }
  
  .scrolled-item.active {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Add a smooth scroll behavior */
  html {
    scroll-behavior: smooth;
  }
  
  /* Enhance focus states for accessibility */
  a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid rgba(138, 43, 226, 0.5);
    outline-offset: 2px;
  }
  
  /* Custom file input styling */
  input[type="file"] {
    padding: 0.5rem;
  }
  
  input[type="file"]::file-selector-button {
    background: var(--primary-color);
    color: white;
    border: 0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 1rem;
  }
  
  input[type="file"]::file-selector-button:hover {
    background: var(--primary-dark);
  }
  
  /* Ensure form elements are consistent on all browsers */
  select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
  }
  
  /* Spinner styling enhancement */
  .spinner-border {
    border-right-color: transparent;
  }
  
  /* Make alerts more modern */
  .alert {
    border-radius: 10px;
    border: none;
    padding: 1rem;
  }
  
  .alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border-left: 4px solid #198754;
  }
  
  .alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
  }
  
  /* Add a subtle hover effect to the navbar-toggler */
  .navbar-toggler:hover {
    opacity: 0.8;
  }
  
  /* Add a background to the navbar when collapsed */
  @media (max-width: 991.98px) {
    .navbar-collapse {
      background: rgba(37, 37, 37, 0.223);
      margin: 0 -12px;
      padding: 1rem;
      border-radius: 0 0 10px 10px;
      margin-top: 0.5rem;
    }
  }
  
  /* Add a scrolling navbar effect */
  .navbar {
    transition: all 0.4s ease;
  }
  
  .navbar.navbar-scrolled {
    padding-top: 5px;
    padding-bottom: 5px;
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  /* iOS-specific styles */
  @supports (-webkit-touch-callout: none) {
    /* Target iOS devices specifically */
    .registration-form, 
    .card,
    .timer-box {
      background-color: var(--form-bg-dark);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
    
    /* Additional iOS specific form fixes */
    input, 
    textarea {
      -webkit-appearance: none;
      border-radius: 8px;
    }
  }


  /* WhatsApp Popup Styles - Cyberpunk Tech Theme */
.acehacks-whatsapp-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(14, 0, 36, 0.85);
  align-items: center;
  justify-content: center;
  animation: acehacks-glitch-in 0.4s ease-in-out;
  backdrop-filter: blur(5px);
}

@keyframes acehacks-glitch-in {
  0% { opacity: 0; }
  10% { opacity: 0.9; }
  15% { opacity: 0.3; }
  20% { opacity: 1; }
  25% { opacity: 0.8; }
  30% { opacity: 1; }
  100% { opacity: 1; }
}

.acehacks-whatsapp-popup-content {
  position: relative;
  background-color: rgba(30, 12, 48, 0.95);
  margin: auto;
  padding: 30px;
  border-radius: 3px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  animation: acehacks-tech-reveal 0.5s ease-out;
  box-shadow: 0 0 20px rgba(198, 55, 255, 0.4), 
              0 0 40px rgba(198, 55, 255, 0.2),
              inset 0 0 15px rgba(198, 55, 255, 0.3);
  border: 1px solid rgba(198, 55, 255, 0.6);
  color: #fff;
  background-image: 
      linear-gradient(135deg, rgba(50, 15, 70, 0.7) 0%, rgba(30, 5, 40, 0.7) 100%),
      url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0z' fill='none'/%3E%3Cpath d='M0 0v100h100V0H0zm1 1h98v98H1V1z' fill='rgba(198, 55, 255, 0.2)'/%3E%3Cpath d='M0 50h100M50 0v100' stroke='rgba(198, 55, 255, 0.1)' stroke-width='0.5'/%3E%3C/svg%3E");
}

@keyframes acehacks-tech-reveal {
  0% {
      transform: translateY(30px) scale(0.95);
      opacity: 0;
      clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }
  10% {
      clip-path: polygon(0 0, 100% 0, 100% 15%, 0 15%);
  }
  30% {
      clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
  }
  60% {
      clip-path: polygon(0 0, 100% 0, 100% 80%, 0 80%);
  }
  100% {
      transform: translateY(0) scale(1);
      opacity: 1;
      clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

.acehacks-whatsapp-popup-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #25D366, #c637ff, #25D366);
  z-index: 1;
  animation: acehacks-glow-line 3s infinite linear;
}

@keyframes acehacks-glow-line {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.acehacks-whatsapp-close {
  position: absolute;
  right: 15px;
  top: 10px;
  color: #c637ff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-shadow: 0 0 8px rgba(198, 55, 255, 0.8);
}

.acehacks-whatsapp-close:hover {
  color: #25D366;
  transform: rotate(90deg);
  text-shadow: 0 0 12px rgba(37, 211, 102, 0.8);
}

.acehacks-whatsapp-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  gap: 15px;
  position: relative;
}

.acehacks-whatsapp-logo {
  width: 45px;
  height: 45px;
  filter: drop-shadow(0 0 5px rgba(37, 211, 102, 0.8));
  animation: acehacks-pulse 2s infinite alternate;
}

@keyframes acehacks-pulse {
  0% { filter: drop-shadow(0 0 3px rgba(37, 211, 102, 0.6)); }
  100% { filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.9)); }
}

.acehacks-whatsapp-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #c637ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(198, 55, 255, 0.4);
  font-family: 'Poppins', sans-serif;
  position: relative;
}

.acehacks-whatsapp-header h3::after {
  content: 'JOIN NOW';
  position: absolute;
  font-size: 0.55rem;
  top: -12px;
  right: -10px;
  background: #25D366;
  color: #000;
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 1px;
  transform: rotate(-5deg);
}

.acehacks-whatsapp-popup p {
  margin-bottom: 30px;
  color: #e0e0e0;
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  font-family: 'Poppins', sans-serif;
  padding: 0 10px;
}

.acehacks-whatsapp-popup p::before {
  content: '>';
  color: #c637ff;
  position: absolute;
  left: -5px;
  font-weight: bold;
}

.acehacks-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: transparent;
  color: white;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 10px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  border: 2px solid #25D366;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

.acehacks-whatsapp-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #25D366;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.acehacks-whatsapp-btn:hover {
  color: white;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
}

.acehacks-whatsapp-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.acehacks-whatsapp-btn i {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.acehacks-whatsapp-btn:hover i {
  transform: scale(1.2);
}

/* Grid background effect */
.acehacks-whatsapp-popup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(0deg, transparent 24%, rgba(198, 55, 255, .05) 25%, rgba(198, 55, 255, .05) 26%, transparent 27%, transparent 74%, rgba(198, 55, 255, .05) 75%, rgba(198, 55, 255, .05) 76%, transparent 77%, transparent), 
                    linear-gradient(90deg, transparent 24%, rgba(198, 55, 255, .05) 25%, rgba(198, 55, 255, .05) 26%, transparent 27%, transparent 74%, rgba(198, 55, 255, .05) 75%, rgba(198, 55, 255, .05) 76%, transparent 77%, transparent);
  background-size: 50px 50px;
  z-index: -1;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
  .acehacks-whatsapp-popup-content {
      width: 95%;
      padding: 25px 15px;
  }
  
  .acehacks-whatsapp-header {
      flex-direction: column;
      gap: 10px;
  }
  
  .acehacks-whatsapp-btn {
      width: 100%;
  }
  
  .acehacks-whatsapp-header h3 {
      font-size: 1.4rem;
  }
  
  .acehacks-whatsapp-header h3::after {
      top: -10px;
      right: -5px;
  }
}


/* QR Code Toggle Styles - Cyberpunk Theme */
.acehacks-qr-section {
  margin-bottom: 25px;
  background: rgba(30, 12, 48, 0.4);
  border: 1px solid rgba(198, 55, 255, 0.4);
  border-radius: 3px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.acehacks-qr-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(45deg, transparent 48%, rgba(198, 55, 255, .05) 49%, rgba(198, 55, 255, .05) 51%, transparent 52%), 
                    linear-gradient(-45deg, transparent 48%, rgba(198, 55, 255, .05) 49%, rgba(198, 55, 255, .05) 51%, transparent 52%);
  background-size: 30px 30px;
  z-index: -1;
  opacity: 0.3;
}

.acehacks-qr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.acehacks-qr-header h4 {
  margin: 0;
  font-size: 1.2rem;
  color: #c637ff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.acehacks-qr-header h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #c637ff, transparent);
}

.acehacks-qr-toggle {
  background: transparent;
  border: 1px solid #c637ff;
  color: #fff;
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.acehacks-qr-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(198, 55, 255, 0.2), transparent);
  transition: all 0.4s ease;
}

.acehacks-qr-toggle:hover::before {
  left: 100%;
}

.acehacks-qr-toggle:hover {
  box-shadow: 0 0 15px rgba(198, 55, 255, 0.5);
  border-color: #c637ff;
}

.acehacks-qr-toggle-text {
  margin-right: 8px;
  position: relative;
  z-index: 1;
}

.acehacks-qr-toggle-icon {
  position: relative;
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  z-index: 1;
}

.acehacks-qr-toggle-icon::before,
.acehacks-qr-toggle-icon::after {
  content: '';
  position: absolute;
  background-color: #c637ff;
  transition: all 0.3s ease;
}

.acehacks-qr-toggle-icon::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}

.acehacks-qr-toggle-icon::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}

.acehacks-qr-active .acehacks-qr-toggle-icon::after {
  transform: scaleY(0);
}

.acehacks-qr-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  margin-top: 0;
  position: relative;
}

.acehacks-qr-visible {
  max-height: 500px;
  transition: max-height 0.4s ease-in-out;
  margin-top: 15px;
}

.acehacks-qr-frame {
  background-color: rgba(15, 6, 24, 0.8);
  border: 2px solid rgba(198, 55, 255, 0.6);
  border-radius: 3px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(198, 55, 255, 0.2);
}

.acehacks-qr-scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #25D366, transparent);
  animation: acehacks-scan-animation 2s infinite linear;
  opacity: 0.8;
  z-index: 2;
}

@keyframes acehacks-scan-animation {
  0% {
    top: 0;
  }
  50% {
    top: calc(100% - 2px);
  }
  100% {
    top: 0;
  }
}

.acehacks-qr-image {
  max-width: 200px;
  height: auto;
  margin: 15px 0;
  border: 4px solid white;
  background-color: white;
  padding: 10px;
  border-radius: 3px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.acehacks-qr-frame:hover .acehacks-qr-image {
  transform: scale(1.02);
}

.acehacks-qr-info {
  text-align: center;
  color: #fff;
}

.acehacks-qr-label {
  background-color: #25D366;
  color: #000;
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-right: 5px;
  display: inline-block;
  transform: skewX(-10deg);
}

.acehacks-qr-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
  font-style: italic;
}

/* Make corners of frame glow on hover */
.acehacks-qr-frame::before,
.acehacks-qr-frame::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
  opacity: 0;
}

.acehacks-qr-frame::before {
  top: 0;
  left: 0;
  border-top: 2px solid #c637ff;
  border-left: 2px solid #c637ff;
}

.acehacks-qr-frame::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid #c637ff;
  border-right: 2px solid #c637ff;
}

.acehacks-qr-visible .acehacks-qr-frame:hover::before,
.acehacks-qr-visible .acehacks-qr-frame:hover::after {
  width: 30px;
  height: 30px;
  opacity: 1;
  box-shadow: 0 0 10px rgba(198, 55, 255, 0.7);
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .acehacks-qr-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .acehacks-qr-toggle {
    width: 100%;
    justify-content: center;
  }
  
  .acehacks-qr-image {
    max-width: 180px;
  }
}


/* Transaction ID Section - Cyberpunk Theme */
.acehacks-payment-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #c637ff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  position: relative;
  display: inline-block;
}

.acehacks-payment-label::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, #c637ff, transparent);
  bottom: -3px;
  left: 0;
}

.acehacks-payment-container {
  display: flex;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.acehacks-payment-input {
  flex: 1;
  background-color: rgba(20, 8, 30, 0.6) !important;
  border: 1px solid rgba(198, 55, 255, 0.4) !important;
  color: #fff !important;
  padding: 12px 15px !important;
  border-radius: 2px 0 0 2px !important;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  transition: all 0.3s ease !important;
}

.acehacks-payment-input:focus {
  box-shadow: 0 0 0 2px rgba(198, 55, 255, 0.25) !important;
  border-color: #c637ff !important;
  outline: none !important;
}

.acehacks-payment-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  font-size: 0.9rem;
}

.acehacks-payment-btn {
  position: relative;
  background: linear-gradient(45deg, #198754, #25a567);
  border: none;
  color: white;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
  overflow: hidden;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.acehacks-payment-btn-text {
  position: relative;
  z-index: 3;
  margin-left: 8px;
}

.acehacks-payment-btn i {
  font-size: 1.2rem;
  position: relative;
  z-index: 3;
}

.acehacks-payment-btn:hover {
  background: linear-gradient(45deg, #25a567, #1ed67e);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
}

.acehacks-payment-btn:active {
  transform: translateY(1px);
}

.acehacks-payment-btn-glow {
  position: absolute;
  width: 50px;
  height: 100%;
  top: 0;
  left: -100px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: acehacks-payment-glow 3s infinite linear;
  z-index: 2;
}

@keyframes acehacks-payment-glow {
  0% {
    left: -100px;
  }
  30% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.acehacks-payment-hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  font-style: italic;
  position: relative;
  padding-left: 18px;
}

.acehacks-payment-hint::before {
  content: 'ℹ️';
  position: absolute;
  left: 0;
  top: 0;
  color: #c637ff;
  font-size: 0.9rem;
  font-style: normal;
}

/* Glowing effect on focus for container */
.acehacks-payment-container:focus-within {
  filter: drop-shadow(0 0 5px rgba(198, 55, 255, 0.4));
}

/* Add terminal-style caret for text input */
.acehacks-payment-input:focus {
  caret-color: #c637ff;
  animation: acehacks-caret-blink 1s infinite;
}

@keyframes acehacks-caret-blink {
  0%, 49% {
    caret-color: #c637ff;
  }
  50%, 100% {
    caret-color: transparent;
  }
}

/* Add tech border effect */
.acehacks-payment-container::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, rgba(198, 55, 255, 0), rgba(198, 55, 255, 0.6), rgba(198, 55, 255, 0));
  z-index: -1;
  filter: blur(1px);
  opacity: 0;
  transition: opacity 0.3s;
}

.acehacks-payment-container:hover::before,
.acehacks-payment-container:focus-within::before {
  opacity: 1;
}

/* Responsive styles */
@media (max-width: 576px) {
  .acehacks-payment-container {
    flex-direction: column;
  }
  
  .acehacks-payment-input {
    border-radius: 2px 2px 0 0 !important;
  }
  
  .acehacks-payment-btn {
    border-radius: 0 0 2px 2px;
    width: 100%;
    padding: 12px 0;
    margin-top: -1px;
  }
}


.toggle-btn {
  background-color: #007bff;
  color: #fff;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.2s ease-in-out;
  border: none;
}

.toggle-btn:hover {
  background-color: #0056b3;
}



/* Template Download Section */
#template-download {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

#template-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(25, 10, 41, 0.5) 0%, rgba(70, 20, 100, 0.5) 100%);
    z-index: -1;
}

.download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(25, 10, 41, 0.9);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 0 30px rgba(186, 85, 211, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(186, 85, 211, 0.3);
    margin: 2rem auto;
    max-width: 900px;
}

.download-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(186, 85, 211, 0.1) 25%, 
        transparent 50%, 
        rgba(186, 85, 211, 0.1) 75%, 
        transparent 100%);
    z-index: -1;
    animation: sheen 8s linear infinite;
}

.download-content {
    flex: 1;
    padding-right: 2rem;
}

.download-title {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, #f5c5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.download-description {
    color: #e0e0e0;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #8a2be2, #bf00ff);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(186, 85, 211, 0.5);
}

.download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: all 0.5s ease;
}

.download-button:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 30px rgba(186, 85, 211, 0.7);
}

.download-button:hover::before {
    left: 100%;
    transition: all 0.5s ease;
}

.button-text {
    margin-right: 10px;
}

.button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-decoration {
    position: relative;
    width: 150px;
    height: 150px;
}

.tech-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(186, 85, 211, 0.7);
    border-radius: 50%;
    top: 15px;
    left: 15px;
    animation: pulse 3s ease-in-out infinite alternate;
}

.tech-line {
    position: absolute;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #bf00ff, transparent);
    top: 75px;
    left: -30px;
    animation: scan 2.5s linear infinite;
}

.tech-square {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(186, 85, 211, 0.7);
    top: 50px;
    left: 50px;
    animation: rotate 6s linear infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1.05); opacity: 1; }
}

@keyframes scan {
    0% { transform: translateX(-20px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(150px); opacity: 0; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes sheen {
    0% { transform: rotate(0deg) translate(-50%, -50%); }
    100% { transform: rotate(360deg) translate(-50%, -50%); }
}

/* Responsive styles */
@media (max-width: 992px) {
    .download-card {
        padding: 2rem;
    }
    
    .download-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .download-card {
        flex-direction: column;
        text-align: center;
    }
    
    .download-content {
        padding-right: 0;
        padding-bottom: 2rem;
    }
    
    .download-decoration {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .download-title {
        font-size: 1.5rem;
    }
    
    .download-button {
        width: 100%;
    }
}



/* Timeline Template Button */
.timeline-template-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.2rem;
  background: linear-gradient(45deg, #8a2be2, #bf00ff);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(186, 85, 211, 0.5);
}

.timeline-template-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
      transparent 0%, 
      rgba(255, 255, 255, 0.2) 50%, 
      transparent 100%);
  transition: all 0.5s ease;
}

.timeline-template-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(186, 85, 211, 0.7);
  color: white;
  text-decoration: none;
}

.timeline-template-btn:hover::before {
  left: 100%;
  transition: all 0.5s ease;
}


/* Problem Statements Section */
#problem-statements {
  position: relative;
  padding: 6rem 0;
  background-color: rgba(15, 5, 30, 0.95);
  overflow: hidden;
}

/* Background Elements */
.ps-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
      linear-gradient(rgba(186, 85, 211, 0.1) 1px, transparent 1px),
      linear-gradient(90deg, rgba(186, 85, 211, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
  opacity: 0.5;
  animation: pulseGrid 8s ease-in-out infinite;
}

.ps-bg-circle {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 2px solid rgba(186, 85, 211, 0.2);
  top: -200px;
  right: -200px;
  z-index: 0;
  animation: rotate 60s linear infinite;
}

.ps-bg-circle::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(186, 85, 211, 0.15);
  top: 50px;
  left: 50px;
  animation: rotate 40s linear infinite reverse;
}

.ps-bg-line-1 {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(186, 85, 211, 0.3), transparent);
  top: 30%;
  animation: scanline 15s linear infinite;
}

.ps-bg-line-2 {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(186, 85, 211, 0.3), transparent);
  top: 70%;
  animation: scanline 15s linear infinite reverse;
}

/* Add more animated background elements */
.ps-bg-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(186, 85, 211, 0.2) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
  z-index: 0;
  animation: floatDots 20s linear infinite;
}

.ps-bg-hexagon {
  position: absolute;
  width: 300px;
  height: 260px;
  background: linear-gradient(135deg, rgba(186, 85, 211, 0.05) 0%, rgba(150, 70, 180, 0.05) 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  bottom: -100px;
  left: 50px;
  z-index: 0;
  transform-origin: center;
  animation: rotateAndScale 30s ease-in-out infinite alternate;
}

.ps-bg-data-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.ps-bg-data-lines::before,
.ps-bg-data-lines::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, 
                           transparent 0%,
                           rgba(186, 85, 211, 0.2) 25%, 
                           rgba(186, 85, 211, 0.3) 50%,
                           rgba(186, 85, 211, 0.2) 75%,
                           transparent 100%);
  animation: dataFlow 10s linear infinite;
}

.ps-bg-data-lines::before {
  left: 20%;
  animation-delay: 0s;
}

.ps-bg-data-lines::after {
  right: 20%;
  animation-delay: 5s;
}

/* Section Title */
.ps-section-title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  z-index: 1;
  text-shadow: 0 0 15px rgba(186, 85, 211, 0.7);
}

.ps-section-title::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 15px;
  background: linear-gradient(90deg, transparent, rgba(186, 85, 211, 0.2), transparent);
  top: 50%;
  left: -10%;
  transform: translateY(-50%);
  filter: blur(5px);
  animation: pulseShadow 3s ease-in-out infinite;
}

.ps-section-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 4px;
  background: linear-gradient(90deg, #8a2be2, #bf00ff);
  bottom: -10px;
  left: 25%;
  border-radius: 2px;
  animation: widthPulse 3s ease-in-out infinite;
}

.ps-section-subtitle {
  color: #e0e0e0;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* Problem Statements Grid */
.ps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* Problem Statement Cards */
.ps-card {
  background: rgba(30, 10, 60, 0.7);
  border-radius: 15px;
  padding: 2rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(186, 85, 211, 0.3);
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1;
  /* Fix the hover issue by removing absolute positioning conflicts */
  transform: translateZ(0);
}

.ps-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #8a2be2, #bf00ff);
  z-index: 1;
}

.ps-card::after {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(186, 85, 211, 0.2) 0%, transparent 70%);
  top: -25%;
  left: -25%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.ps-card:hover {
  transform: translateY(-10px) translateZ(0);
  box-shadow: 0 15px 40px rgba(186, 85, 211, 0.4);
}

.ps-card:hover::after {
  opacity: 1;
}

.ps-card-number {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(186, 85, 211, 0.2);
  line-height: 1;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s ease;
  z-index: 2;
}

.ps-card:hover .ps-card-number {
  color: rgba(186, 85, 211, 0.4);
  text-shadow: 0 0 8px rgba(186, 85, 211, 0.4);
}

.ps-card-content {
  position: relative;
  z-index: 2;
}

.ps-card-title {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.ps-card-title::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #8a2be2, transparent);
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

.ps-card:hover .ps-card-title {
  color: #f0f0f0;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.ps-card:hover .ps-card-title::after {
  width: 70px;
}

.ps-card-description {
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.ps-card:hover .ps-card-description {
  color: #ffffff;
}

.ps-card-decor {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(186, 85, 211, 0.3);
  border-radius: 8px;
  transform: rotate(45deg);
  z-index: 1;
  transition: all 0.3s ease;
}

.ps-card:hover .ps-card-decor {
  transform: rotate(135deg);
  border-color: rgba(186, 85, 211, 0.5);
  box-shadow: 0 0 10px rgba(186, 85, 211, 0.3);
}

/* Digital Circuit Lines on Cards */
.ps-card::before,
.ps-card::after {
  content: '';
  position: absolute;
  background: rgba(186, 85, 211, 0.1);
  transition: all 0.5s ease;
}

.ps-card .circuit-line-1 {
  position: absolute;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(186, 85, 211, 0.3), transparent);
  top: 10px;
  left: 20px;
  z-index: 1;
}

.ps-card .circuit-line-2 {
  position: absolute;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(186, 85, 211, 0.3), transparent);
  bottom: 20px;
  right: 10px;
  z-index: 1;
}

.ps-card .circuit-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(186, 85, 211, 0.5);
  border-radius: 50%;
  top: 10px;
  left: 10px;
  z-index: 1;
  box-shadow: 0 0 5px rgba(186, 85, 211, 0.5);
}

/* Entry Animation */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px) translateZ(0);
  }
  to {
      opacity: 1;
      transform: translateY(0) translateZ(0);
  }
}

.ps-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

/* Staggered animations for cards */
.ps-card:nth-child(1) { animation-delay: 0.1s; }
.ps-card:nth-child(2) { animation-delay: 0.2s; }
.ps-card:nth-child(3) { animation-delay: 0.3s; }
.ps-card:nth-child(4) { animation-delay: 0.4s; }
.ps-card:nth-child(5) { animation-delay: 0.5s; }
.ps-card:nth-child(6) { animation-delay: 0.6s; }
.ps-card:nth-child(7) { animation-delay: 0.7s; }
.ps-card:nth-child(8) { animation-delay: 0.8s; }
.ps-card:nth-child(9) { animation-delay: 0.9s; }
.ps-card:nth-child(10) { animation-delay: 1.0s; }
.ps-card:nth-child(11) { animation-delay: 1.1s; }
.ps-card:nth-child(12) { animation-delay: 1.2s; }

/* Additional Animations */
@keyframes pulseGrid {
  0% { opacity: 0.3; }
  50% { opacity: 0.6; }
  100% { opacity: 0.3; }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes scanline {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes floatDots {
  0% { background-position: 0 0; }
  100% { background-position: 30px 30px; }
}

@keyframes rotateAndScale {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes pulseShadow {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

@keyframes widthPulse {
  0% { width: 40%; }
  50% { width: 60%; }
  100% { width: 40%; }
}

@keyframes dataFlow {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Media Queries */
@media (max-width: 1200px) {
  .ps-grid {
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 992px) {
  .ps-section-title {
      font-size: 2.5rem;
  }
  
  .ps-grid {
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .ps-section-title {
      font-size: 2rem;
  }
  
  .ps-section-subtitle {
      font-size: 1rem;
  }
  
  .ps-grid {
      grid-template-columns: 1fr;
      max-width: 500px;
      margin: 0 auto;
  }
  
  .ps-card-title {
      font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  #problem-statements {
      padding: 3rem 0;
  }
  
  .ps-section-title {
      font-size: 1.8rem;
  }
  
  .ps-card {
      padding: 1.5rem;
  }
  
  .ps-card-number {
      font-size: 2rem;
      top: 0.8rem;
      right: 1rem;
  }
}


.ace-closed-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  margin: 2rem auto;
  max-width: 100%;
}

.ace-message-container {
  background: linear-gradient(135deg, rgba(42, 14, 71, 0.7) 0%, rgba(13, 5, 31, 0.9) 100%);
  border: 2px solid #8a00e6;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 0 15px rgba(157, 0, 255, 0.3);
  position: relative;
  max-width: 600px;
  width: 100%;
  overflow: hidden;
}

.ace-message-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(138, 0, 230, 0.1) 1px, transparent 1px),
              linear-gradient(rgba(138, 0, 230, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
  opacity: 0.3;
}

.ace-icon-wrapper {
  margin: 0 auto 1.5rem;
  width: 60px;
  height: 60px;
  border: 2px solid #f542f5;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: ace-pulse 2s infinite ease-in-out;
}

.ace-icon::before {
  content: "!";
  font-size: 2rem;
  color: #f542f5;
  font-weight: bold;
}

.ace-message-title {
  font-size: 2rem;
  color: #f542f5;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.ace-message-text {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

.ace-future-text {
  font-size: 1.2rem;
  color: #00ffff;
  font-weight: 500;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.ace-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #f542f5, transparent);
  margin: 1.5rem auto 0;
  width: 80%;
  position: relative;
}

.ace-line::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #f542f5;
  border-radius: 50%;
  top: -3px;
  left: 0;
  animation: ace-moving-dot 3s infinite linear;
}

@keyframes ace-pulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(245, 66, 245, 0.5);
  }
  50% {
    box-shadow: 0 0 10px rgba(245, 66, 245, 0.8);
  }
}

@keyframes ace-moving-dot {
  0% {
    left: 0%;
  }
  100% {
    left: 100%;
  }
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .ace-message-title {
    font-size: 1.5rem;
  }
  
  .ace-message-text, .ace-future-text {
    font-size: 1rem;
  }
  
  .ace-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .ace-icon::before {
    font-size: 1.5rem;
  }
}
