:root {
    --primary-color: #3685d8;
    --primary-hover: #2f72bf;
    --text-dark: #0f172a;
    --text-light: #d1d5db;
    --bg-dark: #000;
    --bg-light-start: rgba(245, 247, 248, 0.85);
    --bg-light-end: rgba(230, 235, 238, 0.85);
    --font-primary: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --shadow-color: #004aad;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: #fff;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 1rem;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.navbar.hidden {
  transform: translateY(-120%);
  opacity: 0;
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.pill-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  border-radius: 9999px;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-light-start) 0%, var(--bg-light-end) 100%);
  color: var(--text-dark);
  box-shadow: 0 6px 24px var(--shadow-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Safari support */
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: bold;
}

.nav-links {
  display: none;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}


/* ====== MOBILE MENU ====== */
.nav-mobile {
  display: flex;
}

.menu-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
}

.menu-icon .line {
  width: 1.5rem;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 9999px;
  transition: all 0.3s ease-in-out;
}

/* Hamburger to X animation */
.menu-icon.active .line-1 {
  transform: translateY(0.35rem) rotate(45deg);
}

.menu-icon.active .line-2 {
  opacity: 0;
}

.menu-icon.active .line-3 {
  transform: translateY(-0.35rem) rotate(-45deg);
}

/* Mobile Menu Panel */
.mobile-menu {
  position: fixed;
  top: 1rem;
  left: 50%;
  width: 90%;
  max-width: 400px;
  background: linear-gradient(180deg, rgb(245, 247, 248) 0%, rgb(230, 235, 238) 100%);
  color: var(--text-dark);
  border-radius: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 4rem 2rem 2rem;
  z-index: 1010;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -20px);
  /* Start slightly above */
  transition: transform 0.4s ease-out, opacity 0.4s ease-out, visibility 0s 0.4s;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mobile-menu.mobile-menu-active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  /* End at the correct position */
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.close-menu-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

.close-menu-btn svg {
  width: 100%;
  height: 100%;
  color: var(--text-dark);
}

.mobile-menu a {
  width: 100%;
  text-align: right;
  padding: 0.75rem 0;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 1.25rem;
  font-weight: 500;
}

/* Menu backdrop */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1005;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .nav-mobile,
    .mobile-menu,
    .menu-backdrop {
        display: none;
    }
}

/* ===== HERO ===== */

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* behind content */
}
.hero-section {
    position: relative;
    min-height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10; /* in front of canvas */
    text-align: center;
    max-width: 900px;
    color: #fff;
    padding: 0 1rem;
}

.hero-content h1 {
            font-size: 4rem;
            font-weight: 900;
            margin-bottom: 2rem;
            background: linear-gradient(135deg, #fff 0%, var(--primary-color) 50%, #fff 100%);
            background-size: 200% 200%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: gradient-shift 4s ease-in-out infinite;
            position: relative;
}

        .hero-content h1::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
            animation: line-glow 2s ease-in-out infinite alternate;
        }

        @keyframes gradient-shift {

            0%,
            100% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }
        }

        @keyframes line-glow {
            0% {
                opacity: 0.5;
                box-shadow: 0 0 5px var(--primary-color);
            }

            100% {
                opacity: 1;
                box-shadow: 0 0 20px var(--primary-color);
            }
        }
        

.hero-content p {
    font-size: 1.4rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1.2rem 2.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .4s;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    transition: left .5s;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(54, 133, 216, .3);
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
    padding: 6rem 2rem;
    text-align: center;
    background-color: #0a0a0a;
}

.partners-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
}

.partner-cards {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: linear-gradient(135deg, rgba(54, 133, 216, .1), rgba(255, 255, 255, .05));
    padding: 2rem;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(54, 133, 216, .3);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card p {
    color: var(--text-light);
}

/* ===== STEPS SECTION ===== */
.steps-section {
    padding: 6rem 2rem;
    text-align: center;
    background: #111;
}

.steps-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.step {
    background: linear-gradient(135deg, rgba(54, 133, 216, .1), rgba(255, 255, 255, .05));
    padding: 2rem;
    border-radius: 1rem;
    min-width: 180px;
    max-width: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(54, 133, 216, .2);
}

.step span {
    display: inline-block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-light);
    font-size: 1.1rem;
}


/* ====== CONTACT INFO (WHITE BACKGROUND) ====== */
.contact-info h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  position: relative;
}

.contact-info h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  border-radius: 2px;
}

.contact-info p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact-method::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(54, 133, 216, 0.05), transparent);
  transition: left 0.6s ease;
}

.contact-method:hover::before {
  left: 100%;
}

.contact-method:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(54, 133, 216, 0.15);
}

.method-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.method-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.method-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
}

.method-content {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

.copy-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #22c55e;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.copy-indicator.show {
  opacity: 1;
  transform: translateY(0);
}

/* ====== WHITE CONTACT SECTION ====== */
.contact-section {
  background: #fff;
  padding: 6rem 2rem;
  color: var(--text-dark);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: 1fr;
  gap: 4rem;
}     


@media (min-width: 968px) {
  .contact-container {
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
  }
}

/* ====== CONTACT INFO (WHITE BACKGROUND) ====== */
.contact-info h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  position: relative;
}

.contact-info h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  border-radius: 2px;
}

.contact-info p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact-method::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(54, 133, 216, 0.05), transparent);
  transition: left 0.6s ease;
}

.contact-method:hover::before {
  left: 100%;
}

.contact-method:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(54, 133, 216, 0.15);
}

.method-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.method-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.method-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
}

.method-content {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}


/* ====== CONTACT FORM (WHITE BACKGROUND) ====== */
/* ====== FOOTER ====== */
.footer {
  background-color: #0f172a;
  color: var(--text-light);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
}

.footer a {
  color: var(--text-light);
  margin: 0 0.75rem;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--primary-color);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
}
