/* ========================================
   DOCTOR CLINIC - FUTURISTIC UI STYLES
   Version 3.0 - Apple-Inspired Ultra Modern
   ======================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Theme */
:root {
  /* Colors */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-50: #fafafa;
  --color-gray-100: #f4f4f5;
  --color-gray-200: #e4e4e7;
  --color-gray-300: #d4d4d8;
  --color-gray-400: #a1a1aa;
  --color-gray-500: #71717a;
  --color-gray-600: #52525b;
  --color-gray-700: #3f3f46;
  --color-gray-800: #27272a;
  --color-gray-900: #18181b;
  
  /* Accent Colors */
  --color-rose-400: #fb7185;
  --color-rose-500: #f43f5e;
  --color-rose-600: #e11d48;
  --color-pink-500: #ec4899;
  --color-purple-400: #c084fc;
  --color-purple-500: #a855f7;
  --color-purple-600: #9333ea;
  --color-violet-500: #8b5cf6;
  --color-blue-400: #60a5fa;
  --color-blue-500: #3b82f6;
  --color-blue-600: #2563eb;
  --color-cyan-400: #22d3ee;
  --color-cyan-500: #06b6d4;
  --color-emerald-400: #34d399;
  --color-emerald-500: #10b981;
  --color-teal-500: #14b8a6;
  --color-amber-400: #fbbf24;
  --color-amber-500: #f59e0b;
  --color-orange-500: #f97316;
  
  /* Gradients */
  --gradient-rose-purple: linear-gradient(135deg, var(--color-rose-500), var(--color-purple-500));
  --gradient-purple-blue: linear-gradient(135deg, var(--color-purple-500), var(--color-blue-500));
  --gradient-blue-cyan: linear-gradient(135deg, var(--color-blue-500), var(--color-cyan-500));
  --gradient-emerald-teal: linear-gradient(135deg, var(--color-emerald-500), var(--color-teal-500));
  
  /* 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow-rose: 0 0 40px rgba(244, 63, 94, 0.3);
  --shadow-glow-purple: 0 0 40px rgba(168, 85, 247, 0.3);
  --shadow-glow-blue: 0 0 40px rgba(59, 130, 246, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;
}

/* Base Styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--color-black);
  color: var(--color-white);
  line-height: 1.6;
}

/* ========================================
   FORM ELEMENTS - HIGH CONTRAST STYLING
   ======================================== */

/* Native Select Dropdown Styling */
select {
  background-color: #1f2937 !important;
  color: white !important;
}

select option {
  background-color: #1f2937;
  color: white;
  padding: 12px 16px;
}

select option:hover,
select option:focus,
select option:checked {
  background-color: #14b8a6;
  color: white;
}

/* Input and Textarea text visibility fix - ALL INPUT TYPES */
input,
textarea,
select {
  color: white !important;
  caret-color: #14b8a6;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Override for light background forms (admin, prescription) */
.bg-white input,
.bg-white textarea,
.bg-white select,
.bg-blue-50 input,
.bg-blue-50 textarea,
.bg-green-50 input,
.bg-green-50 textarea,
.bg-yellow-50 input,
.bg-yellow-50 textarea,
.bg-purple-50 input,
.bg-purple-50 textarea,
.bg-red-50 input,
.bg-red-50 textarea,
.bg-indigo-50 input,
.bg-indigo-50 textarea,
.bg-gray-100 input,
.bg-gray-100 textarea {
  color: #1f2937 !important;
  background-color: white !important;
  border-color: #d1d5db !important;
}

.bg-white input:focus,
.bg-white textarea:focus,
.bg-white select:focus,
.bg-blue-50 input:focus,
.bg-green-50 input:focus,
.bg-yellow-50 input:focus,
.bg-purple-50 input:focus,
.bg-red-50 input:focus,
.bg-indigo-50 input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
  color: #1f2937 !important;
}

/* Readonly inputs in forms */
input[readonly] {
  background-color: #f3f4f6 !important;
  color: #6b7280 !important;
}

/* Input placeholders */
input::placeholder,
textarea::placeholder {
  color: #9ca3af !important;
  opacity: 1;
}

/* Focus states for inputs */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #14b8a6 !important;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2) !important;
  color: white !important;
}

