/* --- Premium Modern Color Theme Variables --- */
:root {
  --primary: #6366f1;
  --primary-dark: #4338ca;
  --primary-light: #818cf8;
  --secondary: #0891b2;
  --secondary-dark: #0e7490;
  --secondary-light: #22d3ee;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #d97706;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --rose: #f43f5e;
  --bg-primary: #fafbff;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-accent: #f0f9ff;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-gradient: linear-gradient(120deg, #6366f1 60%, #f59e0b 100%);
  --bg-gradient-light: linear-gradient(135deg, #f0f9ff 0%, #fafbff 50%, #ecfdf5 100%);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-white: #ffffff;
  --text-on-primary: #ffffff;
  --text-accent: #6366f1;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #94a3b8;
  --border-focus: #6366f1;
  --border-accent: rgba(99, 102, 241, 0.2);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08);
  --shadow-md: 0 4px 8px -2px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 12px 24px -4px rgb(0 0 0 / 0.12), 0 4px 8px -4px rgb(0 0 0 / 0.08);
  --shadow-xl: 0 24px 48px -8px rgb(0 0 0 / 0.15), 0 8px 16px -8px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 32px 64px -12px rgb(0 0 0 / 0.25);
  --shadow-colored: 0 12px 32px -8px rgba(99, 102, 241, 0.25);
  --shadow-glow: 0 0 32px rgba(99, 102, 241, 0.15);
  --card-radius: 1.5rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-3xl: 2.5rem;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Styles --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  font-family: 'Inter', 'Montserrat', Arial, sans-serif;
  background: var(--bg-gradient-light);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Accessibility Skip Link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 16px;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
  transition: left var(--transition-fast);
}

.skip-link:focus {
  left: 16px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Animated Background Bubbles --- */
.bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light), var(--accent-light));
  filter: blur(2px);
  animation: bubbleFloat 15s infinite linear;
}

.bubble:nth-child(1) {
  width: 80px;
  height: 80px;
  left: 10%;
  top: 80%;
  animation-delay: 0s;
}

.bubble:nth-child(2) {
  width: 60px;
  height: 60px;
  left: 80%;
  top: 70%;
  animation-delay: 2s;
}

.bubble:nth-child(3) {
  width: 100px;
  height: 100px;
  left: 50%;
  top: 85%;
  animation-delay: 4s;
}

.bubble:nth-child(4) {
  width: 40px;
  height: 40px;
  left: 30%;
  top: 90%;
  animation-delay: 6s;
}

.bubble:nth-child(5) {
  width: 70px;
  height: 70px;
  left: 70%;
  top: 75%;
  animation-delay: 8s;
}

@keyframes bubbleFloat {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  50% {
    transform: translateY(-100px) scale(1.1) rotate(180deg);
  }
  100% {
    transform: translateY(0) scale(1) rotate(360deg);
  }
}

/* --- Header/Navigation --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.main-header.hide-header {
  transform: translateY(-100%);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 900;
}

.logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.logo-icon svg {
  width: 28px;
  height: 28px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-main {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.5px;
  font-family: 'Montserrat', sans-serif;
}

.logo-sub {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.25px;
  margin-top: -2px;
}

.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.main-nav a:hover,
.main-nav a:focus {
  background: var(--bg-accent);
  color: var(--primary);
  transform: translateY(-1px);
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.header-link:hover,
.header-link:focus {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.header-divider {
  color: var(--border-medium);
  font-size: 1.2rem;
  font-weight: 300;
}

/* --- Welcome Section Enhanced Perfect Design --- */
.welcome-side-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  max-width: 1450px;
  margin: 150px auto 7rem;
  background: 
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.98) 0%, 
      rgba(250, 251, 255, 0.95) 30%,
      rgba(248, 250, 252, 0.98) 70%, 
      rgba(255, 255, 255, 0.98) 100%);
  backdrop-filter: blur(25px);
  border-radius: var(--radius-3xl);
  box-shadow: 
    0 30px 100px rgba(0, 0, 0, 0.12),
    0 15px 50px rgba(99, 102, 241, 0.15),
    0 5px 20px rgba(245, 158, 11, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(99, 102, 241, 0.05);
  overflow: hidden;
  position: relative;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.4);
  min-height: 500px; /* Added to control minimum height */
  max-height: 700px; /* Added to prevent excessive height */
}

.welcome-side-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 25%, rgba(99, 102, 241, 0.04) 0%, transparent 60%),
    radial-gradient(circle at 85% 75%, rgba(245, 158, 11, 0.04) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.02) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.welcome-side-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, 
      transparent 48%, 
      rgba(99, 102, 241, 0.02) 49%, 
      rgba(99, 102, 241, 0.04) 50%, 
      rgba(99, 102, 241, 0.02) 51%, 
      transparent 52%);
  animation: welcomeShine 15s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes welcomeShine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(200%) translateY(200%) rotate(45deg); }
}

