@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700;800&display=swap');

/* =====================================================
   DARK MODE DEFAULT (GLOBAL)
===================================================== */
:root {
  --blue: #38bdf8;
  --purple: #7c3aed;

  --bg-main: #020617;
  --bg-soft: #0f172a;
  --card-bg: #020617;

  --text-main: #e5e7eb;
  --text-muted: #94a3b8;

  --border: rgba(255,255,255,0.12);

  --nav-bg: linear-gradient(
    135deg,
    rgba(15,23,42,0.95),
    rgba(2,6,23,0.95)
  );

  --hero-bg:
    radial-gradient(circle at top left, rgba(56,189,248,0.25), transparent 45%),
    radial-gradient(circle at bottom right, rgba(99,102,241,0.25), transparent 45%),
    linear-gradient(180deg, #020617, #0f172a);
}

/* =====================================================
   LIGHT MODE (ONLY WHEN TOGGLED)
===================================================== */
body.light {
  --bg-main: #fcfcf8;
  --bg-soft: #ffffff;
  --card-bg: #ffffff;

  --text-main: #0f172a;
  --text-muted: #475569;

  --border: #e5e7eb;

  --nav-bg: linear-gradient(
    135deg,
    rgba(59,130,246,0.15),
    rgba(99,102,241,0.15)
  );

  --hero-bg:
    radial-gradient(circle at top left, rgba(59,130,246,0.18), transparent 45%),
    radial-gradient(circle at bottom right, rgba(99,102,241,0.18), transparent 45%),
    linear-gradient(180deg, #f8fafc, #e2e8f0);
}

/* =====================================================
   RESET & GLOBAL
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* =====================================================
   NAVBAR
===================================================== */
.navbar {
  height: 72px;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(14px);
}

.navbar a {
  margin-left: 22px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  position: relative;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
}

/* =====================================================
   THEME TOGGLE
===================================================== */
.theme-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(56,189,248,0.45);
}

/* =====================================================
   HERO
===================================================== */
.hero {
  min-height: 85vh;
  padding-top: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 1.5px;

  /* ✅ REMOVE YELLOW */
  background: none;
  padding: 0;

  /* ✅ CLEAN TEXT COLOR */
  color: #ffffff;

  /* ✅ SOFT SHADOW FOR READABILITY */
  text-shadow:
    0 10px 30px rgba(0,0,0,0.55),
    0 0 60px rgba(56,189,248,0.35);
}


.hero-sub {
  margin: 28px auto 40px;
  max-width: 720px;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.2s;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 20px;
}



/* ================= HERO BACKGROUND SLIDESHOW ================= */

.hero-bg-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-slideshow span {
  position: absolute;
  inset: 0;

  background-image: var(--bg);
  background-size: cover;
  background-position: center;

  /* ✅ BLUR EFFECT */
  filter: blur(10px) brightness(0.8);
  transform: scale(1.08);

  opacity: 0;
  animation: heroSlide 18s infinite;
}


/* Slide timing */
.hero-bg-slideshow span:nth-child(1) { animation-delay: 0s; }
.hero-bg-slideshow span:nth-child(2) { animation-delay: 6s; }
.hero-bg-slideshow span:nth-child(3) { animation-delay: 12s; }

/* Fade animation */
@keyframes heroSlide {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  30%  { opacity: 1; }
  40%  { opacity: 0; }
  100% { opacity: 0; }
}


/* =====================================================
   SECTIONS
===================================================== */
.section {
  padding: 90px 60px;
  background: var(--bg-soft);
  text-align: center;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  margin-bottom: 60px;
}

/* =====================================================
   CARDS
===================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 36px;
  border-radius: 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(56,189,248,0.25);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* =====================================================
   WHY CHOOSE US SECTION
===================================================== */

.why-choose {
  background: var(--bg-soft);
  text-align: center;
}

.section-subtitle {
  max-width: 720px;
  margin: -40px auto 60px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* Card */
.why-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 36px 28px;
  border-radius: 22px;
  text-align: left;

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 45px rgba(56, 189, 248, 0.25);
}

/* Icon */
.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 20px;

  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #ffffff;

  box-shadow: 0 12px 30px rgba(56,189,248,0.35);
}

