/* Custom styles for Skyrion Education Consulting */

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

:root {
  --primary: #003B8E;
  --secondary: #0EA5E9;
  --accent-gold: #F5B800;
  --white: #FFFFFF;
  --dark-navy: #021B4A;
  --light-bg: #F7F9FC;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-bg);
  color: #334155;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--dark-navy);
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to right, var(--secondary), var(--accent-gold));
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* Sticky Navigation Shadow & Blur */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px -2px rgba(0, 59, 142, 0.08);
  transition: all 0.3s ease;
  transform: translateY(-100%);
  animation: slideDown 0.5s forwards ease-out;
}

@keyframes slideDown {
  to {
    transform: translateY(0);
  }
}

/* Premium Animations & Hover Effects */
.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 59, 142, 0.2);
}
.btn-primary:hover {
  transform: scale(1.05);
  background-color: var(--dark-navy);
  box-shadow: 0 10px 15px -3px rgba(0, 59, 142, 0.3);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.2);
}
.btn-secondary:hover {
  transform: scale(1.05);
  background-color: #0284c7;
  box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: var(--dark-navy);
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(245, 184, 0, 0.2);
}
.btn-gold:hover {
  transform: scale(1.05);
  background-color: #dca600;
  box-shadow: 0 10px 15px -3px rgba(245, 184, 0, 0.3);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid rgba(0, 59, 142, 0.15);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-white:hover {
  transform: scale(1.05);
  background-color: rgba(0, 59, 142, 0.03);
  border-color: var(--primary);
}

/* Card Hover Effects */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 59, 142, 0.1), 0 10px 10px -5px rgba(0, 59, 142, 0.04);
}

.hover-rotate-icon i {
  transition: transform 0.5s ease;
}
.hover-rotate-icon:hover i {
  transform: rotate(360deg);
}

/* Hero Background Zoom Effect */
.hero-zoom-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: heroZoom 20s infinite alternate ease-in-out;
  z-index: -2;
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}

/* Parallax cockpit banner */
.parallax-banner {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
@media (max-width: 1024px) {
  .parallax-banner {
    background-attachment: scroll;
  }
}

/* Timeline Custom Styling */
.timeline-line {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 4px;
  background-color: rgba(14, 165, 233, 0.2);
  z-index: 1;
}

.timeline-progress {
  position: absolute;
  top: 24px;
  left: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  z-index: 2;
  width: 0%;
  transition: width 0.5s ease;
}

.timeline-node {
  position: relative;
  z-index: 10;
}

.timeline-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--white);
  border: 4px solid rgba(14, 165, 233, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.timeline-node.active .timeline-circle {
  background-color: var(--primary);
  border-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
  transform: scale(1.1);
}

/* Exit Intent Popup & Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(2, 27, 74, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--white);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 500px;
  width: 90%;
  transform: scale(0.85) translateY(30px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Floating Widgets styling */
.floating-widget-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.1) rotate(5deg);
}

.whatsapp-btn {
  background-color: #25D366;
}

.call-btn {
  background-color: var(--secondary);
}

.back-to-top {
  background-color: var(--primary);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.back-to-top.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pulse-ring {
  position: absolute;
  border: 3px solid #25D366;
  border-radius: 50%;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  animation: pulse-ring-animation 1.5s infinite;
  opacity: 0;
  pointer-events: none;
}

@keyframes pulse-ring-animation {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Floating WhatsApp Chat Window */
.whatsapp-chat-window {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 320px;
  background-color: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(2, 27, 74, 0.15);
  z-index: 95;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.whatsapp-chat-window.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Success Story Video Hover Pulse */
.play-btn-pulse {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--primary);
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.play-btn-pulse::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  border: 2px solid var(--white);
  animation: play-pulse 2s infinite;
}

.success-card:hover .play-btn-pulse {
  background-color: var(--secondary);
  color: var(--white);
  transform: scale(1.1);
}

@keyframes play-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Mobile Quick Action Buttons */
.mobile-action-bar {
  display: none;
}

@media (max-width: 767px) {
  .mobile-action-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background-color: var(--white);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  }
}

/* Notification Popup */
.scholarship-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 320px;
  background-color: var(--white);
  border-left: 5px solid var(--accent-gold);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(2, 27, 74, 0.15);
  z-index: 95;
  transform: translateX(-120%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.scholarship-popup.active {
  transform: translateX(0);
}