.welcome-side-content {
  padding: 3.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.welcome-side-title {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.15;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  letter-spacing: -0.025em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  position: relative;
}

.welcome-side-title span {
  position: relative;
  background: 
    linear-gradient(135deg, 
      var(--primary) 0%, 
      var(--primary-light) 40%,
      var(--secondary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  animation: titleShimmer 4s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%, 100% {
    filter: brightness(1) contrast(1);
  }
  50% {
    filter: brightness(1.2) contrast(1.1);
  }
}

.welcome-side-title span::after {
  content: '';
  position: absolute;
  bottom: -6px; /* Reduced from -8px */
  left: 0;
  width: 100%;
  height: 5px; /* Reduced from 6px */
  background: 
    linear-gradient(90deg, 
      var(--accent) 0%, 
      var(--accent-light) 30%,
      var(--primary) 70%,
      var(--primary-light) 100%);
  border-radius: 3px; /* Reduced from 4px */
  box-shadow: 
    0 3px 12px rgba(245, 158, 11, 0.5),
    0 1px 4px rgba(99, 102, 241, 0.3);
  animation: underlineGlow 3s ease-in-out infinite;
  display: none; /* Hide the underline */
}

@keyframes underlineGlow {
  0%, 100% {
    box-shadow: 
      0 3px 12px rgba(245, 158, 11, 0.5),
      0 1px 4px rgba(99, 102, 241, 0.3);
    transform: scaleX(1);
  }
  50% {
    box-shadow: 
      0 5px 20px rgba(245, 158, 11, 0.7),
      0 2px 8px rgba(99, 102, 241, 0.5);
    transform: scaleX(1.03);
  }
}

.welcome-side-desc {
  font-size: 1.2rem; /* Reduced from 1.3rem */
  color: var(--text-secondary);
  line-height: 1.7; /* Reduced from 1.8 */
  margin: 0;
  font-weight: 500;
  max-width: 95%;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  position: relative;
}

.welcome-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: 
    linear-gradient(135deg, 
      rgba(16, 185, 129, 0.1) 0%, 
      rgba(5, 150, 105, 0.08) 50%,
      rgba(16, 185, 129, 0.06) 100%);
  padding: 1.25rem 2rem; /* Reduced from 1.5rem 2.5rem */
  border-radius: var(--radius-xl); /* Reduced from 2xl */
  border: 2px solid rgba(16, 185, 129, 0.2);
  box-shadow: 
    0 10px 30px rgba(16, 185, 129, 0.12), /* Reduced shadows */
    0 3px 12px rgba(16, 185, 129, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(16, 185, 129, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px);
}

.welcome-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, 
      transparent, 
      rgba(16, 185, 129, 0.15), 
      transparent);
  animation: highlightShine 5s ease-in-out infinite;
}

@keyframes highlightShine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.welcome-highlight i {
  font-size: 1.5rem; /* Reduced from 1.75rem */
  color: var(--success);
  filter: drop-shadow(0 3px 8px rgba(16, 185, 129, 0.4));
  animation: starSparkle 2.5s ease-in-out infinite;
}

@keyframes starSparkle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 3px 8px rgba(16, 185, 129, 0.4));
  }
  25% {
    transform: rotate(90deg) scale(1.15);
    filter: drop-shadow(0 5px 15px rgba(16, 185, 129, 0.6));
  }
  50% {
    transform: rotate(180deg) scale(1.2);
    filter: drop-shadow(0 6px 18px rgba(16, 185, 129, 0.7));
  }
  75% {
    transform: rotate(270deg) scale(1.15);
    filter: drop-shadow(0 5px 15px rgba(16, 185, 129, 0.6));
  }
}

.welcome-highlight span {
  color: var(--success);
  font-weight: 800;
  font-size: 1.1rem; /* Reduced from 1.15rem */
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.welcome-side-btn {
  background: 
    linear-gradient(135deg, 
      var(--primary) 0%, 
      var(--primary-light) 30%,
      var(--secondary) 70%, 
      var(--secondary-light) 100%);
  color: white;
  font-weight: 900;
  font-size: 1.2rem; /* Reduced from 1.25rem */
  padding: 1.5rem 3rem; /* Reduced from 1.75rem 3.5rem */
  border: none;
  border-radius: var(--radius-xl); /* Reduced from 2xl */
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem; /* Reduced from 1rem */
  transition: all var(--transition-normal);
  box-shadow: 
    0 12px 35px rgba(99, 102, 241, 0.3), /* Reduced shadows */
    0 5px 18px rgba(0, 0, 0, 0.12),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  width: fit-content;
  margin: 1.5rem 0 0; /* Reduced from 2rem */
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  will-change: transform;
}

.welcome-side-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, 
      transparent, 
      rgba(255, 255, 255, 0.4), 
      transparent);
  transition: left 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-side-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: 
    radial-gradient(circle, 
      rgba(255, 255, 255, 0.4) 0%, 
      transparent 70%);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.welcome-side-btn:hover::before {
  left: 100%;
}

