/* CSS Reset and Base Styles */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  color: rgb(0, 0, 0);
  background: linear-gradient(to bottom, transparent, rgb(255, 255, 255)) rgb(255, 255, 255);
  font-family: var(--font-inter), -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
  font-feature-settings: "cv11", "ss01";
  font-variation-settings: "opsz" 32;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

/* CSS Variables */
:root {
  --foreground-rgb: 0, 0, 0;
  --background-start-rgb: 255, 255, 255;
  --background-end-rgb: 255, 255, 255;
  --logo-color: #1c1c1c;
  
  /* Apple-inspired spacing system */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  --spacing-3xl: 96px;
  --spacing-4xl: 120px;
  --spacing-5xl: 160px;
  
  /* Apple color system */
  --color-primary: #000000;
  --color-secondary: #1c1c1e;
  --color-tertiary: #4c4c4c;
  --color-accent: #64748b;
  --color-background: #ffffff;
  --color-surface: #f2f2f7;
  
  /* Font families */
  --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
  --font-manrope: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
  --font-josefin: 'Josefin Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
}

/* Typography */
.font-apple {
  font-family: var(--font-inter);
}

.font-apple-display {
  font-family: var(--font-manrope);
}

.font-logo {
  font-family: var(--font-josefin);
  color: #1c1c1c;
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* Layout Utilities */
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Spacing */
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-20 { padding-top: 5rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }
.pb-32 { padding-bottom: 8rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Positioning */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.left-0 { left: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* Z-index */
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-60 { z-index: 60; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }

/* Width & Height */
.w-full { width: 100%; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-20 { width: 5rem; }
.w-80 { width: 20rem; }
.h-full { height: 100%; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-20 { height: 5rem; }
.max-w-85vw { max-width: 85vw; }

/* Min/Max dimensions */
.min-h-screen { min-height: 100vh; }
.max-h-full { max-height: 100%; }

/* Aspect ratios */
.aspect-4-3 { aspect-ratio: 4 / 3; }

/* Text */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }
.text-9xl { font-size: 8rem; line-height: 1; }

.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-snug { line-height: 1.375; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wide { letter-spacing: 0.025em; }

/* Colors */
.text-black { color: rgb(0, 0, 0); }
.text-white { color: rgb(255, 255, 255); }
.text-gray-300 { color: rgb(209, 213, 219); }
.text-gray-400 { color: rgb(156, 163, 175); }
.text-gray-500 { color: rgb(107, 114, 128); }
.text-gray-600 { color: rgb(75, 85, 99); }
.text-gray-700 { color: rgb(55, 65, 81); }
.text-gray-900 { color: rgb(17, 24, 39); }

.bg-white { background-color: rgb(255, 255, 255); }
.bg-black { background-color: rgb(0, 0, 0); }
.bg-gray-50 { background-color: rgb(249, 250, 251); }
.bg-gray-100 { background-color: rgb(243, 244, 246); }
.bg-gray-200 { background-color: rgb(229, 231, 235); }
.bg-gray-800 { background-color: rgb(31, 41, 55); }
.bg-gray-900 { background-color: rgb(17, 24, 39); }

/* Background gradients */
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-blue-50 { --tw-gradient-from: #eff6ff; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 246, 255, 0)); }
.to-indigo-100 { --tw-gradient-to: #e0e7ff; }
.from-blue-100 { --tw-gradient-from: #dbeafe; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(219, 234, 254, 0)); }
.to-indigo-200 { --tw-gradient-to: #c7d2fe; }
.from-green-50 { --tw-gradient-from: #f0fdf4; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(240, 253, 244, 0)); }
.to-emerald-100 { --tw-gradient-to: #d1fae5; }
.from-green-100 { --tw-gradient-from: #dcfce7; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(220, 252, 231, 0)); }
.to-emerald-200 { --tw-gradient-to: #a7f3d0; }

/* Borders */
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-gray-100 { border-color: rgb(243, 244, 246); }
.border-gray-300 { border-color: rgb(209, 213, 219); }
.border-black { border-color: rgb(0, 0, 0); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }

/* Border radius */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0, 0, 0, 0.1), 0 4px 6px -2px rgb(0, 0, 0, 0.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0, 0, 0, 0.25); }

/* Backdrop */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); }

/* Transforms */
.scale-105 { transform: scale(1.05); }
.translate-x-full { transform: translateX(100%); }
.translate-x-0 { transform: translateX(0); }
.translate-y-1 { transform: translateY(0.25rem); }
.translate-y-0 { transform: translateY(0); }
.-translate-y-1 { transform: translateY(-0.25rem); }

/* Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-700 { transition-duration: 700ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Hover effects */
.hover\:bg-gray-100:hover { background-color: rgb(243, 244, 246); }
.hover\:bg-gray-200:hover { background-color: rgb(229, 231, 235); }
.hover\:bg-gray-800:hover { background-color: rgb(31, 41, 55); }
.hover\:bg-gray-900:hover { background-color: rgb(17, 24, 39); }
.hover\:bg-black:hover { background-color: rgb(0, 0, 0); }
.hover\:text-white:hover { color: rgb(255, 255, 255); }
.hover\:text-black:hover { color: rgb(0, 0, 0); }
.hover\:text-gray-600:hover { color: rgb(75, 85, 99); }
.hover\:opacity-70:hover { opacity: 0.7; }
.hover\:border-black:hover { border-color: rgb(0, 0, 0); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:translate-x-1:hover { transform: translateX(0.25rem); }
.hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.2); }

/* Group hover effects */
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }
.group:hover .group-hover\:text-gray-600 { color: rgb(75, 85, 99); }

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
  animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 1s ease-out 0.6s both;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
}

.btn-primary:hover {
  background-color: rgb(31, 41, 55);
}

.btn-outline {
  background-color: transparent;
  color: rgb(0, 0, 0);
  border: 1px solid rgb(209, 213, 219);
}

.btn-outline:hover {
  border-color: rgb(0, 0, 0);
}

.btn-outline:hover.btn-outline-black {
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
}

/* ================================
   NAVIGATION STYLES - CLEAN REBUILD
   ================================ */

/* Main Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  min-height: 60px;
}

.navbar.scrolled {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Navigation Container */
.navbar-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 60px;
  position: relative;
}

/* Logo/Brand */
.navbar-brand {
  flex-shrink: 0;
  z-index: 1001;
}

.navbar-logo {
  font-family: var(--font-inter);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #000000;
  text-decoration: none;
  transition: opacity 0.2s ease;
  display: inline-block;
  line-height: 1;
}

.navbar-logo:hover {
  opacity: 0.7;
}

/* Desktop Navigation */
.navbar-nav {
  display: none;
  flex: 1;
  justify-content: center;
}

.navbar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.navbar-item {
  position: relative;
  margin: 0;
  padding: 0;
}

.navbar-link {
  font-family: var(--font-inter);
  font-size: 0.875rem;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.75rem 0;
  position: relative;
  display: block;
  white-space: nowrap;
}

.navbar-link:hover {
  color: #000000;
}

.navbar-link.active {
  color: #000000;
}

.navbar-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #000000;
  border-radius: 1px;
}

/* ================================
   DROPDOWN MENU STYLES
   ================================ */

/* Dropdown container */
.navbar-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 0.5rem;
}

/* Show dropdown on hover */
.navbar-item:hover .navbar-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown menu list */
.navbar-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

/* Dropdown menu items */
.navbar-dropdown-item {
  margin: 0;
  padding: 0;
}

/* Dropdown links */
.navbar-dropdown-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 0.25rem;
  margin: 0 0.5rem;
}

.navbar-dropdown-link:hover {
  background-color: #f3f4f6;
  color: #000000;
}

.navbar-dropdown-link.active {
  background-color: #f3f4f6;
  color: #000000;
  font-weight: 600;
}

/* Dropdown arrow indicator */
.navbar-link.has-dropdown::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1rem;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #6b7280;
  transition: transform 0.2s ease;
}

.navbar-item:hover .navbar-link.has-dropdown::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
  .navbar-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: transparent;
    margin-top: 0;
    padding-left: 1rem;
  }
  
  .navbar-dropdown-link {
    padding: 0.5rem 0;
    margin: 0;
    border-radius: 0;
  }
  
  .navbar-link.has-dropdown::after {
    display: none;
  }
}

