﻿/* ===== SK AI Hub - Premium CSS ===== */

/* ===== ENHANCED ANIMATIONS ===== */

/* Floating Animations */
@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  33% {
    transform: translateY(-20px) translateX(10px);
  }
  66% {
    transform: translateY(-10px) translateX(-10px);
  }
}

@keyframes float-reverse {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  50% {
    transform: translateY(30px) translateX(-20px) rotate(5deg);
  }
}

@keyframes float-fast {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

.animate-float-reverse {
  animation: float-reverse 10s ease-in-out infinite;
}

.animate-float-fast {
  animation: float-fast 6s ease-in-out infinite;
}

/* Fade In Animations */
@keyframes fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-in-right {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out;
}

/* Gradient Animation */
@keyframes gradient-fast {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-gradient-fast {
  background-size: 200% 200%;
  animation: gradient-fast 3s ease infinite;
}

/* Gradient X Animation (Horizontal Movement) */
@keyframes gradient-x {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-gradient-x {
  background-size: 200% auto;
  animation: gradient-x 5s ease infinite;
}

/* Counter Animation */
@keyframes counter {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-counter {
  animation: counter 0.5s ease-out;
}

/* Progress Bar */
@keyframes progress {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.animate-progress {
  animation: progress 2s ease-out forwards;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  overflow-x: hidden;
}

/* ===== ENHANCED NAVIGATION STYLES ===== */
nav {
  transition: transform 0.3s ease-in-out, background-color 0.3s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

nav:hover {
  background-color: rgba(255, 255, 255, 0.95);
}

/* Navbar Logo Animation */
nav .group:hover .w-10 {
  animation: logoPulse 0.6s ease-in-out;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Navigation Link Hover Effects */
nav a:hover {
  transform: translateY(-1px);
}

/* Mega Dropdown Animations */
.group:hover [class*="opacity-0"] {
  animation: dropdownFadeIn 0.3s ease-out forwards;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Course Card Hover Effects */
.group/item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Animations */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Button Effects */
nav .group:hover {
  filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.15));
}

/* Gradient Text Animation */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

nav .bg-gradient-to-r {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-content .w-20 {
  animation: spin 2s linear infinite;
}

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

/* ===== NEURAL NETWORK CANVAS ===== */
#neural-network {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.4;
  z-index: 1;
}

/* ===== NAVIGATION ===== */
nav {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

#mobile-menu {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

#mobile-menu.show {
  transform: translateY(0);
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 120px 0;
}

/* Interactive Demo */
.demo-screen {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== FEATURES SECTION ===== */
.features-section .group:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== COURSES SECTION ===== */
.courses-section .group:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== AI TOOLS SECTION ===== */
.ai-tools-section .group:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section .bg-white:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== CONTACT SECTION ===== */
.contact-section form input:focus,
.contact-section form select:focus,
.contact-section form textarea:focus {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  border-color: #0ea5e9;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Intersection Observer Animations */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

/* ===== BACK TO TOP ===== */
#back-to-top {
  transition: all 0.3s ease;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-content {
    padding: 100px 0 80px;
  }

  .hero-title {
    font-size: 2.5rem !important;
  }

  .hero-subtitle {
    font-size: 1.125rem !important;
  }

  .features-grid {
    grid-template-columns: 1fr !important;
  }

  .courses-grid {
    grid-template-columns: 1fr !important;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  }

  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }

  .about-content {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  .contact-content {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }

  .footer-content {
    grid-template-columns: 1fr !important;
  }
}

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

/* Focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

/* ===== UTILITIES ===== */

/* Glassmorphism Effects */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shadows */
.shadow-glow {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.shadow-soft {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.shadow-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

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

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

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

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

/* Button Effects */
.btn-magnetic {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-magnetic::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-magnetic:hover::before {
  width: 300px;
  height: 300px;
}

/* Scroll Indicators */
.scroll-indicator {
  position: relative;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Background Patterns */
.bg-pattern-dots {
  background-image: radial-gradient(circle, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.bg-pattern-grid {
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Selection Colors */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #1e293b;
}

::-moz-selection {
  background: rgba(99, 102, 241, 0.3);
  color: #1e293b;
}

/* ===== UTILITIES ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== CUSTOM GRADIENTS ===== */
.gradient-primary {
  background: linear-gradient(135deg, #0ea5e9, #d946ef);
}

.gradient-secondary {
  background: linear-gradient(135deg, #d946ef, #f97316);
}

.gradient-accent {
  background: linear-gradient(135deg, #f97316, #0ea5e9);
}

/* ===== GLASSMORPHISM ===== */
.glass {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ===== SHADOWS ===== */
.shadow-soft {
  box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
}

.shadow-medium {
  box-shadow: 0 4px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-large {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===== HOVER EFFECTS ===== */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===== LOADING STATES ===== */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ===== PRINT STYLES ===== */
@media print {
  body {
    background: white !important;
  }

  nav,
  #back-to-top,
  .hero-background,
  #neural-network {
    display: none !important;
  }

  .shadow-xl,
  .shadow-2xl {
    box-shadow: none !important;
  }
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --border-color: #334155;
}

[data-theme="dark"] body {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  color: var(--text-primary);
}

[data-theme="dark"] nav {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

[data-theme="dark"] .section-container {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .course-card,
[data-theme="dark"] .tool-card,
[data-theme="dark"] .testimonial-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .course-card h3,
[data-theme="dark"] .tool-card h3,
[data-theme="dark"] .testimonial-card h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .feature-card p,
[data-theme="dark"] .course-card p,
[data-theme="dark"] .tool-card p,
[data-theme="dark"] .testimonial-card p {
  color: var(--text-secondary);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: var(--bg-primary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: var(--text-secondary);
}

[data-theme="dark"] .glass {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.3);
}

/* ===== THEME TRANSITIONS ===== */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ===== ENHANCED COURSE SECTION STYLES ===== */

/* Course Filter Panel */
#courses .bg-white.shadow-xl {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Course Card Enhanced Hover Effects */
#courses .group {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#courses .group:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Progress Bar Animations */
#courses .bg-slate-200 .rounded-full {
  transition: width 1s ease-out, transform 0.3s ease;
  transform-origin: left;
}

/* Rating Stars Animation */
#courses .flex.text-yellow-400 {
  animation: starGlow 2s ease-in-out infinite alternate;
}

@keyframes starGlow {
  from { filter: brightness(1); }
  to { filter: brightness(1.2); }
}

/* Price Badge Animation */
#courses .bg-green-100 {
  animation: pricePulse 3s ease-in-out infinite;
}

@keyframes pricePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Wishlist Button Hover */
#courses button[title="Add to Wishlist"]:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* Filter Input Focus Effects */
#courses input:focus,
#courses select:focus {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  transform: translateY(-1px);
}

/* Course Stats Animation */
#courses .inline-flex.items-center {
  animation: statsSlideIn 1s ease-out;
}

@keyframes statsSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Styles */
.fixed.inset-0 {
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(10px);
  }
}

.fixed.inset-0 > div {
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Notification Styles */
.fixed.top-4.right-4 {
  animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced Course Card Grid */
#courses .grid {
  animation: gridFadeIn 0.8s ease-out;
}

@keyframes gridFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Skill Tags Hover */
#courses .px-3.py-1 {
  transition: all 0.2s ease;
}

#courses .px-3.py-1:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* View Toggle Animation */
#courses .bg-slate-100 button {
  transition: all 0.3s ease;
}

#courses .bg-slate-100 button:hover {
  transform: translateY(-2px);
}

/* Enhanced Button Hover Effects */
#courses .bg-gradient-to-r:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Loading States */
#courses .animate-pulse {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

/* ===== ADVANCED HERO FEATURES ===== */

/* Enhanced Hero Background */
.hero-enhanced-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: orbFloat 20s ease-in-out infinite;
}

.hero-orb:nth-child(1) {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(217, 70, 239, 0.3));
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.hero-orb:nth-child(2) {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(34, 197, 94, 0.3));
  top: 60%;
  right: 10%;
  animation-delay: -5s;
}

.hero-orb:nth-child(3) {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(14, 165, 233, 0.3));
  bottom: 20%;
  left: 50%;
  animation-delay: -10s;
}

@keyframes orbFloat {
  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(-30px, -10px) scale(1.05);
  }
}

/* Hero Particles Canvas */
#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Premium Badge */
.hero-premium-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
  from {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
  }
  to {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.8), 0 0 40px rgba(251, 191, 36, 0.3);
  }
}

/* Enhanced Hero Title */
.hero-enhanced-title {
  background: linear-gradient(135deg, #1e293b, #0ea5e9, #d946ef, #f97316);
  background-size: 300% 300%;
  animation: titleGradient 4s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes titleGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Hero Stats with Animation */
.hero-stat-number {
  animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Enhanced CTA Buttons */
.hero-cta-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hero-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.hero-cta-btn:hover::before {
  left: 100%;
}

.hero-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.3);
}

/* Interactive Demos */
.interactive-demo {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.interactive-demo:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* AI Model Trainer */
.ai-model-trainer {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(217, 70, 239, 0.1));
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.training-progress {
  transition: width 0.3s ease;
  background: linear-gradient(90deg, #0ea5e9, #d946ef, #f97316);
}

.start-training {
  transition: all 0.3s ease;
}

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

/* Data Visualization */
.data-visualization {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(249, 115, 22, 0.1));
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.viz-canvas {
  border-radius: 8px;
}

/* Collaborative Coding */
.collaborative-coding {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(14, 165, 233, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.code-editor {
  font-family: 'JetBrains Mono', monospace;
  white-space: pre-wrap;
  line-height: 1.5;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: #0ea5e9;
  animation: blink 1s infinite;
  position: relative;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.user-count {
  animation: pulse 2s infinite;
}

/* Floating Code Snippets */
.floating-code-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.floating-snippet {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #374151;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: floatSnippet 4s ease-in-out infinite;
}

@keyframes floatSnippet {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-10px) rotate(1deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-5px) rotate(-1deg);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-15px) rotate(0.5deg);
    opacity: 0.9;
  }
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  z-index: 100;
  transition: all 0.3s ease;
}

.scroll-indicator:hover {
  transform: scale(1.1);
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.3s ease;
  stroke: url(#scrollGradient);
}

/* Magnetic Effects */
.magnetic-element {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Real-time Accuracy Display */
.accuracy-value {
  font-weight: 700;
  color: #10b981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Enhanced Demo Tabs */
.demo-tab {
  position: relative;
  transition: all 0.3s ease;
}

.demo-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #0ea5e9, #d946ef);
  border-radius: 1px;
  animation: tabUnderline 0.3s ease-out;
}

@keyframes tabUnderline {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 30px;
    opacity: 1;
  }
}

/* Accuracy Meter */
.accuracy-meter {
  position: relative;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  transition: width 0.5s ease;
  border-radius: 4px;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-enhanced-title {
    font-size: 2.5rem !important;
  }

  .interactive-demo {
    margin: 1rem 0;
  }

  .floating-snippet {
    font-size: 0.7rem;
    padding: 6px 10px;
  }

  .scroll-indicator {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
  .hero-orb,
  .floating-snippet,
  .hero-enhanced-title,
  .hero-premium-badge {
    animation: none;
  }

  .hero-cta-btn,
  .interactive-demo {
    transition: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .hero-enhanced-bg {
    opacity: 0.3;
  }

  .floating-snippet {
    border: 2px solid;
    background: rgba(255, 255, 255, 0.95);
  }
}

/* ===== END ADVANCED HERO FEATURES ===== */

/* ===== COMPANY LOGOS SECTION ===== */

.company-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  min-height: 100px;
  width: 100%;
  max-width: 160px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.company-logo-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.company-logo-container:hover::before {
  left: 100%;
}

.company-logo-container:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-color: rgba(14, 165, 233, 0.3);
  animation: logoPulse 2s ease-in-out infinite;
  text-decoration: none;
  color: inherit;
}

/* Link-specific styles */
.company-logo-container[href] {
  cursor: pointer;
}

.company-logo-container[href]:hover {
  text-decoration: none;
  color: inherit;
}

.company-logo-container[href]:focus {
  outline: 2px solid rgba(14, 165, 233, 0.5);
  outline-offset: 2px;
}

.company-logo {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(0.8) brightness(0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.company-logo-container:hover .company-logo {
  filter: grayscale(0%) contrast(1) brightness(1.1);
  transform: scale(1.1) rotate(2deg);
  animation: logoBounce 0.6s ease-out;
}

.company-tooltip {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.company-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(15, 23, 42, 0.95);
}

.company-logo-container:hover .company-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: -40px;
  transform: translateX(-50%) scale(1);
}

/* Logo loading animation */
.company-logo-container .company-logo {
  animation: logoFadeIn 0.8s ease-out;
}

@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  100% {
    opacity: 0.6;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoPulse {
  0%, 100% {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
  50% {
    box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.25), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  }
}

@keyframes logoBounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15) rotate(3deg);
  }
  100% {
    transform: scale(1.1) rotate(2deg);
  }
}

/* Error handling for broken logos */
.company-logo-container .company-logo[onerror] {
  display: none;
}

.company-logo-container .company-logo[onerror] + .fallback-logo {
  display: block !important;
}

.fallback-logo {
  display: none;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.fallback-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Loading state */
.company-logo-container.loading {
  opacity: 0.7;
  pointer-events: none;
}

.company-logo-container.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(14, 165, 233, 0.3);
  border-top: 2px solid #0ea5e9;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Company Logos */
@media (max-width: 1024px) {
  .company-logo-container {
    min-height: 80px;
    max-width: 140px;
    padding: 1.2rem;
  }

  .company-logo {
    max-height: 50px;
  }

  .company-tooltip {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}

@media (max-width: 768px) {
  .company-logo-container {
    min-height: 70px;
    max-width: 120px;
    padding: 1rem;
  }

  .company-logo {
    max-height: 40px;
  }

  .company-tooltip {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .fallback-logo {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .company-logo-container {
    min-height: 60px;
    max-width: 100px;
    padding: 0.8rem;
  }

  .company-logo {
    max-height: 35px;
  }

  .company-tooltip {
    font-size: 0.65rem;
    padding: 3px 6px;
  }

  .fallback-logo {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* ===== END COMPANY LOGOS SECTION ===== */

/* ===== COMPANY LOGOS ANIMATIONS ===== */

@keyframes companyScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes companyFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-3px) rotate(0.5deg);
  }
  50% {
    transform: translateY(-6px) rotate(0deg);
  }
  75% {
    transform: translateY(-3px) rotate(-0.5deg);
  }
}

.company-ripple {
  pointer-events: none;
}

/* ===== END COMPANY LOGOS ANIMATIONS ===== */
