/* ========== BASE & RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: #d4a017;
  color: #0d1b2a;
}

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(253, 246, 227, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(13, 27, 42, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d4a017;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu lines */
.menu-line {
  display: block;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.5rem;
}

/* Mobile menu links */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ========== HERO GEOMETRIC SHAPES ========== */
.geo-shape {
  position: absolute;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}

.circle-1 {
  width: 120px;
  height: 120px;
  background: #d4a017;
  border-radius: 50%;
  top: 20%;
  right: 8%;
  animation-delay: 0s;
}

.circle-2 {
  width: 60px;
  height: 60px;
  background: #f0c040;
  border-radius: 50%;
  top: 60%;
  right: 15%;
  animation-delay: 1s;
}

.circle-3 {
  width: 40px;
  height: 40px;
  background: #d4a017;
  border-radius: 50%;
  top: 40%;
  right: 5%;
  animation-delay: 2s;
}

.triangle-1 {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid #d4a017;
  top: 15%;
  right: 25%;
  animation-delay: 0.5s;
  opacity: 0.1;
}

.square-1 {
  width: 70px;
  height: 70px;
  background: #d4a017;
  top: 70%;
  right: 22%;
  animation-delay: 1.5s;
  transform: rotate(15deg);
}

.diamond-1 {
  width: 50px;
  height: 50px;
  background: #f0c040;
  top: 30%;
  right: 18%;
  animation-delay: 3s;
  transform: rotate(45deg);
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.square-1 {
  animation-name: floatSquare;
}

@keyframes floatSquare {
  0%, 100% { transform: translateY(0px) rotate(15deg); }
  50% { transform: translateY(-20px) rotate(20deg); }
}

.diamond-1 {
  animation-name: floatDiamond;
}

@keyframes floatDiamond {
  0%, 100% { transform: translateY(0px) rotate(45deg); }
  50% { transform: translateY(-15px) rotate(50deg); }
}

.triangle-1 {
  animation-name: floatTriangle;
}

@keyframes floatTriangle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(10deg); }
}

/* ========== PROGRAM CARDS ========== */
.program-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.program-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FORM STYLES ========== */
input:focus,
select:focus,
textarea:focus {
  border-color: #d4a017 !important;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .circle-1 { width: 80px; height: 80px; }
  .circle-2 { width: 40px; height: 40px; }
  .circle-3 { display: none; }
  .triangle-1 { border-left-width: 30px; border-right-width: 30px; border-bottom-width: 52px; }
  .square-1 { width: 50px; height: 50px; }
  .diamond-1 { display: none; }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ========== FOCUS VISIBLE ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #d4a017;
  outline-offset: 2px;
  border-radius: 4px;
}
