/* Import a modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
  --blue1: #0a2540;
  --blue2: #2563eb;
  --blue3: #60a5fa;
  --white: #fff;
  --glass-bg: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.18);
  --shadow: 0 8px 32px 0 rgba(16,30,54,0.10);
  --radius: 1.5rem;
}

/* Animated gradient background */
body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--blue1);
  background: linear-gradient(120deg, #e0e7ef 0%, #bae6fd 100%);
  background-size: 200% 200%;
  animation: gradientMove 10s ease-in-out infinite;
  overflow-x: hidden;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glassmorphism for nav, cards, footer */
.nav, .glass-card, .footer-inner, .contact-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
}

/* Navigation */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
}
.brand img {
  height: 48px;
  filter: drop-shadow(0 2px 12px #bae6fd88);
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--blue1);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--blue2), var(--blue3));
  transition: width 0.3s;
  border-radius: 2px;
  margin-top: 2px;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a:hover {
  color: var(--blue2);
}
.nav-cta {
  background: linear-gradient(90deg, var(--blue2), var(--blue3));
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.7rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 12px 0 #60a5fa33;
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.nav-cta:hover {
  background: linear-gradient(90deg, var(--blue3), var(--blue2));
  box-shadow: 0 4px 24px 0 #2563eb33;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 5rem 0 3rem 0;
  background: none;
  overflow: hidden;
}
.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
}
.bg-logo {
  position: absolute;
  left: 2vw;
  bottom: 2vw;
  width: 120px;
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
}
.hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.hero-left {
  flex: 1.2;
  min-width: 0;
}
.eyebrow {
  color: var(--blue3);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  text-transform: uppercase;
}
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue1);
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  line-height: 1.1;
  text-shadow: 0 2px 16px #bae6fd33;
}
.hero-sub {
  color: #2563eb;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-weight: 500;
}
.hero-actions {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.btn.primary {
  background: linear-gradient(90deg, var(--blue2), var(--blue3));
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.7rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 12px 0 #60a5fa33;
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.btn.primary:hover {
  background: linear-gradient(90deg, var(--blue3), var(--blue2));
  box-shadow: 0 4px 24px 0 #2563eb33;
}
.btn.ghost {
  background: transparent;
  color: var(--blue2);
  border: 1.5px solid var(--blue3);
  border-radius: 2rem;
  padding: 0.7rem 2rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.btn.ghost:hover {
  background: var(--blue3);
  color: #fff;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--blue2);
  font-size: 1.1rem;
}
.hero-stats strong {
  display: block;
  font-size: 1.3rem;
  color: var(--blue1);
  font-weight: 800;
}
.hero-right {
  flex: 1;
  min-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.glass-card {
  padding: 2.2rem 2rem 1.5rem 2rem;
  min-width: 320px;
  max-width: 370px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(180%);
  color: var(--blue1);
  animation: fadeInUp 1.2s cubic-bezier(.23,1.01,.32,1) 0.2s both;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px);}
  100% { opacity: 1; transform: none;}
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.chip {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue2), var(--blue3));
  box-shadow: 0 0 8px #60a5fa88;
}
.ver {
  color: var(--blue3);
  font-weight: 700;
  font-size: 0.95rem;
}
.card-body h4 {
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  color: var(--blue2);
}
.card-body .muted {
  color: #2563eb99;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
.mini-progress label {
  font-size: 0.95rem;
  color: var(--blue2);
  font-weight: 600;
}
.mini-progress .bar {
  background: #e0e7ef;
  border-radius: 1rem;
  height: 8px;
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.mini-progress .bar span {
  display: block;
  height: 100%;
  border-radius: 1rem;
  background: linear-gradient(90deg, var(--blue2), var(--blue3));
  transition: width 1.2s cubic-bezier(.23,1.01,.32,1);
}
.card-foot {
  margin-top: 1.2rem;
  color: #2563ebcc;
  font-size: 0.98rem;
  font-weight: 500;
}

/* Section Styles */
.section {
  background: linear-gradient(120deg, #f8fafc 60%, #e0e7ef 100%);
  color: var(--blue1);
  border-radius: var(--radius);
  margin: 2rem 0;
  padding: 3rem 0;
  box-shadow: 0 2px 24px 0 #2563eb0a;
  animation: fadeInUp 1.2s cubic-bezier(.23,1.01,.32,1) both;
}
.section.alt {
  background: linear-gradient(120deg, #e0e7ef 60%, #f8fafc 100%);
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue2);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.section-lead {
  color: #2563eb;
  font-size: 1.2rem;
  margin-bottom: 2.2rem;
  font-weight: 500;
}

/* Cards & Grids */
.grid-3, .about-grid, .project-grid, .strategy-grid, .contact-grid {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.card, .about-card, .strategy-card, .project-card {
  background: var(--glass-bg);
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px 0 #2563eb0a;
  padding: 2rem;
  color: var(--blue1);
  backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--glass-border);
  min-width: 220px;
  flex: 1 1 0;
  animation: fadeInUp 1.2s cubic-bezier(.23,1.01,.32,1) both;
}
.card-ic {
  background: linear-gradient(90deg, var(--blue2), var(--blue3));
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px #60a5fa33;
}

/* Project Cards */
.project-card .p-head {
  font-weight: 700;
  color: var(--blue2);
  margin-bottom: 0.2rem;
}
.project-card .p-date {
  color: #2563eb99;
  font-size: 0.98rem;
  margin-bottom: 0.7rem;
}

/* About Cards */
.mission-img-blend {
  width: 100%;
  height: 80px;
  background: linear-gradient(90deg, var(--blue2), var(--blue3));
  border-radius: 1rem 1rem 0 0;
  margin-bottom: 1rem;
}
.mission-img-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #bae6fd, #e0e7ef);
  opacity: 0.3;
  border-radius: 1rem 1rem 0 0;
}
.team-link {
  color: inherit;
  text-decoration: none;
  display: block;
  position: relative;
}
.see-team-popup {
  color: var(--blue3);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.team-link:hover .see-team-popup {
  opacity: 1;
  text-decoration: underline;
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0 0;
  color: var(--blue2);
  font-size: 1.05rem;
}
.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--blue2);
  margin-bottom: 0.3rem;
}
input, textarea {
  background: rgba(255,255,255,0.7);
  border: 1.5px solid var(--blue3);
  border-radius: 1rem;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  color: var(--blue1);
  margin-bottom: 1rem;
  width: 100%;
  transition: border 0.2s;
  font-family: inherit;
}
input:focus, textarea:focus {
  border: 1.5px solid var(--blue2);
  outline: none;
}
::-webkit-input-placeholder { color: var(--blue3); }
::-moz-placeholder { color: var(--blue3); }
:-ms-input-placeholder { color: var(--blue3); }
::placeholder { color: var(--blue3); }
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Footer */
.footer {
  background: linear-gradient(90deg, var(--blue2) 0%, var(--blue3) 100%);
  color: #fff;
  padding: 2rem 0 1rem 0;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: 3rem;
  box-shadow: 0 -2px 24px 0 #2563eb0a;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 2rem;
}
.footer-links a {
  color: #bae6fd;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, #e0e7ef 0%, #bae6fd 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(.23,1.01,.32,1);
}
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.loader-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--blue2), var(--blue3));
  animation: pulse 1.2s infinite alternate;
  margin-top: 1.5rem;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7;}
  100% { transform: scale(1.2); opacity: 1;}
}

/* Responsive Design */
@media (max-width: 1100px) {
  .hero-grid, .about-grid, .grid-3, .project-grid, .strategy-grid, .contact-grid, .footer-inner {
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
  }
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.5rem; }
  .glass-card { min-width: 0; max-width: 100%; }
}
@media (max-width: 700px) {
  .nav-inner, .footer-inner {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1rem;
  }
  .hero {
    padding: 2rem 0 1rem 0;
  }
  .section {
    padding: 1.5rem 0;
  }
  .hero-title { font-size: 1.5rem; }
  .section-title { font-size: 1.1rem; }
}

/* Animations on scroll (GSAP will enhance this) */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.23,1.01,.32,1), transform 0.8s cubic-bezier(.23,1.01,.32,1);
}
[data-animate].animated {
  opacity: 1;
  transform: none;
}
