:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.15);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --card-bg: #111827;
  --border-subtle: #1f2933;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827, #020617);
  color: var(--text-main);
}

/* Layout */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #0b1120, #020617);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: #f9fafb;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 650px;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100000; /* raised for mobile click safety */
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease-out;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.4rem;
  position: relative;
  z-index: 100001; /* keep hamburger always clickable */
}

/* Hero */
.hero {
  padding: 6rem 0 4rem;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr);
  gap: 2rem;
}

.hero-intro {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  margin-bottom: 0.4rem;
}

.hero-role {
  font-size: 1.05rem;
  color: #e5e7eb;
  margin-bottom: 0.8rem;
}

.hero-text {
  color: var(--text-muted);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out,
    background 0.16s ease-out, border-color 0.16s ease-out, color 0.16s;
}

.btn.primary {
  background: var(--accent);
  color: #e5e7eb;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.55);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.75);
}

.btn.secondary {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-main);
}

.btn.secondary:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* Grids & Cards */
.about-grid,
.contact-grid {
  display: grid;
  gap: 2.2rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
}

.card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), #020617);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.card p {
  margin-top: 0.2rem;
  color: var(--text-muted);
}

.card ul {
  margin-top: 0.6rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.tagline {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #a5b4fc;
}

/* Pills */
.pill-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #e0e7ff;
}

/* Forms */
.form-card {
  background: rgba(15, 23, 42, 0.94);
  border-radius: var(--radius-xl);
  padding: 1.8rem 1.8rem 1.6rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: visible !important;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  overflow: visible !important;
}

label {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: #e5e7eb;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);

  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);

  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease,
    box-shadow 0.15s ease;

  position: relative;
  z-index: 10000;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(99, 102, 241, 0.9);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.form-status {
  font-size: 0.85rem;
  margin-top: 0.8rem;
  color: var(--text-muted);
}

.hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.9rem;
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  color: var(--text-muted);
}

.contact-list li {
  margin-bottom: 0.55rem;
}

.contact-list a {
  color: #a5b4fc;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding: 1.4rem 0 1.6rem;
  background: rgba(2, 6, 23, 0.9);
}

