/* Custom Styles for Qalam Academy */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* White Theme (Permanent) */
body {
  background-color: white;
  color: #1a1a1a;
}

/* Navigation Styles */
nav#main-nav {
  background-color: white;
  color: #2C5F2D;
  border-bottom: 1px solid #e5e7eb;
}

nav#main-nav a {
  color: #2C5F2D;
}

nav#main-nav a:hover {
  color: #FF9800;
}

nav#main-nav button {
  color: #2C5F2D;
}

/* Mobile nav */
#mobile-nav {
  background-color: white;
  color: #2C5F2D;
}

#mobile-nav a {
  color: #2C5F2D;
}

/* Custom Fonts */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #2C5F2D 0%, #97BC62 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #2C5F2D;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #97BC62;
}

/* Navigation Link Hover Effect */
nav a {
  position: relative;
  padding-bottom: 2px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #FF9800;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #2C5F2D 0%, #97BC62 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(44, 95, 45, 0.3);
}

/* Image Styles */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
}

/* Loading Animation */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #2C5F2D;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Focus States for Accessibility */
a:focus,
button:focus {
  outline: 2px solid #FF9800;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  nav,
  footer,
  .no-print {
    display: none;
  }
}

/* Custom Selection Color */
::selection {
  background-color: #97BC62;
  color: white;
}

::-moz-selection {
  background-color: #97BC62;
  color: white;
}

/* Hero Section Gradient */
.hero-gradient {
  background: linear-gradient(135deg, #2C5F2D 0%, #97BC62 50%, #2C5F2D 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Card Shadow */
.card-shadow {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Section Spacing */
section {
  position: relative;
}

/* Mobile Menu Animation */
#mobile-nav {
  transition: all 0.3s ease-in-out;
}

/* Icon Animations */
.icon-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Notification Slide In */
@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-in {
  animation: slide-in 0.3s ease-out forwards;
  transition: all 0.3s ease;
}

/* Language Switcher RTL Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* Gallery Lightbox Effect */
.gallery-item {
  cursor: pointer;
  position: relative;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

.gallery-item:hover::before {
  background: rgba(0, 0, 0, 0.5);
}
