/* ============================================
   NAVIGATION COMPONENTS - MODERN OVERHAUL
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
  padding: var(--space-4) 0;
  background: transparent;
}

/* Navbar states */
.navbar.scrolled {
  background: rgba(43, 55, 72, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  padding: var(--space-3) 0;
}

.navbar.hidden {
  transform: translateY(-100%);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: auto;
}

/* Logo Redesign */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  position: relative;
  z-index: calc(var(--z-fixed) + 1);
}

.logo-image-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
  overflow: hidden;
}

.logo:hover .logo-image-wrapper {
  transform: scale(1.05) rotate(5deg);
}

.logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  color:#9fb5d5;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-family: var(--font-primary);
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  opacity: 0.9;
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--space-1);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.67rem;
  font-weight: 600;
  padding: var(--space-3) var(--space-5);
  border-radius: 50px;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-primary);
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-base);
  z-index: -1;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-blue-light);
  transform: translateY(-2px);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  opacity: 1;
  transform: scale(1);
}

/* CTA Button in Nav */
.nav-cta {
  color: var(--color-white) !important;
  font-weight: 700 !important;

}



/* Mobile Menu Toggle - Premium Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  padding: 0;
  z-index: calc(var(--z-fixed) + 1);
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-white), var(--brand-blue));
  border-radius: 3px;
  transition: all var(--transition-base);
  transform-origin: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  background: var(--accent-gold-bright);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
  background: var(--accent-gold-bright);
}

/* Mobile Navigation */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(8, 53, 122, 0.56), rgba(0, 0, 0, 0.55));
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-12);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    border: none;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-links a {
    font-size: 1.5rem;
    padding: var(--space-4) var(--space-8);
    width: 100%;
    text-align: center;
  }
  
  .nav-links a::before {
    border-radius: 50px;
  }
  
  .logo-title {
    font-size: 2rem;
  }
  
  .logo-subtitle {
    display: none;
  }
  
  .logo-image-wrapper {
    width: 45px;
    height: 45px;
  }
  
  .logo img {
    width: 49px;
    height: 49px;
  }
}

@media (max-width: 480px) {
  .logo-title {
    font-size: 0.92rem;
    max-width: 150px;
    line-height: 1.3;
  }
  
  .navbar {
    padding: var(--space-3) 0;
  }
}

/* ============================================
   BUTTON COMPONENTS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.875rem;
  font-weight: 700;
  border-radius: 10px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  font-size: var(--font-size-base);
  margin-top: 45px;
}

.btn-primary {
  background: linear-gradient(135deg, #1f2661, #171513);
  color: whitesmoke;
  box-shadow: 0 6px 10px rgba(230, 255, 66, 0.5);
  color: var(--color-white);
  transform: translateY(-3px);
}


/* ============================================
   CARD COMPONENTS
   ============================================ */

.card {
  background-color: var(--bg-card);
  padding: var(--space-6);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.card h2,
.card h3 {
  color: var(--brand-blue-light);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-lg);
}

/* ============================================
   FORM COMPONENTS
   ============================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.form-control {
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-base);
  border: 1px solid #d3d6db;
  border-radius: 8px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.form-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(159, 181, 213, 0.1);
}

/* ============================================
   PROGRAM NAVIGATION
   ============================================ */

.program-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-6);
  background: var(--bg-card);
}

.nav-btn {
  border: 1px solid var(--color-gray-800);
  background: transparent;
  padding: 0.625rem 1.375rem;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--text-primary);
}

.nav-btn:hover,
.nav-btn.active {
  background: var(--color-gray-900);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ============================================
   IMPACT LIST
   ============================================ */

.impact-list {
  list-style: none;
}

.impact-list li {
  margin-bottom: var(--space-3);
  color: var(--color-gray-300);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.impact-list li::before {
  content: "✔";
  color: #ffcc00;
  font-weight: bold;
  flex-shrink: 0;
}

/* ============================================
   NEWSLETTER FORM
   ============================================ */

.newsletter-form {
  display: flex;
  margin-top: var(--space-4);
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-3);
  border: none;
  border-radius: 6px 0 0 6px;
  outline: none;
  font-size: var(--font-size-sm);
}

.newsletter-form button {
  background: var(--accent-gold-dark);
  color: var(--color-black);
  border: none;
  padding: var(--space-3) var(--space-5);
  border-radius: 0 6px 6px 0;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-base);
}

.newsletter-form button:hover {
  background: var(--brand-blue);
  color: var(--color-white);
}
/* Compact Form Overlay - No Scrolling */
.form-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 15px;
  animation: fadeIn 0.3s ease;
}

.form-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Compact Modal - Fits Without Scroll */
.form-modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 450px;
  max-height: none; /* Remove height restriction */
  overflow: visible; /* No scroll */
  box-shadow: 0 25px 80px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Close Button - Smaller */
.close-focus {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.close-focus:hover {
  background: #e5e7eb;
  color: #374151;
  transform: rotate(90deg);
}

/* Compact Form Card Inside Modal */
.form-modal .form-card {
  margin: 0;
  padding: 20px 24px 24px 24px;
  box-shadow: none;
  border-radius: 16px;
  max-width: 100%;
}

.form-modal .form-card h2 {
  font-size: 20px;
  margin-bottom: 8px;
  padding-right: 40px;
  color: #1f2937;
}

.form-modal .form-card > p {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Compact Form Groups */
.form-modal .form-group {
  margin-bottom: 12px;
}

.form-modal .form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-modal .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.2s;
}

.form-modal .form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Compact Textarea */
.form-modal textarea.form-control {
  min-height: 60px;
  resize: none;
}

/* Compact Button */
.form-modal .btn-primary {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}

/* Alert Message Compact */
.form-modal #formAlert {
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  border-radius: 6px;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Mobile - Slightly tighter */
@media (max-width: 480px) {
  .form-overlay {
    padding: 10px;
  }
  
  .form-modal .form-card {
    padding: 18px 20px 20px 20px;
  }
  
  .form-modal .form-card h2 {
    font-size: 18px;
  }
  
  .close-focus {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}


.newsletter-message {
  margin-top: 10px;
  font-weight: 500;
}

.newsletter-message.success {
  color: #4CAF50;
}

.newsletter-message.error {
  color: #ff4d4d;
}

/* ============================================
   SOCIAL ICONS
   ============================================ */

.social-icons {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
}

.social-icons a:hover {
  background: var(--accent-gold-bright);
  transform: translateY(-3px);
}

.social-icons img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.social-icons a:hover img {
  filter: none;
}
/* Form Alert Styles */
.form-alert {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Validation Styles */
.form-control {
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-blue-deep, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.error {
  border-color: #dc2626;
}

.error-text {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
}

/* Button Loading State */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loader {
  font-style: italic;
}