/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
  --primary-blue: #0a2463;
  --secondary-blue: #1e3a8a;
  --accent-cyan: #06b6d4;
  --accent-teal: #14b8a6;
  --dark-navy: #0f172a;
  --light-gray: #f8fafc;
  --white: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#success-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #0ff;
  color: #000;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 0 20px #0ff;
  font-weight: bold;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#success-popup.show {
  opacity: 1;
  pointer-events: auto;
}


body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--text-primary);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header and Navigation */
header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  padding: 1rem 0;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--white);
  transition: transform 0.3s ease;
}

.logo img {
  width: 50px;       /* Adjust the width as needed */
  height: auto;      /* Maintain aspect ratio */
  display: block;    /* Remove inline spacing */
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(6, 182, 212, 0.3);
}

.academy-name h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.academy-name p {
  font-size: 0.75rem;
  opacity: 0.9;
  font-weight: 300;
  margin: 0;
}

/* Navigation Menu */
nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

nav a {
  color: var(--white);
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

nav a[aria-current='page'] {
  background-color: var(--accent-cyan);
  box-shadow: 0 4px 8px rgba(6, 182, 212, 0.3);
}

/* Main Content Container */
main {
  min-height: calc(100vh - 200px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-navy) 100%);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(6, 182, 212, 0.03) 2px, rgba(6, 182, 212, 0.03) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(6, 182, 212, 0.03) 2px, rgba(6, 182, 212, 0.03) 4px);
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero .tagline {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 8px 16px rgba(6, 182, 212, 0.3);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.4);
}

/* Mission Section */
.mission-section {
  padding: 5rem 2rem;
  background-color: var(--light-gray);
}

.mission-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 3rem;
}

.training-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.training-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-top: 4px solid var(--accent-cyan);
  animation: fadeIn 1s ease-out;
}

.training-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.training-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.training-card h3 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.training-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Events Page */
.page-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.95;
}

.events-container {
  padding: 4rem 2rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.event-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.event-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
}

.event-content {
  padding: 1.5rem;
}

.event-date {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  color: var(--white);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.event-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.event-link {
  display: inline-block;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.event-link:hover {
  color: var(--accent-teal);
  transform: translateX(5px);
}

.no-events {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Contact Page */
.contact-section {
  padding: 4rem 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-form h2 {
  color: var(--primary-blue);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-button {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 8px rgba(6, 182, 212, 0.3);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(6, 182, 212, 0.4);
}

.contact-info {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent-cyan);
}

.contact-info h2 {
  color: var(--primary-blue);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.info-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: start;
  gap: 1rem;
}

.info-icon {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  min-width: 30px;
}

.info-details h3 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.info-details p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-blue) 100%);
  color: var(--white);
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content p {
  margin: 0.5rem 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent-teal);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }

  nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .tagline {
    font-size: 1rem;
  }

  .mission-section h2,
  .page-header h1 {
    font-size: 2rem;
  }

  .training-areas {
    grid-template-columns: 1fr;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4rem 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .academy-name h1 {
    font-size: 1.25rem;
  }

  nav a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/* Style the course dropdown */
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #0ff;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.85);
  color: #aaffff;
  font-size: 16px;
  outline: none;
  appearance: none; /* Remove default arrow on some browsers */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: 0.3s;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,0 140,0 70,70' fill='cyan'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

/* Style all inputs and selects consistently */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #0ff; /* neon cyan border */
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.85); /* dark background */
  color: #aaffff; /* light cyan text */
  font-size: 16px;
  outline: none;
  transition: 0.3s;
  appearance: none; /* removes default arrow for select in most browsers */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

/* Focus effect for inputs, selects, textareas */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0ff;
  box-shadow: 0 0 8px #0ff; /* glowing effect */
  background: rgba(0, 0, 0, 0.9);
}

/* Hover effect */
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  background: rgba(0, 0, 0, 0.95);
}

/* Optional: add a custom arrow for select to match neon theme */
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,0 10,0 5,6' fill='cyan'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

