:root {
  --primary: #1d70b8;
  --primary-dark: #155a8a;
  --primary-light: #3b8fd9;
  --secondary: #f39200;
  --secondary-dark: #d67d00;
  --accent: #f39200;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --glass: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page Loader */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d9488 0%, #1d70b8 50%, #f39200 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  /* Fallback: Auto hide after 4 seconds even without JS */
  animation: safeHide 0s linear 4s forwards;
  pointer-events: all;
}

@keyframes safeHide {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

#page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

.loader-text {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Outfit",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

.animate-fade {
  animation: fadeIn 0.8s ease forwards;
}

.animate-slide {
  animation: slideIn 0.8s ease forwards;
}

.animate-scale {
  animation: scaleIn 0.6s ease forwards;
}

/* Glassmorphism Classes */
.glass-nav {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

.glass-nav.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(29, 112, 184, 0.2);
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  flex-shrink: 0;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  display: block;
}

.nav-links {
  display: flex;
  gap: 45px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
  display: block;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 8px 20px rgba(29, 112, 184, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(29, 112, 184, 0.4);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(29, 112, 184, 0.25);
}

/* Hero Section */
.hero {
  padding: 180px 0 120px;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(29, 112, 184, 0.08),
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(243, 146, 0, 0.08),
      transparent 50%
    ),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
  position: relative;
}

.hero-flex {
  display: flex;
  align-items: center;
  gap: 80px;
  text-align: left;
}

.hero-content {
  flex: 1.2;
  z-index: 5;
}

.hero-media {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 5;
}

.hero-image-wrap {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-image-wrap img {
  width: 100%;
  max-width: 550px;
  border-radius: 40px;
  box-shadow:
    0 40px 80px -15px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  border: 10px solid white;
}

.hero-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: linear-gradient(
    135deg,
    rgba(29, 112, 184, 0.25),
    rgba(243, 146, 0, 0.25)
  );
  filter: blur(120px);
  border-radius: 50%;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: blobMove 20s infinite alternate;
}

.hero h1 {
  font-size: 4.8rem;
  line-height: 1.1;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.8;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(2deg);
  }
}

@keyframes blobMove {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    transform: translate(-30%, -40%) scale(1.2);
  }
}

.stagger-1 {
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.stagger-2 {
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.stagger-3 {
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

/* Sections */
.section-title {
  text-align: center;
  margin-bottom: 70px;
}

.section-title h2 {
  font-size: 3rem;
  color: var(--text-main);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

/* Service Icons */
.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    rgba(29, 112, 184, 0.1),
    rgba(29, 112, 184, 0.05)
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 24px;
  transition: var(--transition);
}

.glass-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  transform: rotate(-10deg) scale(1.1);
}

/* Mission Cards */
.mission-card {
  padding: 48px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: white;
  border: 2px solid #e2e8f0;
  transition: var(--transition);
}

.mission-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

/* FAQ Styles */
.faq-item {
  background: white;
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 2px solid #e2e8f0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-light);
}

.faq-question {
  padding: 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  transition: var(--transition);
}

.faq-question:hover {
  background: #f8fafc;
  color: var(--primary);
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--primary);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-item.active {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.faq-item.active .faq-answer {
  padding: 0 24px 24px;
  max-height: 300px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* Stats */
.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 8px;
  color: var(--primary);
  font-weight: 900;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 2px solid #e2e8f0;
  outline: none;
  transition: var(--transition);
  font-size: 1rem;
  font-family: inherit;
  background: white;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 112, 184, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 80px 0 30px;
  margin-top: 120px;
  border-top: 2px solid #e2e8f0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-content h4 {
  margin-bottom: 20px;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-content ul {
  list-style: none;
}

.footer-content ul li {
  margin-bottom: 12px;
}

.footer-content a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-content a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  padding-top: 30px;
  border-top: 2px solid #e2e8f0;
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1100px) {
  .hero-flex {
    flex-direction: column;
    text-align: center;
    gap: 60px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content .stagger-3 {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .nav-links {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .container {
    padding: 0 20px;
  }

  .header-wrapper {
    height: 75px;
  }

  .logo img {
    height: 48px !important;
  }

  .nav-auth {
    gap: 10px;
  }

  .nav-auth .btn {
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero {
    padding: 140px 0 80px;
  }
}
/* =========================================
   Responsive Media Queries
   ========================================= */

@media (max-width: 1024px) {
  .hero-flex {
    flex-direction: column;
    text-align: center;
  }

  .hero h1 {
    font-size: 3.5rem !important;
  }

  .hero-content {
    margin: 0 auto;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Footer responsiveness */
  .footer-content {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .header-wrapper {
    height: auto !important;
    flex-direction: column;
    padding: 20px 0;
    gap: 20px;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px !important;
    display: none !important; /* Mobile menu implementation recommended */
  }

  .nav-auth {
    width: 100%;
    justify-content: center;
  }
  
  /* Hero Section */
  .hero {
    padding: 150px 0 80px !important;
  }

  .hero h1 {
    font-size: 2.8rem !important;
  }

  .hero p {
    font-size: 1rem !important;
  }

  /* Grid Layouts to Single Column */
  .grid, 
  .footer-content,
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  /* About Section */
  #about .container {
    grid-template-columns: 1fr !important;
  }

  /* Cards */
  .glass-card {
    padding: 25px !important;
  }

  /* Typography */
  h2 {
    font-size: 2.2rem !important;
  }
  
  /* Form Inputs on Mobile */
  input, select, textarea {
    font-size: 16px !important; /* Prevent zoom on iOS */
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem !important;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }

  .container {
    padding: 0 20px;
  }
}