/* Mobile menu dropdown styles - HIDDEN BY DEFAULT */
.mobile-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-top: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  border-radius: 0 0 0.5rem 0.5rem;
  overflow: hidden;
  display: none; /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

/* Show mobile menu when not hidden */
#mobile-menu:not(.hidden) {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.mobile-menu-dropdown-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: white;
}

/* Ensure mobile menu links are visible */
#mobile-menu:not(.hidden) a {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.mobile-menu-link {
  display: block;
  padding: 1rem 1.5rem;
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease, color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.mobile-menu-link:last-child {
  border-bottom: none;
}

.mobile-menu-link:hover {
  background-color: #f8f9fa;
  color: #000000;
}

.mobile-menu-link.active {
  background-color: #f3f4f6;
  color: #000000;
  font-weight: 600;
}

/* Ensure mobile menu is visible when open */
#mobile-menu.hidden {
  display: none !important;
}

#mobile-menu:not(.hidden) {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Mobile Toggle Button - Proper positioning */
.navbar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
  min-width: 48px;
  min-height: 48px;
  z-index: 1001;
}

.navbar-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.navbar-toggle:focus {
  outline: 2px solid #007aff;
  outline-offset: 2px;
}

/* Hamburger Icon - Fixed spacing and animation */
.navbar-toggle-icon {
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.navbar-toggle-line {
  width: 100%;
  height: 2px;
  background-color: #000000;
  transition: all 0.3s ease;
  transform-origin: center;
  display: block;
}

/* Hamburger Animation - Fixed transforms */
.navbar-toggle.active .navbar-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(0, 8px);
}

