/* =========================
   DESIGN SYSTEM
========================= */
:root {
  --primary: #097733;
  --secondary: #160ac4;

  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);

  --text-main: #ffffff;
  --text-muted: #94a3b8;

  --blur: blur(14px);
  --radius: 16px;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  color: var(--text-main);
  overflow-x: hidden;
  background: linear-gradient(-45deg, #0f172a, #1e293b, #020617, #1e1b4b);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
}

/* BACKGROUND ANIMATION */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =========================
   NAVBAR (GLASS)
========================= */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 10%;
  position: fixed;
  width: 100%;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(4, 252, 66, 0.938);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.logo h2 {
  font-size: 1.3rem;
}

nav a {
  color: var(--text-main);
  margin-left: 20px;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: var(--secondary);
}

/* =========================
   HERO
========================= */
.hero {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  text-align: center;
  padding: 20px;
}

.hero h1 {
  font-size: 3rem;
}

.hero span {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
}

.hero .hero-image {
@media (max-width: 768px) {

  /* Prevent layout overflow */
  body {
    overflow-x: hidden;
  }

  /* HERO IMAGE FIX */
  .hero-image {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
  }

  .hero-image img {
    width: 100%;
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
  }

}
}

/* =========================
   BUTTON (GLOBAL)
========================= */
.btn {
  margin-top: 20px;
  padding: 14px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;

  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;

  transition: 0.3s ease;
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 35px rgba(0, 247, 255, 0.8);
}

/* =========================
   PRODUCTS SECTION
========================= */
.products {
  padding: 80px 10%;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

/* GLASS CARD */
.card {
  width: 300px;
  padding: 30px;
  border-radius: var(--radius);

  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);

  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
}

/* =========================
   FADE ANIMATION
========================= */
.fade {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s ease;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   CONTACT (GLASS UPGRADE)
========================= */
.contact {
  padding: 100px 20px;
}

.contact-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

/* LEFT */
.contact-info {
  flex: 1;
}

.contact-info h2 {
  font-size: 32px;
}

.contact-info p {
  color: var(--text-muted);
  margin: 15px 0;
}

.info-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.brand {
  margin-top: 25px;
  color: var(--text-muted);
}

/* RIGHT FORM */
.contact-form {
  flex: 1;
  padding: 30px;
  border-radius: var(--radius);

  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
}

/* INPUTS */
.input-group {
  position: relative;
  margin-bottom: 22px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: white;
  outline: none;
}

.input-group label {
  position: absolute;
  left: 12px;
  top: 14px;
  font-size: 14px;
  color: var(--text-muted);
  transition: 0.3s;
  background: transparent;
}

.input-group input:focus + label,
.input-group textarea:focus + label,
.input-group input:valid + label,
.input-group textarea:valid + label {
  top: -10px;
  font-size: 12px;
  color: var(--secondary);
}

/* STATUS */
#formStatus {
  margin-top: 15px;
  font-size: 14px;
}

/* =========================
   CONTENT SECTION (FIXED)
========================= */
.content-section {
  padding: 80px 20px;
}

.container {
  max-width: 1000px;
  margin: auto;
}

/* USE SAME GLASS CARD */
.content-section .card {
  margin-bottom: 25px;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .navbar {
    padding: 15px 5%;
  }

  .products {
    padding: 60px 5%;
  }

  .contact-container {
    flex-direction: column;
  }
}

/* 3D CARD EFFECT */
.card {
  transform-style: preserve-3d;
  perspective: 1000px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: 0.5s;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: rotateY(8deg) rotateX(6deg) scale(1.05);
}

.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #6366f1, #8b5cf6, transparent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  box-shadow: 0 0 20px #6366f1, 0 0 40px #8b5cf6;
}

.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  font-size: 24px;
  padding: 15px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  z-index: 1000;
  transition: 0.3s;
}

.whatsapp:hover {
  transform: scale(1.1);
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  width: 300%;
  height: 300%;
  top: -100%;
  left: -100%;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
  transform: rotate(25deg);
  transition: 0.5s;
}

.btn:hover::after {
  top: 0;
  left: 0;
}

.about {
  text-align: center;
  padding: 80px 20px;
}

