/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-dark: #0a0e27;
  --secondary-dark: #131829;
  --accent-blue: #008fc1;
  --accent-purple: #7c3aed;
  --feature-pill-text: white;
  --accent-cyan: #06b6d4;
  --text-primary: #ffffff;
  --charcoal: #1a1f36;
  --gray: #8a94a6;
  --text-secondary: #94a3b8;
  --gradient-1: linear-gradient(135deg, #008fc1 0%, #06b6d4 100%);
  --heading-font: "Space Grotesk", sans-serif;
  --transition: all 0.3s ease;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* Theme toggle styles */
.theme-toggle {
  background: var(--glass-bg);
  border: none;
  color: var(--accent-blue);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  transform: translateY(-3px);
  background: rgba(0, 212, 255, 0.06);
}

.theme-toggle i {
  font-size: 1rem;
}

/* Mobile-only toggle is hidden by default on larger screens; it is shown inside the mobile menu via media query */
.theme-toggle.mobile {
  display: none;
}

/* Nav list item wrapper for mobile toggle hidden by default */
.nav-item.theme-mobile {
  display: none;
}
/* Light theme overrides */
html[data-theme="light"] {
  --primary-dark: #f8fafc;
  --secondary-dark: #ffffff;
  --text-primary: #0f1724;
  --text-secondary: #6b7280;
  --feature-pill-text: var(--accent-blue);
  --charcoal: #f1f5f9;
  --glass-bg: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(10, 14, 39, 0.06);
  --gradient-1: linear-gradient(135deg, #0066cc 0%, #06b6d4 100%);
}

html[data-theme="light"] nav {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(10, 14, 39, 0.06);
}

html[data-theme="light"] .hero-background {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 50%, #f8fafc 100%);
}

/* Light-mode adjustments for service cards */
html[data-theme="light"] .service-card {
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.9) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
  border: 1px solid rgba(10, 14, 39, 0.06);
  box-shadow: none;
}

html[data-theme="light"] .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(10, 14, 39, 0.06);
}

html[data-theme="light"] .service-card::before {
  opacity: 0.06;
}

html[data-theme="light"] .service-card h3 {
  color: var(--text-primary);
}

html[data-theme="light"] .service-card p {
  color: var(--text-secondary);
}

html[data-theme="light"] .service-icon {
  color: var(--accent-blue);
}

html[data-theme="light"] .service-badge {
  background: var(--accent-blue);
  color: #fff;
}
body {
  font-family: "Inter", sans-serif;
  background: var(--primary-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
ul {
  list-style: none;
}
/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 14, 39, 0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  transition: background var(--transition), box-shadow var(--transition);
}

/* nav when scrolled (dark theme) */
nav.scrolled {
  background: rgba(10, 14, 39, 0.85);
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.1);
}

/* light-theme overrides for nav */
html[data-theme="light"] nav {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(10, 14, 39, 0.06);
}

html[data-theme="light"] nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(10, 14, 39, 0.06);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -1px;
}
.logo span {
  background: linear-gradient(to right, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo img {
  width: 30px;
  margin-right: 10px;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--accent-blue);
  transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  padding: 8rem 5%;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
  z-index: 1;
}

.hero-background::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.15) 0%,
    transparent 70%
  );
  animation: float-rotate 20s infinite ease-in-out;
}

.hero-background::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.15) 0%,
    transparent 70%
  );
  animation: float-rotate 15s infinite ease-in-out reverse;
}

.floating-shape {
  position: absolute;
  opacity: 0.1;
  animation: float-rotate 10s infinite ease-in-out;
}

.shape-1 {
  top: 20%;
  left: 10%;
  width: 100px;
  height: 100px;
  background: var(--accent-blue);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation-delay: 0s;
}

.shape-2 {
  top: 60%;
  right: 15%;
  width: 150px;
  height: 150px;
  background: var(--accent-purple);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  animation-delay: 2s;
}

.shape-3 {
  bottom: 15%;
  left: 20%;
  width: 80px;
  height: 80px;
  background: var(--accent-cyan);
  clip-path: polygon(
    30% 0%,
    70% 0%,
    100% 30%,
    100% 70%,
    70% 100%,
    30% 100%,
    0% 70%,
    0% 30%
  );
  animation-delay: 4s;
}

@keyframes float-rotate {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 2rem;
}
.hero-content-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.hero-content-inner div {
  flex: 1;
  min-width: 300px;
}
.hero-content-inner div img {
  width: 100%;
  max-width: 500px;
  animation: float 6s infinite ease-in-out;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease 0.3s backwards;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s backwards;
}

.btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.4s;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
  clip-path: polygon(0% 0%, 90% 0%, 100% 100%, 10% 100%);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-3px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.section-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

/* ===== ABOUT SECTION ===== */
.about {
  position: relative;
  padding: 8rem 5% 6rem;
  background: var(--secondary-dark);
  clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 95%);
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-pill {
  background: rgba(0, 212, 255, 0.1);
  padding: 1rem 1.5rem;
  color: var(--feature-pill-text);
  border-radius: 50px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  text-align: center;
  font-weight: 600;
  transition: all 0.3s;
}

.feature-pill:hover {
  background: rgba(0, 212, 255, 0.2);
  transform: translateY(-5px);
}

.about-visual {
  position: relative;
  height: 400px;
}