.welcome-side-btn:hover::after {
  width: 350px;
  height: 350px;
}

.welcome-side-btn:hover,
.welcome-side-btn:focus {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 
    0 20px 50px rgba(99, 102, 241, 0.4),
    0 10px 28px rgba(0, 0, 0, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  background: 
    linear-gradient(135deg, 
      var(--primary-dark) 0%, 
      var(--primary) 30%,
      var(--secondary-dark) 70%, 
      var(--secondary) 100%);
}

.welcome-side-btn i {
  font-size: 1.3rem; /* Reduced from 1.4rem */
  transition: transform var(--transition-normal);
}

.welcome-side-btn:hover i {
  transform: translateX(6px);
}

.welcome-side-img {
  height: 450px; /* Reduced from 600px */
  background: 
    linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    linear-gradient(45deg, rgba(245, 158, 11, 0.06) 60%, transparent 100%),
    url('https://images.unsplash.com/photo-1571896349842-33c89424de2d?auto=format&fit=crop&w=900&q=90') center/cover no-repeat;
  position: relative;
  border-radius: 0 var(--radius-3xl) var(--radius-3xl) 0;
  overflow: hidden;
}

.welcome-side-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, 
      rgba(99, 102, 241, 0.12) 0%, 
      rgba(16, 185, 129, 0.06) 30%,
      transparent 50%, 
      rgba(245, 158, 11, 0.08) 80%,
      rgba(99, 102, 241, 0.10) 100%);
  z-index: 1;
}

.welcome-side-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 70% 30%, 
      rgba(99, 102, 241, 0.15) 0%, 
      transparent 50%),
    radial-gradient(ellipse at 30% 70%, 
      rgba(245, 158, 11, 0.12) 0%, 
      transparent 60%);
  z-index: 2;
  animation: imageAura 8s ease-in-out infinite;
}

@keyframes imageAura {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1) rotate(0deg);
  }
  33% {
    opacity: 0.8;
    transform: scale(1.03) rotate(1deg);
  }
  66% {
    opacity: 0.6;
    transform: scale(1.05) rotate(-1deg);
  }
}

/* Enhanced Stats overlay */
.welcome-stats-overlay {
  position: absolute;
  bottom: 2rem; /* Reduced from 2.5rem */
  right: 2rem; /* Reduced from 2.5rem */
  background: 
    linear-gradient(135deg, 
      rgba(5, 5, 15, 0.95) 0%, 
      rgba(15, 20, 35, 0.92) 50%,
      rgba(25, 30, 45, 0.95) 100%);
  backdrop-filter: blur(30px);
  padding: 2rem 2.5rem; /* Reduced from 2.5rem 3rem */
  border-radius: var(--radius-xl); /* Reduced from 2xl */
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.35), /* Reduced shadows */
    0 10px 35px rgba(99, 102, 241, 0.25),
    0 3px 14px rgba(245, 158, 11, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.18);
  z-index: 4;
  min-width: 220px; /* Reduced from 240px */
  position: relative;
  overflow: hidden;
}

.welcome-stats-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, 
      transparent 48%, 
      rgba(99, 102, 241, 0.1) 49%, 
      rgba(99, 102, 241, 0.1) 51%, 
      transparent 52%);
  animation: statsPattern 10s linear infinite;
  z-index: 1;
}

@keyframes statsPattern {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(200%) translateY(200%) rotate(45deg); }
}

.welcome-stats-item {
  display: flex;
  align-items: center;
  gap: 1rem; /* Reduced from 1.25rem */
  margin-bottom: 1.25rem; /* Reduced from 1.5rem */
  position: relative;
  z-index: 2;
}

.welcome-stats-item:last-child {
  margin-bottom: 0;
}