/* Disabled select options styling */
select option:disabled {
  background-color: #374151;
  color: #6b7280;
}

/* ========================================
   GLOBAL BUTTON STYLES - CONSISTENT WHITE
   ======================================== */

.btn-white,
a.btn-white,
button.btn-white {
  background-color: white !important;
  color: black !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

/* ========================================
   ANIMATED REVIEWS MARQUEE
   ======================================== */

.reviews-marquee-container {
  width: 100%;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  width: max-content;
}

.reviews-inner {
  display: flex;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Marquee animation - scrolling left */
.animate-marquee .reviews-inner {
  animation: marquee 40s linear infinite;
}

/* Marquee animation - scrolling right (reverse) */
.animate-marquee-reverse .reviews-inner {
  animation: marquee-reverse 45s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-reverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Pause animation on hover */
.reviews-marquee-container:hover .reviews-inner {
  animation-play-state: paused;
}

/* Duplicate content for seamless loop */
.reviews-track::after {
  content: '';
}

/* Review card hover effect */
.review-card {
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(20, 184, 166, 0.15);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Selection */
::selection {
  background: var(--color-rose-500);
  color: var(--color-white);
}

/* Custom Scrollbar - Minimal Apple Style */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  border: 3px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
  background-clip: padding-box;
}

/* Focus Styles */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--color-rose-500);
  outline-offset: 2px;
}

/* ========================================
   GLASSMORPHISM EFFECTS
   ======================================== */

.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-2xl);
}

/* ========================================
   NAVBAR STYLES
   ======================================== */

#navbar.navbar-scrolled {
  background: rgba(0, 0, 0, 0.9) !important;
}

#navbar.navbar-scrolled .absolute {
  background: rgba(0, 0, 0, 0.9) !important;
}

/* Hamburger Animation */
.hamburger-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-white);
  background: var(--gradient-rose-purple);
  border: none;
  border-radius: var(--radius-2xl);
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-glow-rose);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-rose-600), var(--color-purple-600));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(244, 63, 94, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-2xl);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ========================================
   CARDS
   ======================================== */

.card-modern {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-3xl);
  padding: 2rem;
  overflow: hidden;
  transition: all var(--transition-slow);
}

.card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

