/* ============================================
   GldComp - Custom Styles
   Modern Single-Page App with Bootstrap 5
   ============================================ */

/* CSS Variables */
:root {
  --primary: #00d1b2;
  --primary-dark: #00b89c;
  --primary-light: #00e6c5;
  --secondary: #363636;
  --accent: #ffb938;
  --gradient-1: linear-gradient(135deg, #00d1b2 0%, #00b89c 100%);
  --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-3: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 20px 50px rgba(0, 0, 0, 0.15);
  --border-radius: 1rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Override Bootstrap Primary Color */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.text-gradient {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section Padding */
.section-padding {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 4rem 0;
  }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.navbar-scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-soft);
}

.navbar-brand {
  font-weight: 700;
  color: var(--secondary) !important;
}

.navbar-nav .nav-link {
  color: var(--secondary);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  background: linear-gradient(180deg, #f8fffe 0%, #ffffff 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 209, 178, 0.05) 0%, rgba(0, 184, 156, 0.1) 100%);
  border-radius: 0 0 0 50%;
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 209, 178, 0.15) 1px, transparent 0);
  background-size: 40px 40px;
  z-index: 0;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-bg {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 90%;
  height: 90%;
  background: var(--gradient-1);
  border-radius: 2rem;
  transform: rotate(-3deg);
  z-index: 0;
}

.hero-image {
  position: relative;
  z-index: 1;
}

/* Floating Cards */
.floating-card {
  position: absolute;
  z-index: 10;
  animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
  top: 15%;
  right: -10%;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 20%;
  left: -5%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.icon-box {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
  transition: var(--transition);
  border-color: #eee !important;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary) !important;
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-1);
  border-radius: 16px;
  font-size: 1.75rem;
  color: white;
}

/* ============================================
   STEP CARDS (How It Works)
   ============================================ */
.step-card {
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 209, 178, 0.4);
}

.step-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 209, 178, 0.1);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--primary);
}

/* ============================================
   SCREENSHOTS
   ============================================ */
.screenshot-card {
  position: relative;
  overflow: hidden;
}

.screenshot-card img {
  transition: var(--transition);
}

.screenshot-card:hover img {
  transform: scale(1.05);
}

.screenshot-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
}

.screenshot-card:hover .screenshot-overlay {
  opacity: 1;
}

#screenshotCarousel .carousel-control-prev-icon,
#screenshotCarousel .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 1.25rem;
  background-size: 50%;
}

/* ============================================
   SOARINGSPOT SECTION
   ============================================ */
.soaringspot-feature {
  transition: var(--transition);
}

.soaringspot-feature:hover {
  background: rgba(0, 209, 178, 0.08) !important;
  transform: translateY(-3px);
}

.soaringspot-feature-icon {
  font-size: 1.75rem;
}

/* ============================================
   INTEGRATION CARDS
   ============================================ */
.integration-card {
  transition: var(--transition);
  border: 1px solid #eee;
}

.integration-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary);
}

.integration-icon {
  font-size: 2.5rem;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.accordion-button:not(.collapsed) {
  background-color: rgba(0, 209, 178, 0.08);
  color: var(--secondary);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button::after {
  filter: hue-rotate(145deg) saturate(1.5);
}

/* ============================================
   FORMS & MODAL
   ============================================ */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 209, 178, 0.2);
}

.gldcomp-domain {
  background-color: #f0f0f0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary);
}

#registerModal .modal-content {
  border-radius: var(--border-radius);
}

/* ============================================
   CTA SECTION
   ============================================ */
.bmc-btn {
  background-color: #ffdd00;
  border-color: #ffdd00;
  color: #000;
  font-weight: 700;
}

.bmc-btn:hover {
  background-color: #e6c700;
  border-color: #e6c700;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 221, 0, 0.35);
}

.cta-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
  background-size: 30px 30px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer a.hover-white:hover {
  color: white !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  font-weight: 500;
  transition: var(--transition);
}

.btn-lg {
  padding: 0.875rem 2rem;
}

.btn:hover {
  transform: translateY(-2px);
}

.rounded-pill {
  border-radius: 50rem !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hover-white:hover {
  color: white !important;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: var(--primary);
  color: white;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 80px;
    text-align: center;
  }

  .hero-section .d-flex {
    justify-content: center;
  }

  .hero-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }

  .floating-card {
    display: none;
  }

  .hero-bg {
    width: 100%;
    border-radius: 0;
  }
}

@media (max-width: 767.98px) {
  .display-3 {
    font-size: 2.5rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.75rem;
  }

  .hero-image-bg {
    display: none;
  }

  .section-padding {
    padding: 3rem 0;
  }
}

/* ============================================
   ANIMATION ENHANCEMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Loading state for images */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}
