/* ================================================
   Stock Academy - Landing Page Styles
   Orange & White Modern Theme
   ================================================ */

.landing-page {
  overflow-x: hidden;
}

/* ================================================
   BUTTONS (Extended)
   ================================================ */

.btn-whatsapp {
  background: #25d366;
  color: white;
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background: #128c7e;
  border-color: #128c7e;
  color: white;
}

/* ================================================
   FEATURE CARDS (Extended)
   ================================================ */

.feature-card {
  position: relative;
}

.feature-card .feature-icon {
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ================================================
   BLOG CARDS (Extended)
   ================================================ */

.blog-card .blog-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.blog-card:hover .blog-image::before {
  opacity: 0.2;
}

/* ================================================
   TESTIMONIAL CARDS (Extended)
   ================================================ */

.testimonial-card {
  position: relative;
}

.testimonial-card::after {
  content: '"';
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.1;
  line-height: 1;
}

/* ================================================
   PRICING CARD (Extended)
   ================================================ */

.pricing-card {
  position: relative;
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.pricing-card:hover::before {
  opacity: 1;
}

/* ================================================
   CTA SECTION (Extended)
   ================================================ */

.cta {
  position: relative;
  overflow: hidden;
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.1;
}

.cta::before {
  top: -150px;
  left: -100px;
  animation: float 6s ease-in-out infinite;
}

.cta::after {
  bottom: -150px;
  right: -100px;
  animation: float 6s ease-in-out infinite reverse;
}

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

/* ================================================
   STOCK TICKER (Extended)
   ================================================ */

.stock-prices {
  position: relative;
}

.stock-prices::before,
.stock-prices::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 10;
  pointer-events: none;
}

.stock-prices::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

.stock-prices::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

[data-theme="dark"] .stock-prices::before {
  background: linear-gradient(to right, var(--white), transparent);
}

[data-theme="dark"] .stock-prices::after {
  background: linear-gradient(to left, var(--white), transparent);
}

/* ================================================
   CAROUSEL (Extended)
   ================================================ */

.carousel {
  position: relative;
}

.carousel-slide {
  position: relative;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

/* ================================================
   IMAGE SECTION (Extended)
   ================================================ */

.image-card {
  cursor: pointer;
}

.image-card .image-card-overlay {
  background: linear-gradient(transparent 30%, rgba(255, 107, 0, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 30px;
}

.image-card:hover .image-card-overlay h4 {
  animation: fadeInUp 0.3s ease;
}

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */

.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.scroll-animate.animated {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.scroll-animate-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.scroll-animate-right.animated {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.scroll-animate-scale.animated {
  opacity: 1;
  transform: scale(1);
}

/* ================================================
   STAGGERED ANIMATIONS
   ================================================ */

.stagger-item {
  opacity: 0;
  transform: translateY(30px);
}

.stagger-item.visible {
  animation: fadeInUp 0.6s ease forwards;
}

.stagger-item:nth-child(1) {
  animation-delay: 0.1s;
}
.stagger-item:nth-child(2) {
  animation-delay: 0.2s;
}
.stagger-item:nth-child(3) {
  animation-delay: 0.3s;
}
.stagger-item:nth-child(4) {
  animation-delay: 0.4s;
}
.stagger-item:nth-child(5) {
  animation-delay: 0.5s;
}
.stagger-item:nth-child(6) {
  animation-delay: 0.6s;
}

/* ================================================
   HOVER EFFECTS
   ================================================ */

.hover-lift {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.hover-scale {
  transition: transform 0.3s ease;
}

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

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px var(--primary-glow);
}

/* ================================================
   GRADIENT TEXT
   ================================================ */

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================================
   DECORATIVE ELEMENTS
   ================================================ */

.decorative-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  opacity: 0.1;
  pointer-events: none;
}

.decorative-circle-1 {
  width: 400px;
  height: 400px;
  top: -200px;
  right: -100px;
}

.decorative-circle-2 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -100px;
}

.decorative-dots {
  position: absolute;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(var(--primary) 2px, transparent 2px);
  background-size: 10px 10px;
  opacity: 0.3;
  pointer-events: none;
}

/* ================================================
   RESPONSIVE EXTENSIONS
   ================================================ */

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .features-header h2,
  .testimonials-header h2,
  .pricing-header h2,
  .cta h2 {
    font-size: 32px;
  }

  .carousel-slide img {
    height: 200px;
  }

  .carousel-content {
    padding: 16px;
  }

  .carousel-content h3 {
    font-size: 16px;
  }

  .carousel-content p {
    display: none;
  }
}

/* ================================================
   LOADING ANIMATION
   ================================================ */

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ================================================
   SKELETON LOADING
   ================================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-200) 25%,
    var(--gray-100) 50%,
    var(--gray-200) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ================================================
   PARALLAX EFFECT
   ================================================ */

.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 768px) {
  .parallax {
    background-attachment: scroll;
  }
}

/* ================================================
    CUSTOM SCROLLBAR
    ================================================ */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ================================================
    SELECTION
    ================================================ */

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

::-moz-selection {
  background: var(--primary);
  color: var(--white);
}

/* ================================================
    DECORATIVE BLOBS
    ================================================ */

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -200px;
  right: -100px;
  animation: blob-float 8s ease-in-out infinite;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--primary-light);
  bottom: -150px;
  left: -100px;
  animation: blob-float 10s ease-in-out infinite reverse;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: var(--warning);
  top: 50%;
  left: 10%;
  animation: blob-float 12s ease-in-out infinite;
}