.card-modern:hover {
  transform: translateY(-8px);
  border-color: rgba(244, 63, 94, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ========================================
   GRADIENT TEXT
   ======================================== */

.gradient-text {
  background: var(--gradient-rose-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: var(--gradient-blue-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@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 slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(244, 63, 94, 0.5);
  }
}

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

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

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

/* Animation Classes */
.animate-fadeIn { animation: fadeIn 0.6s ease forwards; }
.animate-fadeInUp { animation: fadeInUp 0.8s ease forwards; }
.animate-fadeInDown { animation: fadeInDown 0.8s ease forwards; }
.animate-slideInLeft { animation: slideInLeft 0.8s ease forwards; }
.animate-slideInRight { animation: slideInRight 0.8s ease forwards; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-pulse-slow { animation: pulse 4s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }
.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}
.animate-rotate { animation: rotate 20s linear infinite; }
.animate-scaleIn { animation: scaleIn 0.5s ease forwards; }

/* Awwwards-style entrance/scroll animations for new homepage */
.animate-fadein {
  opacity: 0;
  transform: translateY(40px);
  animation: fadein 1.2s cubic-bezier(.4,0,.2,1) forwards;
}
.animate-fadein.delay-200 { animation-delay: .2s; }
.animate-fadein.delay-400 { animation-delay: .4s; }
.animate-fadein.delay-600 { animation-delay: .6s; }
.animate-fadein.delay-800 { animation-delay: .8s; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-orb1 { animation: orb1 12s ease-in-out infinite; }
.animate-orb2 { animation: orb2 10s ease-in-out infinite; }
.animate-orb3 { animation: orb3 14s ease-in-out infinite; }
.animate-scroll-indicator { animation: scroll-indicator 2s infinite; }

@keyframes fadein { from { opacity: 0; transform: translateY(40px);} to { opacity: 1; transform: none; } }
@keyframes orb1 { 0%,100%{transform:translateY(0) scale(1);} 50%{transform:translateY(-40px) scale(1.1);} }
@keyframes orb2 { 0%,100%{transform:translateY(0) scale(1);} 50%{transform:translateY(40px) scale(1.08);} }
@keyframes orb3 { 0%,100%{transform:translateX(0) scale(1);} 50%{transform:translateX(40px) scale(1.05);} }
@keyframes scroll-indicator { 0%,100%{opacity:0.7;} 50%{opacity:1;} }

/* Animation Delays */
.animation-delay-100 { animation-delay: 100ms; }
.animation-delay-200 { animation-delay: 200ms; }
.animation-delay-300 { animation-delay: 300ms; }
.animation-delay-400 { animation-delay: 400ms; }
.animation-delay-500 { animation-delay: 500ms; }
.animation-delay-600 { animation-delay: 600ms; }
.animation-delay-700 { animation-delay: 700ms; }
.animation-delay-800 { animation-delay: 800ms; }
.animation-delay-1000 { animation-delay: 1000ms; }
.animation-delay-2000 { animation-delay: 2000ms; }

/* ========================================
   FORM STYLES
   ======================================== */

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-rose-500);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   BADGE STYLES
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
}

.badge-success {
  color: var(--color-emerald-400);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
  color: var(--color-amber-400);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-danger {
  color: var(--color-rose-400);
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.badge-info {
  color: var(--color-blue-400);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ========================================
   LOADING SPINNER
   ======================================== */

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-rose-500);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
}

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

/* ========================================
   TOOLTIP
   ======================================== */

.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.9);
  border-radius: var(--radius-md);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

/* Hide scrollbar utility */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem !important; line-height: 1.2 !important; }
  h2 { font-size: 1.875rem !important; line-height: 1.25 !important; }
  h3 { font-size: 1.25rem !important; }
  
  .card-modern {
    padding: 1.25rem;
    border-radius: var(--radius-xl);
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
  
  /* Mobile touch-friendly tap targets */
  a, button {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improve text readability on mobile */
  p, li {
    font-size: 0.9375rem;
    line-height: 1.7;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  h1 { font-size: 1.875rem !important; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.125rem !important; }
  
  .card-modern {
    padding: 1rem;
    border-radius: var(--radius-lg);
  }
  
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
}

/* Scroll bounce animation for indicators */
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.5; }
}
.animate-scroll-bounce {
  animation: scroll-bounce 1.5s ease-in-out infinite;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  body {
    background: white;
    color: black;
  }
  
  .no-print {
    display: none !important;
  }
  
  .card-modern {
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   DARK MODE FORM OVERRIDES FOR OTHER PAGES
   ======================================== */

/* Book Page Specific Styles */
.book-form-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-3xl);
  padding: 3rem;
}

/* Other pages that need light background */
.light-mode-page {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--color-gray-900);
}

.light-mode-page .form-input {
  color: var(--color-gray-900);
  background: var(--color-white);
  border-color: var(--color-gray-200);
}

.light-mode-page .form-input:focus {
  border-color: var(--color-rose-500);
  background: var(--color-white);
}

/* ========================================
   GLOW EFFECTS
   ======================================== */

.glow-rose {
  box-shadow: 0 0 30px rgba(244, 63, 94, 0.3);
}

