
/* 
   ACHIEVEMENTS SECTION   
*/

.achievement-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.3);
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4f46e5, transparent);
  transition: left 0.6s ease;
}

.achievement-card:hover::before {
  left: 100%;
}

.achievement-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
}

.achievement-stat {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

/* 
   BUTTON   
   */

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4f46e5, #7c3aed, #ec4899);
  background-size: 200% 200%;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.btn-primary::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 ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(79, 70, 229, 0.4);
  background-position: right center;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Google Play button enhancement */
.play-store-btn {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.play-store-btn:hover {
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
}

/* 
   SCROLLBAR STYLING
  */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #3730a3, #581c87);
}

/*
   LOADING STATES & SKELETON
  */

.skeleton {
  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;
  }
}

.loading-spinner {
  border: 3px solid rgba(79, 70, 229, 0.1);
  border-top: 3px solid #4f46e5;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 
   RESPONSIVE   
*/

/* Mobile optimizations */
@media (max-width: 768px) {
  .animate-blob {
    animation-duration: 20s; /* Slower on mobile for performance */
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.2;
  }
  
  #slider img {
    border-radius: 12px;
  }
  
  .app-preview {
    max-width: 280px;
  }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-title {
    font-size: clamp(3rem, 6vw, 4rem);
  }
  
  #slider {
    gap: 1rem;
  }
}

/* Desktop    */
@media (min-width: 1024px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .parallax-element {
    will-change: transform;
  }
}

/*  
   DARK MODE SUPPORT
     */

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
  }
  
  body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
  }
  
  .achievement-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.8));
    border-color: var(--border-color);
  }
  
  #topbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: var(--border-color);
  }
  
  #mobileMenu {
    background: rgba(15, 23, 42, 0.95);
  }
}

/*  
   HIGH CONTRAST MODE SUPPORT
     */

@media (prefers-contrast: high) {
  .hero-title {
    -webkit-text-fill-color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }
  
  .btn-primary {
    border: 2px solid white;
  }
  
  #prev, #next {
    border: 2px solid #4f46e5;
  }
}

/*  
   REDUCED MOTION SUPPORT
     */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .animate-blob,
  .animate-float,
  .animate-pulse-glow {
    animation: none;
  }
  
  .parallax-element {
    transform: none !important;
  }
}

/*  
   PRINT STYLES
     */

@media print {
  .animate-blob,
  .hero-blob,
  #topbar,
  #prev,
  #next,
  .loading-spinner {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero-title {
    -webkit-text-fill-color: black !important;
    color: black !important;
  }
  
  a[href^="http"]::after {
    content: " (" attr(href) ")";
  }
}

/*  
   UTILITY CLASSES
     */

.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);
}

.gradient-text {
  background: linear-gradient(135deg, #4f46e5, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
  transform: translateY(-8px);
}

.shadow-glow {
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

.shadow-glow:hover {
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.5);
}

.text-glow {
  text-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
}

/*  
   FOCUS STYLES FOR ACCESSIBILITY
     */

.focus-ring:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* High contrast focus for better visibility */
@media (prefers-contrast: high) {
  button:focus,
  a:focus,
  input:focus,
  select:focus,
  textarea:focus {
    outline: 3px solid #000;
    outline-offset: 3px;
  }
}

/*  
   PERFORMANCE OPTIMIZATIONS
     */

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.will-change-transform {
  will-change: transform;
}

.will-change-auto {
  will-change: auto;
}

/* Optimize images for better performance */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
}

/*  
   CUSTOM PROPERTIES FOR THEMING
     */

:root {
  --primary-color: #4f46e5;
  --secondary-color: #7c3aed;
  --accent-color: #ec4899;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, Inconsolata, 'Roboto Mono', monospace;
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --easing-standard: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --easing-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --easing-decelerate: cubic-bezier(0, 0, 0.2, 1);
}
   /* CORE STYLES & RESET
     */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for fixed header */
}

body {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Screen reader only content */
.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;
}

.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/*  
   ANIMATIONS & KEYFRAMES
     */

/* Enhanced blob animation */
@keyframes blob {
  0%, 100% {
    transform: translate(0px, 0px) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(30px, -50px) scale(1.1) rotate(90deg);
  }
  50% {
    transform: translate(-40px, 30px) scale(0.9) rotate(180deg);
  }
  75% {
    transform: translate(-20px, -30px) scale(1.05) rotate(270deg);
  }
}

.animate-blob {
  animation: blob 15s infinite ease-in-out;
  will-change: transform;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

.animation-delay-6000 {
  animation-delay: 6s;
}

/* Floating animation */
@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  33% { 
    transform: translateY(-15px) rotate(1deg); 
  }
  66% { 
    transform: translateY(-5px) rotate(-1deg); 
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
  will-change: transform;
}

/* Pulse animation for CTA buttons */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.8);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Fade in up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Scale on hover */
@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

/* Gradient animation */
@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* Typewriter effect */
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  animation: typewriter 3s steps(40, end);
}

/*  
   ENHANCED COMPONENT STYLES
     */

/* Enhanced navbar */
#topbar {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#topbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.3);
}

/* Enhanced hamburger menu */
#hamburger {
  cursor: pointer;
  transition: all 0.3s ease;
}

#hamburger:hover {
  transform: scale(1.1);
}

#hamburger span {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

#hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

#hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

#hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Enhanced mobile menu */
#mobileMenu {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#mobileMenu a {
  position: relative;
  overflow: hidden;
}

#mobileMenu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  transition: width 0.3s ease;
}

#mobileMenu a:hover::before {
  width: 100%;
}

/*  
   HERO SECTION   
     */

/* Enhanced background blobs */
.hero-blob {
  filter: blur(40px);
  opacity: 0.7;
  mix-blend-mode: multiply;
}

/* Enhanced hero content */
.hero-title {
  background: linear-gradient(135deg, #ffffff, #f8fafc, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced app preview image */
.app-preview {
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.app-preview::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(124, 58, 237, 0.3));
  border-radius: 24px;
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.app-preview:hover::before {
  opacity: 1;
}

.app-preview:hover {
  transform: translateY(-10px) scale(1.02);
}

/*  
   SCREENSHOT SLIDER   
     */

/* Enhanced slider container */
#slider {
  will-change: transform;
}

#slider img {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid transparent;
  position: relative;
}

#slider img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

#slider img:hover {
  transform: scale(1.05);
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
}

#slider img:hover::before {
  opacity: 1;
}

/* Enhanced navigation buttons */
#prev, #next {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#prev:hover, #next:hover {
  background: rgba(79, 70, 229, 0.9);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

#prev:active, #next:active {
  transform: scale(0.95);
}


/* Slider Container */
.relative.max-w-5xl.mx-auto.overflow-hidden {
    position: relative;
}

/* Slider Track */
#slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

/* Individual Slides */
#slider img {
    flex-shrink: 0;
    width: 100%; /* Default for mobile */
}

/* Buttons - ensure they're clickable */
#prev, #next {
    z-index: 100;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #d1d5db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

#prev:hover, #next:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-50%) scale(1.1);
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    #slider img {
        width: 33.333%; /* 3 slides per view on desktop */
    }
    
    #prev, #next {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}
/*  