.footer-content {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* INLINE CONTACT BUTTONS */
.contact-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.contact-cta .btn.whatsapp { background: #25D366; }
.contact-cta .btn.phone    { background: #0b5fff;  }

/* PAYMENTS SECTION */
#payments {
  text-align: center;
  margin: 80px auto;
}
.payment-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* FLOATING WHATSAPP + PHONE */
.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9000;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 22px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.fab.whatsapp { background: #25D366; }
.fab.phone    { background: #0b5fff; }

@media (max-width: 768px){
  .fab{
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
}

/* Fix anchor links being covered by sticky navbar */
section {
  scroll-margin-top: 90px;
}

/* FIX: Make dropdown options visible (Chrome/Edge Windows) */
select option {
  color: #111 !important;
  background: #fff !important;
}

/* Keep the selected value styled for your dark theme */
select {
  color: rgba(255,255,255,0.92) !important;
  background: rgba(255,255,255,0.06) !important;
}

/* =========================
   REVIEWS / TESTIMONIALS
========================= */
.reviews-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.review-card{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.review-top{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.review-avatar{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}

.review-name{
  margin: 0;
  font-size: 1rem;
}

.review-role{
  margin: 2px 0 0 0;
  opacity: 0.75;
  font-size: 0.9rem;
}

.review-stars{
  letter-spacing: 2px;
  margin: 8px 0 10px 0;
  font-size: 1rem;
  opacity: 0.95;
}

.review-text{
  margin: 0;
  opacity: 0.9;
  line-height: 1.6;
}

.review-meta{
  margin: 10px 0 0 0;
  opacity: 0.7;
  font-size: 0.9rem;
}

.reviews-actions{
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.is-hidden{
  display: none;
}

/* Responsive Reviews */
@media (max-width: 980px){
  .reviews-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .reviews-grid{ grid-template-columns: 1fr; }
}

/* Reviews Header + CTA */
.reviews-header {
  margin-bottom: 18px;
}
.reviews-cta {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  max-width: 420px;
}
.small-note {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* =========================================================
   ✅ SINGLE MOBILE NAV FIX (clickable on medium/small screens)
   Keeps your style; fixes "unclickable" issue
========================================================= */

/* stop decorative overlays from stealing clicks */
.section::before,
.section::after,
.hero::before,
.hero::after,
body::before,
body::after{
  pointer-events: none !important;
}

/* Responsive (layout text sizes you had) */
@media (max-width: 768px) {
  .hero {
    padding-top: 5.1rem;
  }

  .form-card {
    padding: 1.4rem 1.3rem 1.3rem;
  }

  .hero h1,
  h1 {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
  }

  .hero p,
  p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }
}

@media (max-width: 420px) {
  .hero h1,
  h1 {
    font-size: 1.9rem !important;
  }
}

/* Mobile/Tablet Nav behaviour */
@media (max-width: 980px){
  .nav-toggle{
    display: inline-block;
  }

  /* Dropdown panel */
  .nav-links{
    position: fixed;
    top: 64px;           /* matches your header height */
    left: 16px;
    right: 16px;

    background: rgba(10, 18, 40, 0.97);
    border-radius: 16px;
    padding: 14px;

    display: flex;
    flex-direction: column;
    gap: 12px;

    box-shadow: var(--shadow-soft);
    z-index: 100000;

    /* closed state */
    opacity: 0;
    transform: translateY(-12px);
    /* pointer-events: none; */

    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  }

  /* open state */
  .nav-links.open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a{
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    pointer-events: auto;
  }
}
/* ===========================
   FINAL OVERRIDE: Mobile nav must be clickable
   (Paste at VERY END of styles.css)
=========================== */

@media (max-width: 980px){

  /* Keep navbar + menu above everything */
  .navbar{
    position: sticky !important;
    top: 0 !important;
    z-index: 2147483646 !important;
  }

  /* Make the hamburger always clickable */
  #navToggle{
    position: relative !important;
    z-index: 2147483647 !important;
  }

  /* Mobile menu panel */
  #navLinks{
    position: fixed !important;
    top: 64px !important;
    left: 16px !important;
    right: 16px !important;
    z-index: 2147483647 !important;

    /* ✅ DO NOT let any old rule block clicks */
    pointer-events: auto !important;

    /* closed state (hidden but not blocking anything) */
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateY(-12px) !important;
  }

  /* open state */
  #navLinks.open{
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  /* Ensure links inside are clickable */
  #navLinks a{
    pointer-events: auto !important;
  }
}
/* ===== MOBILE NAV: FORCE HORIZONTAL MENU (FINAL OVERRIDE) ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;

    background: rgba(10, 18, 40, 0.97);
    border-radius: 16px;
    padding: 12px;

    display: flex;
    flex-direction: row !important;   /* FORCE horizontal */
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 12px;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.2s ease;
    z-index: 9999999;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
  }
}
/* =========================
   CHATBOT – BOTTOM LEFT (FULL STYLES)
========================= */

#chatbot-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #005eb8;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Chat window */
#chatbot {
  position: fixed;
  bottom: 90px;
  left: 20px;
  width: 340px;
  max-height: 460px;
  background: #0b1220; /* dark theme */
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

/* Header */
#chatbot-header {
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 12px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chatbot-header span {
  font-weight: 600;
  letter-spacing: 0.2px;
}

#chatbot-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 32px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* Messages */
#chatbot-messages {
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
}

/* Bubbles */
.message {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.message.bot {
  background: rgba(255,255,255,0.08);
  color: #fff;
  align-self: flex-start;
}

.message.user {
  background: rgba(0,94,184,0.35);
  color: #fff;
  border: 1px solid rgba(0,94,184,0.35);
  align-self: flex-end;
}

/* Input area */
#chatbot-input-area {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

#chatbot-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: #fff;
  outline: none;

  /* NEW – visibility & usability fixes */
  resize: none;           /* prevent drag resize */
  overflow-y: auto;       /* allow scroll for long text */
  line-height: 1.4;
  min-height: 44px;       /* consistent base height */
  max-height: 120px;      /* prevents covering chat */
}

#chatbot-input::placeholder {
  color: rgba(255,255,255,0.65);
}

#chatbot-send {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.20);
  background: #005eb8;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 480px) {
  #chatbot {
    left: 12px;
    right: 12px;
    width: auto;
  }
  #chatbot-toggle {
    left: 12px;
  }
}
/* Chatbot quick actions */
.chatbot-actions{
  display:flex;
  gap:8px;
  padding:10px;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  flex-wrap: wrap;
}

.chatbot-action{
  text-decoration:none;
  color:#fff;
  border:1px solid rgba(255,255,255,0.20);
  padding:8px 10px;
  border-radius:12px;
  font-weight:600;
  font-size:12px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.chatbot-action:hover{
  border-color: rgba(255,255,255,0.35);
}
.chat-disclaimer {
  font-size: 12px;
  opacity: 0.7;
  margin: 8px 12px 0;
  line-height: 1.4;
}
.footer {
  padding: 32px 0;
  text-align: center;
}

.footer-main {
  font-size: 14px;
  font-weight: 500;
}

.footer-sub {
  font-size: 13px;
  opacity: 0.75;
  margin-top: 6px;
  line-height: 1.4;
}
/* Ensure project cards are same height */
.cards-grid {
  align-items: stretch;
}

.cards-grid .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
