  /* Base & Typography */
  *, *::before, *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    overflow-x: hidden;
  }

  /* Selection Color */
  ::selection {
    background-color: rgba(255, 107, 68, 0.3);
    color: #fff;
  }

  /* Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #16181b;
  }

  ::-webkit-scrollbar-thumb {
    background: #41454c;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #63676f;
  }

  /* Navbar */
  #navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
  }

  #navbar.scrolled {
    background-color: rgba(22, 24, 27, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  /* Mobile Menu */
  #mobileMenu {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
  }

  #mobileMenu.open {
    max-height: 400px;
    opacity: 1;
  }

  .mobile-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease, color 0.3s ease;
  }

  .mobile-link:hover {
    padding-left: 8px;
  }

  /* Service Cards */
  .service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  }

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

  /* Gallery */
  .gallery-item {
    cursor: pointer;
    position: relative;
  }

  .gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22, 24, 27, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
  }

  .gallery-item:hover::after {
    opacity: 1;
  }

  /* Testimonial Cards */
  .testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }

  .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  }

  /* Back to Top */
  #backToTop {
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  #backToTop.visible {
    opacity: 1;
    pointer-events: all;
  }

  #backToTop:not(.visible) {
    transform: translateY(10px);
  }

  /* Decorative line animation on hover */
  a {
    text-decoration: none;
  }

  /* Form focus styles */
  input:focus, select:focus, textarea:focus {
    outline: none;
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    .service-card:hover,
    .testimonial-card:hover {
      transform: none;
    }

    .gallery-item img {
      transition: none;
    }
  }

  /* Mobile responsiveness adjustments */
  @media (max-width: 640px) {
    .font-serif {
      line-height: 1.2;
    }
  }

  @media (max-width: 767px) {
    #hero h1 {
      font-size: 2.5rem;
    }
  }

  @media (min-width: 768px) {
    #hero h1 {
      font-size: 3.5rem;
    }
  }

  @media (min-width: 1024px) {
    #hero h1 {
      font-size: 4rem;
    }
  }

  @media (min-width: 1280px) {
    #hero h1 {
      font-size: 4.5rem;
    }
  }