.welcome-stats-icon {
  width: 45px; /* Reduced from 50px */
  height: 45px; /* Reduced from 50px */
  background: 
    linear-gradient(135deg, 
      var(--accent) 0%, 
      var(--accent-light) 50%,
      var(--accent-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
  font-size: 1.1rem; /* Reduced from 1.2rem */
  font-weight: 900;
  box-shadow: 
    0 10px 28px rgba(245, 158, 11, 0.5), /* Reduced shadows */
    0 3px 14px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  border: 3px solid rgba(255, 215, 0, 0.5);
  animation: statsIconGlow 3s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
}

.welcome-stats-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: iconShine 3s ease-in-out infinite;
}

@keyframes iconShine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

@keyframes statsIconGlow {
  0% {
    box-shadow: 
      0 10px 28px rgba(245, 158, 11, 0.5),
      0 3px 14px rgba(0, 0, 0, 0.2),
      inset 0 2px 0 rgba(255, 255, 255, 0.4),
      inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    transform: scale(1);
  }
  100% {
    box-shadow: 
      0 14px 35px rgba(245, 158, 11, 0.7),
      0 5px 20px rgba(0, 0, 0, 0.3),
      inset 0 2px 0 rgba(255, 255, 255, 0.6),
      inset 0 -2px 0 rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
  }
}

.welcome-stats-text {
  display: flex;
  flex-direction: column;
}

.welcome-stats-number {
  font-size: 1.5rem; /* Reduced from 1.6rem */
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-shadow: 
    0 3px 12px rgba(0, 0, 0, 0.4),
    0 1px 4px rgba(99, 102, 241, 0.3);
  font-family: 'Montserrat', sans-serif;
}

.welcome-stats-label {
  font-size: 0.9rem; /* Reduced from 0.95rem */
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 0.3rem; /* Reduced from 0.4rem */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Enhanced floating badge */
.welcome-badge-overlay {
  position: absolute;
  top: 2rem; /* Reduced from 2.5rem */
  left: 2rem; /* Reduced from 2.5rem */
  background: 
    linear-gradient(135deg, 
      var(--success) 0%, 
      #059669 50%,
      #047857 100%);
  color: #ffffff;
  padding: 1rem 1.75rem; /* Reduced from 1.25rem 2.25rem */
  border-radius: 50px;
  font-weight: 900;
  font-size: 0.95rem; /* Reduced from 1rem */
  box-shadow: 
    0 12px 35px rgba(16, 185, 129, 0.5), /* Reduced shadows */
    0 4px 18px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  z-index: 4;
  animation: badgePulse 3.5s ease-in-out infinite;
  border: 3px solid rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Reduced from 0.75rem */
  position: relative;
  overflow: hidden;
}

.welcome-badge-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: badgeShine 4s ease-in-out infinite;
}

@keyframes badgeShine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 
      0 12px 35px rgba(16, 185, 129, 0.5),
      0 4px 18px rgba(0, 0, 0, 0.2),
      inset 0 2px 0 rgba(255, 255, 255, 0.4),
      inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    transform: scale(1);
  }
  50% {
    box-shadow: 
      0 16px 50px rgba(16, 185, 129, 0.7),
      0 6px 25px rgba(0, 0, 0, 0.3),
      inset 0 2px 0 rgba(255, 255, 255, 0.6),
      inset 0 -2px 0 rgba(0, 0, 0, 0.25);
    transform: scale(1.03);
  }
}

.welcome-badge-overlay i {
  font-size: 1.1rem; /* Reduced from 1.25rem */
  animation: checkPulse 2.5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes checkPulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.15) rotate(5deg);
  }
  50% {
    transform: scale(1.25) rotate(0deg);
  }
  75% {
    transform: scale(1.15) rotate(-5deg);
  }
}

/* Enhanced responsive design */
@media (max-width: 1200px) {
  .welcome-side-section {
    max-width: 95%;
    margin: 130px auto 5.5rem;
    min-height: 420px; /* Reduced */
    max-height: 470px; /* Reduced */
  }
  
  .welcome-side-content {
    padding: 3rem 3.5rem; /* Reduced */
  }
  
  .welcome-side-img {
    height: 420px; /* Reduced */
  }
  
  .welcome-stats-overlay {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 1.75rem 2rem;
    min-width: 200px;
  }
}

