/* ===================================
   CSS Custom Properties & Design System
   =================================== */

:root {
  /* Color Palette - Yellow Delivery Theme (QuickDel Inspired) */
  --primary-color: #FDB913;
  --primary-dark: #F5A623;
  --primary-light: #FFD166;
  --secondary-color: #ec4899;
  --secondary-dark: #db2777;

  --yellow-primary: #FDB913;
  --yellow-light: #FFD166;
  --yellow-dark: #F5A623;
  --purple-accent: #A78BFA;

  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;

  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-yellow: #FDB913;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-tertiary: #9ca3af;

  --border-color: #e5e7eb;
  --border-color-dark: #d1d5db;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #FDB913 0%, #F5A623 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-success: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  --gradient-yellow: linear-gradient(135deg, #FDB913 0%, #F5A623 100%);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

/* ===================================
   Reset & Base Styles
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  overflow-x: hidden;
}

/* ===================================
   Typography
   =================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-3xl);
}

h2 {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* ===================================
   Layout Components
   =================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.navbar {
  background: var(--bg-primary);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
}

.navbar-brand {
  font-size: var(--font-size-xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-menu {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
  list-style: none;
}

.navbar-menu a {
  color: var(--text-primary);
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.navbar-menu a:hover {
  background: var(--bg-tertiary);
  color: var(--primary-color);
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all var(--transition-base);
}

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

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

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   Button Styles
   =================================== */

.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-primary);
}

.btn-primary {
  background: var(--yellow-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-link {
  background: transparent;
  color: var(--text-secondary);
  padding: var(--spacing-sm) var(--spacing-md);
  font-weight: 500;
  transition: color var(--transition-base);
}

.btn-link:hover {
  color: var(--text-primary);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--border-color-dark);
}

.btn-danger {
  background: var(--error-color);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-lg);
}

/* ===================================
   Card Components
   =================================== */

.card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.wishlist-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  color: #cbd5e1;
  /* Gray by default */
}

.wishlist-btn:hover {
  transform: scale(1.1);
  background: #fff;
  color: #ef4444;
  /* Red on hover */
}

.wishlist-btn.active {
  color: #ef4444;
  /* Red when active */
  animation: heartPop 0.3s ease-out;
}

@keyframes heartPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

.product-card-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--yellow-primary);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  z-index: 2;
}

.product-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image {
  transform: scale(1.1);
}

.product-card-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.product-card-price {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.product-card-category {
  display: inline-block;
  font-size: var(--font-size-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-sm);
}

/* ===================================
   Grid Layouts
   =================================== */

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* ===================================
   Form Styles
   =================================== */

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--spacing-md);
  font-size: var(--font-size-base);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ===================================
   Hero Section - QuickDel Inspired
   =================================== */

.hero {
  background: var(--gradient-yellow);
  padding: 3rem 0;
  margin-bottom: 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  /* Strictly contain the blob inside the white box */
}

.hero-content {
  z-index: 2;
}

.hero-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--purple-accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-features {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero-feature-icon {
  width: 24px;
  height: 24px;
  background: rgba(167, 139, 250, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-accent);
  font-size: 0.875rem;
}

/* Hero Image Section */
.hero-image-section {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  /* Allow icons to float slightly outside if needed */
}

/* Background Graphics Container */
.hero-bg-graphics {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* This strictly contains the blob inside the white box */
  border-radius: var(--radius-xl);
  z-index: 0;
  pointer-events: none;
  /* Don't interfere with clicks */
}

/* Yellow Blob Background */
.yellow-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Use CSS variable for parallax to avoid overwriting centering transform */
  transform: translate(-50%, calc(-50% + var(--parallax-y, 0px)));
  width: 500px;
  height: 500px;
  background: var(--gradient-yellow);
  /* Symmetric border-radius to prevent visual shifting during scroll */
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  z-index: 1;
  transition: transform 0.1s ease-out;
  /* Smooth out the parallax */
}

@keyframes gentle-rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Person Image */
.hero-person {
  position: relative;
  z-index: 2;
  max-width: 600px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
  /* Seamless blending with blob background */
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 95%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 95%);
  object-fit: contain;
}

/* Floating Icons */
.floating-icon {
  position: absolute;
  background: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 3;
  /* Use CSS variable for parallax to avoid overwriting animation transform */
  margin-top: var(--parallax-y, 0px);
  animation: float 3s ease-in-out infinite;
  transition: margin-top 0.1s ease-out;
}

