/* Growth Blueprint - Custom Styles */

/* CSS Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  scroll-behavior: smooth;
  background-attachment: fixed;
}

/* Navy Blue Theme Enhancements */
.navy-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #0e182d 50%, #1e293b 100%);
}

.glass-effect {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(180, 141, 55, 0.2);
}

/* Logo Enhancement Effects */
.logo-glow {
  filter: drop-shadow(0 0 10px rgba(180, 141, 55, 0.3));
  transition: all 0.3s ease;
}

.logo-glow:hover {
  filter: drop-shadow(0 0 15px rgba(180, 141, 55, 0.5)) brightness(1.1);
  transform: scale(1.05);
}

.logo-hero-glow {
  filter: drop-shadow(0 0 20px rgba(180, 141, 55, 0.4)) brightness(1.1);
  transition: all 0.5s ease;
}

.logo-hero-glow:hover {
  filter: drop-shadow(0 0 25px rgba(180, 141, 55, 0.6)) brightness(1.2);
  transform: scale(1.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #b48d37;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d4a952;
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInFromRight 0.8s ease-out forwards;
}

.animate-pulse-hover:hover {
  animation: pulse 0.6s ease-in-out infinite;
}

/* Navigation Enhancements */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #b48d37;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.text-gold-600::after {
  width: 100%;
}

/* Button Enhancements */
.btn-primary {
  background: #1e40af;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  transform: scale(1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Form Enhancements */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 0 0 2px #1e40af;
}

/* Loading Animations */
.loading-spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid #1e40af;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modal Enhancements */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: white;
  border-radius: 0.75rem;
  max-width: 28rem;
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  transform: scale(1);
  animation: slideInFromRight 0.3s ease-out;
}

/* Responsive Utilities */
@media (max-width: 640px) {
  .section-padding {
    padding: 3rem 0;
  }
}

/* Focus States for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #b48d37;
  outline-offset: 2px;
}

/* RTL Support for Arabic text */
.rtl {
  direction: rtl;
}

.ltr {
  direction: ltr;
}

/* Reduced Motion Support */
@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;
  }
}

/* Hero Section Text Fixes */
#home p {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Fixed Navigation Enhancements */
.fixed-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  backdrop-filter: blur(12px) !important;
  background: rgba(15, 23, 42, 0.95) !important;
  border-bottom: 1px solid rgba(180, 141, 55, 0.3) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s ease !important;
}

/* Smooth scroll offset for fixed navigation */
html {
  scroll-padding-top: 4rem; /* Account for fixed navbar height */
}

/* Better smooth scrolling for anchor links */
section {
  scroll-margin-top: 4rem; /* Offset for fixed navbar */
}

/* Navigation link active states */
.nav-link.active {
  color: #e4bd67 !important;
}

.nav-link.active::after {
  width: 100% !important;
  background: #e4bd67 !important;
}

/* Mobile menu improvements for fixed nav */
#mobile-menu {
  margin-top: 0 !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  backdrop-filter: blur(12px) !important;
  background: rgba(15, 23, 42, 0.98) !important;
  border-bottom: 1px solid rgba(180, 141, 55, 0.3) !important;
}

/* Ensure content doesn't hide behind fixed nav */
body {
  padding-top: 0 !important; /* Remove any existing padding */
}

/* Logo hover effects for fixed nav */
.logo-glow {
  filter: drop-shadow(0 0 8px rgba(180, 141, 55, 0.4));
  transition: all 0.3s ease;
}

.logo-glow:hover {
  filter: drop-shadow(0 0 12px rgba(180, 141, 55, 0.6)) brightness(1.1);
  transform: scale(1.03);
}

/* Success and Error Message Styles */
#success-message, #error-message {
  position: fixed !important;
  top: 80px !important;
  right: 20px !important;
  z-index: 99999 !important;
  min-width: 320px !important;
  max-width: 90vw !important;
  padding: 16px 24px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  backdrop-filter: blur(8px) !important;
  animation-duration: 0.5s !important;
  transform: translateX(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#success-message {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: 2px solid rgba(16, 185, 129, 0.5) !important;
  color: white !important;
}

#error-message {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border: 2px solid rgba(239, 68, 68, 0.5) !important;
  color: white !important;
}

/* Enhanced visibility on mobile */
@media (max-width: 768px) {
  #success-message, #error-message {
    top: 70px !important;
    left: 16px !important;
    right: 16px !important;
    min-width: auto !important;
    max-width: calc(100vw - 32px) !important;
  }
}

/* Show animation */
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide animation */
@keyframes slideOutToTop {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.message-show {
  animation: slideInFromTop 0.4s ease-out !important;
}

.message-hide {
  animation: slideOutToTop 0.4s ease-out !important;
}

/* Force display when not hidden */
#success-message:not(.hidden), #error-message:not(.hidden) {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}