@media (max-width: 900px) {
  .welcome-side-section {
    grid-template-columns: 1fr;
    margin: 110px auto 4.5rem;
    max-width: 92%;
    min-height: auto; /* Remove height constraints on mobile */
    max-height: none;
  }
  
  .welcome-side-content {
    padding: 3rem 2.5rem; /* Reduced */
    text-align: center;
  }
  
  .welcome-side-img {
    height: 350px; /* Reduced */
    border-radius: 0 0 var(--radius-3xl) var(--radius-3xl);
    order: -1;
    background: 
      linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
      linear-gradient(45deg, rgba(245, 158, 11, 0.06) 60%, transparent 100%),
      url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=900&q=90') center/cover no-repeat;
  }
  
  .welcome-stats-overlay {
    position: static;
    margin: 2rem auto 0;
    width: fit-content;
  }
  
  .welcome-badge-overlay {
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .welcome-side-desc {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .welcome-side-section {
    margin: 90px auto 4rem;
    max-width: 95%;
  }
  
  .welcome-side-content {
    padding: 2.5rem 2rem;
    gap: 1.75rem;
  }
  
  .welcome-side-img {
    height: 300px;
  }
  
  .welcome-stats-overlay {
    padding: 1.5rem 1.75rem;
    margin: 1.75rem auto 0;
  }
  
  .welcome-side-title {
    font-size: clamp(2rem, 6vw, 2.75rem);
  }
  
  .welcome-side-desc {
    font-size: 1.125rem;
  }
}

@media (max-width: 600px) {
  .welcome-side-content {
    padding: 2.5rem 2rem; /* Reduced */
    gap: 1.5rem; /* Reduced */
  }
  
  .welcome-side-title {
    font-size: clamp(1.9rem, 6vw, 2.5rem); /* Reduced */
  }
  
  .welcome-side-desc {
    font-size: 1.1rem; /* Reduced */
  }
  
  .welcome-side-btn {
    width: 100%;
    padding: 1.25rem 2rem; /* Reduced */
    font-size: 1.1rem; /* Reduced */
  }
  
  .welcome-side-img {
    height: 280px; /* Reduced */
  }
  
  .welcome-stats-overlay {
    padding: 1.75rem 2rem; /* Reduced */
    margin: 1.75rem auto 0;
  }
  
  .welcome-stats-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .welcome-stats-number {
    font-size: 1.3rem; /* Reduced */
  }
  
  .welcome-highlight {
    padding: 1rem 1.5rem; /* Reduced */
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .welcome-badge-overlay {
    padding: 0.875rem 1.5rem; /* Reduced */
    font-size: 0.85rem; /* Reduced */
  }
}

@media (max-width: 480px) {
  .welcome-side-section {
    margin: 80px auto 3.5rem;
    max-width: 98%;
  }
  
  .welcome-side-content {
    padding: 2rem 1.5rem;
    gap: 1.25rem;
  }
  
  .welcome-side-title {
    font-size: clamp(1.75rem, 5.5vw, 2.25rem);
  }
  
  .welcome-side-desc {
    font-size: 1rem;
  }
  
  .welcome-side-btn {
    padding: 1rem 1.75rem;
    font-size: 1rem;
  }
  
  .welcome-side-img {
    height: 240px;
  }
  
  .welcome-stats-overlay {
    padding: 1.5rem 1.75rem;
    margin: 1.5rem auto 0;
  }
  
  .welcome-stats-number {
    font-size: 1.2rem;
  }
  
  .welcome-highlight {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .welcome-badge-overlay {
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .welcome-side-section {
    margin: 70px auto 3rem;
    max-width: 99%;
  }
  
  .welcome-side-content {
    padding: 1.75rem 1.25rem;
    gap: 1rem;
  }
  
  .welcome-side-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  .welcome-side-desc {
    font-size: 0.95rem;
  }
  
  .welcome-side-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .welcome-side-img {
    height: 200px;
  }
  
  .welcome-stats-overlay {
    padding: 1.25rem 1.5rem;
    margin: 1.25rem auto 0;
  }
  
  .welcome-stats-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .welcome-stats-number {
    font-size: 1.1rem;
  }
  
  .welcome-highlight {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .welcome-badge-overlay {
    padding: 0.625rem 1rem;
    font-size: 0.75rem;
  }
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1d3a 20%, #2d1b69 40%, #4338ca 70%, #6366f1 100%);
  overflow: hidden;
  z-index: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 70%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
  z-index: 1;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
  z-index: 2;
}

.hero-floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, rgba(99, 102, 241, 0.1) 50%, transparent 100%);
  animation: heroFloat 12s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 15%;
  width: 80px;
  height: 80px;
  animation-delay: 4s;
}

.floating-element:nth-child(3) {
  bottom: 30%;
  left: 20%;
  width: 100px;
  height: 100px;
  animation-delay: 8s;
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
    opacity: 0.6;
  }
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
  max-width: 1400px;
  padding: 2rem 3rem;
  margin: 0 auto;
}

/* Hero section mobile responsiveness */
@media (max-width: 1200px) {
  .hero-inner {
    padding: 2rem 2.5rem;
    gap: 3rem;
    max-width: 1200px;
  }
}

@media (max-width: 900px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    order: 1;
  }
  
  .hero-visual {
    order: 2;
  }
  
  .floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
  }
  
  .floating-element:nth-child(2) {
    width: 70px;
    height: 70px;
  }
  
  .floating-element:nth-child(3) {
    width: 85px;
    height: 85px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 75vh;
  }
  
  .hero-inner {
    gap: 2rem;
    padding: 1.5rem;
  }
  
  .hero-content {
    gap: 1.75rem;
  }
  
  .floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 5%;
  }
  
  .floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 70%;
    right: 10%;
  }
  
  .floating-element:nth-child(3) {
    width: 70px;
    height: 70px;
    bottom: 25%;
    left: 15%;
  }
}