.floating-icon svg,
.floating-icon img {
  width: 35px;
  height: 35px;
}

.floating-icon-1 {
  top: 10%;
  right: 15%;
  animation-delay: 0s;
}

.floating-icon-2 {
  bottom: 40%;
  left: 5%;
  animation-delay: 1s;
}

.floating-icon-3 {
  bottom: 10%;
  right: 10%;
  animation-delay: 2s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Decorative White Shapes */
.decorative-shape {
  position: absolute;
  background: white;
  border-radius: 20px;
  opacity: 0.4;
  z-index: 0;
}

.shape-1 {
  width: 200px;
  height: 120px;
  top: 15%;
  right: 5%;
  transform: rotate(15deg);
}

.shape-2 {
  width: 180px;
  height: 100px;
  bottom: 20%;
  right: 0%;
  transform: rotate(-10deg);
}

.shape-3 {
  width: 150px;
  height: 80px;
  bottom: 5%;
  right: 20%;
  transform: rotate(5deg);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--spacing-md);
}

.hero p {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
}

/* ===================================
   Loading & Empty States
   =================================== */

.loading {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--text-secondary);
}

.spinner {
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--spacing-md);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
}

/* ===================================
   Alerts & Toasts
   =================================== */

.alert {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  font-weight: 500;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
}

.toast {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  background: var(--text-primary);
  color: white;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  animation: slideIn 0.3s ease;
  z-index: 10000;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===================================
   Utility Classes
   =================================== */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--text-secondary);
}

.text-sm {
  font-size: var(--font-size-sm);
}

.text-lg {
  font-size: var(--font-size-lg);
}

.mt-1 {
  margin-top: var(--spacing-sm);
}

.mt-2 {
  margin-top: var(--spacing-md);
}

.mt-3 {
  margin-top: var(--spacing-lg);
}

.mt-4 {
  margin-top: var(--spacing-xl);
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mb-3 {
  margin-bottom: var(--spacing-lg);
}

.mb-4 {
  margin-bottom: var(--spacing-xl);
}

.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.justify-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.gap-2 {
  gap: var(--spacing-md);
}

.hidden {
  display: none;
}

/* ===================================
   Footer Styles
   =================================== */

.footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h3,
.footer-column h4 {
  margin-bottom: 1rem;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-yellow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-base);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--yellow-primary);
  transform: translateX(5px);
}

/* Social Links */
.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--yellow-primary);
  color: var(--text-primary);
  transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-bottom-links a:hover {
  color: var(--yellow-primary);
}

.footer-bottom-links span {
  opacity: 0.5;
}

/* ===================================
   Keyframe Animations
   =================================== */

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===================================
   Loading States & Skeletons
   =================================== */

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 70%;
  margin-bottom: 1rem;
}

.skeleton-image {
  height: 200px;
  width: 100%;
  margin-bottom: 1rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(253, 185, 19, 0.2);
  border-top-color: var(--yellow-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.spinner-lg {
  width: 60px;
  height: 60px;
  border-width: 6px;
}

/* ===================================
   Scroll Animations
   =================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-down {
  animation: fadeInDown 0.6s ease-out forwards;
}

.scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out forwards;
}

.slide-in-left {
  animation: slideInLeft 0.5s ease-out forwards;
}

/* Stagger Animation Delays */
.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

.stagger-4 {
  animation-delay: 0.4s;
}

.stagger-5 {
  animation-delay: 0.5s;
}

.stagger-6 {
  animation-delay: 0.6s;
}

/* ===================================
   ADVANCED SCROLL ANIMATIONS
   =================================== */

/* Rotate In */
@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-200deg) scale(0.5);
  }

  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

.rotate-in {
  animation: rotateIn 0.8s ease-out forwards;
}

/* Flip In */
@keyframes flipInX {
  from {
    opacity: 0;
    transform: perspective(400px) rotateX(-90deg);
  }

  to {
    opacity: 1;
    transform: perspective(400px) rotateX(0);
  }
}

.flip-in {
  animation: flipInX 0.8s ease-out forwards;
}

