/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  color: hsl(0, 0%, 10%);
  background-color: hsl(0, 0%, 98%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utility Classes */
.hidden {
  display: none;
}

.text-center {
  text-align: center;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(0, 0%, 85%);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo-text {
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(0, 0%, 10%);
}

.logo-accent {
  color: hsl(0, 0%, 25%);
}

.nav-desktop {
  display: none;
}

.nav-links {
  display: flex;
  align-items: baseline;
  gap: 2rem;
}

.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(0, 0%, 10%);
  transition: color 0.2s;
  font-size: 1rem;
}

.nav-link:hover {
  color: hsl(35, 30%, 75%);
}

.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: hsl(0, 0%, 10%);
}

.mobile-menu {
  background-color: white;
  border-top: 1px solid hsl(0, 0%, 85%);
}

.mobile-menu-content {
  padding: 0.5rem 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem 0;
  font-size: 1.125rem;
  text-align: left;
  color: hsl(0, 0%, 10%);
  transition: color 0.2s;
}

.mobile-nav-link:hover {
  color: hsl(35, 30%, 75%);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: block;
  }
  
  .nav-mobile {
    display: none;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(0, 0%, 98%), hsl(0, 0%, 95%));
}

/* Floating shapes animation */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float 20s infinite linear;
}

.shape-1 {
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, hsl(0, 0%, 25%), hsl(35, 30%, 75%));
  border-radius: 50%;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, hsl(35, 30%, 75%), hsl(0, 0%, 25%));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 60%;
  right: 10%;
  animation-delay: -7s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  background: linear-gradient(225deg, hsl(0, 0%, 25%), hsl(35, 30%, 75%));
  border-radius: 20%;
  top: 40%;
  left: 70%;
  animation-delay: -14s;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
  }
  66% {
    transform: translateY(30px) rotate(240deg);
  }
  100% {
    transform: translateY(0px) rotate(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-text {
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero-accent {
  background: linear-gradient(135deg, hsl(0, 0%, 40%), hsl(35, 30%, 75%));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  color: hsl(0, 0%, 40%);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-size: 1rem;
  min-width: 200px;
}

.btn-primary {
  background-color: hsl(0, 0%, 25%);
  color: white;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background-color: hsl(0, 0%, 15%);
  transform: scale(1.05);
}

.btn-outline {
  border: 2px solid hsl(0, 0%, 25%);
  color: hsl(0, 0%, 25%);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: hsl(0, 0%, 25%);
  color: white;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40%, 43% {
    transform: translateX(-50%) translateY(-10px);
  }
  70% {
    transform: translateX(-50%) translateY(-5px);
  }
  90% {
    transform: translateX(-50%) translateY(-2px);
  }
}

.scroll-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(0, 0%, 60%);
  transition: color 0.2s;
  padding: 0.5rem;
}

.scroll-btn:hover {
  color: hsl(35, 30%, 75%);
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
  
  .hero-description {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .hero-description {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .floating-shapes {
    display: none;
  }
}

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(0, 0%, 10%);
}

.section-description {
  font-size: 1.125rem;
  color: hsl(0, 0%, 40%);
  max-width: 32rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  background: linear-gradient(135deg, hsl(0, 0%, 98%), hsl(0, 0%, 95%));
  padding: 2rem;
  border-radius: 1rem;
  border: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeIn 0.8s ease-out forwards;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.service-icon {
  color: hsl(0, 0%, 25%);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transform: scale(1);
  transition: transform 0.3s;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: hsl(0, 0%, 10%);
  transition: color 0.2s;
}

.service-card:hover .service-title {
  color: hsl(35, 30%, 75%);
}

.service-description {
  color: hsl(0, 0%, 40%);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  color: hsl(0, 0%, 50%);
  font-size: 0.875rem;
}

.service-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.service-features i {
  color: #10b981;
  margin-right: 0.5rem;
  width: 1rem;
  height: 1rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* About Section */
.about {
  padding: 5rem 0;
  background: linear-gradient(135deg, hsl(0, 0%, 95%), hsl(0, 0%, 98%));
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  height: auto;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about-description {
  color: hsl(0, 0%, 40%);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  text-align: center;
  padding: 1rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-dark {
  color: hsl(0, 0%, 25%);
}

.stat-vintage {
  color: hsl(35, 30%, 75%);
}

.stat-label {
  color: hsl(0, 0%, 40%);
  font-size: 0.875rem;
}

.tech-stack {
  margin-top: 2rem;
}

.tech-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: hsl(0, 0%, 10%);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-item {
  background-color: hsl(0, 0%, 90%);
  color: hsl(0, 0%, 25%);
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .about-image {
    order: 1;
  }
  
  .about-text {
    order: 2;
  }
}

/* Packages Section */
.packages {
  padding: 5rem 0;
  background-color: white;
}

.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.package-card {
  background-color: white;
  border: 2px solid hsl(0, 0%, 90%);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeIn 0.8s ease-out forwards;
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.package-card.popular {
  border-color: hsl(0, 0%, 25%);
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: hsl(0, 0%, 25%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.package-header {
  margin-bottom: 2rem;
}

.package-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: hsl(0, 0%, 10%);
}

.package-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(0, 0%, 25%);
  margin-bottom: 0.5rem;
}

.package-description {
  color: hsl(0, 0%, 40%);
}

.package-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.package-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: hsl(0, 0%, 40%);
}

.package-features i {
  color: #10b981;
  margin-right: 0.75rem;
  width: 1rem;
  height: 1rem;
}

.package-btn {
  width: 100%;
  background-color: hsl(0, 0%, 25%);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.package-btn:hover {
  background-color: hsl(0, 0%, 15%);
}

@media (min-width: 768px) {
  .packages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
  background: linear-gradient(135deg, hsl(0, 0%, 95%), hsl(0, 0%, 98%));
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: white;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(0, 0%, 10%);
  transition: background-color 0.3s;
}

.faq-question:hover {
  background-color: hsl(0, 0%, 98%);
}

.faq-icon {
  transition: transform 0.3s;
  width: 1.25rem;
  height: 1.25rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.faq-answer.open {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: hsl(0, 0%, 40%);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .faq-question {
    padding: 2rem;
  }
  
  .faq-answer p {
    padding: 0 2rem 2rem;
  }
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 1rem;
}

.contact-description {
  color: hsl(0, 0%, 40%);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-item i {
  color: hsl(0, 0%, 25%);
  margin-right: 1rem;
  width: 1.25rem;
  height: 1.25rem;
}

.contact-item h4 {
  font-weight: 600;
  color: hsl(0, 0%, 10%);
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: hsl(0, 0%, 40%);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: hsl(0, 0%, 90%);
  color: hsl(0, 0%, 25%);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s;
}

.social-link:hover {
  background-color: hsl(0, 0%, 25%);
  color: white;
}

.contact-form-container {
  background-color: hsl(0, 0%, 98%);
  padding: 2rem;
  border-radius: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-weight: 500;
  color: hsl(0, 0%, 25%);
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.875rem;
  border: 2px solid hsl(0, 0%, 85%);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s;
  background-color: white;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: hsl(0, 0%, 25%);
}

.checkbox-field {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-field input {
  width: auto;
  margin: 0;
}

.checkbox-field label {
  margin: 0;
  font-size: 0.875rem;
}

.form-submit {
  background-color: hsl(0, 0%, 25%);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 1rem;
}

.form-submit:hover {
  background-color: hsl(0, 0%, 15%);
}

.form-submit:disabled {
  background-color: hsl(0, 0%, 60%);
  cursor: not-allowed;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* Footer */
.footer {
  background-color: hsl(0, 0%, 10%);
  color: white;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: hsl(0, 0%, 70%);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: white;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 100;
  background-color: #10b981;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.toast.hidden {
  opacity: 0;
  transform: translateX(100%);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: hsl(0, 0%, 95%);
}

::-webkit-scrollbar-thumb {
  background: hsl(0, 0%, 25%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(0, 0%, 15%);
}

/* Enhanced focus states for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
  outline: 2px solid hsl(0, 0%, 25%);
  outline-offset: 2px;
}

/* Custom selection colors */
::selection {
  background-color: hsl(0, 0%, 25%);
  color: hsl(0, 0%, 95%);
}

::-moz-selection {
  background-color: hsl(0, 0%, 25%);
  color: hsl(0, 0%, 95%);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card {
    border: 2px solid hsl(0, 0%, 25%);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .floating-shapes,
  .hero-text {
    animation: none;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .scroll-indicator {
    animation: none;
  }
}

/* Print styles */
@media print {
  .floating-shapes,
  .header,
  .footer,
  .contact {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    color: #000 !important;
    page-break-after: avoid;
  }
}