.navbar-toggle.active .navbar-toggle-line:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active .navbar-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(0, -8px);
}

/* Show desktop navigation on larger screens */
@media (min-width: 768px) {
  .navbar-nav {
    display: flex;
  }
  
  .navbar-toggle {
    display: none;
  }
  
  .mobile-menu-dropdown {
    display: none !important; /* Force hide on desktop */
  }
  
  .navbar-container {
    padding: 0 2rem;
  }
}

/* Mobile devices - Show mobile menu */
@media (max-width: 767px) {
  .navbar-nav {
    display: none; /* Hide desktop nav on mobile */
  }
  
  .navbar-toggle {
    display: flex; /* Show hamburger on mobile */
  }
  
  /* Mobile dropdown should be positioned properly on mobile */
  .mobile-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  /* Ensure mobile menu is visible when open on mobile */
  #mobile-menu:not(.hidden) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
}

/* ================================
   MOBILE MENU STYLES - COMPLETE FIX
   ================================ */

/* Mobile Menu Container - Fixed z-index and positioning */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999; /* Higher than navbar */
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}

/* Mobile Menu Content - FULL SCREEN OVERLAY */
.mobile-menu-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

/* Mobile Menu Header - FLEXBOX ALIGNMENT */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
  background-color: white;
  width: 100%;
}

.mobile-menu-brand {
  font-family: var(--font-inter);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #000000;
}

.mobile-menu-close {
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  color: #374151;
  font-size: 1.25rem;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-menu-close:hover {
  background-color: #e5e7eb;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mobile-menu-close:focus {
  outline: 2px solid #007aff;
  outline-offset: 2px;
}

.mobile-menu-close svg {
  width: 1.25rem;
  height: 1.25rem;
  pointer-events: none;
}

/* Mobile Menu Navigation - VERTICAL STACKING WITH GOOD SPACING */
.mobile-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
  background-color: white;
  width: 100%;
}

.mobile-menu-link {
  display: block;
  font-family: var(--font-inter);
  font-size: 1.25rem;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
  padding: 1rem 0;
  transition: all 0.2s ease;
  text-align: center;
  width: 100%;
  max-width: 300px;
  border-radius: 0.5rem;
  margin: 0.5rem 0;
}

.mobile-menu-link:hover {
  color: #000000;
  background-color: #f8f9fa;
  transform: translateY(-2px);
}

.mobile-menu-link.active {
  color: #000000;
  background-color: #e5e7eb;
  font-weight: 600;
}

/* Mobile Menu Footer - BOTTOM POSITIONING */
.mobile-menu-footer {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
  background-color: white;
  margin-top: auto; /* Push footer to bottom */
  width: 100%;
}

.mobile-menu-footer-link {
  font-family: var(--font-inter);
  font-size: 0.875rem;
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
  text-align: center;
}

.mobile-menu-footer-link:hover {
  color: #000000;
}

/* Hamburger menu animation */
.hamburger-line {
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(0);
}

.mobile-menu-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(0);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden !important;
  /* Removed position: fixed to prevent stacking context issues */
}

/* ================================
   RESPONSIVE DESIGN - COMPLETE FIX
   ================================ */

