@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');
:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #f59e0b;
  --bg-color-1: #0f172a;
  --bg-color-2: #1e1b4b;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --border-radius: 16px;
  --transition-speed: 0.3s;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}
html {
  scroll-padding-top: 75px;
}
body {
  color: var(--text-main);
  background-color: var(--bg-color-1);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(-45deg, #0f172a, #1e1b4b, #312e81, #0f172a);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
  animation: float 20s infinite ease-in-out;
}
.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  top: -100px;
  left: -100px;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary-color);
  bottom: -100px;
  right: -100px;
  animation-delay: -5s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.1);
  }
}
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius);
}
h1,
h2,
h3 {
  font-weight: 800;
  margin-bottom: 1rem;
}
h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
p {
  color: var(--text-muted);
  line-height: 1.6;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-speed);
}
.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}
.btn-logout {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  padding: 0.5rem 1rem;
}
.btn-logout:hover {
  background: rgba(239, 68, 68, 0.4);
}
nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  z-index: 100;
  transition: all var(--transition-speed);
}
.nav-left { display: flex; align-items: center; gap: 1rem; }
.logo { font-size: 1.5rem; font-weight: 800; color: white; text-decoration: none; }
ul.nav-links { display: flex; list-style: none; gap: 2rem; }
ul.nav-links li a { color: var(--text-main); text-decoration: none; font-weight: 600; transition: color var(--transition-speed); position: relative; }
ul.nav-links li a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background-color: var(--secondary-color); transition: width var(--transition-speed); }
ul.nav-links li a:hover::after, ul.nav-links li a.active::after { width: 100%; }
ul.nav-links li a.active { color: var(--secondary-color); }
section {
  min-height: 100vh;
  padding: 100px 5% 50px 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.auth-container { position: relative; width: 100%; max-width: 500px; margin: 0 auto; min-height: 520px; }
.auth-toggle { display: none; }
.form-box { position: absolute; top: 0; left: 0; width: 100%; padding: 2.5rem; opacity: 0; visibility: hidden; transform: translateX(30px); transition: all 0.4s ease; }
#toggle-login:checked~.login-box, #toggle-register:checked~.register-box { opacity: 1; visibility: visible; transform: translateX(0); z-index: 10; }
.form-box h3 { font-size: 1.8rem; margin-bottom: 1.5rem; text-align: center; }
.input-group { margin-bottom: 1.5rem; position: relative; }
.input-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.input-group input { width: 100%; padding: 0.75rem 1rem; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--glass-border); border-radius: 8px; color: white; font-size: 1rem; outline: none; transition: border-color var(--transition-speed); }
.input-group input:focus { border-color: var(--primary-color); }
.input-group input:not(:placeholder-shown):valid { border-color: #10b981; }
.input-group input:not(:placeholder-shown):invalid { border-color: #ef4444; }
.hero {
  text-align: center;
  max-width: 800px;
}
.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff, var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideUp 1s ease-out;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: slideUp 1s ease-out 0.2s backwards;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.content-wrapper {
  width: 100%;
  max-width: 1200px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text h3 {
  font-size: 2rem;
  color: var(--secondary-color);
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.stat-box {
  padding: 1.5rem;
  text-align: center;
}
.stat-box h4 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  height: 250px;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.7);
}
.gallery-caption {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  transition: bottom 0.3s ease;
  font-weight: 600;
}
.gallery-item:hover .gallery-caption {
  bottom: 0;
}
.courses-flex { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; }
.course-card { flex: 1 1 300px; max-width: 350px; padding: 2rem; text-align: center; transition: transform var(--transition-speed); }
.course-card:hover { transform: translateY(-10px); }
.course-icon { font-size: 3rem; margin-bottom: 1rem; }
/* Application Form Styles */
.styled-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.form-section {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.form-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.form-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}
.form-section-header .icon {
  font-size: 1.8rem;
}
.form-section-header h3 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.form-group label {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"] {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-speed);
}
.form-group input[type="date"] {
  color-scheme: dark;
}
.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.form-group input:focus {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}
.radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.radio-label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: normal !important;
}
.radio-label input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  transition: all var(--transition-speed);
  position: relative;
  margin: 0;
}
.radio-label input[type="radio"]:checked {
  border-color: var(--primary-color);
}
.radio-label input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
}
.radio-label:hover {
  color: var(--text-main);
}
@media screen and (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

footer { text-align: center; padding: 2rem; background: rgba(0, 0, 0, 0.5); margin-top: auto; }

@media screen and (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .auth-container {
    min-height: 600px;
  }
}

@media screen and (max-width: 768px) {
  ul.nav-links {
    flex-direction: column !important;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease-in-out;
    transform: translateY(-150%);
    opacity: 0;
    z-index: 99;
  }
  ul.nav-links.mobile-active {
    transform: translateY(0);
    opacity: 1;
  }
  .w-md-auto {
    width: 100% !important;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  section {
    padding: 30px 5%;
    min-height: auto !important;
    height: auto !important;
  }
  h2 {
    margin-bottom: 2rem;
  }
  .about-grid, .courses-flex {
    gap: 1.5rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
