/* ============================================================
   hertzmobilehub — styles.css
   Dark AI-tech theme · single stylesheet · no dependencies
   ============================================================ */

:root {
  /* Palette */
  --bg:        #0B0D17;
  --bg-2:      #0E1120;
  --panel:     rgba(18, 21, 35, 0.62);
  --panel-solid: #12152A;
  --border:    rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text:      #E7E9F2;
  --muted:     #8A90A6;

  --violet:    #7C5CFF;
  --cyan:      #3BE8FF;
  --accent-grad: linear-gradient(120deg, #7C5CFF 0%, #3BE8FF 100%);

  /* Layout */
  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;

  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --glow: 0 0 40px -8px rgba(124, 92, 255, 0.55);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

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

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--cyan);
  margin: 0 0 0.9rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--violet);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* --------------------------- Buttons --------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.btn-primary {
  background: var(--accent-grad);
  color: #0A0B12;
  box-shadow: var(--glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}

/* Pulsing CTA */
.btn-pulse { position: relative; }
.btn-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.55);
  animation: pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.5); }
  70%  { box-shadow: 0 0 0 18px rgba(124, 92, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0); }
}

/* --------------------------- Header --------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 13, 23, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.brand-name { font-size: 1.05rem; letter-spacing: -0.01em; color: var(--muted); }
.brand-name strong { color: var(--text); font-weight: 700; }
/* Header logo enlarged for presence in the toolbar; footer logo (same class) stays small */
.site-header .brand-logo { height: 40px; width: auto; }

