body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  overflow-x: hidden;
  background: #F9FAFB;
}

/* Updated Header Styles (Reduced Height) */
header {
  background: linear-gradient(to right, #4F46E5, #7C3AED);
  padding: 0.75rem 2rem; /* Reduced padding to decrease height */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
header a {
  color: #ffffff;
  font-weight: 600;
  transition: color 0.3s ease;
}
header a:hover {
  color: #FDE68A;
}
.login-btn {
  background: #FDE68A;
  color: #4F46E5;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.login-btn:hover {
  background: #FBBF24;
  color: #4F46E5;
}

/* Navigation Styles */
nav {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
.nav-menu {
  display: none;
}
.nav-menu.open {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 1000;
  animation: slideIn 0.3s ease;
}
.nav-menu a {
  color: #111827;
  font-size: 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.nav-menu a:hover {
  color: #F97316;
  transform: scale(1.05);
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  min-width: 240px;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: linear-gradient(45deg, #F97316, #EA580C);
  z-index: -1;
}
.dropdown-menu a {
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  display: block;
  color: #111827;
  transition: all 0.3s ease;
}
.dropdown-menu a:hover {
  background: #F97316;
  color: #fff;
  transform: translateX(4px);
}
.close-menu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #F97316;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.close-menu:hover {
  background: #EA580C;
  transform: scale(1.1);
}

/* Updated Footer Styles (Center Align on Small Devices) */
footer {
  background: #1F2937;
  color: #ffffff;
  padding: 3rem 2rem;
}
footer .container {
  max-width: 1200px;
  margin: 0 auto;
}
footer h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #FDE68A;
}
footer p, footer a {
  color: #D1D5DB;
  transition: color 0.3s ease;
}
footer a:hover {
  color: #FDE68A;
}
.social-icon {
  background: #4F46E5;
  color: #ffffff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.social-icon:hover {
  background: #4338CA;
}
footer .border-t {
  border-color: #4B5563;
}

/* Existing Styles for Other Elements */
.btn-primary {
  background: #F97316;
  color: #fff;
  padding: 0.625rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: #EA580C;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.btn-secondary {
  background: #E5E7EB;
  color: #111827;
  padding: 0.625rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: #D1D5DB;
  transform: scale(1.05);
}
.btn-call {
  background: #2563EB;
  color: #fff;
  padding: 0.625rem 1rem;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
.btn-call:hover {
  background: #1D4ED8;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.btn-whatsapp {
  background: #22C55E;
  color: #fff;
  padding: 0.625rem 1rem;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
.btn-whatsapp:hover {
  background: #16A34A;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Updated Hero Section Styles */
.hero-section {
  background: linear-gradient(135deg, #111827, #F97316);
  color: #fff;
  padding: 4rem 1.5rem;
  min-height: 90vh; /* Default for larger screens */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero-content h1 {
  font-size: 2.25rem; /* Default for larger screens */
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.hero-content p {
  font-size: 1.125rem; /* Default for larger screens */
  max-width: 600px;
  margin-bottom: 2rem;
}
.analysis-bar {
  background: #fff;
  padding: 1rem;
  border-radius: 50px;
  max-width: 800px;
  width: 100%;
  display: flex;
  gap: 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.analysis-bar input {
  padding: 0.75rem 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 30px;
  font-size: 1rem;
  flex: 1;
}
.analysis-bar input:focus {
  outline: none;
  border-color: #F97316;
}
.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.chat-window {
  position: fixed;
  bottom: 80px;
  right: 1rem;
  width: 90%;
  max-width: 320px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 1000;
}
.chat-window.open {
  display: flex;
  flex-direction: column;
}
.chat-header {
  background: #F97316;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.chat-body input,
.chat-body textarea {
  padding: 0.75rem;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  font-size: 0.875rem;
  width: 100%;
  margin-bottom: 0.75rem;
}
.chat-body input:focus,
.chat-body textarea:focus {
  border-color: #F97316;
  outline: none;
}
.chat-body textarea {
  height: 80px;
  resize: none;
}
.chat-toggle {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: #F97316;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.chat-toggle:hover {
  background: #EA580C;
  transform: scale(1.1);
}

@keyframes slideIn {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Media Queries for Responsive Design */
@media (min-width: 1024px) {
  .hero-content h1 {
    font-size: 3.75rem;
  }
  .hero-content p {
    font-size: 1.25rem;
  }
  .analysis-bar {
    padding: 1.25rem;
  }
  .nav-menu {
    display: flex;
    position: static;
    background: none;
    flex-direction: row;
    gap: 1.5rem;
  }
  .nav-menu a {
    font-size: 1rem;
    padding: 0;
  }
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
  }
  .close-menu {
    display: none;
  }
  .card {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem; /* Reduced padding for smaller devices */
    min-height: 60vh; /* Reduced height for smaller devices */
  }
  .hero-content h1 {
    font-size: 1.5rem; /* Reduced heading size */
  }
  .hero-content p {
    font-size: 0.875rem; /* Reduced paragraph size */
  }
  .analysis-bar {
    flex-direction: column;
    padding: 0.75rem;
    border-radius: 5px;
  }
  .analysis-bar input {
    margin-bottom: 0.5rem;
  }
  .analysis-bar .btn-primary {
    width: 100%;
  }
  .chat-window {
    max-width: 90%;
  }
  .dropdown-menu {
    min-width: 200px;
  }

  /* Center Footer Links on Small Devices */
  footer .grid {
    grid-template-columns: 1fr; /* Single column for small devices */
    text-align: center; /* Center align text */
  }
  footer .flex {
    justify-content: center; /* Center social icons */
  }
}

@media (max-width: 640px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 1.25rem;
  }
  .chat-toggle {
    width: 40px;
    height: 40px;
  }
  .nav-menu a {
    font-size: 1.25rem;
  }
}

/* Improved "Free SEO Audit" Button for PC */
@media (min-width: 1024px) {
  .nav-menu .login-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    background: #F97316;
    color: #fff;
    transition: all 0.3s ease;
  }
  .nav-menu .login-btn:hover {
    background: #EA580C;
    transform: scale(1.05);
  }
}

/* Improved Dropdown Menu for PC */
@media (min-width: 1024px) {
  .dropdown-menu {
    min-width: 240px;
    padding: 0.5rem 0;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #fff;
    transition: all 0.3s ease;
  }
  .dropdown-menu a {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    color: #111827;
    transition: all 0.3s ease;
  }
  .dropdown-menu a:hover {
    background: #F97316;
    color: #fff;
    transform: translateX(4px);
  }
  .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
  }
}