.about-intro {
  font-size: 18px;
  margin: 20px auto 40px;
  max-width: 600px;
  color: #cbd5f5;
}

.about-intro .bad {
  color: #f87171;
  font-weight: 500;
}

.about-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.about-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 25px;
  width: 260px;
  transition: 0.3s;
  border: 1px solid rgba(255,255,255,0.1);
}

.about-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0 25px rgba(99,102,241,0.4);
}

.about-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.about-card p {
  font-size: 14px;
  color: #94a3b8;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

.nav-links {
  display: flex;
  gap: 20px;
}

/* MOBILE */
@media(max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 65px;
    right: 15px;
    background: #0f172a;
    flex-direction: column;
    width: 220px;
    padding: 20px;

    opacity: 0;
    pointer-events: none;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* =========================
   FIXED TOP NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 20px;
  background: #0f172a;
  color: white;

  z-index: 10000;
}

/* push page content down so navbar doesn't cover it */
body {
  padding-top: 80px;
}

/* logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* desktop links */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

/* hamburger icon */
.menu-toggle {
  font-size: 30px;
  cursor: pointer;
  display: none;
}

/* mobile view */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;

    position: fixed;
    top: 70px;
    right: 15px;

    flex-direction: column;
    background: #1e293b;
    padding: 15px;
    border-radius: 10px;

    width: 180px;
    z-index: 9999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
  }
}

body {
  font-family: system-ui;
  background: #0f172a;
  color: #fff;
  line-height: 1.6;
}

/* HERO */
.hero {
  text-align: center;
  padding: 60px 20px;
}

.cta-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background: #00ffd5;
  color: #000;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
}

/* FEATURED */
.featured-card {
  display: flex;
  gap: 20px;
  margin: 30px 0;
}

.featured-card img {
  width: 300px;
  border-radius: 10px;
}

/* BADGE */
.badge {
  background: #00ffd5;
  color: #000;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
}

/* GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 20px;
}

/* CARD */
.card {
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 15px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
}

/* NEWSLETTER */
.newsletter {
  text-align: center;
  margin-top: 40px;
}

.card {
  margin: 0 auto;   /* centers horizontally */
  max-width: 350px; /* prevents it from stretching too wide */
}

/* =========================
   EBOOK SLIDER UPGRADE
========================= */

.slider {
  overflow: hidden;
  width: 100%;
  padding: 40px 0;
  position: relative;
}

.slide-track {
  display: flex;
  gap: 30px;
  width: max-content;
  will-change: transform;
  cursor: grab;
}

.slide-track:active {
  cursor: grabbing;
}

/* ONLY slider cards */
.slider .card {
  min-width: 300px;
  max-width: 300px;

  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(15px);

  border: 1px solid rgba(255,255,255,0.15);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.4),
    inset 0 1px rgba(255,255,255,0.15);

  border-radius: 18px;

  transition: transform 0.5s ease,
              box-shadow 0.5s ease;

  overflow: hidden;
}

.slider .card:hover {
  transform: rotateY(10deg) rotateX(5deg) scale(1.05);
}

.slider .card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.slider .card h3,
.slider .card h1 {
  margin-top: 15px;
}

.slider .card p {
  color: #cbd5e1;
  line-height: 1.6;
}

.slider .btn {
  width: 100%;
  margin-top: 15px;
}

.slider .card,
.slider .btn {
  will-change: transform;
}
/* =========================
   SLIDER CONTAINER
========================= */
.slider {
  overflow: hidden;
  width: 100%;
  padding: 40px 0;
}

/* =========================
   TRACK (MOVING ROW)
========================= */
.track {
  display: flex;
  gap: 20px;
  width: max-content; /* 🔥 VERY IMPORTANT */
}

/* =========================
   CARD FIX FOR SLIDER
========================= */
.track .card {
  min-width: 260px;   /* controls size */
  flex-shrink: 0;     /* 🔥 prevents shrinking */
}

.footer {
  background: #0d0d0d;
  color: #ccc;
  padding: 20px 15px;
  font-size: 14px;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}

.footer-brand {
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-cta .btn {
  padding: 6px 12px;
  font-size: 13px;
}

.footer-bottom {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: #777;
}