/* ===== GLOBAL VARIABLES ===== */
:root {
  --primary-color: #0066ff;
  --primary-dark: #0052cc;
  --secondary-color: #ff9900;
  --dark-bg: #0a0e27;
  --darker-bg: #050709;
  --text-light: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --border-color: rgba(0, 102, 255, 0.2);
  
  --transition-normal: 0.3s ease;
  --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== RESET & BASICS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--secondary-color);
}

/* ===== BUTTONS ===== */
.btn {
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-block;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 102, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(0, 102, 255, 0.2);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 48px;
  font-size: 18px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary-color);
}

.logo-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition-normal);
  border: none;
  background: none;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  color: var(--text-secondary);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 14, 39, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  margin-top: 10px;
}

.nav-dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
  border-left: 3px solid transparent;
}

.dropdown-content a:hover {
  background: rgba(0, 102, 255, 0.1);
  border-left-color: var(--primary-color);
}

.btn-admin {
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
}

.btn-admin:hover {
  background: var(--primary-dark);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  transition: all var(--transition-normal);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 60px;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.bg-animation {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.15), transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  top: -20%;
  right: -10%;
}

.bg-animation::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 153, 0, 0.08), transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
  bottom: -15%;
  left: -5%;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.5), rgba(5, 7, 13, 0.8));
}

.hero-content {
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  max-width: 900px;
}

.hero-text {
  animation: slideInUp 0.8s ease-out;
}

.hero-title {
  font-size: 72px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 30px;
  min-height: 150px;
}

.hero-title .word {
  display: block;
  background: linear-gradient(135deg, var(--text-light), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease-out 0.4s both;
}

.animate-button {
  animation: slideInUp 0.8s ease-out both;
}

.animate-button:nth-child(2) {
  animation-delay: 0.1s;
}

.hero-stats {
  display: flex;
  gap: 60px;
  justify-content: center;
  animation: slideInUp 0.8s ease-out 0.6s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 48px;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-secondary);
  animation: slideInUp 1s ease-out 1s both;
}

.scroll-arrow {
  display: block;
  font-size: 24px;
  animation: bounce 2s ease-in-out infinite;
}

/* ===== SECTIONS ===== */
.section-title {
  font-size: 48px;
  text-align: center;
  margin-bottom: 60px;
  background: linear-gradient(135deg, var(--text-light), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title .title-word {
  display: inline-block;
  animation: slideInUp 0.6s ease-out;
}

.section-title .title-word:nth-child(1) { animation-delay: 0s; }
.section-title .title-word:nth-child(2) { animation-delay: 0.1s; }
.section-title .title-word:nth-child(3) { animation-delay: 0.2s; }

/* ===== DIVISIONS SECTION ===== */
.divisions {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.division-card {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 51, 153, 0.05));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
  animation: slideInUp 0.6s ease-out;
}

.division-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(0, 51, 153, 0.08));
}

.card-icon {
  font-size: 56px;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.division-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.division-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.card-link {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  transition: all var(--transition-normal);
}

.card-link:hover {
  transform: translateX(5px);
}

/* ===== FEATURES SECTION ===== */
.features {
  padding: 120px 0;
  background: linear-gradient(180deg, rgba(0, 102, 255, 0.03), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-box {
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  transition: all var(--transition-smooth);
  animation: slideInUp 0.6s ease-out;
}

.feature-box:hover {
  border-color: var(--primary-color);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.1);
  background: rgba(0, 102, 255, 0.08);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.feature-box h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.feature-box p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent, rgba(0, 102, 255, 0.03));
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 51, 153, 0.05));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  transition: all var(--transition-smooth);
  animation: slideInUp 0.6s ease-out;
}

.testimonial-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.1);
}

.stars {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 18px;
}

.testimonial-text {
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: 1.8;
  font-size: 16px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  color: var(--text-light);
  font-size: 16px;
}

.testimonial-author small {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 5px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 51, 153, 0.1));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin: 120px 0;
}

.cta-section h2 {
  font-size: 42px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-light), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-section p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--darker-bg);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 20px;
  margin-top: 120px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-secondary);
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(10px);
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }

  .nav-menu.active {
    max-height: 500px;
  }

  .nav-link {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 80px 20px 40px;
  }

  .hero-title {
    font-size: 42px;
    min-height: auto;
  }

  .hero-title .word {
    display: inline;
    margin: 0 5px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-stats {
    gap: 40px;
  }

  .stat-number {
    font-size: 36px;
  }

  .section-title {
    font-size: 32px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .cta-section {
    padding: 60px 20px;
  }

  .cta-section h2 {
    font-size: 28px;
  }

  .cta-section p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 15px 30px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-cta {
    gap: 10px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 12px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .divisions-grid,
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