@keyframes blob-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  75% {
    transform: translate(20px, 10px) scale(1.05);
  }
}

/* ================================================
    IMAGE BACKGROUND SECTIONS
    ================================================ */

.image-bg-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.image-bg-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(13, 13, 13, 0.9) 100%);
  z-index: 1;
}

.image-bg-section .container {
  position: relative;
  z-index: 2;
}

.image-bg-section .features-header h2,
.image-bg-section .features-header p {
  color: var(--white);
}

.image-bg-section .feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-bg-section .feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

.image-bg-section .feature-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.image-bg-section .feature-card h3 {
  color: var(--white);
}

.image-bg-section .feature-card p {
  color: var(--gray-400);
}

/* ================================================
    ANIMATED HERO IMAGE
    ================================================ */

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  animation: hero-image-float 6s ease-in-out infinite;
}

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

.hero-image-glow {
  position: absolute;
  inset: -20px -20px -20px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-xl);
  filter: blur(60px);
  opacity: 0.3;
  z-index: -1;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
}

/* ================================================
    FLOATING ELEMENTS
    ================================================ */

.floating-element {
  position: absolute;
  animation: float-element 6s ease-in-out infinite;
}

.floating-element-1 {
  top: 10%;
  right: 20%;
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: var(--radius);
  opacity: 0.2;
}

.floating-element-2 {
  bottom: 20%;
  left: 15%;
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  border-radius: 50%;
  opacity: 0.2;
  animation-delay: -2s;
}

.floating-element-3 {
  top: 40%;
  right: 10%;
  width: 40px;
  height: 40px;
  background: var(--warning);
  border-radius: var(--radius-sm);
  opacity: 0.3;
  animation-delay: -4s;
}

@keyframes float-element {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(10deg);
  }
}

/* ================================================
    IMAGE HOVER ZOOM
    ================================================ */

.hover-zoom {
  overflow: hidden;
}

.hover-zoom img {
  transition: transform 0.8s ease;
}

.hover-zoom:hover img {
  transform: scale(1.15);
}

/* ================================================
    GRADIENT BORDER
    ================================================ */

.gradient-border {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--warning));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.gradient-border:hover::before {
  opacity: 1;
}

/* ================================================
    RESPONSIVE IMPROVEMENTS
    ================================================ */

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
    text-align: center;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }
  
  .hero-image-wrapper {
    margin-top: 40px;
    max-width: 100%;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }

  .features-header h2,
  .testimonials-header h2,
  .pricing-header h2,
  .cta h2 {
    font-size: 32px;
  }

  .carousel-slide img {
    height: 200px;
  }

  .carousel-content {
    padding: 16px;
  }

  .carousel-content h3 {
    font-size: 16px;
  }

  .carousel-content p {
    display: none;
  }
  
  .blob {
    display: none;
  }
  
  .image-bg-section {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 24px;
  }
  
  .hero-badge {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
}
