:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
  --container-max: 1100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin-bottom: 1rem;
}

.section-title {
  display: inline-block;
  background: linear-gradient(120deg, var(--white) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  position: relative;
}

.subheadline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 700px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  min-height: 48px;
}
ul {
  list-style-type: none;
}
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: var(--white);
  box-shadow:
    0 4px 6px -1px rgba(37, 99, 235, 0.1),
    0 2px 4px -1px rgba(37, 99, 235, 0.06);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.btn-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  margin-left: 20px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.btn-link:hover {
  border-color: var(--primary);
}

.btn-full {
  width: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-cta-mobile {
  display: none;
}

/* Layered Scrolling Effect */
.layer {
  position: relative;
  padding: 60px 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  z-index: 1;
}

/* Subtle Offset for Parallax */
.layer:nth-child(even) {
  background: #1b2334;
}

/* Hero */
.hero {
  padding-top: 140px;
  overflow: hidden;
  position: relative;
}

.hero-layout {
  display: flex;
  flex-direction: column-reverse; /* Text below image on mobile usually, or image below text? Standard is usually image below text or image above. Let's stick to column for now, usually image on top or bottom. Given typical "personal brand" sites, image often on top on mobile or after hook. Let's do Standard column (Text top, Image bottom) for mobile. */
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

@media (min-width: 992px) {
  .hero-layout {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
  }
}

.hero-text {
  flex: 1;
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 992px) {
  .hero-text {
    text-align: left;
    max-width: none;
    padding-right: 20px;
  }
}

.hero-visual {
  flex: 1;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
  display: flex;
}

@media (min-width: 992px) {
  .hero-visual {
    max-width: none;
  }
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  /* Neutral gradient placeholder if image fails or as background */
  background: linear-gradient(145deg, #1e293b, #0f172a);
  height: 100%;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: var(--bg-card);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.hero-img-placeholder::after {
  content: "Portrait Placeholder";
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.5;
}

.hero-btns-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
}

@media (min-width: 992px) {
  .hero-btns-container {
    align-items: flex-start;
  }
}

.hero-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-bg-shapes {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.15) 0%,
    rgba(37, 99, 235, 0) 70%
  );
  z-index: 0;
  filter: blur(60px);
}

.trust-line {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Cards: Services specific */
/* Services Header */
.services-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tagline-box {
  background: rgba(37, 99, 235, 0.08); /* Subtle blue tint */
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 12px;
  padding: 20px 30px;
  display: inline-block;
  margin-top: 10px;
}

.tagline-box p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-main);
}

.tagline-box .highlight {
  color: var(--primary);
  font-weight: 700;
}

.service-card {
  background: var(--bg-card);
  padding: 35px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.service-card.featured {
  background: linear-gradient(
    145deg,
    rgba(37, 99, 235, 0.05) 0%,
    var(--bg-card) 100%
  );
  border-color: rgba(37, 99, 235, 0.3);
}

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 25px;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--white);
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 25px;
  font-size: 0.95rem;
  min-height: 48px; /* Alignment fix */
}

/* Grid Layouts */
.services-grid,
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .services-grid,
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.service-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.service-list li:last-child {
  margin-bottom: 0;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.cta-row {
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 12px;
}

/* Results Redesign */
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 900px) {
  .results-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.result-card {
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.result-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.3);
}

.result-card.general {
  background: linear-gradient(
    145deg,
    rgba(37, 99, 235, 0.05) 0%,
    var(--bg-card) 100%
  );
}

.case-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  align-self: flex-start;
}

.result-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--white);
}

.result-card p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1rem;
}

.case-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  margin-top: auto;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .case-metrics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.center-cta {
  margin-top: 40px;
  text-align: center;
}

.results-screenshot-wrapper {
  margin-top: 40px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.results-screenshot-wrapper picture {
  width: 100%;
  display: flex;
  justify-content: center;
}

.results-screenshot-wrapper img {
  border: 4px solid transparent;
  padding: 10px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
  transition: border-color 0.3s ease;
}

.results-screenshot-wrapper img:hover {
  border-color: #3800ff;
}

/* @media (max-width: 768px) {
  .results-screenshot-wrapper img {
    max-width: 90%;
  }
} */

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.process-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.process-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.process-number {
  position: absolute;
  top: 0px;
  right: 10px;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
  transition: var(--transition);
}

.process-card:hover .process-number {
  color: rgba(37, 99, 235, 0.1);
}

.process-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.process-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* About Redesign */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.about-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-card {
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  transform: translateX(10px);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--white);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Contact Form */
.contact-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 50px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-card p {
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.contact-form {
  text-align: left;
}

.divider {
  text-align: center;
  margin: 30px 0;
  position: relative;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.divider span {
  position: relative;
  background: var(--bg-card);
  padding: 0 15px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.form-group {
  margin-bottom: 20px;
}
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}
input,
textarea {
  width: 100%;
  padding: 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.success-msg {
  margin-top: 20px;
  padding: 15px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid #22c55e;
  border-radius: 8px;
  text-align: center;
  color: #4ade80;
}

.email-placeholder {
  margin-top: 30px;
  text-align: center;
  color: var(--primary);
  font-weight: 600;
  padding: 15px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 8px;
}

/* Footer */
.footer {
  padding: 50px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icon {
  color: var(--text-muted);
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  display: inline-flex;
}

.social-icon:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-links {
  margin-top: 20px;
}

.footer-links a {
  color: var(--text-muted);
  margin: 0 10px;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--white);
  left: 0;
  transition: var(--transition);
}

.hamburger::before {
  top: -8px;
}
.hamburger::after {
  bottom: -8px;
}

/* Hamburger Animation */
.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  .nav-cta-mobile {
    display: block !important;
    color: var(--primary) !important;
    font-weight: 800 !important;
  }
  .menu-toggle {
    display: block;
  }

  .hero-btns {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .btn-link {
    margin-left: 0;
    text-align: center;
  }
  .cta-row {
    flex-direction: column;
    text-align: center;
  }
  .btn-primary {
    width: 100%;
  }

  .contact-card {
    padding: 30px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