.why-icon svg {
  width: 26px;
  height: 26px;
}


/* Title */
.why-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

/* Text */
.why-card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Mobile spacing */
@media (max-width: 768px) {
  .why-card {
    text-align: center;
  }

  .why-icon {
    margin-left: auto;
    margin-right: auto;
  }
}


/* =====================================================
   FOOTER
===================================================== */
footer {
  background: var(--bg-soft);
  color: var(--text-main);
  padding: 70px 20px;
  text-align: center;
}

/* =====================================================
   ANIMATIONS
===================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .navbar {
    padding: 0 20px;
  }

  .section {
    padding: 70px 20px;
  }
}

/* =====================================================
   BUTTONS
===================================================== */
.primary,
.secondary {
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  border: none;
}

.secondary {
  background: transparent;
  border: 2px solid var(--blue);
  color: #fff;
}

.primary:hover,
.secondary:hover {
  transform: translateY(-3px) scale(1.05);
}


/* =====================================================
   SECTIONS
===================================================== */
.section {
  padding: 90px 60px;
  background: var(--bg-soft);
  text-align: center; /* ✅ fallback safety */
  
}


.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.3px;

  /* ✅ TRUE CENTERING */
  display: block;
  width: 100%;
  text-align: center;
  margin: 0 auto 60px auto;
}


/* =====================================================
   CARDS & FLOW
===================================================== */

.card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-muted);
}