/* Zoom Blur */
@keyframes zoomBlur {
  from {
    opacity: 0;
    transform: scale(0.6);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.zoom-blur {
  animation: zoomBlur 0.8s ease-out forwards;
}

/* Slide Rotate */
@keyframes slideRotateIn {
  from {
    opacity: 0;
    transform: translateX(-100%) rotate(-10deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

.slide-rotate {
  animation: slideRotateIn 0.8s ease-out forwards;
}

/* Bounce In */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    transform: scale(1.05);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.bounce-in {
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Reveal from Bottom */
@keyframes revealBottom {
  from {
    opacity: 0;
    transform: translateY(100px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reveal-bottom {
  animation: revealBottom 0.8s ease-out forwards;
}

/* Swing In */
@keyframes swingIn {
  0% {
    opacity: 0;
    transform: rotateX(-100deg);
    transform-origin: top;
  }

  100% {
    opacity: 1;
    transform: rotateX(0deg);
  }
}

.swing-in {
  animation: swingIn 1s ease-out forwards;
}

/* Glide In */
@keyframes glideIn {
  from {
    opacity: 0;
    transform: translateY(50px) translateX(-50px) rotate(-5deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0);
  }
}

.glide-in {
  animation: glideIn 1s ease-out forwards;
}

/* Parallax Scroll Effect */
.parallax-slow {
  transition: transform 0.5s cubic-bezier(0, 0, 0, 1);
}

/* Enhanced Animation Classes */
.scroll-animate-extreme {
  opacity: 0;
  will-change: transform, opacity;
}

.scroll-animate-extreme.animated {
  opacity: 1;
}

/* Dramatic Entrance */
@keyframes dramaticEntrance {
  0% {
    opacity: 0;
    transform: translateY(100px) scale(0.8) rotateX(-15deg);
    filter: blur(5px);
  }

  50% {
    transform: translateY(-10px) scale(1.02) rotateX(5deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
    filter: blur(0);
  }
}

.dramatic-entrance {
  animation: dramaticEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Advanced Stagger with Different Delays */
.extreme-stagger-1 {
  animation-delay: 0.15s;
}

.extreme-stagger-2 {
  animation-delay: 0.3s;
}

.extreme-stagger-3 {
  animation-delay: 0.45s;
}

.extreme-stagger-4 {
  animation-delay: 0.6s;
}

.extreme-stagger-5 {
  animation-delay: 0.75s;
}

.extreme-stagger-6 {
  animation-delay: 0.9s;
}

/* ===================================
   Enhanced Hover Effects
   =================================== */

.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-scale {
  transition: transform var(--transition-base);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-glow {
  transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(253, 185, 19, 0.4);
}

/* ===================================
   Button Ripple Effect
   =================================== */

.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple .ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

/* ===================================
   Input Focus Animations
   =================================== */

.form-input:focus,
.form-textarea:focus {
  border-color: var(--yellow-primary);
  box-shadow: 0 0 0 3px rgba(253, 185, 19, 0.1);
  transform: scale(1.01);
}

/* ===================================
   Page Load Animation
   =================================== */

.page-fade-in {
  animation: fadeIn 0.5s ease-out;
}

body {
  animation: fadeIn 0.3s ease-out;
}

/* ===================================
   Accessibility - Reduced Motion
   =================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {

  /* Mobile Hamburger Menu */
  .hamburger {
    display: flex;
  }

  .navbar-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background: var(--bg-primary);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 2rem 0;
    gap: 0;
    transition: right var(--transition-base);
    z-index: 1000;
  }

  .navbar-menu.active {
    right: 0;
  }

  .navbar-menu li {
    width: 100%;
  }

  .navbar-menu a {
    display: block;
    padding: 1rem 2rem;
    width: 100%;
    border-radius: 0;
  }

  .navbar-menu a:hover {
    background: var(--bg-secondary);
  }

  .navbar-menu {
    gap: var(--spacing-sm);
  }

  .navbar-menu a {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-sm);
  }

  .hero {
    padding: var(--spacing-lg) 0;
    min-height: auto;
  }

  .hero-card {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-image-section {
    height: 350px;
  }

  .yellow-blob {
    width: 320px;
    height: 320px;
    /* Maintain centering on mobile */
    transform: translate(-50%, calc(-50% + var(--parallax-y, 0px)));
  }

  .hero-person {
    max-width: 280px;
  }

  .floating-icon {
    width: 50px;
    height: 50px;
  }

  .floating-icon svg,
  .floating-icon img {
    width: 25px;
    height: 25px;
  }

  .decorative-shape {
    display: none;
  }

  /* Footer Mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-card {
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-image-section {
    height: 400px;
  }

  .yellow-blob {
    width: 380px;
    height: 380px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}