/* Landing Page Styles */

/* Particle Canvas - should be above background but below cards */
.particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Language switcher should stay on top */
.language-switcher-container {
    z-index: 100 !important;
}

/* Additional styles for the new landing page */
.landing-hero {
  background: 
    radial-gradient(ellipse at top right, #1A1B31 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, #1A1B31 0%, transparent 50%),
    radial-gradient(ellipse at center right, #0F1021 0%, transparent 40%),
    #000000;
  min-height: 100vh;
  position: relative;
  color: white;
  padding: 2rem 0;
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 100% 100%, rgba(30, 79, 226, 0.15) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.section-glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 3rem;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  margin-bottom: 3rem;
  z-index: 10;
}

.section-glass-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.section-icon {
  font-size: 4rem;
  margin-bottom: 2rem;
  display: block;
  text-align: center;
  opacity: 0.9;
}

.section-title {
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  text-align: center;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.section-title.h3 {
  font-size: 1.8rem;
  text-align: center;
}

/* Enhanced title styling for Section 1 */
.col-lg-4 .section-title.h3 {
  font-size: 2.2rem;
  line-height: 1.3;
  font-weight: 400;
}

.consulting-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0 1.5rem 0;
}

.service-item-grid {
  padding: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.service-item-grid:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.service-clickable {
  cursor: pointer;
}

.service-clickable:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.service-icon-small {
  font-size: 1.2rem;
  margin-right: 0.8rem;
  display: inline-block;
  width: 24px;
  text-align: center;
}

.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.founder-card {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.founder-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.founder-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.founder-image:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.founder-name {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.founder-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.founder-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Button Consistency */
.section-btn {
  min-width: 200px;
  padding: 0.75rem 1.8rem !important;
  border-radius: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease !important;
  font-size: 1rem !important;
  text-align: center;
  display: inline-block;
  text-decoration: none !important;
  position: relative;
  z-index: 12;
}

.section-btn-primary {
  background: linear-gradient(135deg, #1e4fe2, #1a45c7) !important;
  border: none !important;
  box-shadow: 0 8px 32px rgba(30, 79, 226, 0.4) !important;
  color: white !important;
}

.section-btn-primary:hover {
  box-shadow: 0 12px 40px rgba(30, 79, 226, 0.6) !important;
  color: white !important;
  text-decoration: none !important;
}

.section-btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  background: transparent !important;
  color: white !important;
}

.section-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  text-decoration: none !important;
}

/* Pulsing waves animation for attention-grabbing button */
.pulse-waves {
  position: relative;
  overflow: visible !important;
  animation: pulse-button 2.5s infinite ease-in-out;
}

.pulse-waves::before,
.pulse-waves::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(30, 79, 226, 0.3);
  border-radius: 12px;
  transform: translate(-50%, -50%);
  animation: wave-expand 2.0s infinite ease-out;
  pointer-events: none;
}

.pulse-waves::after {
  animation-delay: 0.6s;
  border-color: rgba(30, 79, 226, 0.2);
}

@keyframes pulse-button {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(30, 79, 226, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(30, 79, 226, 0.7);
  }
}

@keyframes wave-expand {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

/* Enhanced hover effect for pulsing button */
.pulse-waves:hover {
  animation-duration: 1s !important;
  transform: scale(1.02) !important;
}

/* Special Future Card Pulsing Effect */
.section-glass-card-future {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.005)) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  animation: futurePulse 5s ease-in-out infinite;
}

@keyframes futurePulse {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px 10px rgba(255, 255, 255, 0.1);
  }
}

/* Service Modals - Instant Glass Effect (No Fade Animation) */

/* Remove fade animation entirely for instant appearance */
.modal:not(.fade) {
  display: none;
}

.modal:not(.fade).show {
  display: block !important;
}

/* For modals that still have fade class, make it instant */
.modal.fade {
  transition: none !important;
  opacity: 0;
}

.modal.fade.show {
  opacity: 1 !important;
  transition: none !important;
}

/* Instant modal dialog positioning */
.modal-dialog {
  transform: scale(1) translateY(0) !important;
  transition: none !important;
}

/* Pre-rendered backdrop with instant blur */
.modal-backdrop {
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition: none !important;
  opacity: 0.5 !important;
}

.modal-backdrop.show {
  opacity: 0.5 !important;
}

/* Force glass effect to be always rendered on modal content */
.modal-content.service-modal,
.service-modal {
  font-family: 'Outfit', sans-serif;
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(40px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 25px !important;
  color: white !important;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 1px 0 0 rgba(255, 255, 255, 0.1) inset !important;
  position: relative;
  overflow: hidden;
  transition: none !important;
  will-change: transform, opacity !important;
  transform: translateZ(0) !important;
  contain: layout style paint !important;
}

/* Pre-apply glass effect to hidden modals for instant rendering */
.modal .service-modal {
  opacity: 1 !important;
  visibility: visible !important;
}

.service-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.service-modal .modal-header {
  border-bottom: none;
  padding: 2.5rem 3rem 0.5rem 3rem;
  background: transparent;
}

.service-modal .modal-body {
  padding: 1rem 3rem 2.5rem 3rem;
  position: relative;
}

.service-modal .modal-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: 1.75rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.service-modal-icon {
  font-size: 2.2rem;
  opacity: 0.95;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.service-modal-image {
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.service-modal-image:hover {
  transform: scale(1.02);
}

.service-modal-description {
  font-family: 'Outfit', sans-serif;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.3px;
}

.service-modal-description:last-child {
  margin-bottom: 0;
}

.service-modal a {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
}

.service-modal .btn-close {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  opacity: 0.9;
  position: relative;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: none !important;
}

.service-modal .btn-close::before {
  content: '×';
  color: white;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}

.service-modal .btn-close:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
  opacity: 1;
}

@media (max-width: 991px) {
  /* Main hero heading - smaller font on mobile */
  .landing-hero .display-4 {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
  }
  
  /* Hero subtitle also smaller on mobile */
  .landing-hero .lead {
    font-size: 1.1rem !important;
    margin-bottom: 3rem !important;
  }
  
  /* Reduce padding for all glass cards on mobile */
  .section-glass-card {
    padding: 1.5rem !important;
    margin-bottom: 2rem !important;
  }
  
  /* Reduce main container padding on mobile */
  .landing-hero .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .section-title.h3 {
    text-align: center;
    font-size: 1.6rem;
  }
  
  /* Enhanced title styling for Section 1 on mobile */
  .col-lg-4 .section-title.h3 {
    font-size: 1.9rem;
    line-height: 1.3;
  }
  
  .consulting-services-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin: 1.5rem 0;
  }
  
  .service-item-grid {
    font-size: 0.85rem;
    padding: 0.7rem;
  }
  
  .founders-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .founder-card {
    padding: 1.2rem;
  }
  
  .founder-image {
    width: 70px;
    height: 70px;
  }
  
  .section-btn {
    min-width: 180px;
    padding: 0.7rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  /* Ensure pulsing effect works on mobile */
  .section-glass-card-future {
    animation: futurePulse 5s ease-in-out infinite !important;
  }

  /* Service modals on mobile */
  .service-modal .modal-header {
    padding: 2rem 1.5rem 0.3rem 1.5rem;
  }
  
  .service-modal .modal-body {
    padding: 0.8rem 1.5rem 2rem 1.5rem;
  }
  
  .service-modal .modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    letter-spacing: 0.5px;
  }
  
  /* Hide icon on mobile */
  .service-modal-icon {
    display: none;
  }
  
  .service-modal-description {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.2px;
  }
  
  /* Reorder modal content: text first, then image */
  .service-modal .modal-body .row {
    flex-direction: column-reverse;
  }
  
  .service-modal-image {
    border-radius: 15px;
    margin-top: 1rem;
    margin-bottom: 1.2rem;
    max-height: 300px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  
  .service-modal .btn-close::before {
    font-size: 20px;
  }
}

/* Ensure all interactive elements are above particles */
.form-control, 
.form-check-input, 
.form-check-label,
.footer-links,
.footer-links a,
.service-item-grid,
.founder-card,
.hero-logo,
.display-4,
.lead,
.logo-container {
  position: relative;
  z-index: 12;
} 