/* ═══════════════════════════════════════════════════════════════
   GRUMPZ LABS LLC — Main Stylesheet
   ═══════════════════════════════════════════════════════════════ */

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

/* ─── CSS CUSTOM PROPERTIES ─── */
:root {
  --navy-deep: #0F172A;
  --navy-mid: #1E293B;
  --navy-light: #334155;
  --gold: #EF9F27;
  --gold-light: #F5C366;
  --gold-dark: #D4890F;
  --purple: #7F77DD;
  --purple-light: #C4B5FD;
  --purple-dark: #1E1B4B;
  --teal: #5DCAA5;
  --teal-light: #8EDDC2;
  --teal-dark: #3BA882;
  --blue-light: #E6F1FB;
  --blue-text: #0C447C;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --shadow-gold: 0 4px 20px rgba(239,159,39,0.25);

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  --container-max: 1200px;
  --container-narrow: 800px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--navy-deep);
  color: var(--blue-light);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { list-style: none; }

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

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

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: clamp(22px, 3vw, 28px); }
h4 { font-size: clamp(18px, 2vw, 22px); }

p {
  color: var(--gray-400);
  line-height: 1.7;
  font-size: 16px;
}

.text-gold { color: var(--gold); }
.text-purple { color: var(--purple); }
.text-teal { color: var(--teal); }

.mono {
  font-family: var(--font-mono);
}

/* ─── SECTION LABEL ─── */
.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--teal);
  margin-bottom: 12px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(239,159,39,0.35);
}

.btn--secondary {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn--secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn--outline:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn--small {
  font-size: 13px;
  padding: 10px 20px;
}

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
}

.nav.scrolled {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 12px 0;
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav__logo-icon {
  width: 42px;
  height: 42px;
}

.nav__logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

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

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-400);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
}

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.nav__cta {
  font-size: 14px;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* Mobile menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav__mobile-menu.open {
  display: flex;
}

.nav__mobile-menu a {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.nav__mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

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

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero__glow--purple {
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(127,119,221,0.15) 0%, transparent 70%);
}

.hero__glow--teal {
  bottom: -15%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(93,202,165,0.1) 0%, transparent 70%);
}

.hero__glow--gold {
  top: 30%;
  left: 40%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(239,159,39,0.06) 0%, transparent 70%);
}

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

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  background: rgba(93,202,165,0.08);
  padding: 8px 16px;
  border-radius: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(93,202,165,0.15);
}

.hero__title {
  margin-bottom: 20px;
}

.hero__title .accent {
  color: var(--gold);
}

.hero__subtitle {
  font-size: 18px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── SECTIONS ─── */
.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--navy-mid);
}

.section__header {
  margin-bottom: 48px;
}

.section__header--center {
  text-align: center;
}

.section__header--center p {
  max-width: 600px;
  margin: 12px auto 0;
}

.section__header h2 {
  margin-top: 8px;
}

/* ─── CARD SYSTEM ─── */
.card {
  background: var(--navy-mid);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all var(--transition-base);
  overflow: hidden;
}

.section--alt .card {
  background: var(--navy-deep);
}

.card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: 28px;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.card__icon--purple { background: rgba(127,119,221,0.12); }
.card__icon--gold { background: rgba(239,159,39,0.12); }
.card__icon--teal { background: rgba(93,202,165,0.12); }

.card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card__text {
  font-size: 14px;
  line-height: 1.7;
}

/* ─── SERVICE GRID ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ─── PORTFOLIO GRID ─── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.portfolio-card__thumb {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-card__thumb .placeholder {
  font-size: 48px;
  opacity: 0.4;
}

.portfolio-card__info {
  padding: 24px;
}

.portfolio-card__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  margin-bottom: 6px;
}

.portfolio-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.portfolio-card__desc {
  font-size: 14px;
}

/* ─── STATS ROW ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 60px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stat {
  text-align: center;
}

.stat__number {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 14px;
  color: var(--gray-400);
  font-weight: 500;
}

/* ─── TESTIMONIALS ─── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial {
  padding: 32px;
}

.testimonial__quote {
  font-size: 16px;
  color: var(--blue-light);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--purple);
}

.testimonial__author {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.testimonial__role {
  font-size: 13px;
  color: var(--gray-400);
}

/* ─── CTA SECTION ─── */
.cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(127,119,221,0.08), rgba(239,159,39,0.06), rgba(93,202,165,0.06));
  border-radius: var(--radius-xl);
}

.cta-section__content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  max-width: 500px;
  margin: 0 auto 32px;
  font-size: 17px;
}

/* ─── TEAM GRID ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  padding: 32px 24px;
}

.team-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--white);
  font-weight: 800;
}

.team-card__name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.team-card__links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.team-card__links a {
  color: var(--gray-400);
  font-size: 14px;
  transition: color var(--transition-fast);
}

.team-card__links a:hover {
  color: var(--gold);
}

/* ─── TECH STACK ─── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.tech-item {
  background: var(--navy-mid);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all var(--transition-base);
}

.section--alt .tech-item {
  background: var(--navy-deep);
}

.tech-item:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
}

.tech-item__icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.tech-item__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

/* ─── TIMELINE ─── */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--navy-light);
}

.timeline__item {
  position: relative;
  margin-bottom: 40px;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--navy-deep);
}

.timeline__year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.timeline__desc {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ─── CONTACT FORM ─── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input,
.form-textarea,
.form-select {
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--white);
  transition: border-color var(--transition-fast);
  outline: none;
}

.section--alt .form-input,
.section--alt .form-textarea,
.section--alt .form-select {
  background: var(--navy-mid);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--purple);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-600);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%2394A3B8'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ─── CONTACT INFO ─── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.contact-info__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(239,159,39,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info__label {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-info__value {
  font-size: 16px;
  color: var(--white);
  font-weight: 600;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand-desc {
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 12px;
  line-height: 1.7;
  max-width: 300px;
}

.footer__heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  font-size: 14px;
  color: var(--gray-400);
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-size: 13px;
  color: var(--gray-500);
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__socials a {
  color: var(--gray-400);
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer__socials a:hover {
  color: var(--gold);
}

/* ─── PAGE HEADER (for inner pages) ─── */
.page-header {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-header__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
}

.page-header__glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127,119,221,0.1) 0%, transparent 70%);
}

.page-header__content {
  position: relative;
  z-index: 1;
}

.page-header__breadcrumb {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.page-header__breadcrumb a {
  color: var(--teal);
}

.page-header__breadcrumb a:hover {
  color: var(--teal-light);
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  font-size: 18px;
  max-width: 600px;
}

/* ─── ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }
  .hero__content {
    max-width: 100%;
  }
  .section {
    padding: 60px 0;
  }
  .services-grid,
  .portfolio-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group--full {
    grid-column: 1;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn {
    text-align: center;
    justify-content: center;
  }
  .direction-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .stats-row {
    grid-template-columns: 1fr;
  }
  .page-header {
    padding: 120px 0 48px;
  }
}