.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card,
.flow-step {
  background: var(--card-bg);
  padding: 36px;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(15,23,42,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Floating animation */
@keyframes floatSoft {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.card,
.flow-step {
  animation: floatSoft 6s ease-in-out infinite;
}

.card:hover,
.flow-step:hover {
  animation-play-state: paused;
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 18px 45px rgba(56,189,248,0.35),
    0 0 40px rgba(124,58,237,0.25);
}

/* =====================================================
   ICONS
===================================================== */
.card-icon,
.flow-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  transition: transform 0.4s ease;
}

.card:hover .card-icon,
.flow-step:hover .flow-icon {
  transform: scale(1.1) rotate(3deg);
}

/* =====================================================
   HOW IT WORKS
===================================================== */
.flow-wrapper {
  max-width: 1300px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.flow-step {
  flex: 1;
  text-align: center;
}

.flow-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 4px;
}

/* =====================================================
   ENTRANCE ANIMATIONS
===================================================== */
/* PROFESSIONAL ENTRANCE ANIMATION */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}


/* =====================================================
   FOOTER
===================================================== */
footer {
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  color: #e5e7eb;
  padding: 70px 20px;
  text-align: center;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .flow-wrapper {
    flex-direction: column;
  }

  .flow-line {
    width: 4px;
    height: 36px;
  }
}

.steps {
  display: flex;
  justify-content: center; /* ✅ center group */
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

/* =============================
   STRAIGHT BULLET ALIGNMENT
============================= */

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 18px;
}

.feature-list li {
  display: grid;
  grid-template-columns: 22px 1fr; /* ✅ fixed icon column */
  align-items: start;             /* ✅ text aligns top */
  column-gap: 10px;

  font-size: 15.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Green check icon */
.feature-list li::before {
  content: "✔";
  width: 16px;
  height: 16px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff; 
  font-weight: bold;
  margin-top: 3px; /* ✅ aligns with first text line */
}

/* =====================================================
   PRICING PLANS
===================================================== */

.pricing {
  background: var(--bg-soft);
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Pricing Card */
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 30px;
  position: relative;

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(56,189,248,0.25);
}

/* Popular Plan */
.pricing-card.popular {
  border: 2px solid var(--blue);
  box-shadow: 0 20px 60px rgba(56,189,248,0.35);
}

.badge-popular {
  position: absolute;
  top: -14px;
  right: 20px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

/* Price */
.price {
  font-size: 44px;
  font-weight: 700;
  margin: 10px 0 4px;
  color: var(--blue);
}

.price-sub {
  font-size: 14px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 22px;
}

/* Disabled features */
.feature-list li.disabled {
  opacity: 0.45;
  text-decoration: line-through;
}

/* Button full width */
button.full {
  width: 100%;
  margin-top: 25px;
}

/* Mobile */
@media (max-width: 768px) {
  .pricing-card {
    padding: 32px 22px;
  }
}



/* =====================================================
   CLIENT DASHBOARD
===================================================== */

.dashboard {
  background: var(--bg-soft);
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Top header */
.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.dashboard-title {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  margin-bottom: 6px;
}

.dashboard-subtitle {
  color: var(--text-muted);
}

/* Stats */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.stat-value {
  font-size: 32px;
  margin: 10px 0 4px;
}

.blue { color: var(--blue); }
.green { color: #22c55e; }
.yellow { color: #f59e0b; }

.stat-badge.blue { background: rgba(56,189,248,0.15); }
.stat-badge.green { background: rgba(34,197,94,0.15); }
.stat-badge.yellow { background: rgba(245,158,11,0.15); }

/* Recent projects */
.recent-projects {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

.recent-title {
  margin-bottom: 18px;
  font-family: 'Poppins', sans-serif;
}

/* Table */
.projects-head,
.projects-row {
  display: grid;
  grid-template-columns: 2.2fr 1.5fr 1.2fr 1.2fr 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
}

.projects-head {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.projects-row {
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
}

.projects-row:last-child {
  border-bottom: none;
}

.projects-row small {
  color: var(--text-muted);
}

/* Status pills */
.status-pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}

.status-pill.in-progress {
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
}

.status-pill.completed {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
}

.status-pill.payment {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
}

/* Actions */
.action-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.action-link.danger {
  color: #ef4444;
}

/* Responsive */
@media (max-width: 900px) {
  .dashboard-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .projects-head {
    display: none;
  }

  .projects-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }
}

/* =====================================================
   UPLOAD YOUR DATA SECTION
===================================================== */

.upload-section {
  background: var(--bg-soft);
  text-align: center;
}

.upload-box {
  max-width: 520px;
  margin: 40px auto 0;
  padding: 40px 30px;

  background: var(--card-bg);
  border: 2px dashed var(--border);
  border-radius: 22px;

  transition: border-color 0.3s ease, background 0.3s ease;
}

.upload-box:hover {
  border-color: var(--blue);
}

/* Hide native input */
.upload-box input[type="file"] {
  display: none;
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.upload-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.upload-text {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.upload-text small {
  font-size: 13px;
  color: var(--text-muted);
}

/* Upload button */
.upload-btn {
  margin-top: 24px;
  width: 100%;
}

/* Responsive */
@media (max-width: 600px) {
  .upload-box {
    padding: 30px 20px;
  }
}


/* =====================================================
   NEW ANALYSIS PROJECT FORM
===================================================== */

.new-project-section {
  background: var(--bg-soft);
}

.new-project-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.new-project-title {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 6px;
}

.new-project-subtitle {
  color: var(--text-muted);
  margin-bottom: 26px;
}

/* Form layout */
.new-project-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
}

.form-group textarea {
  resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.form-check a {
  color: var(--blue);
  text-decoration: none;
}

/* Submit */
.submit-btn {
  margin-top: 10px;
  width: fit-content;
  padding: 12px 26px;
}

/* Responsive */
@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .new-project-card {
    padding: 26px;
  }
}

@media (max-width: 380px) {

  /* Navbar */
  .navbar {
    padding: 0 14px;
    height: auto;
    flex-direction: column;
    gap: 10px;
  }

  .navbar nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .theme-toggle {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  /* Hero */
  .hero {
    min-height: 75vh;
    padding-top: 90px;
  }

  .hero-title {
    font-size: 36px;
    line-height: 1.1;
  }

  .hero-sub {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* Sections */
  .section {
    padding: 60px 16px;
  }

  /* Cards & grids */
  .cards,
  .why-grid,
  .pricing-grid,
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  /* Flow steps */
  .flow-wrapper {
    flex-direction: column;
    gap: 18px;
  }

  .flow-line {
    width: 4px;
    height: 36px;
  }

  /* Dashboard table */
  .projects-head {
    display: none;
  }

  .projects-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Forms */
  .form-grid {
    grid-template-columns: 1fr;
  }

  .new-project-card {
    padding: 22px;
  }

}

/* =====================================
   MOBILE MENU BAR (FINAL FIX)
===================================== */

.menu-toggle {
  display: none;
}

/* Hamburger icon */
.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--text-main);
  border-radius: 3px;
  transition: 0.3s;
}

@media (max-width: 768px) {

  /* Navbar layout */
  .navbar {
    padding: 0 16px;
    height: 72px;
  }

  /* Show hamburger */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
  }

  /* Hide nav by default */
  .navbar nav {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;

    background: linear-gradient(
      180deg,
      rgba(2,6,23,0.98),
      rgba(15,23,42,0.98)
    );

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;

    padding: 24px 0;
    border-bottom: 1px solid var(--border);

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    z-index: 999;
  }

  /* OPEN MENU */
  .navbar nav.active {
    max-height: 400px;
  }

  /* Nav links */
  .navbar nav a {
    margin: 0;
    font-size: 16px;
  }

  /* Theme toggle spacing */
  .theme-toggle {
    margin-top: 8px;
  }

  /* Hero safety */
  .hero {
    padding-top: 72px;
  }
}

/* =====================================
   MOBILE NAVBAR — LOGO LEFT, MENU RIGHT
===================================== */

.menu-toggle {
  display: none;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--text-main);
  border-radius: 3px;
}

/* MOBILE VIEW */
@media (max-width: 768px) {

  /* NAVBAR ROW */
  .navbar {
    height: 72px;
    padding: 0 16px;

    display: flex;
    flex-direction: row;          /* 🔑 FORCE ROW */
    align-items: center;
    justify-content: space-between;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  /* LOGO LEFT */
  .logo {
    display: flex;
    align-items: center;
  }

  /* HAMBURGER RIGHT */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
  }

  /* HIDE MENU BY DEFAULT */
  .navbar nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;

    background: linear-gradient(
      180deg,
      rgba(2,6,23,0.98),
      rgba(15,23,42,0.98)
    );

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;

    padding: 24px 0;
    border-bottom: 1px solid var(--border);

    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;

    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 999;
  }

  /* SHOW MENU ON CLICK */
  .navbar nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* MENU LINKS */
  .navbar nav a {
    margin: 0;
    font-size: 16px;
  }

  /* THEME TOGGLE */
  .theme-toggle {
    margin-top: 10px;
  }

  /* HERO SAFE SPACE */
  .hero {
    padding-top: 72px;
  }
}


/* =========================================
   HOSTINGER FINAL MOBILE FIX (≤ 400px)
========================================= */

@media (max-width: 400px) {

  /* NAVBAR */
  .navbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;

    padding: 0 14px !important;
    height: 72px !important;
  }

  /* LOGO LEFT */
  .logo {
    flex: 0 0 auto !important;
  }

  /* MENU RIGHT */
  .menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  /* HIDE MENU BY DEFAULT */
  .navbar nav {
    position: fixed !important;
    top: 72px !important;
    left: 0 !important;
    width: 100% !important;

    background: #020617 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;

    padding: 20px 0 !important;

    transform: translateY(-120%) !important;
    opacity: 0 !important;
    pointer-events: none !important;

    transition: all 0.3s ease !important;
    z-index: 999 !important;
  }

  /* SHOW MENU */
  .navbar nav.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* HERO SAFE */
  .hero {
    padding-top: 72px !important;
  }
}
