/* ==========================================================
   Tecbotics — styles.css
   ========================================================== */

:root {
  --bg: #0a0e1a;
  --bg-elevated: #11162a;
  --bg-card: rgba(20, 26, 46, 0.6);
  --border: rgba(0, 191, 255, 0.18);
  --border-strong: rgba(0, 191, 255, 0.45);

  --text: #e6edf6;
  --text-dim: #93a3b8;
  --text-muted: #64748b;

  --cyan: #00bfff;
  --cyan-bright: #38d3ff;
  --cyan-soft: rgba(0, 191, 255, 0.14);

  --orange: #ff6a1a;
  --orange-bright: #ff8a3d;

  --shadow-glow-cyan: 0 0 24px rgba(0, 191, 255, 0.35);
  --shadow-glow-orange: 0 0 22px rgba(255, 106, 26, 0.45);

  --font-body: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Rajdhani', 'Space Grotesk', system-ui, sans-serif;

  --maxw: 1120px;
  --maxw-narrow: 760px;
  --section-pad-y: clamp(4rem, 9vw, 7rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--orange-bright);
}

:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================
   HERO
   ========================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 2rem 1.25rem;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: var(--bg);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(10, 14, 26, 0.45) 0%, rgba(10, 14, 26, 0.85) 70%, rgba(10, 14, 26, 0.95) 100%),
    linear-gradient(180deg, rgba(10, 14, 26, 0.55) 0%, rgba(10, 14, 26, 0.4) 40%, rgba(10, 14, 26, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  animation: heroFadeIn 1.1s ease 0.1s both;
}

.hero-banner {
  width: clamp(240px, 55vw, 520px);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(0, 191, 255, 0.45));
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6.5vw, 4.25rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0.5rem 0 0;
  text-shadow: 0 0 30px rgba(0, 191, 255, 0.35);
}

.hero-sub {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-dim);
  max-width: 36ch;
}

.hero-cta {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.15), rgba(255, 106, 26, 0.1));
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(0, 191, 255, 0);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.2s ease;
}
.hero-cta:hover {
  color: var(--text);
  border-color: var(--orange);
  box-shadow: var(--shadow-glow-orange);
  transform: translateY(-1px);
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.scroll-cue:hover { color: var(--cyan-bright); opacity: 1; }

.scroll-cue-arrow {
  width: 18px;
  height: 28px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  position: relative;
}
.scroll-cue-arrow::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 2px;
  height: 6px;
  background: currentColor;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { transform: translate(-50%, 0); opacity: 1; }
  60%  { transform: translate(-50%, 10px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* ==========================================================
   SECTIONS
   ========================================================== */

.section {
  padding: var(--section-pad-y) 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-narrow {
  max-width: var(--maxw-narrow);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  letter-spacing: 0.01em;
  margin: 0 0 1.25rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 0.6rem;
  background: linear-gradient(90deg, var(--cyan), transparent);
  box-shadow: 0 0 12px var(--cyan-soft);
}

.section-lede {
  font-size: 1.075rem;
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0 0 1rem;
  line-height: 1.7;
}

/* ==========================================================
   REVEAL ANIMATION
   ========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue-arrow::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   CAPABILITIES CARDS
   ========================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  position: relative;
  padding: 1.6rem 1.4rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow-cyan);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 191, 255, 0.08);
  color: var(--cyan-bright);
  margin-bottom: 1rem;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.card-icon svg { width: 24px; height: 24px; }

.card:hover .card-icon {
  color: var(--orange-bright);
  background: rgba(255, 106, 26, 0.1);
  box-shadow: 0 0 18px rgba(255, 106, 26, 0.25);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}

.card-text {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* ==========================================================
   PROJECTS — Recent Work
   ========================================================== */

.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 960px) {
  .projects {
    grid-template-columns: repeat(auto-fit, minmax(540px, 1fr));
  }
}

.project {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.project:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.project-media {
  position: relative;
  padding: 1.25rem 1.25rem 0;
  perspective: 1200px;
}
.project-media::after {
  /* subtle vignette beneath the screenshot */
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -6px;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(0, 191, 255, 0.35), transparent 70%);
  filter: blur(8px);
  opacity: 0.55;
  pointer-events: none;
}

.project-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(0, 191, 255, 0.35);
  box-shadow:
    0 0 22px rgba(0, 191, 255, 0.18),
    0 18px 40px rgba(0, 0, 0, 0.5);
  transform: rotate(-0.6deg) scale(1);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
  display: block;
}

.project:hover .project-image {
  transform: rotate(0deg) scale(1.025);
  border-color: var(--cyan-bright);
  box-shadow:
    0 0 36px rgba(0, 191, 255, 0.35),
    0 22px 50px rgba(0, 0, 0, 0.55);
}

.project-body {
  padding: 1.5rem 1.6rem 1.75rem;
}

.project-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  background: rgba(0, 191, 255, 0.1);
  border: 1px solid rgba(0, 191, 255, 0.3);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.project-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
}

.project-text {
  margin: 0;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .project-media { padding: 0.75rem 0.75rem 0; }
  .project-image { transform: none; }
  .project-body { padding: 1.1rem 1.1rem 1.4rem; }
  .project-title { font-size: 1.35rem; }
}

/* ==========================================================
   STEPS — How It Works
   ========================================================== */

.steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  position: relative;
}

/* connecting line on desktop */
.steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--cyan) 80%, transparent);
  box-shadow: 0 0 14px rgba(0, 191, 255, 0.45);
  z-index: 0;
  opacity: 0.6;
}

.step {
  position: relative;
  z-index: 1;
  padding: 1.6rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cyan-bright);
  background: var(--bg);
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(0, 191, 255, 0.45), inset 0 0 12px rgba(0, 191, 255, 0.15);
  letter-spacing: 0.05em;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

.step-text {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .steps::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--cyan) 15%, var(--cyan) 85%, transparent);
  }
}

/* ==========================================================
   CONTACT FORM
   ========================================================== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(20, 26, 46, 0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.18);
  background: rgba(20, 26, 46, 0.75);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}

.h-captcha {
  margin: 0.25rem 0;
}

.submit-btn {
  position: relative;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.95rem 2rem;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.18), rgba(255, 106, 26, 0.12));
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.submit-btn:hover:not(:disabled) {
  border-color: var(--orange);
  box-shadow: var(--shadow-glow-orange);
  transform: translateY(-1px);
}
.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 0.6rem;
  vertical-align: -3px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: var(--cyan-bright);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.submit-btn.is-loading .submit-spinner { display: inline-block; }
.submit-btn.is-loading .submit-label { opacity: 0.6; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-status {
  margin: 0.25rem 0 0;
  min-height: 1.4em;
  font-size: 0.97rem;
}
.form-status.is-success { color: var(--cyan-bright); }
.form-status.is-error { color: var(--orange-bright); }

/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
  padding: 2rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0, 191, 255, 0.04));
}

.footer-mark {
  width: 36px;
  height: 36px;
  margin-bottom: 0.25rem;
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.footer-email {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* ==========================================================
   MOBILE TWEAKS
   ========================================================== */

@media (max-width: 480px) {
  body { font-size: 16px; }
  .section { padding-left: 1.1rem; padding-right: 1.1rem; }
  .hero-cta, .submit-btn { width: 100%; text-align: center; align-self: stretch; }
  .scroll-cue { bottom: 1rem; }
  .scroll-cue-text { display: none; }
}