@media (max-width: 600px) {
  .hero-section {
    min-height: 70vh;
  }
  
  .hero-inner {
    gap: 1.5rem;
    padding: 1.25rem;
  }
  
  .hero-content {
    gap: 1.5rem;
  }
  
  .floating-element {
    display: none; /* Hide floating elements on small screens for better performance */
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 65vh;
  }
  
  .hero-inner {
    gap: 1.25rem;
    padding: 1rem;
  }
  
  .hero-content {
    gap: 1.25rem;
  }
}

@media (max-width: 360px) {
  .hero-section {
    min-height: 60vh;
  }
  
  .hero-inner {
    gap: 1rem;
    padding: 0.875rem;
  }
  
  .hero-content {
    gap: 1rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1a1a1a;
  font-weight: 800;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
  animation: badgePulse 3s infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
  }
  50% {
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.6);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-title .highlight {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 25%, #6366f1 75%, #8b5cf6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: textShimmer 3s ease-in-out infinite;
}

@keyframes textShimmer {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-features li {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.hero-features i {
  color: #fbbf24;
  margin-right: 1rem;
  font-size: 1.25rem;
  width: 24px;
  text-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 25%, #6366f1 75%, #4338ca 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.125rem;
  border: none;
  border-radius: var(--radius-2xl);
  padding: 1.25rem 2.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-btn-primary:hover,
.hero-btn-primary:focus {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.6);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.125rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-2xl);
  padding: 1.25rem 2rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(20px);
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus {
  background: rgba(251, 191, 36, 0.2);
  border-color: #fbbf24;
  color: #fbbf24;
  transform: translateY(-3px);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 600px;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(-8deg) rotateX(5deg);
  transition: transform var(--transition-slow);
  border: 2px solid rgba(251, 191, 36, 0.3);
}

.hero-image-container:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) scale(1.02);
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
  loading: lazy;
}

/* Consider lazy loading for images */
.hero-image-container img {
  loading: lazy;
}

/* Add will-change for better animation performance */
.welcome-side-btn {
  will-change: transform;
}

.hero-badge-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: badgePulse 2s infinite;
}

.hero-stats {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-2xl);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-stats-item:last-child {
  margin-bottom: 0;
}

.hero-stats-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: bold;
}

.hero-stats-text {
  display: flex;
  flex-direction: column;
}