/* Tablet and Small Desktop (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .navbar-container {
    padding: 0 1.5rem;
  }
  
  .navbar-menu {
    gap: 1.5rem;
  }
  
  .navbar-link {
    font-size: 0.8rem;
  }
}

/* Mobile Devices (up to 768px) - FULL SCREEN RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    min-height: 60px;
  }
  
  .navbar-container {
    height: 60px;
    padding: 0 1rem;
  }
  
  .navbar-logo {
    font-size: 1.125rem;
  }
  
  /* Full screen mobile menu */
  .mobile-menu-content {
    width: 100vw;
    height: 100vh;
  }
  
  .mobile-menu-header {
    padding: 1rem;
  }
  
  .mobile-menu-brand {
    font-size: 1.125rem;
  }
  
  .mobile-menu-nav {
    padding: 1.5rem;
  }
  
  .mobile-menu-link {
    font-size: 1.125rem;
    padding: 0.75rem 0;
  }
  
  .mobile-menu-footer {
    padding: 1rem;
  }
  
  .mobile-menu-footer-link {
    font-size: 0.8rem;
  }
}

/* Small Mobile Devices (up to 480px) */
@media (max-width: 480px) {
  .navbar {
    min-height: 52px;
  }
  
  .navbar-container {
    height: 52px;
    padding: 0 0.75rem;
  }
  
  .navbar-logo {
    font-size: 1rem;
  }
  
  .navbar-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 0.25rem;
  }
  
  .navbar-toggle-icon {
    width: 20px;
    height: 16px;
  }
  
  .mobile-menu-header {
    padding: 0.75rem;
    min-height: 60px;
  }
  
  .mobile-menu-brand {
    font-size: 1rem;
  }
  
  .mobile-menu-nav {
    padding: 1.25rem 0.75rem;
  }
  
  .mobile-menu-link {
    padding: 0.875rem;
    font-size: 0.95rem;
    min-height: 48px;
  }
  
  .mobile-menu-close {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
  }
  
  .mobile-menu-footer {
    padding: 0.75rem;
  }
}

