/* 
  eGuru Design System Styles
  Generated from preview and adapted for real content.
*/

:root {
  /* Colors */
  --primary-cyan: #3ecfcf;
  --secondary-teal: #3a9e9e;
  --deep-navy: #0a1628;
  --dark-navy-mid: #0d1f3c;
  --dark-card: #111827;
  --pure-white: #ffffff;
  --body-text: rgba(255, 255, 255, 0.65);
  --muted-text: rgba(255, 255, 255, 0.28);
  --tip-bg: rgba(62, 207, 207, 0.07);
  --tip-border: rgba(62, 207, 207, 0.18);
  
  /* Typography */
  --font-heading: 'Fraunces', serif;
  --font-body: 'DM Sans', sans-serif;
}

/* Base Resets & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background-color: var(--deep-navy);
  color: var(--body-text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, .heading {
  font-family: var(--font-heading);
  color: var(--pure-white);
  line-height: 1.15;
}
h1 {
  font-weight: 900;
  font-size: clamp(3.5rem, 6vw, 4.5rem);
  margin-bottom: 24px;
}
h2 {
  font-weight: 700;
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  margin-bottom: 24px;
}
h3 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
p {
  margin-bottom: 24px;
}
p:last-child {
  margin-bottom: 0;
}

/* Layout & Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.text-center { text-align: center; }
.text-left { text-align: left; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-12 { margin-bottom: 48px; }

/* Navigation */
nav {
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.logo-flex {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-img {
  height: 32px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.logo-img:hover {
  opacity: 0.95;
  transform: scale(1.02);
}
.footer-brand .logo-img {
  height: 44px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--pure-white);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-cyan);
}
.mobile-menu {
  display: none;
  background-color: var(--dark-navy-mid);
  padding: 24px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* UI Components */

/* Tag Pill */
.tag-pill {
  display: inline-block;
  background-color: var(--tip-bg);
  border: 1.5px solid rgba(62, 207, 207, 0.3);
  color: var(--primary-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 80px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
}
.btn-primary {
  background-color: var(--primary-cyan);
  color: var(--deep-navy);
  border: none;
}
.btn-primary:hover {
  background-color: #55dcdc;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(62, 207, 207, 0.2);
}
.btn-secondary {
  background-color: transparent;
  color: var(--primary-cyan);
  border: 1.5px solid rgba(62, 207, 207, 0.4);
}
.btn-secondary:hover {
  background-color: rgba(62, 207, 207, 0.08);
  border-color: var(--primary-cyan);
  transform: translateY(-2px);
}
.btn-nav {
  padding: 10px 24px;
  font-size: 13px;
}
.nav-links a.btn-nav:hover {
  color: var(--deep-navy);
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  max-width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(62, 207, 207, 0.12) 0%, rgba(10, 22, 40, 0) 65%);
  z-index: -1;
  pointer-events: none;
}
.hero-content {
  max-width: 840px;
  margin: 0 auto;
}
.hero-subtitle {
  font-size: 20px;
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-rotating-text {
  margin-top: 48px;
  font-size: 16px;
  color: var(--muted-text);
  font-weight: 500;
}
.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections & Backgrounds */
.section {
  padding: 120px 0;
  position: relative;
}
.section-dark-mid {
  background: linear-gradient(145deg, var(--deep-navy), var(--dark-navy-mid), #09203f);
}
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
      linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
  pointer-events: none;
}
.section-inner {
  position: relative;
  z-index: 1;
}

/* Service Card Component */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.service-card {
  background-color: rgba(13, 22, 38, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  padding: 40px 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(62, 207, 207, 0.25);
  background-color: rgba(13, 22, 38, 0.7);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}
.service-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: rgba(62, 207, 207, 0.05);
  border: 1.5px solid rgba(62, 207, 207, 0.2);
  color: var(--primary-cyan);
  margin-bottom: 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-icon-container {
  background-color: var(--primary-cyan);
  color: var(--deep-navy);
  box-shadow: 0 4px 18px rgba(62, 207, 207, 0.35);
  border-color: transparent;
}
.service-icon-container svg {
  width: 24px;
  height: 24px;
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pure-white);
  margin-bottom: 16px;
}
.service-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-text);
  margin: 0;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-card {
    padding: 32px 24px;
  }
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 64px;
}
.card {
  background-color: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 40px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 207, 207, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.card-wide {
  grid-column: 1 / -1;
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 64px;
}
.stat-item {
  position: relative;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary-cyan);
  line-height: 1;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.stat-ghost {
  position: absolute;
  top: -20px;
  left: -20px;
  font-size: 8rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--pure-white);
  opacity: 0.04;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}
.stat-text {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}
.stat-source {
  font-size: 13px;
  color: var(--muted-text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Portfolio Teaser Layout */
.teaser-content {
  max-width: 600px;
}

/* Accents & Callouts */
.accent-block {
  border-left: 4px solid var(--secondary-teal);
  padding: 32px 0 32px 32px;
  background: linear-gradient(90deg, rgba(58, 158, 158, 0.04) 0%, transparent 100%);
}
.accent-block p {
  font-size: 20px;
  color: var(--pure-white);
  font-style: italic;
  font-weight: 400;
}
.callout-box {
  background-color: var(--tip-bg);
  border: 1.5px solid var(--tip-border);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.callout-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(62, 207, 207, 0.08), transparent 50%);
  pointer-events: none;
}
.testimonial-card {
  background-color: var(--tip-bg);
  border: 1.5px solid var(--tip-border);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(62, 207, 207, 0.08), transparent 50%);
  pointer-events: none;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 207, 207, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.testimonial-accent {
  border-left: 3px solid var(--primary-cyan);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonial-tag {
  color: var(--primary-cyan);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.testimonial-quote {
  font-family: var(--font-body);
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
  color: var(--body-text);
  line-height: 1.6;
  margin-bottom: 24px;
}
.testimonial-cite {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: auto;
}

/* Testimonials Grid — 3 columns layout */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}
@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .testimonial-card {
    padding: 36px 28px;
  }
}

/* Tools & Logos Section */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0 80px;
}
.logo-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.logo-card:hover {
  background-color: var(--tip-bg);
  border-color: rgba(62, 207, 207, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.logo-card img {
  max-height: 42px;
  max-width: 90%;
  height: auto;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.logo-card img.logo-invert {
  filter: invert(1) brightness(1.8) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}
.logo-card:hover img {
  opacity: 1;
  transform: scale(1.04);
}
.logo-card:hover img.logo-invert {
  filter: invert(1) brightness(2.2) drop-shadow(0 42px 10px rgba(0,0,0,0.1));
}

/* Stats Cards Section */
.stats-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.stat-card-enhanced {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-card-enhanced:hover {
  border-color: var(--tip-border);
  background-color: rgba(62, 207, 207, 0.02);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}
.stat-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: rgba(62, 207, 207, 0.06);
  border: 1px solid rgba(62, 207, 207, 0.15);
  color: var(--primary-cyan);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-card-enhanced:hover .stat-icon-wrapper {
  background-color: var(--primary-cyan);
  color: var(--deep-navy);
  box-shadow: 0 4px 15px rgba(62, 207, 207, 0.3);
}
.stat-icon-wrapper svg {
  width: 24px;
  height: 24px;
}
.stat-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-number-enhanced {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 900;
  color: var(--pure-white);
  line-height: 1;
}
.stat-label-enhanced {
  font-family: var(--font-body);
  color: var(--muted-text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stats-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stats-grid-enhanced {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Forms */
.form-group {
  margin-bottom: 24px;
  text-align: left;
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--body-text);
}
.form-control {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--pure-white);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-cyan);
  background-color: rgba(255, 255, 255, 0.05);
}
select.form-control {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}
select.form-control option {
  background-color: var(--dark-navy-mid);
  color: var(--pure-white);
}
select.form-control option:disabled {
  color: var(--muted-text);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.form-note {
  font-size: 13px;
  color: var(--muted-text);
  margin-top: 16px;
}
.form-note a {
  text-decoration: underline;
  color: var(--body-text);
}

/* Footer Container */
.footer-contact {
  max-width: 800px;
  margin: 0 auto 100px;
  background-color: var(--dark-card);
  padding: 64px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  margin-top: -80px; /* pull up into previous section */
}

footer {
  background-color: var(--deep-navy);
  padding: 100px 0 40px;
}
.footer-base {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--pure-white);
  margin-bottom: 24px;
}
.social-links {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.social-links a {
  color: var(--pure-white);
  opacity: 0.5;
  transition: all 0.2s ease;
  font-weight: 500;
}
.social-links a:hover {
  opacity: 1;
  color: var(--primary-cyan);
}
.copyright {
  font-size: 14px;
  color: var(--muted-text);
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: 16px; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--pure-white);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
      display: none;
  }
  .menu-toggle {
      display: block;
  }
  .hero {
      padding: 80px 0 60px;
  }
  .hero-glow {
      width: 100vw;
      height: 400px;
  }
  .cta-group {
      flex-direction: column;
      width: 100%;
  }
  .btn {
      width: 100%;
  }
  .section {
      padding: 80px 0;
  }
  .callout-box {
      padding: 32px;
  }
  .footer-contact {
      padding: 32px 24px;
      margin-top: -40px;
  }
  .stat-ghost {
      font-size: 6rem;
  }
  .stat-number {
      font-size: 3rem;
  }
  h1 { font-size: clamp(2.5rem, 8vw, 3.5rem); }
  h2 { font-size: clamp(2rem, 7vw, 2.5rem); }
}
