/* ---------------- Reset & Base ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0a2e6e, #004e92, #0072ff);
  background-attachment: fixed;
  color: #fff;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

/* ---------------- Navbar ---------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #00c6ff;
}

.navbar .links {
  display: flex;
  gap: 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.navbar .links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
}

.navbar .links a:hover,
.navbar .links a.active {
  color: #00c6ff;
}

.hamburger {
  display: none;
  font-size: 28px;
  color: #00c6ff;
  cursor: pointer;
}

/* ---------------- Responsive Navbar ---------------- */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .navbar {
    flex-wrap: wrap;
  }

  .navbar .links {
    flex-direction: column;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.95);
    width: 100%;
    padding: 0 8%;
    position: absolute;
    top: 70px;
    left: 0;
    max-height: 0;
    overflow: hidden;
  }

  .navbar .links.show {
    max-height: 500px;
    padding: 1rem 8%;
  }

  .navbar .links a {
    padding: 12px 0;
    width: 100%;
  }
}

/* ---------------- Hero Section ---------------- */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 8%;
  min-height: 100vh;
  flex-wrap: wrap;
  gap: 40px;
}

.hero-text {
  flex: 1;
  max-width: 500px;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-buttons .btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn.primary {
  background: #00c6ff;
  color: #fff;
}

.btn.secondary {
  background: transparent;
  border: 2px solid #00c6ff;
  color: #00c6ff;
}

.btn:hover {
  transform: translateY(-3px);
}

.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img img {
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  background: transparent;
}

.hero-img img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain; /* ensures full image is visible */
  object-position: center top; /* align image fully */
  border-radius: 50%; /* makes it perfectly round */
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  background: transparent;
}


/* ---------------- What We Do ---------------- */
.what-we-do {
  padding: 80px 10%;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  margin: 80px auto;
  max-width: 1200px;
}

.what-we-do h2 {
  font-size: 2.2rem;
  color: #00c6ff;
  margin-bottom: 40px;
}

.what-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.what-card {
  background: rgba(255,255,255,0.08);
  padding: 25px;
  border-radius: 20px;
  text-align: left;
  transition: 0.3s;
}

.what-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.15);
}

/* ---------------- Products ---------------- */
.products {
  padding: 80px 8%;
  text-align: center;
}

.products h2 {
  color: #00c6ff;
  margin-bottom: 20px;
}

.product-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  flex-wrap: wrap;
}

.product {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  flex: 1 1 45%;
  min-width: 300px;
  max-width: 500px;
  transition: 0.3s;
}

.product:hover {
  transform: translateY(-10px);
}

.product img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 20px;
  background: transparent;
}

/* ---------------- Why Splxit ---------------- */
.split {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
}

.split .card {
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  flex: 1 1 250px;
  transition: 0.3s;
}

.split .card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.15);
}

/* ---------------- Footer ---------------- */
footer {
  flex-shrink: 0;
  margin-top: auto;
  text-align: center;
  padding: 30px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  color: #fff;
}

footer img {
  background: transparent;
}