.hero-stats-number {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.hero-stats-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Benefits Section --- */
.benefits-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Benefits section mobile responsiveness */
@media (max-width: 900px) {
  .benefits-section {
    margin: 3rem auto;
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .benefits-section {
    margin: 2.5rem auto;
    padding: 0 1.25rem;
  }
}

@media (max-width: 600px) {
  .benefits-section {
    margin: 2rem auto;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .benefits-section {
    margin: 1.5rem auto;
    padding: 0 0.875rem;
  }
}

@media (max-width: 360px) {
  .benefits-section {
    margin: 1.25rem auto;
    padding: 0 0.75rem;
  }
}

.benefits-section h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 3rem;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.benefits-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-card {
  position: relative;
  height: 300px;
  border-radius: var(--radius-2xl);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

/* Benefit cards mobile responsiveness */
@media (max-width: 900px) {
  .benefits-cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }
  
  .benefit-card {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .benefits-cards {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
  }
  
  .benefit-card {
    height: 260px;
    border-radius: var(--radius-xl);
  }
  
  .benefit-icon {
    top: 15px;
    right: 15px;
    font-size: 1.75rem;
  }
  
  .benefit-text {
    font-size: 1.125rem;
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 600px) {
  .benefits-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .benefit-card {
    height: 240px;
    border-radius: var(--radius-lg);
  }
  
  .benefit-icon {
    top: 12px;
    right: 12px;
    font-size: 1.5rem;
  }
  
  .benefit-text {
    font-size: 1rem;
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 480px) {
  .benefits-cards {
    gap: 0.875rem;
  }
  
  .benefit-card {
    height: 220px;
    border-radius: var(--radius-md);
  }
  
  .benefit-icon {
    top: 10px;
    right: 10px;
    font-size: 1.375rem;
  }
  
  .benefit-text {
    font-size: 0.95rem;
    padding: 1rem 0.875rem;
  }
}

@media (max-width: 360px) {
  .benefits-cards {
    gap: 0.75rem;
  }
  
  .benefit-card {
    height: 200px;
  }
  
  .benefit-icon {
    top: 8px;
    right: 8px;
    font-size: 1.25rem;
  }
  
  .benefit-text {
    font-size: 0.9rem;
    padding: 0.875rem 0.75rem;
  }
}

/* --- COMPREHENSIVE MOBILE ENHANCEMENTS FOR INDEX PAGE --- */

/* Prevent zoom on input focus for iOS */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
}

/* Enhanced touch targets */
@media (max-width: 768px) {
  button, .btn, a[role="button"] {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
  }
  
  .welcome-side-btn {
    min-height: 48px;
  }
  
  .hero-btn-primary,
  .hero-btn-secondary {
    min-height: 48px;
    padding: 0.875rem 1.5rem;
  }
}

/* Improve scrolling performance */
@media (max-width: 768px) {
  * {
    -webkit-overflow-scrolling: touch;
  }
  
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Prevent horizontal scroll */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Mobile-specific utility classes */
@media (max-width: 600px) {
  .mobile-full-width {
    width: 100% !important;
  }
  
  .mobile-center {
    text-align: center !important;
  }
  
  .mobile-stack {
    flex-direction: column !important;
  }
}

/* Enhanced mobile typography for better readability */
@media (max-width: 600px) {
  .welcome-side-title,
  .hero-title {
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  
  .welcome-side-desc,
  .hero-subtitle {
    line-height: 1.6;
  }
}

/* Extra small screen optimizations */
@media (max-width: 320px) {
  .welcome-side-section {
    margin: 60px auto 2.5rem;
  }
  
  .welcome-side-content {
    padding: 1.5rem 1rem;
    gap: 0.875rem;
  }
  
  .welcome-side-title {
    font-size: clamp(1.375rem, 4.5vw, 1.875rem);
  }
  
  .welcome-side-desc {
    font-size: 0.875rem;
  }
  
  .welcome-side-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .welcome-side-img {
    height: 160px;
  }
  
  .hero-section {
    min-height: 55vh;
  }
  
  .hero-inner {
    padding: 0.75rem;
  }
  
  .benefit-card {
    height: 180px;
  }
  
  .benefit-text {
    font-size: 0.85rem;
    padding: 0.75rem 0.625rem;
  }
}

.benefit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  z-index: 1;
}

.benefit-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-2xl);
}

.benefit-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: var(--accent);
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.benefit-text {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 2rem 1.5rem;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* --- CTA Bar --- */
.cta-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 3rem 2rem;
  margin: 4rem auto;
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-xl);
  max-width: 1100px;
  position: relative;
  z-index: 2;
}

.cta-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.cta-bar-title {
  font-size: 1.75rem;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
}

.cta-bar-desc {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.cta-bar-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  border-radius: var(--radius-xl);
  padding: 1rem 2rem;
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.cta-bar-btn:hover,
.cta-bar-btn:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
}

/* --- Testimonials Section --- */
.testimonials-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.testimonials-section h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 3rem;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.testimonials-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
  border: 2px solid transparent;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-light);
}

.testimonial-quote {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-light);
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  font-family: serif;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
}

.testimonial-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.125rem;
}

/* --- FAQ Section --- */
.faq-section {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.faq-section h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 3rem;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 1.5rem;
}

.faq-item {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow var(--transition-normal);
}

.faq-item:hover {
  box-shadow: var(--shadow-lg);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 1.5rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-fast);
}

.faq-question:hover,
.faq-question:focus {
  background: var(--bg-accent);
  outline: none;
}

.faq-arrow {
  font-size: 1rem;
  color: var(--primary);
  transition: transform var(--transition-normal);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeInUp 0.3s ease-out;
}

.faq-more {
  text-align: right;
  margin-top: 2rem;
}

.faq-more-link {
  color: var(--text-accent);
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: color var(--transition-fast);
  outline: none; /* Remove focus outline */
  box-shadow: none; /* Remove any box shadow */
  -webkit-appearance: none; /* Remove webkit button styling */
  -moz-appearance: none; /* Remove firefox button styling */
  appearance: none; /* Remove default button appearance */
}

.faq-more-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

.faq-more-link:hover::after,
.faq-more-link:focus::after {
  width: 100%;
}

.faq-more-link:hover,
.faq-more-link:focus {
  color: var(--primary-dark);
  outline: none; /* Ensure no outline on focus */
  box-shadow: none; /* Ensure no box shadow on focus */
}

.faq-more-link:active {
  outline: none; /* Remove outline on click */
  box-shadow: none; /* Remove box shadow on click */
}

.faq-more-link.hide {
  display: none;
}

/* --- About Section --- */
#about {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

#about h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-family: 'Montserrat', sans-serif;
}

#about p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

/* --- Footer Wave --- */
.footer-wave {
  display: block;
  width: 100vw;
  height: 80px;
  margin-bottom: -2px;
  position: relative;
  z-index: 2;
}

/* --- Footer --- */
.main-footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1e293b 60%, var(--primary) 100%);
  color: white;
  padding: 4rem 0 0;
  position: relative;
  z-index: 10;
  border-radius: 2rem 2rem 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  font-family: 'Montserrat', sans-serif;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 0.25rem 0;
  font-size: 1rem;
  font-weight: 500;
}

