/* assets/css/style.css */
/* Modern Liquid-Glass Theme for Aarnova Academy */

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

/* CSS Variables */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Color Palette - Dark Mode Default */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --glass-bg: rgba(15, 23, 42, 0.45);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-glow: rgba(0, 198, 255, 0.12);
  --glass-navbar-bg: rgba(15, 23, 42, 0.65);
  
  --accent-cyan: #00C6FF;
  --accent-blue: #0072FF;
  --accent-teal: #00D4AA;
  --accent-gradient: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
  --accent-gradient-hover: linear-gradient(135deg, #0072FF 0%, #00C6FF 100%);
  --accent-teal-gradient: linear-gradient(135deg, #00D4AA 0%, #0072FF 100%);
  
  --shadow-color: rgba(0, 0, 0, 0.4);
  --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

[data-theme="light"] {
  /* Color Palette - Light Mode Override */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(15, 23, 42, 0.06);
  --glass-glow: rgba(0, 114, 255, 0.06);
  --glass-navbar-bg: rgba(248, 250, 252, 0.7);
  
  --shadow-color: rgba(15, 23, 42, 0.05);
  --shadow-premium: 0 8px 32px 0 rgba(15, 23, 42, 0.08);
}

/* Base resets & layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.3s ease;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Liquid Animated Mesh Background */
.mesh-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--bg-primary);
  transition: background-color 0.5s ease;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  mix-blend-mode: screen;
  animation: float-blob 20s infinite alternate ease-in-out;
  transition: opacity 0.5s ease;
}

[data-theme="light"] .mesh-blob {
  opacity: 0.25;
  mix-blend-mode: multiply;
  filter: blur(140px);
}

.blob-1 {
  background: var(--accent-cyan);
  width: 500px;
  height: 500px;
  top: -10%;
  left: -10%;
  animation-duration: 25s;
}

.blob-2 {
  background: var(--accent-blue);
  width: 600px;
  height: 600px;
  bottom: -10%;
  right: -10%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.blob-3 {
  background: var(--accent-teal);
  width: 450px;
  height: 450px;
  top: 40%;
  left: 50%;
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes float-blob {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(50px, -80px) scale(1.1) rotate(120deg);
  }
  66% {
    transform: translate(-40px, 60px) scale(0.95) rotate(240deg);
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(360deg);
  }
}

/* Floating Particles Canvas overlay */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Glassmorphism Classes */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(0, 198, 255, 0.25);
  box-shadow: 0 12px 40px 0 var(--glass-glow);
  transform: translateY(-5px);
}

/* Navbar customization */
.glass-navbar {
  background: var(--glass-navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
  z-index: 1030;
}

.glass-navbar.navbar-scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background: var(--bg-primary);
  box-shadow: var(--shadow-premium);
}

.navbar-brand img {
  height: 42px;
  transition: var(--transition-smooth);
}

.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-fast);
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan) !important;
  background: rgba(0, 198, 255, 0.08);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
}

/* Premium Buttons */
.btn-premium {
  background: var(--accent-gradient);
  border: none;
  color: var(--btn-text) !important;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient-hover);
  opacity: 0;
  z-index: -1;
  transition: var(--transition-smooth);
  border-radius: 30px;
}

.btn-premium:hover::after {
  opacity: 1;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 198, 255, 0.5);
}

.btn-premium-outline {
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--text-primary) !important;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  transition: var(--transition-smooth);
}

.btn-premium-outline:hover {
  background: rgba(0, 198, 255, 0.1);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  color: var(--accent-cyan) !important;
}

/* Form Styles */
.glass-form .form-control, .glass-form .form-select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: var(--transition-smooth);
}

[data-theme="light"] .glass-form .form-control, [data-theme="light"] .glass-form .form-select {
  background: rgba(0, 0, 0, 0.02);
}

.glass-form .form-control:focus, .glass-form .form-select:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--glass-glow);
  color: var(--text-primary);
}

/* Text Accent & Gradients */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Hero Section */
.hero-section {
  padding: 10rem 0 6rem 0;
  position: relative;
}

.floating-card {
  animation: float-card 6s infinite ease-in-out;
}

.floating-card-delay-1 {
  animation: float-card 6s infinite ease-in-out;
  animation-delay: 2s;
}

.floating-card-delay-2 {
  animation: float-card 6s infinite ease-in-out;
  animation-delay: 4s;
}

@keyframes float-card {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Statistics Section */
.stats-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

/* Featured Courses on Home Page */
.course-card-img {
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  position: relative;
  background-color: var(--bg-secondary);
}

.course-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border);
  color: var(--accent-cyan);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Categories page filter list */
.category-tab {
  cursor: pointer;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition-fast);
  background: var(--glass-bg);
  white-space: nowrap;
}

.category-tab:hover, .category-tab.active {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
}

/* Certificate Verification Success Badge */
.success-badge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.success-badge {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(0, 212, 170, 0.15);
  border: 2px solid var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  animation: pulse-success 2s infinite;
}

.success-badge i {
  font-size: 3rem;
  color: var(--accent-teal);
}

@keyframes pulse-success {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(0, 212, 170, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0); }
}

/* Footer Section */
footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
}

[data-theme="light"] footer {
  background: rgba(248, 250, 252, 0.9);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  margin-right: 0.5rem;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--accent-gradient);
  color: white;
  transform: translateY(-2px);
}

/* Sticky Bottom Mobile CTA styling */
.mobile-bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass-navbar-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid var(--glass-border);
  padding: 0.75rem 1rem;
  z-index: 1000;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-cta {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
  }
  
  body {
    padding-bottom: 70px; /* Space for the bottom CTA */
  }
}

/* Admin Panel Styles */
.admin-sidebar {
  min-height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--glass-border);
}

.admin-nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 0.25rem;
  transition: var(--transition-fast);
}

.admin-nav-link i {
  width: 24px;
}

.admin-nav-link:hover, .admin-nav-link.active {
  background: var(--accent-gradient);
  color: white !important;
}

.admin-header {
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
}

/* Custom Alert Styling */
.glass-alert {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 12px;
}

.glass-alert-success {
  border-color: var(--accent-teal);
  background: rgba(0, 212, 170, 0.1);
}

.glass-alert-danger {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* User Valid & Invalid styling for premium modern feedback loops */
.glass-form input:user-invalid, 
.glass-form select:user-invalid, 
.glass-form textarea:user-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25) !important;
  background: rgba(239, 68, 68, 0.05) !important;
}

.glass-form input:required:user-valid, 
.glass-form select:required:user-valid, 
.glass-form textarea:required:user-valid {
  border-color: var(--accent-teal) !important;
  box-shadow: 0 0 10px rgba(0, 212, 170, 0.25) !important;
}


