:root {
  --bg-dark: #070913;
  --bg-gradient: linear-gradient(135deg, #070913 0%, #111a36 100%);
  --primary: #3878f8;
  --primary-hover: #5a91f9;
  --text-main: #ffffff;
  --text-muted: #a1a9bd;
  --border-light: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-glow: rgba(56, 120, 248, 0.1);
}

body.dark-theme {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-gradient);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

/* Typography Classes */
.script-text {
  font-family: 'Playball', cursive;
  font-weight: 400;
  font-size: 1.2em;
  color: #fff;
}

/* Custom Header */
.custom-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 2rem 1.5rem;
  /* Increased padding */
  display: flex;
  justify-content: center;
  background: rgba(7, 9, 19, 0.8);
  /* Added background with blur for visibility on scroll */
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  /* Added slight border */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header-menus {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 1100px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-top {
    width: 100%;
  }

  .mobile-menu-toggle {
    display: inline-block;
  }

  .header-menus {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 1rem;
    gap: 1.2rem;
  }

  .header-menus.active {
    display: flex;
    animation: fadeInDown 0.3s ease forwards;
  }

  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .pill-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    padding: 0.5rem;
    background: transparent;
    border: none;
  }

  .pill-nav .nav-btn {
    width: 100%;
    text-align: left;
    border-radius: 8px;
    padding: 0.8rem 1rem;
  }

  .header-socials {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.8rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
  }
}

.brand-logo {
  font-size: 1.8rem;
  /* Increased font size */
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo i {
  color: #fff;
}

.brand-logo:hover {
  color: var(--text-main);
}

.pill-nav {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  padding: 0.25rem 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.pill-nav .nav-btn {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pill-nav .nav-btn:hover,
.pill-nav .nav-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Header Social Pill Buttons */
.header-socials {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.social-pill i {
  font-size: 1rem;
}

.social-pill.whatsapp {
  background: #25D366;
}

.social-pill.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-pill.youtube {
  background: #FF0000;
}

.social-pill.etsy {
  background: #F16521;
}

.social-pill.whatsapp:hover {
  background: #1ebe5d;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.social-pill.instagram:hover {
  filter: brightness(1.15);
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.social-pill.youtube:hover {
  background: #cc0000;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.social-pill.etsy:hover {
  background: #d9551a;
  box-shadow: 0 4px 15px rgba(241, 101, 33, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

/* Buttons */
.btn-primary-custom,
.btn-outline-custom {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(56, 120, 248, 0.3);
}

.btn-primary-custom:hover {
  background: var(--primary-hover);
  color: #fff;
}

.btn-outline-custom {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.btn-outline-custom:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Main Container spacing */
main[role="main"] {
  padding-top: 130px;
  /* Increased padding to accommodate larger header */
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 4rem 1rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero-section> :not(.hero-static-bg):not(.hero-bg-overlay) {
  position: relative;
  z-index: 2;
}

.hero-static-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(7, 9, 19, 0.4) 0%, rgba(7, 9, 19, 0.95) 100%);
  z-index: 1;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.badge-figma i {
  color: #f24e1e;
}

.badge-wordpress i {
  color: #21759b;
}

.badge-framer i {
  color: #00eaff;
}

.join-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.join-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #a1a9bd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .script-text {
  -webkit-text-fill-color: #fff;
  font-size: 1.25em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.trusted-by p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.client-logos {
  display: flex;
  justify-content: center;
  gap: 3rem;
  opacity: 0.6;
  flex-wrap: wrap;
}

/* Sections */
.content-section {
  padding: 5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.flex-container {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.align-start {
  align-items: flex-start;
}

.flex-half {
  flex: 1 1 400px;
}

.section-title {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Methodology */
.methodology-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2rem;
}

.method-item {
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.method-number {
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.method-details h4 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.method-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.featured-work-section {
  margin-top: 4rem;
}

.subsection-title {
  font-size: 2rem;
  font-weight: 500;
}

.subsection-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.work-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.work-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.work-card:hover {
  transform: translateY(-5px);
}

.work-img-placeholder {
  height: 160px;
}

.work-title {
  padding: 1rem;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 30px var(--card-glow);
  border-color: rgba(56, 120, 248, 0.3);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px rgba(56, 120, 248, 0.5);
}

.service-card h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.view-details {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.view-details:hover {
  color: var(--primary);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1.5rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
}

.stat-card.primary-stat {
  background: rgba(56, 120, 248, 0.1);
  border-color: var(--primary);
}

.stat-card h3 {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.stat-card.primary-stat h3 {
  color: var(--primary);
}

.stat-card h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.flex-full {
  grid-column: span 2;
}

/* Custom Footer */
.custom-footer {
  padding: 4rem 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-cta-card {
  background: #0f152a;
  border-radius: 24px;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.cta-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 120, 248, 0.1) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.footer-links-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  flex: 1;
  min-width: 250px;
}

.brand-desc {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-link-groups {
  flex: 2;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.link-group h4 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.link-group a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.link-group a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Hero Tools Grid */
.hero-tools-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-bottom: 2rem;
}

.tool-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  font-size: 2.2rem;
  color: #fff;
  transition: all 0.35s ease;
  cursor: default;
  min-width: 100px;
}

.tool-icon-card span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.tool-icon-card:hover {
  transform: translateY(-8px) scale(1.05);
  background: rgba(255, 255, 255, 0.08);
}

.glow-ps:hover {
  border-color: #31a8ff;
  box-shadow: 0 0 30px rgba(49, 168, 255, 0.4);
  color: #31a8ff;
}

.glow-ai:hover {
  border-color: #ff9a00;
  box-shadow: 0 0 30px rgba(255, 154, 0, 0.4);
  color: #ff9a00;
}

.glow-fig:hover {
  border-color: #a259ff;
  box-shadow: 0 0 30px rgba(162, 89, 255, 0.4);
  color: #a259ff;
}

.glow-id:hover {
  border-color: #ff3ca7;
  box-shadow: 0 0 30px rgba(255, 60, 167, 0.4);
  color: #ff3ca7;
}

.glow-pr:hover {
  border-color: #9999ff;
  box-shadow: 0 0 30px rgba(153, 153, 255, 0.4);
  color: #9999ff;
}

.glow-xd:hover {
  border-color: #ff61f6;
  box-shadow: 0 0 30px rgba(255, 97, 246, 0.4);
  color: #ff61f6;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .flex-container {
    gap: 2rem;
  }

  .methodology-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .flex-full {
    grid-column: auto;
  }

  .cta-content h2 {
    font-size: 2.5rem;
  }
}