.visual-card {
  position: absolute;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.1) 0%,
    rgba(124, 58, 237, 0.1) 100%
  );
  border: 1px solid rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  transition: all 0.3s;
}

.visual-card:nth-child(1) {
  top: 0;
  left: 0;
  width: 70%;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

.visual-card:nth-child(2) {
  bottom: 0;
  right: 0;
  width: 70%;
  clip-path: polygon(0% 0%, 90% 0%, 100% 100%, 10% 100%);
}

.visual-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: 8rem 5%;
  background: var(--primary-dark);
  position: relative;
}

.services-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
}

.services-header h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-header p {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(19, 24, 41, 0.8) 0%,
    rgba(10, 14, 39, 0.8) 100%
  );
  padding: 3rem 2rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.4s;
  overflow: hidden;
}

/* Even distribution of clip-path styles: odd cards slant one way, even cards slant the other */
.service-card:nth-child(odd) {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.service-card:nth-child(even) {
  clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

/* Disable clip-path on small screens for better readability */
@media (max-width: 640px) {
  .service-card {
    clip-path: none;
  }
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}

.service-card:hover::before {
  opacity: 0.1;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-blue);
  box-shadow: 0 20px 50px rgba(0, 212, 255, 0.3);
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent-blue);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.service-badge {
  position: absolute;
  right: 15px;
  top: 15px; /* default: place badge at the top */
  background: var(--accent-blue);
  color: white;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 5px;
  font-weight: 600;
}

/* Alternate vertical placement for badges on even cards */
.service-card:nth-child(even) .service-badge {
  top: auto;
  bottom: 15px;
}
/* ===== WHY CHOOSE SECTION ===== */
.why-choose {
  padding: 8rem 5%;
  background: var(--secondary-dark);
  clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
  position: relative;
}

.why-choose-container {
  max-width: 1200px;
  margin: 0 auto;
}

.why-choose h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 4rem;
  text-align: center;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.reason-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  background: rgba(0, 212, 255, 0.05);
  border-left: 3px solid var(--accent-blue);
  transition: all 0.3s;
}

.reason-item:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateX(10px);
}

.reason-icon {
  font-size: 2.5rem;
  min-width: 60px;
  color: var(--accent-blue);
}

.reason-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-blue);
}

.reason-content p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== PROCESS SECTION ===== */
.process {
  padding: 8rem 5%;
  background: var(--primary-dark);
  position: relative;
}

.process h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 4rem;
  text-align: center;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.process-timeline {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--accent-blue) 0%,
    var(--accent-purple) 100%
  );
  transform: translateX(-50%);
}

.process-step {
  display: flex;
  gap: 3rem;
  margin-bottom: 4rem;
  position: relative;
}

.process-step:nth-child(even) {
  flex-direction: row-reverse;
}

.step-content {
  flex: 0 0 45%;
  max-width: 45%;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.1) 0%,
    rgba(124, 58, 237, 0.1) 100%
  );
  border: 1px solid rgba(0, 212, 255, 0.3);
  clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
  transition: all 0.3s;
}

.process-step:nth-child(even) .step-content {
  clip-path: polygon(0% 0%, 95% 0%, 100% 100%, 5% 100%);
}

.step-content:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.step-number {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  color: white;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 4px solid var(--primary-dark);
}

.step-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent-blue);
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 8rem 5%;
  background: var(--secondary-dark);
  clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.2) 0%,
    transparent 70%
  );
  animation: pulse 4s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

.cta-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--accent-blue) 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-section p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.cta-section .btn-primary {
  padding: 1.5rem 4rem;
  font-size: 1.2rem;
}

/* ===== FOOTER ===== */
/* Footer */
footer {
  background-color: var(--charcoal);
  padding: 5rem 2rem 2rem;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo span {
  background: linear-gradient(to right, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-about p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  background: var(--glass-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent-blue);
  transform: translateY(-5px);
}

.footer-heading {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--gray);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-blue);
  padding-left: 5px;
}

.footer-contact p {
  color: var(--gray);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--gray);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  /* hide desktop toggle on smaller screens */
  .theme-toggle:not(.mobile) {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: left 0.3s;
    z-index: 1500;
  }

  /* light-theme override for mobile menu background */
  html[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.98);
  }

  html[data-theme="light"] .nav-links a {
    color: var(--text-primary);
  }

  .nav-links.active {
    left: 0;
  }

  /* show mobile theme toggle INSIDE the menu */
  .theme-toggle.mobile {
    display: none; /* default hidden; show further below */
  }

  .nav-item.theme-mobile {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-visual {
    height: 300px;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
  }

  .process-timeline::before {
    left: 30px;
  }

  .process-step,
  .process-step:nth-child(even) {
    flex-direction: column;
    padding-left: 80px;
  }

  .process-step .step-content {
    flex: 1 0 100%;
    max-width: 100%;
  }

  .step-number {
    left: 30px;
    transform: translateX(0);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  /* show the mobile toggle when menu is active */
  .nav-links.active .theme-toggle.mobile {
    display: inline-flex;
  }

  .nav-links .theme-toggle.mobile {
    margin-top: 1rem;
  }

  /* show the list item that wraps the mobile toggle */
  .nav-item.theme-mobile {
    display: block;
  }
}
@media (max-width: 640px) {
  nav {
    padding: 1rem 5%;
  }

  .logo {
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  /* hide theme toggle on small screens */
  .theme-toggle {
    display: none;
  }
}
