@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg-main: #11366b;
  --bg-surface: #194a8d;
  --bg-card: #205ca8;
  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.5);
  --primary-dark: #0284c7;
  --text-main: #ffffff;
  --text-muted: #bae6fd;
  --border-light: rgba(255, 255, 255, 0.15);
  --max-width: 1200px;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow-glow: 0 0 20px var(--primary-glow);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-main);
  background-image:
    radial-gradient(
      circle at 15% 30%,
      rgba(56, 189, 248, 0.15),
      transparent 35%
    ),
    radial-gradient(
      circle at 85% 60%,
      rgba(14, 165, 233, 0.15),
      transparent 35%
    ),
    radial-gradient(circle at 50% 100%, rgba(2, 132, 199, 0.15), transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Outfit", sans-serif;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

/* Layout */
.container {
  width: min(90%, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-heading {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-inline: auto;
}

.section-heading h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #0ea5e9, #38bdf8, #0ea5e9);
  background-size: 300% 300%;
  animation: bgGradient 6s ease infinite;
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

@keyframes bgGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-accent {
  background: linear-gradient(135deg, #991b1b, #dc2626, #ef4444, #dc2626);
  background-size: 300% 300%;
  animation: bgGradient 6s ease infinite;
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(17, 54, 107, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: "Outfit", sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.logo-main span {
  color: var(--primary);
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 1.05rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a.active {
  color: #fff;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-main);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroCrossfade 30s infinite linear;
}

@keyframes heroCrossfade {
  0% { opacity: 0; transform: scale(1); }
  6% { opacity: 1; }
  16% { opacity: 1; transform: scale(1.05); }
  23% { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.08); }
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }
.hero-slide:nth-child(5) { animation-delay: 20s; }
.hero-slide:nth-child(6) { animation-delay: 25s; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(17, 54, 107, 0.15), rgba(17, 54, 107, 0.8)),
    radial-gradient(circle at center, transparent 0%, rgba(17, 54, 107, 0.5) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  margin-top: -60px;
}

.hero-logo-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 0px;
}

.hero-logo {
  display: block;
  height: 400px;
  width: auto;
  max-width: 95vw;
  object-fit: contain;
}

.eyebrow {
  display: inline-block;
  background: rgba(0, 162, 255, 0.1);
  color: #33b5ff;
  border: 1px solid rgba(0, 162, 255, 0.2);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -1px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
  background: linear-gradient(to right, #33b5ff, #00a2ff, #a855f7, #33b5ff);
  background-size: 300% 300%;
  animation: bgGradient 6s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Cards & Grids */
.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(32, 92, 168, 0.6);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.2),
    inset 0 0 20px rgba(14, 165, 233, 0.2);
}

.card:hover::before {
  transform: translateX(100%);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 162, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card p {
  color: var(--text-muted);
}

/* CTA Section */
.cta-box {
  background: linear-gradient(
    135deg,
    rgba(32, 92, 168, 0.4),
    rgba(17, 54, 107, 0.9)
  );
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 24px;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(0, 162, 255, 0.1),
    transparent 50%
  );
  z-index: 0;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

/* Footer */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 40px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: #fff;
}

.footer-col p,
.footer-col a {
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Page Header (for inner pages) */
.page-header {
  padding: 130px 0 60px;
  background: linear-gradient(to bottom, rgba(56, 189, 248, 0.15), transparent);
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.page-logo-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 1rem;
}

.page-logo {
  display: block;
  height: 280px;
  width: auto;
  max-width: 95vw;
  object-fit: contain;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
}

.page-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Utility Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1000;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  .nav-links {
    gap: 16px;
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 60px 0;
  }
  .hero-actions {
    flex-direction: column;
  }

  .hero-logo {
    height: 200px;
  }
  
  .hero-logo-wrapper {
    margin-bottom: 16px;
  }

  .page-logo {
    height: 160px;
  }

  .hero-content {
    margin-top: -120px;
  }
  
  .page-header {
    padding: 90px 0 50px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .page-header h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .mobile-toggle {
    display: block;
  }

  .nav .btn {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(17, 54, 107, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 0;
    gap: 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    padding: 20px 0;
  }

  .nav-links a {
    padding: 16px 24px;
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
  }

  .nav-links a::after {
    display: none;
  }
}

/* Contact Form */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 16px;
  background: rgba(32, 92, 168, 0.4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: "Inter", sans-serif;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 162, 255, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='%23ffffff' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position-x: calc(100% - 16px);
  background-position-y: center;
}