.glow-purple {
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.glow-blue {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.glow-emerald {
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

/* ========================================
   NEON BORDER EFFECT
   ======================================== */

.neon-border {
  position: relative;
}

.neon-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-rose-purple);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.neon-border:hover::before {
  opacity: 1;
}

/* ========================================
   GRADIENT BORDER
   ======================================== */

.gradient-border {
  position: relative;
  background: var(--color-black);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: var(--gradient-rose-purple);
  border-radius: inherit;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ========================================
   SMOOTH SCROLL & PAGE TRANSITIONS
   ======================================== */

html {
  scroll-behavior: smooth;
}

/* Smooth page reveal */
body {
  animation: page-reveal 0.6s ease-out;
}

@keyframes page-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   ENHANCED HOVER EFFECTS
   ======================================== */

/* Magnetic button effect */
.btn-magnetic {
  transition: transform 0.2s ease-out;
}

/* Card tilt effect on hover */
.card-tilt {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-tilt:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-5px);
}

/* Link underline animation */
.link-underline {
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-rose-purple);
  transition: width 0.3s ease;
}

.link-underline:hover::after {
  width: 100%;
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-rose-500);
  color: white;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* High contrast focus */
*:focus-visible {
  outline: 2px solid var(--color-rose-500);
  outline-offset: 3px;
}

/* Reduced motion preference */
@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;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ========================================
   LOADING STATES
   ======================================== */

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

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

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered reveal for children */
.stagger-reveal > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-reveal.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-reveal.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-reveal.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-reveal.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-reveal.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-reveal.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-reveal.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   CURSOR EFFECTS (OPTIONAL)
   ======================================== */

.cursor-glow {
  cursor: pointer;
  position: relative;
}

.cursor-glow::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-glow:hover::before {
  opacity: 1;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-balance {
  text-wrap: balance;
}

.backdrop-blur-3xl {
  backdrop-filter: blur(64px);
  -webkit-backdrop-filter: blur(64px);
}

.border-gradient {
  border: 1px solid transparent;
  background: linear-gradient(var(--color-black), var(--color-black)) padding-box,
              var(--gradient-rose-purple) border-box;
}

/* Hide scrollbar but keep functionality */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Safe area padding for mobile */
.safe-area-bottom {
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

.safe-area-top {
  padding-top: env(safe-area-inset-top, 20px);
}

/* ========================================
   MOBILE-SPECIFIC FIXES
   ======================================== */

/* Mobile menu - improved contrast and visibility */
@media (max-width: 768px) {
  /* Fix mobile menu text contrast */
  #mobile-menu {
    background: rgba(0, 0, 0, 0.98) !important;
  }
  
  #mobile-menu a {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  }
  
  #mobile-menu a:hover {
    color: #14b8a6 !important;
  }
  
  /* Fix doctor image visibility on mobile in About section */
  #about .relative.h-\[50vh\] {
    height: 60vh;
    min-height: 350px;
  }
  
  #about .relative.h-\[50vh\] img {
    object-position: center 20%;
  }
  
  /* Reduce gradient overlay on mobile for better image visibility */
  #about .absolute.inset-0.bg-gradient-to-t {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 30%, transparent 60%) !important;
  }
  
  /* Improve navbar mobile visibility */
  #navbar {
    background: rgba(0, 0, 0, 0.95) !important;
  }
  
  #navbar .absolute.inset-0 {
    background: rgba(0, 0, 0, 0.95) !important;
  }
  
  /* Improve text contrast on mobile */
  .text-white\/60, .text-white\/70, .text-white\/80 {
    color: rgba(255, 255, 255, 0.9) !important;
  }
  
  /* Make hamburger menu lines more visible */
  .hamburger-line {
    background: #ffffff !important;
    height: 2px !important;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  /* Further improve doctor image on small screens */
  #about .relative.h-\[50vh\] {
    height: 55vh;
    min-height: 300px;
  }
  
  #about .relative.h-\[50vh\] img {
    object-position: center 15%;
  }
}

