* {
    scroll-behavior: smooth;
  }
  
  body {
    overflow-x: hidden;
  }
  
  /* Updated background color to match reference site */
  body {
    background-color: #fafaf9;
  }
  
  #cookieNotice {
    transition: opacity 0.3s ease;
  }
  
  input:focus,
  textarea:focus,
  select:focus {
    outline: none;
  }
  
  input[type="checkbox"] {
    cursor: pointer;
  }
  
  button {
    cursor: pointer;
  }
  
  /* Smoother hover effects for images */
  .group:hover img {
    transform: scale(1.05);
  }
  
  header {
    transition: box-shadow 0.3s ease;
  }
  
  #burgerBtn span {
    transition: all 0.3s ease;
  }
  
  @media (max-width: 1023px) {
    #mobileMenu {
      transition: all 0.3s ease;
    }
  }
  
  /* Flip card 3D effect for interactive project cards */
  .flip-card {
    perspective: 1000px;
    transition: transform 0.3s ease;
  }
  
  .flip-card-inner {
    position: relative;
    width: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
  }
  
  .flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
  }
  
  .flip-card-front,
  .flip-card-back {
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  
  .flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
    height: 100%;
    border-radius: 1rem;
  }
  
  /* Smooth card transitions matching reference site */
  [data-card-type] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Enhanced shadow system for depth */
  .shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  }
  
  .shadow-lg {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  }
  
  .shadow-xl {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  }
  
  .shadow-2xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
  
  /* Rounded corners matching reference design */
  .rounded-2xl {
    border-radius: 1rem;
  }
  
  .rounded-xl {
    border-radius: 0.75rem;
  }
  
  /* Text truncation for card titles */
  .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* Backdrop blur for modern glass effect */
  .backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  
  /* Smooth gradient overlays */
  .bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
  }
  
  .bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
  }
  
  /* Link hover effects */
  a {
    transition: all 0.2s ease;
  }
  
  /* Button hover effects */
  button,
  .inline-block {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Form input focus states */
  input:focus,
  textarea:focus {
    outline: none;
    border-color: transparent;
  }
  
  /* Custom scrollbar styling */
  ::-webkit-scrollbar {
    width: 10px;
  }
  
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
  
  /* Image loading fade-in */
  img {
    transition: opacity 0.5s ease-in-out, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Smooth color transitions */
  * {
    transition-property: color, background-color, border-color;
    transition-duration: 0.2s;
    transition-timing-function: ease;
  }
  
  /* Override for elements with specific transitions */
  .flip-card,
  .flip-card-inner,
  [data-card-type],
  img,
  button,
  a {
    transition-property: all;
  }
  
  /* Card content spacing */
  .space-y-4 > * + * {
    margin-top: 1rem;
  }
  
  .space-y-5 > * + * {
    margin-top: 1.25rem;
  }
  
  .space-y-6 > * + * {
    margin-top: 1.5rem;
  }
  
  /* Responsive font scaling */
  @media (max-width: 640px) {
    h1 {
      font-size: 2.5rem;
      line-height: 1.1;
    }
  
    h2 {
      font-size: 2rem;
      line-height: 1.2;
    }
  
    h3 {
      font-size: 1.5rem;
      line-height: 1.3;
    }
  }
  
  /* Text balance for better readability */
  .text-balance {
    text-wrap: balance;
  }
  
  /* Animation keyframes for loading states */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .animate-fade-in {
    animation: fadeIn 0.5s ease-out;
  }
  