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

:root {
  --primary-color: #0a0a0f; /* Deep dark */
  --secondary-color: #e0e7ff; /* Light indigo */
  --accent-color: #818cf8; /* Indigo */
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --text-light: #ffffff;
  --text-dark: #333333;
}

@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom styles beyond Tailwind */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Hero section with a gradient background instead of image */
.hero-bg {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.logo {
  height: 60px;
}

.btn-primary {
  @apply px-6 py-2 text-white font-medium rounded-md transition-all duration-300;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.btn-outlined {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-align: center;
  color: #e0e7ff;
  border: 2px solid #818cf8;
  background: rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
}

.btn-outlined:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.section-heading {
  @apply text-3xl md:text-4xl font-bold mb-6 relative inline-block;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #a855f7);
}

.card {
  @apply bg-black bg-opacity-70 rounded-lg p-6 transition-all duration-300;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.card:hover {
  @apply transform -translate-y-2;
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.6);
}

/* Navigation */
.nav-link {
  @apply relative text-[#e0e7ff] px-4 py-2 transition-all duration-300;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  transition: all 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile menu */
.mobile-menu {
  @apply fixed top-0 right-0 h-screen w-3/4 bg-black bg-opacity-95 z-50 transform transition-transform duration-300 ease-in-out;
}

.mobile-menu.hidden {
  @apply translate-x-full;
}

/* Custom animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fadeIn {
  animation: fadeIn 1s ease-in-out;
}

/* Services pricing tables */
.pricing-table {
  @apply rounded-lg overflow-hidden transition-all duration-300;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.pricing-header {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  @apply text-white p-4 text-center;
}

.pricing-body {
  @apply p-6;
}

.pricing-feature {
  @apply flex items-center mb-2;
}

/* Gallery */
.gallery-grid {
  @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4;
}

.gallery-item {
  @apply relative overflow-hidden rounded-lg cursor-pointer;
}

.gallery-overlay {
  @apply absolute inset-0 bg-black bg-opacity-70 flex items-center justify-center opacity-0 transition-opacity duration-300;
}

.gallery-item:hover .gallery-overlay {
  @apply opacity-100;
}

/* Contact form */
.form-input {
  @apply w-full bg-transparent rounded-md p-3 text-[#e0e7ff] focus:outline-none focus:ring-2;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.form-input:focus {
  border-color: #818cf8;
  --tw-ring-color: rgba(99, 102, 241, 0.3);
}

/* Team section */
.team-card {
  @apply relative overflow-hidden rounded-lg;
}

.team-info {
  @apply absolute bottom-0 left-0 right-0 bg-black bg-opacity-80 p-4 transform translate-y-full transition-transform duration-300;
}

.team-card:hover .team-info {
  @apply translate-y-0;
}

/* Achievements */
.achievement-counter {
  @apply text-4xl md:text-5xl font-bold mb-2;
}

/* Footer */
.footer-link {
  @apply text-[#e0e7ff] hover:text-[#818cf8] transition-colors duration-300;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
  .section-heading {
    @apply text-2xl;
  }
  
  .card {
    @apply p-5;
  }
  
  .nav-link {
    @apply px-2;
  }
  
  /* Improve touch targets on mobile */
  button, a {
    min-height: 44px;
  }
  
  /* Optimize animations for mobile performance */
  * {
    animation-duration: 0.5s !important;
  }
  
  /* Reduce motion for better performance */
  *:not(.brand-track) {
    transition-duration: 0.2s !important;
  }
}

@media (max-width: 640px) {
  .section-heading {
    @apply text-xl mb-4;
  }
  
  .section-heading::after {
    width: 40px;
    height: 3px;
    bottom: -8px;
  }
  
  /* Better spacing on small screens */
  .container {
    @apply px-4;
  }
}

/* Performance optimizations for all devices */
img {
  content-visibility: auto;
}

/* Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Prevent horizontal scrolling */
body {
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
} 

/* Cross-page theme alignment overrides */
.btn-primary {
  display: inline-block !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 0.375rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  text-decoration: none !important;
  line-height: 1.25 !important;
  border: none !important;
  cursor: pointer !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: #ffffff !important;
}

.btn-primary:hover {
  text-decoration: none !important;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5) !important;
}

.btn-outlined {
  display: inline-block !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 0.375rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  text-decoration: none !important;
  line-height: 1.25 !important;
  color: #e0e7ff !important;
  border: 2px solid #818cf8 !important;
  background: rgba(99, 102, 241, 0.1) !important;
  transition: all 0.3s ease !important;
}

.btn-outlined:hover {
  text-decoration: none !important;
  color: #ffffff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4) !important;
  transform: translateY(-2px) !important;
}

.brand-carousel {
  border-top: 1px solid rgba(129, 140, 248, 0.25) !important;
  border-bottom: 1px solid rgba(129, 140, 248, 0.25) !important;
}

.brand-carousel::before {
  background: linear-gradient(to right, #0a0a0f, transparent) !important;
}

.brand-carousel::after {
  background: linear-gradient(to left, #0a0a0f, transparent) !important;
}

.brand-heading,
.legal-content h1,
.team-highlight-title,
.achievement-card h3 {
  color: #e0e7ff !important;
}

.brand-subtitle,
.legal-content p,
.legal-content li,
.legal-content small {
  color: rgba(224, 231, 255, 0.8) !important;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
  background: linear-gradient(135deg, #e0e7ff 0%, #818cf8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.legal-content a {
  color: #818cf8 !important;
  border-bottom-color: rgba(129, 140, 248, 0.45) !important;
}

.legal-content a:hover {
  color: #e0e7ff !important;
  border-bottom-color: #e0e7ff !important;
}

.legal-content .legal-card,
.legal-content .cookie-card,
.legal-content .policy-card,
.legal-content .terms-card,
.achievement-card,
.timeline-item,
.stat-card,
.team-card {
  border-color: rgba(129, 140, 248, 0.35) !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35) !important;
}

.section-heading::after,
.legal-content .divider,
.legal-content .section-divider {
  background: linear-gradient(90deg, #6366f1, #a855f7) !important;
}

.navbar-container,
.floating-navbar .navbar-container {
  border: 1px solid rgba(129, 140, 248, 0.28) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(129, 140, 248, 0.18) !important;
}

.navbar-logo img {
  filter: drop-shadow(0 0 8px rgba(129, 140, 248, 0.25)) !important;
}

.navbar-link,
.mobile-menu-link,
.navbar-menu-button,
.mobile-menu-close,
.footer-link {
  color: #e0e7ff !important;
}

.navbar-link::before {
  background: linear-gradient(90deg, #6366f1, #a855f7) !important;
}

.navbar-link:hover,
.navbar-link.active,
.mobile-menu-link:hover,
.mobile-menu-link.active,
.navbar-menu-button:hover,
.mobile-menu-close:hover,
.footer-link:hover {
  color: #818cf8 !important;
}

.mobile-menu-overlay,
.mobile-menu {
  background: rgba(10, 10, 15, 0.96) !important;
}

.achievement-icon {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(129, 140, 248, 0.35) !important;
}

.modal-content img {
  box-shadow: 0 0 30px rgba(129, 140, 248, 0.35) !important;
}

.modal-close {
  color: #e0e7ff !important;
}

.modal-close:hover {
  color: #818cf8 !important;
}

@media (max-width: 1280px) {
  .floating-navbar {
    top: 0.75rem !important;
    max-width: calc(100% - 1rem) !important;
  }

  .navbar-container {
    width: 100% !important;
    gap: 1rem !important;
    padding: 0.65rem 1rem !important;
  }

  .navbar-links {
    gap: 1rem !important;
  }
}

@media (max-width: 1024px) {
  .brand-carousel::before,
  .brand-carousel::after {
    width: 120px !important;
  }

  .bg-fixed {
    background-attachment: scroll !important;
  }
}

@media (max-width: 768px) {
  .brand-carousel::before,
  .brand-carousel::after {
    width: 72px !important;
  }

  .modal-content {
    width: 95% !important;
    max-height: 86vh !important;
  }

  .modal-body {
    height: 72vh !important;
  }
}