.footer-link:hover,
.footer-link:focus {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform var(--transition-normal);
  font-size: 1.25rem;
  color: white;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border: none;
  outline: none;
}

/* Instagram gradient - permanent */
.footer-social.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
}

/* Facebook blue - permanent */
.footer-social.facebook {
  background: #1877f2;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

/* Twitter/X blue - permanent */
.footer-social.twitter {
  background: #1da1f2;
  box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

/* WhatsApp green - permanent */
.footer-social.whatsapp {
  background: #25d366;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* YouTube red - permanent */
.footer-social.youtube {
  background: #ff0000;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

/* Simple hover effect - only slight scale, no color change */
.footer-social:hover,
.footer-social:focus {
  transform: scale(1.1);
  outline: none;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  margin-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 500;
}

/* --- Scroll to Top Button --- */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.scroll-top-btn:hover,
.scroll-top-btn:focus {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
  .hero-inner {
    gap: 3rem;
    padding: 2rem;
  }
  
  .hero-image-container {
    height: 500px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 6rem 0 4rem;
  }
  
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    order: 2;
    max-width: 100%;
  }
  
  .hero-visual {
    order: 1;
  }
  
  .hero-image-container {
    transform: none;
    max-width: 400px;
    height: 300px;
    margin: 0 auto;
  }
  
  .hero-stats {
    position: static;
    margin-top: 2rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  
  .welcome-side-section {
    grid-template-columns: 1fr;
    margin: 100px auto 3rem;
  }
  
  .welcome-side-content {
    padding: 3rem 2rem;
  }
  
  .welcome-side-img {
    height: 250px;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .header-container {
    padding: 0 1rem;
  }
  
  .hero-inner {
    padding: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  
  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .welcome-side-content {
    padding: 2rem 1.5rem;
  }
  
  .benefits-cards {
    grid-template-columns: 1fr;
  }
  
  .testimonials-cards {
    grid-template-columns: 1fr;
  }
  
  .cta-bar-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    padding: 0 1rem 2rem;
  }
  
  .scroll-top-btn {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

/* --- Final Polish --- */
section {
  scroll-margin-top: 100px;
}

.benefit-card,
.testimonial-card,
.faq-item {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

/* --- Focus States for Accessibility --- */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus,
a:focus,
input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Print Styles --- */
@media print {
  .bubbles,
  .scroll-top-btn,
  .main-header {
    display: none;
  }
  
  .hero-section,
  .main-footer {
    background: white;
    color: black;
  }
}

/* Additional FAQ transition styles */
.additional-faq {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s ease-in-out;
}

.additional-faq.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- FAQ Styles --- */
.close-modal:focus {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

#loginFrame {
  border-radius: 2rem;
  background: white;
  width: 100%;
  height: 100%;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive modal */
@media (max-width: 768px) {
  .login-modal-content {
    width: 98%;
    height: 95vh;
    margin: 1% auto;
  }
  
  .close-modal {
    top: 10px;
    right: 20px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }
}

/* --- Logout Alert Styles --- */
.logout-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10002;
  animation: slideInRight 0.5s ease-out;
}

.logout-alert-content {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logout-alert-content i {
  font-size: 1.2rem;
  color: #d1fae5;
}

.logout-alert-content span {
  flex: 1;
  font-weight: 500;
}

.logout-alert-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.logout-alert-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive logout alert */
@media (max-width: 768px) {
  .logout-alert {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  
  .logout-alert-content {
    min-width: unset;
    width: 100%;
  }
}

/* --- User Authentication Dropdown Styles --- */
.user-menu-wrapper {
  position: relative;
}

.header-user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.header-user-btn:hover {
  border-color: #6366f1;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.header-user-btn i:first-child {
  font-size: 1.2rem;
  color: #6366f1;
}

.header-user-btn i:last-child {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.user-menu-wrapper.active .header-user-btn i:last-child {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.user-menu-wrapper.active .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-info {
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px 12px 0 0;
}

.user-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.user-phone {
  font-size: 0.85rem;
  color: #666;
}

.dropdown-divider {
  margin: 0;
  border: none;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #666;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: #f8fafc;
  color: #333;
}

.dropdown-item.text-danger {
  color: #ef4444;
}

.dropdown-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.dropdown-item i {
  width: 16px;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive user dropdown */
@media (max-width: 768px) {
  .user-dropdown {
    right: -1rem;
    min-width: 200px;
  }
  
  .header-user-btn span {
    display: none;
  }
  
  .header-user-btn {
    padding: 0.75rem;
    min-width: 44px;
    justify-content: center;
  }
}