/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #2563EB;
  --primary-foreground: #ffffff;
  --background: #f8fafc;
  --foreground: #0f172a;
  --card: #ffffff;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --accent: #4f46e5;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Glassmorphism */
.glass-card {
  background-color: var(--card, rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
}

/* Transitions & Animations */
.card-hover {
  transition: all 300ms ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 300ms ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.hero-grid {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563EB' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.timeline-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

/* Utilities */
.section-padding { padding: 4rem 1rem; }
@media (min-width: 768px) { .section-padding { padding: 6rem 2rem; } }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--muted); }
::-webkit-scrollbar-thumb { background: rgba(37, 99, 235, 0.5); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(37, 99, 235, 0.8); }

/* Animated Nav Links */
.nav-item {
  transition: all 0.3s ease;
}
.nav-item:hover {
  background-color: var(--card) !important;
  color: var(--primary) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Floating Orbs Background */
.hero-orb {
  animation: float-orb 8s ease-in-out infinite alternate;
}
.hero-orb-2 {
  animation: float-orb-reverse 10s ease-in-out infinite alternate;
}
@keyframes float-orb {
  0% { transform: translate(-50%, -50%) translate(0, 0) scale(1); }
  50% { transform: translate(-50%, -50%) translate(100px, -100px) scale(1.3); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) translate(0, 0) scale(1); }
}
@keyframes float-orb-reverse {
  0% { transform: translate(50%, 50%) translate(0, 0) scale(1); }
  50% { transform: translate(50%, 50%) translate(-100px, 100px) scale(1.3); opacity: 0.8; }
  100% { transform: translate(50%, 50%) translate(0, 0) scale(1); }
}

/* Dynamic Gradient Background */
@keyframes gradient-bg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animate-gradient-bg {
    background-size: 200% 200%;
    animation: gradient-bg 15s ease infinite;
}

/* Intelligent Dark Mode Overrides */
body.theme-dark .text-slate-800,
body.theme-dark .text-slate-700,
body.theme-dark .text-slate-600,
body.theme-dark .text-slate-500 {
    color: var(--foreground) !important;
}
body.theme-dark .bg-white,
body.theme-dark .bg-slate-50,
body.theme-dark .bg-slate-100 {
    background-color: var(--card) !important;
}
body.theme-dark .border-white {
    border-color: rgba(255, 255, 255, 0.1) !important;
}
body.theme-dark .glass-card {
    background-color: var(--card) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}
body.theme-dark .shadow-sm,
body.theme-dark .shadow-md,
body.theme-dark .shadow-lg {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
}