/* ---- Language switch (EN | RO) ---- */
.site-header .brand { margin-right: auto; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] {
  color: #0A0B12;
  background: var(--accent-grad);
}
.lang-switch button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s ease; }
.nav-menu a:hover, .nav-menu a.active { color: var(--text); }
.nav-menu .nav-cta { color: #0A0B12; }
.nav-menu .nav-cta:hover { color: #0A0B12; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------- Hero ---------------------------- */
.hero {
  position: relative;
  padding: clamp(90px, 15vh, 160px) 0 clamp(70px, 10vh, 120px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(600px 400px at 70% 10%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(500px 380px at 15% 30%, rgba(59, 232, 255, 0.14), transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
  z-index: 0;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 55%, transparent 100%);
  mask-image: radial-gradient(circle at 50% 30%, #000 55%, transparent 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-title { margin-bottom: 0.6em; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 620px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 2rem 0 0; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  list-style: none;
  margin: 3rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--border);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.7rem; letter-spacing: -0.02em; }
.hero-stats span { color: var(--muted); font-size: 0.9rem; }

/* --------------------------- Sections --------------------------- */
.section { padding: clamp(70px, 11vh, 120px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 640px; margin: 0 0 3rem; }
.section-lead { color: var(--muted); font-size: 1.05rem; }

/* ---------------------------- Grids ---------------------------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 18px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: var(--cyan);
}
.card-icon svg { width: 24px; height: 24px; }

/* ---------------------------- Steps ---------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.step-num {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: transparent;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
}
.step h3 { margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ------------------------- AI SDLC flow ------------------------- */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.flow-step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: border-color 0.25s ease;
}
.flow-step:hover { border-color: var(--border-strong); }
.flow-num {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: transparent;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
}
.flow-step h3 { margin: 10px 0 8px; }
.flow-step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

.principles {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.principles h3 { margin-bottom: 16px; }

/* SDLC diagram — light framed figure sitting on the dark section */
.sdlc-diagram { margin: 30px auto 0; max-width: 1040px; }
.sdlc-diagram-media {
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.sdlc-diagram-media img { width: 100%; height: auto; display: block; border-radius: 8px; }
.sdlc-diagram figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* ---------------------------- Work ---------------------------- */
.work-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.work-thumb { aspect-ratio: 16 / 10; width: 100%; background: transparent; overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb-shot { background: transparent; padding: 16px 0; }
.thumb-shot img { filter: drop-shadow(0 5px 12px rgba(23, 34, 66, 0.22)); }
.thumb-f {
  background: linear-gradient(135deg, #4E7BFF, #7C5CFF);
  display: grid;
  place-items: center;
}
.thumb-f svg { width: 64px; height: 64px; color: rgba(255, 255, 255, 0.85); }
.work-body { padding: 24px 26px 28px; }
.work-body h3 { margin-bottom: 12px; }
.work-body p { color: var(--muted); font-size: 0.94rem; margin: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0 0 14px; padding: 0; }
.tags li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cyan);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59, 232, 255, 0.08);
  border: 1px solid rgba(59, 232, 255, 0.22);
}

.work-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 22px;
  padding: 30px 34px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(124, 92, 255, 0.05);
}
.work-banner h3 { margin-bottom: 4px; }
.work-banner p { color: var(--muted); margin: 0; }

/* ---------------------------- Tech ---------------------------- */
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.tech-group {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.tech-group h3 { color: var(--text); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 0; padding: 0; }
.chips li {
  font-size: 0.85rem;
  color: var(--text);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

/* ---------------------------- About ---------------------------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-copy p { color: var(--muted); }
.about-copy strong { color: var(--text); }
.about-location { font-size: 0.92rem; margin: 0 0 1.4rem; }
.about-points { list-style: none; margin: 1.4rem 0 1.8rem; padding: 0; display: grid; gap: 12px; }
.about-points li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-weight: 500;
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: var(--glow);
}
.about-card {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.about-profile { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; }
/* Clip + ring live on the wrapper: mobile Safari reliably honors overflow:hidden
   even where it flakes on border-radius applied directly to an <img>. */
.about-profile picture {
  display: block;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.55), 0 0 28px -6px rgba(124, 92, 255, 0.6);
}
.about-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-name { display: block; font-size: 1.1rem; letter-spacing: -0.01em; }
.about-role { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.about-quote { font-size: 1.1rem; color: var(--text); margin: 14px 0 24px; line-height: 1.5; }
.about-meta { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--border); display: grid; gap: 14px; }
.about-meta li { display: flex; justify-content: space-between; gap: 16px; }
.about-meta span { color: var(--muted); font-size: 0.9rem; }
.about-meta strong { font-weight: 600; font-size: 0.94rem; text-align: right; }

/* ---------------------------- FAQ ---------------------------- */
.faq-list { display: grid; gap: 12px; max-width: 760px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.faq-item + .faq-item { margin-top: 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.3rem;
  color: var(--cyan);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); margin: 14px 0 0; font-size: 0.96rem; }

/* --------------------------- Contact --------------------------- */
.section-contact { text-align: center; overflow: hidden; }
.section-contact .hero-bg {
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 90%);
  mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 90%);
}
.contact-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.contact-inner .section-lead { margin-left: auto; margin-right: auto; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 2rem 0 1.4rem; }
.contact-email { color: var(--muted); font-size: 0.95rem; }
.contact-email a { color: var(--cyan); }
.contact-email a:hover { text-decoration: underline; }
.contact-note {
  display: inline-block;
  margin: 1.4rem 0 0;
  padding: 7px 16px;
  font-size: 0.85rem;
  color: var(--text);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

/* --------------------------- Footer --------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--text); }
.footer-meta { display: flex; flex-direction: column; gap: 4px; text-align: right; margin: 0; font-size: 0.88rem; }
.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--cyan); }
.footer-meta span { color: var(--muted); }

/* --------------------------- Reveal --------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* --------------------------- Responsive --------------------------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px 24px 28px;
    background: rgba(11, 13, 23, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-140%);
    transition: transform 0.32s ease;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { padding: 12px 4px; font-size: 1.05rem; }
  .nav-menu .nav-cta { margin-top: 8px; text-align: center; }
}

@media (max-width: 620px) {
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
  .sdlc-diagram-media { padding: 10px; }
}

/* --------------------------- Hover (pointer devices only) --------------------------- */
/* Keeps hover-triggered transforms/shadows off touch devices, which would
   otherwise "stick" the hover style after a tap until the next tap elsewhere. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { box-shadow: 0 0 55px -6px rgba(59, 232, 255, 0.6); }
  .btn-ghost:hover { border-color: var(--cyan); background: rgba(59, 232, 255, 0.07); }
  .card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
}

/* --------------------------- Reduced motion --------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-pulse::after { animation: none; }
  .btn:hover, .card:hover { transform: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
