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

:root {
  --primary: #38b6ff;
  --primary-hover: #299de0;
  --bg-color: #ffffff;
  --text-main: #111827;
  --text-muted: #4b5563;
  --surface: #f9fafb;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-primary: 0 10px 25px -5px rgba(56, 182, 255, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

.text-primary {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(56, 182, 255, 0.5);
}

/* Desktop Navigation */
.desktop-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 50;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.desktop-menu {
  display: flex;
  gap: 2rem;
}

.desktop-menu a {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 1.05rem;
  position: relative;
}

.desktop-menu a:hover,
.desktop-menu a.active {
  color: var(--primary);
}

.desktop-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.desktop-menu a.active::after,
.desktop-menu a:hover::after {
  width: 100%;
}

/* Main Content Area */
.main-content {
  padding-top: 5rem;
  /* Space for desktop header */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Mobile Navigation (Bottom Tab Bar) */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.mobile-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.mobile-menu li {
  flex: 1;
  display: flex;
  justify-content: center;
}

.mobile-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  width: 100%;
}

.mobile-menu a svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  transition: var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
}

.mobile-menu a:hover svg,
.mobile-menu a.active svg {
  transform: translateY(-2px);
}

/* Floating Middle Button Styling */
.mobile-menu li.center-button {
  position: relative;
  display: flex;
  justify-content: center;
}

.mobile-menu li.center-button a {
  position: absolute;
  top: -30px;
  width: 64px;
  height: 64px;
  background-color: #38b6ff !important;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 15px rgba(56, 182, 255, 0.4);
  color: white !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.mobile-menu li.center-button a span {
  display: block !important;
  position: absolute;
  top: 70px;
  /* Positions the text exactly 6px below the 64px tall circle (64px + 6px gap) */
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.mobile-menu li.center-button a svg {
  stroke: white !important;
  width: 32px;
  height: 32px;
  transform: none !important;
  margin: 0;
}

.mobile-menu li.center-button a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 182, 255, 0.6);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  body {
    padding-bottom: 0;
    /* Remove unnecessary space, let bottom nav sit directly on top */
  }

  .desktop-menu {
    display: none;
  }

  .desktop-header {
    padding: 0.75rem 0;
    background-color: transparent !important;
  }

  .nav-container {
    justify-content: center;
  }

  .mobile-nav {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 80px !important;
    background: #ffffff !important;
    z-index: 999999 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-top: none;
    /* User specified shadow over border-top basically, but box-shadow handles it */
  }

  .main-content {
    padding-top: 100px;
    padding-bottom: 2rem;
  }

  .main-footer {
    padding-bottom: 90px !important;
    /* Move the space INSIDE the dark footer so no white bar appears below it */
  }

  .container {
    padding: 0 1.5rem;
  }
}

/* Section specific styling classes */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Split Text Animation for Section Titles */
.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition-property: opacity, transform;
  transition-duration: 0.5s;
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Snappy bouncy feel */
  will-change: opacity, transform;
}

.section-title.is-visible .split-char {
  opacity: 1;
  transform: translateY(0);
}

/* Animated Star Border (Conic Gradient) Effect */
.star-border-container {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  /* Inherit border radius from parent */
  z-index: 1;
}

.star-border-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: conic-gradient(from 0deg, transparent 0%, transparent 80%, rgba(56, 182, 255, 0.8) 95%, rgba(56, 182, 255, 1) 100%);
  transform: translate(-50%, -50%);
  animation: rotate-star-border 4s linear infinite;
  z-index: -2;
}

.star-border-container::after {
  content: '';
  position: absolute;
  top: 2px;
  /* Border thickness */
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: var(--bg-color);
  /* Match background */
  border-radius: inherit;
  z-index: -1;
}

@keyframes rotate-star-border {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 182, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(56, 182, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(56, 182, 255, 0);
  }
}

.btn-glowing {
  animation: pulse 2s infinite;
}

/* Update the logo spacing and sizing */
.logo {
  padding: 0;
  margin: 0;
}

.logo img {
  height: 60px;
  /* Make the new logo significantly larger and prominent */
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo img {
    height: 48px;
    /* Also larger on mobile */
  }
}

/* Footer Styles */
.main-footer {
  background-color: #0b0f19;
  /* Deep dark blue-black, matching premium look */
  color: #f3f4f6;
  padding: 5rem 0 3rem;
  border-top: 1px solid #1f2937;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 50px;
  width: auto;
}

.footer-desc {
  color: #9ca3af;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #1f2937;
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.footer-social a svg {
  width: 20px;
  height: 20px;
}

.footer-social a:hover {
  background-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(56, 182, 255, 0.4);
}

.footer-title {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: #9ca3af;
  font-size: 1rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .footer-col {
    align-items: center;
  }

  .footer-desc {
    margin: 0 auto 2rem;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .main-footer {
    padding-bottom: 110px;
    /* Safe space for bottom nav */
  }
}