@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --bg-light: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
}

body {
    font-family: 'Inter', 'Tajawal', sans-serif;
    background-color: var(--bg-light);
    color: #333333;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* Dark mode variables */
.dark {
    --bg-light: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.9);
    --text-color: #e2e8f0;
    --text-secondary: #94a3b8;
    --border-color: #1e293b;
}

.dark body {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.dark .hero-gradient {
    background: linear-gradient(125deg, rgba(15, 23, 42, 1) 0%, rgba(30, 41, 59, 1) 100%);
}

.dark .card-bg {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(30, 41, 59, 0.5);
}

.dark .glass-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(30, 41, 59, 0.5);
}

.dark .glass-card:hover {
    background: rgba(15, 23, 42, 1);
    box-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.3);
}

.dark header {
    background-color: rgba(15, 23, 42, 0.9);
    border-bottom-color: rgba(30, 41, 59, 0.5);
}

.dark .nav-link {
    color: #94a3b8;
}

.dark .nav-link:hover {
    color: #e2e8f0;
}

.dark .bg-gray-100 {
    background-color: #1e293b;
    color: #e2e8f0;
}

.dark .bg-gray-100:hover {
    background-color: #334155;
}

.dark .text-gray-600 {
    color: #94a3b8;
}

.dark .text-gray-800 {
    color: #e2e8f0;
}

.dark .border-gray-200 {
    border-color: #1e293b;
}

.dark .bg-gray-50 {
    background-color: #1e293b;
}

.dark .border-gray-300 {
    border-color: #334155;
}

.dark .bg-white {
    background-color: #1e293b;
}

.dark .bg-blue-100 {
    background-color: rgba(79, 70, 229, 0.2);
}

.dark .text-blue-800 {
    color: #a5b4fc;
}

.dark .bg-gray-200 {
    background-color: #334155;
    color: #e2e8f0;
}

.dark .text-gray-700 {
    color: #e2e8f0;
}

.dark .text-gray-500 {
    color: #94a3b8;
}

.dark .social-link {
    background-color: rgba(79, 70, 229, 0.2);
    color: #a5b4fc;
}

.dark .social-link:hover {
    background-color: #4f46e5;
    color: white;
}

.dark footer {
    background-color: #0f172a;
    border-top-color: #1e293b;
}

.dark .form-input {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.dark .form-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

.dark .switcher-button {
    background: rgba(79, 70, 229, 0.2);
    color: #a5b4fc;
}

.dark .switcher-dropdown {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark .switcher-option:hover {
    background: rgba(79, 70, 229, 0.2);
}

.dark .music-player {
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark .cookie-consent {
    background: #1e293b;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dark .faq-content {
    border-top-color: #334155;
}

.dark .bg-green-100 {
    background-color: rgba(74, 222, 128, 0.2);
    color: #86efac;
}

.dark .bg-red-100 {
    background-color: rgba(248, 113, 113, 0.2);
    color: #fca5a5;
}

/* Scrollbar styles for dark mode */
.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4f46e5;
}

[dir="rtl"] {
    direction: rtl;
}

.hero-gradient {
    background: linear-gradient(125deg, rgba(255,255,255,1) 0%, rgba(245,245,255,1) 100%);
    position: relative;
}

.blue-gradient {
    background: linear-gradient(90deg, #4f46e5, #4338ca);
}

.text-gradient {
    background: linear-gradient(90deg, #6366f1, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-bg {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.3);
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(7px);
    border: 1px solid rgba(200, 200, 200, 0.2);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.2);
}

.blue-glow {
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.2);
}

.button-glow:hover {
    box-shadow: 0 0 25px rgba(79, 70, 229, 0.2);
}

.floating {
    animation: float 3s infinite ease-in-out;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.circular-animation {
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.1;
    z-index: 0;
    border-radius: 100%;
}

.triangle-shape {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 100px solid rgba(79, 70, 229, 0.05);
    transform: rotate(45deg);
}

.diamond-shape {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(79, 70, 229, 0.05);
    transform: rotate(45deg);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: #4f46e5;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language/Theme Switcher Styles */
.switcher-container {
    position: relative;
    display: inline-block;
}

.switcher-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(79, 70, 229, 0.1);
    border: none;
    border-radius: 6px;
    color: #4f46e5;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.switcher-button:hover {
    background: rgba(79, 70, 229, 0.2);
}

.switcher-button svg {
    transition: transform 0.3s ease;
}

.switcher-button.active svg:last-child {
    transform: rotate(180deg);
}

.switcher-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 160px;
    z-index: 100;
    display: none;
}

.switcher-dropdown.active {
    display: block;
}

.switcher-option {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.switcher-option:hover {
    background: #f5f5ff;
}


/* Shapes */
.shape-1 {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
}

.shape-2 {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 6s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* Form styles */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* RTL adjustments */
[dir="rtl"] .nav-link::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .switcher-dropdown {
    right: auto;
    left: 0;
}

/* Hero section enhancements */
.hero-content {
    position: relative;
    z-index: 10;
}

/* Button enhancements */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(30deg);
    transition: all 0.3s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

/* Section spacing */
.section-py {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Card hover effect */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Input focus effect */
.input-focus-effect:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Animation delays */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* Music player */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-player i {
    font-size: 24px;
    color: #4f46e5;
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

/* Social links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f1ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-3px);
}

/* ============= White Mode Only ============= */
/* Testimonial Section */
#testimonials {
  background-color: #f9fafb; /* Light gray background */
}

/* Card Styles */
.testimonial-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e5e7eb; /* Light border */
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.15);
}

/* Image Styles */
.doctor-image {
  border: 4px solid #e0e7ff; /* Light indigo border */
}

/* Text Styles */
.testimonial-text {
  color: #374151; /* Dark gray text */
}

/* Credential Boxes */
.credential-box {
  background: #f3f4f6; /* Light gray background */
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.credential-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

/* Rating Styles */
.rating-stars {
  color: #f59e0b; /* Amber-500 */
}

/* ============= Dark Mode Only ============= */
.dark #testimonials {
  background-color: #111827; /* Dark background */
}

.dark .testimonial-card {
  background: #1f2937; /* Dark card */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  border-color: #374151;
}

.dark .testimonial-card:hover {
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.dark .doctor-image {
  border-color: #1e1b4b; /* Dark indigo border */
}

.dark .testimonial-text {
  color: #e5e7eb; /* Light text */
}

.dark .credential-box {
  background: #374151; /* Dark gray background */
  border-color: #4b5563;
}

.dark .rating-stars {
  color: #fbbf24; /* Amber-400 */
}

/* ============= Responsive Adjustments ============= */
@media (max-width: 768px) {
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .credential-box {
    padding: 0.75rem;
  }
}
/* Load More Button */
#load-more-testimonials {
    transition: all 0.3s ease;
}

#load-more-testimonials:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