@media (max-width: 768px) {
  /* Blog page mobile optimizations */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .featured-article .grid {
    grid-template-columns: 1fr;
  }
  
  .featured-article .aspect-4-3 {
    aspect-ratio: 16/9;
  }
  
  .category-buttons {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
  }
  
  .newsletter-form input {
    width: 100%;
  }
  
  .newsletter-form button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* Extra small screens - Enhanced mobile experience */
  .nav-container {
    padding: 0.5rem 0.75rem;
  }
  
  .nav-logo {
    font-size: 1rem;
  }
  
  .mobile-menu-content {
    width: 100vw;
    max-width: 100vw;
  }
  
  .mobile-menu-header {
    padding: 0.75rem;
    min-height: 52px;
  }
  
  .mobile-menu-nav {
    padding: 1.25rem 0.75rem;
    gap: 0.125rem;
  }
  
  .mobile-menu-link {
    padding: 0.75rem;
    font-size: 0.95rem;
  }
  
  .mobile-menu-footer {
    padding: 0.75rem;
  }
  
  /* Enhanced touch targets for very small screens */
  .mobile-menu-btn {
    min-width: 52px;
    min-height: 52px;
    padding: 0.75rem;
  }
  
  .mobile-menu-close {
    min-width: 52px;
    min-height: 52px;
    padding: 0.75rem;
  }
  
  /* Extra small screens */
  .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .py-32 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  .blog-post .p-6 {
    padding: 1rem;
  }
  
  .category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* Responsive design */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .sm\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .sm\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:w-auto { width: auto; }
  .sm\:block { display: block; }
  .sm\:hidden { display: none; }
  .sm\:gap-12 { gap: 3rem; }
  .sm\:mb-4 { margin-bottom: 1rem; }
  .sm\:mb-6 { margin-bottom: 1.5rem; }
  .sm\:mb-8 { margin-bottom: 2rem; }
  .sm\:mb-12 { margin-bottom: 3rem; }
  .sm\:mb-16 { margin-bottom: 4rem; }
  .sm\:mt-16 { margin-top: 4rem; }
  .sm\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
  .sm\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .sm\:rounded-3xl { border-radius: 1.5rem; }
  .sm\:w-80 { width: 20rem; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:flex-row { flex-direction: row; }
  .md\:space-y-0 > * + * { margin-top: 0; }
  .md\:space-x-8 > * + * { margin-left: 2rem; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .md\:text-8xl { font-size: 6rem; line-height: 1; }
  .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
  .md\:py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .md\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
  .md\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
  .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .md\:gap-8 { gap: 2rem; }
  .md\:gap-12 { gap: 3rem; }
  .md\:mb-4 { margin-bottom: 1rem; }
  .md\:mb-6 { margin-bottom: 1.5rem; }
  .md\:mb-8 { margin-bottom: 2rem; }
  .md\:mb-12 { margin-bottom: 3rem; }
  .md\:mb-16 { margin-bottom: 4rem; }
  .md\:mb-20 { margin-bottom: 5rem; }
  .md\:mt-16 { margin-top: 4rem; }
  .md\:w-auto { width: auto; }
  .md\:max-w-none { max-width: none; }
  .md\:p-8 { padding: 2rem; }
  .md\:p-12 { padding: 3rem; }
  .md\:p-16 { padding: 4rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .lg\:text-9xl { font-size: 8rem; line-height: 1; }
  .lg\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .lg\:gap-20 { gap: 5rem; }
  .lg\:mb-20 { margin-bottom: 5rem; }
  .lg\:aspect-auto { aspect-ratio: auto; }
  .lg\:p-12 { padding: 3rem; }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .animate-fade-in,
  .animate-fade-in-delay,
  .animate-fade-in-delay-2 {
    animation: none;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 1.1;
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 3rem);
    line-height: 1.2;
  }

  /* Prevent text overflow */
  * {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Ensure containers don't overflow */
  .container,
  section,
  div {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.75rem, 7vw, 3rem);
  }

  h2 {
    font-size: clamp(1.25rem, 5vw, 2rem);
  }

  h3 {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
  }

  /* Reduce padding on very small screens */
  .px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Mobile menu adjustments for very small screens */
  .mobile-menu {
    width: 100vw !important;
    max-width: 100vw !important;
  }
  
  /* Ensure mobile menu header is properly sized */
  .mobile-menu .flex.justify-between {
    padding: 1rem !important;
  }
  
  /* Better spacing for mobile menu items on small screens */
  .mobile-menu nav {
    padding: 1.5rem 1rem !important;
  }
}

/* Custom scrollbar - Apple style */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Dark mode scrollbar */
@media (prefers-color-scheme: dark) {
  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
  }
}

/* Apple-style selection */
::selection {
  background-color: #007aff;
  color: white;
}

::-moz-selection {
  background-color: #007aff;
  color: white;
}

/* Prevent horizontal scroll globally */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Ensure all containers respect viewport width */
* {
  max-width: 100%;
}

/* Fix for very long words or URLs */
p,
span,
div {
  word-break: break-word;
  hyphens: auto;
}

/* Fix z-index stacking issues */
nav {
  z-index: 9999 !important;
}

/* Ensure mobile menu appears above everything */
.mobile-menu {
  z-index: 10000 !important;
}

/* Prevent layout shifts */
* {
  box-sizing: border-box;
}

/* Fix for mobile navigation */
@media (max-width: 768px) {
  /* Ensure navigation is always on top */
  nav {
    position: fixed !important;
    z-index: 9999 !important;
  }
  
  /* Mobile menu improvements */
  .mobile-menu {
    z-index: 10000 !important;
  }
  
  /* Prevent body scroll when mobile menu is open */
  body.mobile-menu-open {
    overflow: hidden !important;
    /* Removed position: fixed to prevent stacking context issues */
  }
  
  /* Ensure mobile menu items are properly spaced */
  .mobile-menu nav {
    padding: 2rem 1.5rem;
  }
  
  /* Better touch targets for mobile */
  .mobile-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Smooth scrolling for navigation */
section {
  scroll-margin-top: 80px;
}

/* Typography improvements - Apple style with free fonts */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-manrope);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  line-height: 1.6;
  font-weight: 400;
  font-family: var(--font-inter);
}

/* Apple-style button transitions */
button,
.button {
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: var(--font-inter);
}

/* Card hover effects - Apple style */
.card-hover {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Apple-style focus states */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #007aff;
  outline-offset: 2px;
  border-color: #007aff;
}

/* Apple-style form elements */
input,
textarea,
select {
  font-family: var(--font-inter);
  font-weight: 400;
}

input::placeholder,
textarea::placeholder {
  color: #8e8e93;
  font-weight: 400;
}
