@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

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

/* ==================================================
   Base Styles
   ================================================== */
html, body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ==================================================
   Header & Navigation
   ================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  transition: background 0.3s ease, transform 0.3s ease;
}
.header.scrolled #navigation {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.header.hidden {
  transform: translateY(-100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 2rem;
}
.nav__left,
.nav__center,
.nav__right {
  display: flex;
  align-items: center;
}
/* Explicit column widths: 15% / 70% / 15% */
.nav__left {
  flex: 0 0 20%;
}
.nav__center {
  flex: 0 0 60%;
  justify-content: center;
}
.nav__right {
  flex: 0 0 20%;
  justify-content: flex-end;
  gap: 1.5rem;
}

/* Logo */
.nav__logo img {
  width: 108px;
  height: 63px;
  object-fit: contain;
}

/* Menu Links */
.nav__menu {
  list-style: none;
  display: flex;
  justify-content: center;
}
.nav__menu li {
  margin: 0 1rem;
}
.nav__menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav__menu a:hover {
  color: #FF0066;
  text-decoration: underline;
}

/* Icon & Button Spacing */
.nav__icon {
  display: inline-flex;
  margin-right: 1.5rem;
}

/* Mobile Toggle Button (hidden on desktop) */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
@media (max-width: 768px) {
  .nav__center { display: none; }
  .btn-primary { display: none; }
  .nav__icon,
  .nav__toggle { display: block; }
  .nav__right { gap: 1rem; }
}

/* ==================================================
   Buttons (Desktop & Scroll) 
   ================================================== */
.btn,
.btn-primary {
  padding: 1rem 2.5rem;
  background: #333;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, outline 0.2s ease, color 0.2s ease;
}
.btn:hover,
.btn-primary:hover {
  color: #eee;
  background: #024f59;
  outline: 2px solid #024f59;
  outline-offset: 3px;
}

/* ==================================================
   Mobile Menu Overlay
   ================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  z-index: 2000;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateY(0);
}
body.menu-open {
  overflow: hidden;
}

.mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}
.mobile-menu__title {
  font-size: 1.25rem;
  font-weight: 600;
}
.mobile-menu__nav ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  text-align: center;
}
.mobile-menu__nav li {
  margin: 1rem 0;
}
.mobile-menu__nav a {
  font-size: 2rem;
  color: #333;
  text-decoration: none;
}
.mobile-menu__cta {
  text-align: center;
  margin: 1rem 0;
}
.mobile-menu__info {
  margin-top: auto;
  padding: 2rem;
  text-align: center;
  font-size: 1rem;
  color: #555;
}
.mobile-menu__info img {
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* ==================================================
   Hero Section & Cards
   ================================================== */
#landing {
  margin-top: 100px;
  position: relative;
  min-height: calc(100vh + 300px);
  padding: 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 4rem;
}
h1 {
  font-size: 7rem;
  line-height: 1;
  margin-bottom: 1rem;
  text-align: center;
}
.vision-text {
  display: inline-block;
}
@media (max-width: 768px) {
  h1 { font-size: 5rem; }
  .code-text,
  .brand-text,
  .vision-text {
    display: block;
  }
}

.hero-subtext {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.scroll-btn {
  display: inline-block;
  padding: 1.25rem 3rem;
  margin-bottom: 2rem;
  border-radius: 50px;
}

/* Interactive Headline Effects */
.code-text .cursor {
  display: inline-block;
  margin-left: 0.1ch;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
.brand-text {
  display: inline-block;
  animation: float 3s ease-in-out infinite,
             colorchange 5s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes colorchange {
  0%   { color: #FF0066; }
  33%  { color: #00CCFF; }
  66%  { color: #FFCC00; }
  100% { color: #FF0066; }
}

/* ==================================================
   Carousel & Feature Grid
   ================================================== */
.logo-carousel {
  display: flex;
  justify-content: center;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
  width: 100%;
}
.logo-item {
  flex: 0 0 auto;
  height: 50px;
  width: auto;
}
.features-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0 2rem;
  box-sizing: border-box;
  z-index: 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.feature-box {
  height: 600px;
  background: #F4F3F5;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
}
.feature-box h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #333;
  text-align: center;
}
.feature-box img {
  max-width: 80%;
  margin-bottom: 1rem;
}
.feature-box .btn {
  margin-top: auto;
}

/* End of Styles */
/* Ensure mobile menu overlay stays hidden when scrolling */
.header.scrolled .mobile-menu {
  transform: translateY(-100%) !important;
}
