@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Light theme (default) */
  --bg-clr: #ffffff;
  --text-clr: #111111;
  --subtext-clr: #555555;
  --navbar-bg: #ffffff;
  --card-bg: #f9f9f9;
  --overlay: rgba(0, 0, 0, 0.5);
  --accent: #e63946;
  --accent-hover: #d62828;
  --text-muted: #555;

  @media (prefers-color-scheme: dark) {
    --bg-clr: #121212;
    --text-clr: #f5f5f5;
    --subtext-clr: #aaaaaa;
    --navbar-bg: #121212;
    --card-bg: #1a1a1a;
    --overlay: rgba(0, 0, 0, 0.5);
    --accent: #e63946;
    --accent-hover: #d62828;
    --text-muted: #aaa;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-clr);
  color: var(--text-clr);
  line-height: 1.6;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--navbar-bg);
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.navbar a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

.nav-links {
  list-style: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: var(--bg-clr);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  transition: right 0.3s ease;
  z-index: 999;
}

.nav-links.active {
  right: 0;
}

.nav-links li a {
  font-size: 2rem;
}

/* Hamburger */
.hamburger {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--text-clr);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Position spans */
.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.hamburger span:nth-child(3) {
  bottom: 0;
}

/* Hamburger → Cross */
.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: 50%;
  transform: rotate(-45deg);
}

/* Larger screens */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    height: auto;
    width: auto;
    background: none;
    right: 0;
    transition: none;
  }

  .nav-links li a {
    font-size: 1rem;
  }
}

/* Hero Section */

.hero {
  height: 100vh;
  background: url('https://shravzzv.github.io/razor/images/hero-bg.webp')
    center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  color: white;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: var(--accent-hover);
}

/* Services Section */

.services {
  padding: 5rem 2rem;
  background-color: var(--bg-clr);
  color: var(--text-clr);
  text-align: center;
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.services .subtitle {
  font-size: 1.2rem;
  color: var(--subtext-clr);
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.service-card img {
  width: 50px;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.service-card p {
  color: var(--subtext-clr);
  font-size: 1rem;
}

/* pricing section */

.pricing {
  padding: 5rem 2rem;
  background-color: var(--bg-clr);
  color: var(--text-clr);
  text-align: center;
}

.pricing h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.pricing .subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card-bg);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0 1.5rem;
  color: var(--accent);
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
}

.pricing-card ul li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
}

/* Highlight the popular plan */
.popular {
  border: 2px solid var(--accent);
  transform: scale(1.05);
}

.popular:hover {
  transform: scale(1.05) translateY(-8px);
}

/* Testimonials section */

.testimonials {
  padding: 5rem 2rem;
  background: var(--bg-clr);
  color: var(--text-clr);
  text-align: center;
}

.testimonials h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.testimonials .subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-card p {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.testimonial-card h4 {
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    text-align: center;
  }

  .testimonial-card h4 {
    margin-top: 0.5rem;
  }
}

/* Footer */

.footer {
  background-color: var(--card-bg);
  color: var(--text-clr);
  padding: 3rem 1.5rem 2rem;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* mobile first */
  gap: 2.5rem;
}

.footer-brand {
  text-align: center;
}

.footer-brand h2 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Links sections */
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.6rem;
}

.footer-section ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent);
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 1rem;
  color: var(--text-muted);
}

/* Desktop adjustments */
@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }

  .footer-brand {
    flex: 1 1 250px;
    text-align: left;
  }

  .footer-links {
    flex: 3 1 600px;
    text-align: left;
  }

  .footer-section {
    text-align: left;
  }
}
