/* ============================================================
   DataGroove — Global Stylesheet
   ============================================================
   CUSTOMISE HERE:
   - Brand colors → :root variables (--teal, --purple, --navy)
   - Light/dark theme tokens → :root and [data-theme="dark"]
   - Fonts → @import + --font-heading / --font-body
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── Brand palette ───────────────────────────────────────── */
:root {
  --teal:   #2DDCB4;
  --purple: #9B6BD6;
  --navy:   #1A1E70;

  /* ── Light mode tokens (edit these to restyle light mode) ── */
  --bg:           #FFFFFF;
  --bg-surface:   #F4F6FA;
  --bg-card:      #FFFFFF;
  --text-primary:   #1A1E70;
  --text-secondary: #5A5F88;
  --text-muted:     #9AA0C0;
  --border:         #E2E6F5;
  --nav-bg:         rgba(255,255,255,0.90);
  --shadow:         0 4px 24px rgba(26,30,112,0.08);
  --shadow-hover:   0 8px 40px rgba(26,30,112,0.14);

  /* ── Typography ─────────────────────────────────────────── */
  --font-heading: 'Nunito', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* ── Spacing & radius ────────────────────────────────────── */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-full: 9999px;

  /* ── Transitions ─────────────────────────────────────────── */
  --transition: 0.22s ease;
}

/* ── Dark mode tokens (edit these to restyle dark mode) ──── */
[data-theme="dark"] {
  --bg:           #090C18;
  --bg-surface:   #0F1221;
  --bg-card:      #141729;
  --text-primary:   #EDF0FF;
  --text-secondary: #9AA3CC;
  --text-muted:     #5A617F;
  --border:         #1C2040;
  --nav-bg:         rgba(9,12,24,0.90);
  --shadow:         0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover:   0 8px 40px rgba(0,0,0,0.6);
}

/* ── Reset & base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  width: 100%;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 96px;
}

.section--alt {
  background: var(--bg-surface);
}

/* ── Typography ─────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text-primary);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy);
}
.btn-primary:hover {
  background: #1EC9A0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,220,180,0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

/* ── Pill / badge ─────────────────────────────────────────── */
.pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill--teal   { background: rgba(45,220,180,0.12); color: var(--teal); }
.pill--purple { background: rgba(155,107,214,0.12); color: var(--purple); }

/* ── Gradient text utility ───────────────────────────────── */
.grad-text {
  background: linear-gradient(135deg, var(--teal) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.nav__logo img {
  height: 76px;
  width: auto;
  border-radius: 6px;
  transition: background var(--transition), padding var(--transition);
}

.logo--dark { display: none; }
[data-theme="dark"] .logo--light { display: none; }
[data-theme="dark"] .logo--dark  { display: block; }

/* ── Rotating quote ─────────────────────────────────────── */
.nav__quote {
  flex: 1;
  padding-inline: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  min-width: 0;
}

.nav__quote-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.nav__quote-inner.fading {
  opacity: 0;
  transform: translateY(-8px);
}

.nav__quote-inner.entering {
  opacity: 0;
  transform: translateY(8px);
  transition: none;
}

.nav__quote-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.nav__quote-author {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__links a {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme toggle button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  color: var(--text-secondary);
}
.theme-toggle:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 12px 0 20px;
  border-top: 1px solid var(--border);
  gap: 4px;
}
.nav__mobile a {
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav__mobile a:hover { color: var(--text-primary); background: var(--bg-surface); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  padding-top: calc(90px + 80px);
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Decorative shapes echoing the logo */
.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: float 8s ease-in-out infinite;
}
.hero__shape--1 {
  width: 420px; height: 420px;
  background: var(--teal);
  top: -120px; right: -80px;
  animation-delay: 0s;
}
.hero__shape--2 {
  width: 280px; height: 280px;
  background: var(--purple);
  bottom: -40px; right: 200px;
  animation-delay: 2.5s;
}
.hero__shape--3 {
  width: 160px; height: 160px;
  background: var(--navy);
  top: 180px; right: 360px;
  animation-delay: 5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__tagline {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero__stat {
  display: flex;
  flex-direction: column;
}
.hero__stat-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}
.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ================================================================
   SERVICES (cards grid)
   ================================================================ */
.services__header {
  margin-bottom: 60px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  cursor: default;
}
.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: transparent;
}
.service-card--teal:hover   { border-color: rgba(45,220,180,0.3); }
.service-card--purple:hover { border-color: rgba(155,107,214,0.3); }

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.service-card__icon--teal   { background: rgba(45,220,180,0.12); }
.service-card__icon--purple { background: rgba(155,107,214,0.12); }

.service-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.feature-dot--teal   { background: var(--teal); }
.feature-dot--purple { background: var(--purple); }

/* ================================================================
   ABOUT
   ================================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__visual {
  position: relative;
}

.about__shapes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about__shape-block {
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about__shape-block--1 {
  background: linear-gradient(135deg, rgba(45,220,180,0.15), rgba(45,220,180,0.05));
  border: 1px solid rgba(45,220,180,0.2);
  grid-column: span 2;
}
.about__shape-block--2 {
  background: linear-gradient(135deg, rgba(155,107,214,0.15), rgba(155,107,214,0.05));
  border: 1px solid rgba(155,107,214,0.2);
}
.about__shape-block--3 {
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.about__shape-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
}
.about__shape-num--teal   { color: var(--teal); }
.about__shape-num--purple { color: var(--purple); }

.about__shape-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.about__content .section-subtitle {
  max-width: 100%;
  margin-bottom: 32px;
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about__value-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.about__value-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.about__value-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================================================
   TECH STACK
   ================================================================ */
.stack__header {
  margin-bottom: 52px;
}

.stack__categories {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.stack__category-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stack__category-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.stack__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack__chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  transition: all var(--transition);
}
.stack__chip:hover {
  border-color: var(--teal);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stack__chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.stack__chip-dot--teal   { background: var(--teal); }
.stack__chip-dot--purple { background: var(--purple); }
.stack__chip-dot--navy   { background: var(--navy); }

/* ================================================================
   CONTACT
   ================================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.contact__info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact__info-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.contact__info-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form__input,
.form__select,
.form__textarea {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45,220,180,0.12);
}

.form__textarea {
  resize: vertical;
  min-height: 110px;
}

.form__select option {
  background: var(--bg);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  padding-block: 52px 32px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand img {
  height: 72px;
  margin-bottom: 14px;
  border-radius: 6px;
  transition: background var(--transition), padding var(--transition);
}


.footer__brand p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 240px;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--teal); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom a { color: var(--text-muted); transition: color var(--transition); }
.footer__bottom a:hover { color: var(--teal); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .about__grid       { grid-template-columns: 1fr; gap: 48px; }
  .contact__grid     { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner     { grid-template-columns: 1fr 1fr; }
  .nav__links        { display: none; }
  .nav__hamburger    { display: flex; }
  .nav__cta          { display: none; }
  .nav__quote        { display: none; }
}

@media (max-width: 600px) {
  .section            { padding-block: 64px; }
  .services__grid     { grid-template-columns: 1fr; }
  .form__row          { grid-template-columns: 1fr; }
  .footer__inner      { grid-template-columns: 1fr; gap: 32px; }
  .hero__tagline      { gap: 20px; }
  .hero__stat-divider { display: none; }
}