footer .socials {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

footer .socials img {
  height: 28px;
  margin: 0 6px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

footer .socials img:hover {
  transform: scale(1.15);
  filter: brightness(0) invert(1) drop-shadow(0 0 5px #00c6ff);
}

footer a {
  color: #00c6ff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ---------------- Responsive Tweaks ---------------- */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-img img {
    max-width: 80%;
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  footer {
    font-size: 0.8rem;
    padding: 20px;
  }
}

/* ---------------- Center Alignment Refinement ---------------- */
.what-we-do,
.split {
  margin: 80px auto;          /* Centers the entire section */
  max-width: 1200px;          /* Keeps content width consistent */
  text-align: center;         /* Ensures headers are centered */
  padding: 60px 20px;         /* Adds uniform breathing space */
}

.split .card {
  text-align: center;
}
 
.split {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* ---------------- Page Header Alignment ---------------- */
.page-header {
  text-align: center;
  margin: 60px auto 20px;
  max-width: 1200px;
}

.page-header h2 {
  font-size: 2.2rem;
  color: #00c6ff;
  margin-bottom: 10px;
}

.page-header {
  margin-bottom: 0;
}

/* ---------------- Subpage Layout (Learn, Jobs, About, etc.) ---------------- */
.subpage {
  padding: 80px 10%;
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
  line-height: 1.7;
}

.subpage h1 {
  font-size: 2.6rem;
  color: #00c6ff;
  margin-bottom: 25px;
  text-align: center;
}

.subpage h2 {
  font-size: 1.6rem;
  color: #00c6ff;
  margin: 40px 0 15px;
}

.subpage p,
.subpage li {
  font-size: 1.15rem;
}

.subpage ul,
.subpage ol {
  margin-left: 20px;
}

.subpage .btn {
  margin-top: 30px;
}

/* Navbar visual balance fix */
.navbar {
  padding: 20px 10%;
}

/* Optional: give main area same glass look as other sections */
.subpage {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* --- Page Spacing & Navbar Consistency --- */
main {
  padding: 80px 10%;
  margin-top: 40px;       /* Adds space below navbar */
  margin-bottom: 60px;    /* Adds space above footer */
}

/* Ensure subpages have same visual spacing */
.subpage,
.page-header,
.split {
  margin-top: 40px;
  margin-bottom: 60px;
}

/* Make navbar height consistent and modern */
.navbar {
  padding: 25px 10%;
  min-height: 70px;      /* Ensures it’s tall enough visually */
}

/* Adjust logo font for balance */
.navbar .logo {
  font-size: 1.8rem;
}

/* Improve link readability */
.navbar .links a {
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}


main {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* === SPLXIT LAUNCH BUTTONS (Exclusive Style) === */
.launch-btn {
  display: inline-block;
  padding: 14px 38px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #007CF0, #00DFD8);
  box-shadow: 0 8px 25px rgba(0, 223, 216, 0.4);
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
}

/* Hover effect: glow + shimmer */
.launch-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 223, 216, 0.6);
  background: linear-gradient(135deg, #00DFD8, #007CF0);
}

/* Shimmer streak */
.launch-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-25deg);
  transition: all 0.7s ease;
}

.launch-btn:hover::before {
  left: 125%;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .launch-btn {
    padding: 12px 28px;
    font-size: 0.95rem;
  }
}

/* === Mobile tuning: reduce vertical space and text sizes === */
@media (max-width: 600px) {
  /* Hero: remove full-viewport height and tighten padding */
  .hero {
    padding: 30px 6%;
    min-height: auto;      /* don't force full-screen hero */
    gap: 18px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 1.6rem;     /* smaller headline on phones */
    line-height: 1.15;
    margin-bottom: 12px;
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 14px;
  }

  .cta-buttons .btn {
    padding: 10px 18px;
    font-size: 0.95rem;
  }

  /* Hero image smaller so it doesn't push layout */
  .hero-img img {
    max-width: 180px;
    width: 50%;
    height: auto;
    object-fit: contain;
  }

  /* Sections: less padding so boxes don't touch navbar/footer */
  .what-we-do,
  .products,
  .subpage,
  .split {
    padding: 30px 6%;
    margin: 40px auto;
  }

  .what-we-do h2,
  .products h2,
  .page-header h2,
  .subpage h1 {
    font-size: 1.4rem;
  }

  .what-card,
  .product,
  .split .card {
    padding: 18px;
  }

  .what-card h3,
  .split .card h3,
  .product h2 {
    font-size: 1.05rem;
  }

  .what-card p,
  .subpage p,
  .subpage li {
    font-size: 0.98rem;
  }

  /* Navbar: slightly smaller padding but keep clickable area */
  .navbar {
    padding: 12px 6%;
    min-height: 56px;
  }

  .navbar .logo {
    font-size: 1.5rem;
  }

  .navbar .links a {
    font-size: 0.98rem;
  }

  /* Launch button was already responsive; just ensure it fits */
  .launch-btn {
    padding: 10px 22px;
    font-size: 0.95rem;
  }

  /* Reduce large box shadows slightly for performance & visual calm */
  main, .what-we-do, .split {
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  }
}

/* ✅ Fix hero buttons centering on mobile */
@media (max-width: 768px) {
  .cta-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;       /* centers horizontally */
    justify-content: center;   /* centers vertically */
    text-align: center;
    gap: 10px;                 /* space between buttons */
  }

  .cta-buttons .btn {
    width: auto;               /* allow natural width */
    text-align: center;
  }

  .hero-text {
    text-align: center;        /* centers heading and text */
    margin: 0 auto;
  }

  .hero-text h1,
  .hero-text p {
    text-align: center;
  }
}
