/* ==========================================================
    Alakhagam Corporate Theme (main.css)
    Used by: index.html (homepage), docs pages
    ========================================================== */

/* ---------- Root Variables ---------- */
:root {
  --bg: #0b1220;
  --bg2: #0e1629;
  --card: #0f1c30;
  --ink: #e6ecff;
  --muted: #a5b4d6;

  --brand: #ff8a3d;
  --brand2: #ffbd66;
  --accent: #22d3ee;
  --violet: #8b5cf6;

  --border: rgba(255, 255, 255, .08);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);

  --radius: 16px;
  --max: 1200px;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Inter, Roboto, Arial;
  background:
    radial-gradient(1400px 600px at 90% -10%, #1b2451 0%, transparent 60%),
    radial-gradient(1000px 600px at -10% 10%, #0b2f45 0%, transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Make all images responsive */
img {
  max-width: 100%;
  height: auto;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 12, 24, .6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 800;
  letter-spacing: .3px;
}

.brand img {
  height: 34px;
  width: auto;
  display: block;
}

.links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Mobile: hide links by default and show toggle button */
.nav-toggle {
  display: none; /* Hidden by default on desktop */
  cursor: pointer;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 1rem;
    background: #0b1220;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 200px;
    padding: 1rem;
  }

  .links.show {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
}

section:target {
  padding-top: 7rem; /* Adjust based on your nav bar's height + desired spacing */
  margin-top: -7rem;
}
/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: 0.3s ease;
}

.btn:hover {
  border-color: var(--accent);
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  color: #0a0f1d;
  font-weight: 700;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

header {
  padding: clamp(3rem, 7vw, 6rem) 1rem;
}

h1 {
  margin: .2rem 0 .6rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.lead {
  color: var(--muted);
  max-width: 70ch;
}

section {
  padding: clamp(2.4rem, 5vw, 4rem) 1rem;
}

/* ---------- Grid System ---------- */
.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: 1.1fr .9fr;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 980px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Cards ---------- */
.card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #17233f, #0f1c30);
  border: 1px solid #21365f;
  color: #d6e3ff;
}

.row {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}

.pill {
  display: inline-block;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin: .25rem .35rem 0 0;
  font-size: 0.9rem;
}

/* ---------- CTA ---------- */
.cta {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

@media (max-width: 768px) {
  .cta {
    flex-direction: column;
  }
}

/* ---------- Hero ---------- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #cfe3ff;
  background: rgba(255, 255, 255, .03);
}

/* ---------- Content Blocks ---------- */
.content {
  background: #111118;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.content h2 {
  color: var(--primary);
}

/* ---------- Misc ---------- */
.kiosk-shot {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0a1020;
  min-height: 280px;
  display: grid;
  place-items: center;
  color: #9fb1d6;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.bullet {
  display: flex;
  gap: .7rem;
}

.bullet .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--brand), var(--brand2));
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1rem;
  color: #9fb1d6;
  background: #0a0f1d;
  text-align: center;
  font-size: 0.9rem;
}

/*
  --------------------------------------------------
  Added or modified styles for mobile optimization
  --------------------------------------------------
*/
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.disclaimer {
  margin-top: 1rem;
  color: #9fb1d6;
  font-size: 0.9rem;
}

.feature-desc {
  font-size: 1rem;
  margin: 0;
}

.product-showcase {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.product-main {
  flex: 1 1 420px;
}

.product-future {
  flex: 1 1 280px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
}

.product-future h4 {
  margin: 0 0 0.6rem 0;
  font-weight: 600;
}

.future-features {
  line-height: 1.9;
  color: #a5b4d6;
  margin: 0.6rem 0 0 0;
  padding-left: 1.2rem;
}

.feature-tags {
  margin-top: 0.6rem;
}

.timeline-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.timeline-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--brand), var(--brand2));
  flex-shrink: 0; /* Prevents dot from shrinking on smaller screens */
  margin-top: 0.5rem;
}

.company-values {
  margin-top: 0.6rem;
}

.beliefs-list {
  line-height: 1.9;
  color: #a5b4d6;
  margin: 0;
  padding-left: 1.2rem;
}

.contact-form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.form-field-full {
  margin-bottom: 0.9rem;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  color: #9fb1d6;
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0a1020;
  color: var(--ink);
  font-family: inherit;
  transition: 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.1);
}

.error-message {
  display: block;
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  min-height: 1rem;
}

.btn-loading {
  display: none;
}

.btn-block {
  display: block;
  margin-bottom: 0.6rem;
  text-align: center;
}

.quick-links .lead {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.quick-nav {
  margin-bottom: 1rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .product-showcase {
    flex-direction: column;
  }
  
  .hero-badge {
    padding: .4rem .6rem;
    font-size: 0.8rem;
  }
  
  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .lead {
    font-size: 0.95rem;
  }
  
  .kiosk-shot img {
    border-radius: 12px;
  }

}