/* ===========================
   CyberGhar Academy - Main Styles
   =========================== */

:root {
  /* Color Palette - CyberGhar Fresh Design */
  --primary-color: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --secondary-color: #ec4899;
  --accent-color: #14b8a6;
  --accent-orange: #f97316;
  --success-color: #22c55e;
  --warning-color: #fbbf24;
  --danger-color: #ef4444;
  
  /* Neutral Colors */
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --bg-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --border-color: #e2e8f0;
  
  /* Typography */
  --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Professional Gradients */
  --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-blue: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  --gradient-pink: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  --gradient-teal: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  --gradient-orange: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

/* ===========================
   Reset & Base Styles
   =========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   Navigation
   =========================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 95vw;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar-menu {
  margin-left: auto;
  margin-right: 1rem;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
  min-width: 0;
}

.navbar-brand img {
  height: 60px;
  width: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  overflow: hidden;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-name {
  line-height: 1.1;
  font-size: 1.1rem !important;
  background: linear-gradient(135deg, #00d4ff, #0099cc, #0066ff) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  margin-bottom: 2px;
}

.brand-tagline {
  line-height: 1.1;
  font-size: 0.7rem !important;
  color: rgba(0, 0, 0, 0.7) !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Footer brand text styling - override for footer context */
.footer .brand-name {
  background: linear-gradient(135deg, #00d4ff, #0099cc, #0066ff) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.footer .brand-tagline {
  color: #6b7280 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-sm);
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.navbar-menu a {
  color: rgba(0, 0, 0, 0.8);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.9rem;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.navbar-menu a:hover {
  color: rgba(0, 212, 255, 1);
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-1px);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.navbar-menu a.active {
  color: white;
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.auth-buttons {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: var(--spacing-xs);
  background: none;
  border: none;
  z-index: 1001;
  position: relative;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

/* Hamburger animation */
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  line-height: 1.5;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: #6d28d9;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ===========================
   Container & Layout
   =========================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-2xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title h2 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================
   Hero Section - Modern Design
   =========================== */

.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
  color: white;
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 120vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 153, 204, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.05) 0%, transparent 70%);
  animation: gradientShift 20s ease infinite;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(45deg, transparent 30%, rgba(0, 212, 255, 0.03) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(0, 153, 204, 0.03) 50%, transparent 70%),
    linear-gradient(90deg, transparent 40%, rgba(0, 102, 255, 0.02) 50%, transparent 60%);
  animation: techScan 12s linear infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes techScan {
  0% { transform: translateX(-100%) translateY(-100%); }
  100% { transform: translateX(100%) translateY(100%); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes slideIn {
  0% { transform: translateX(-100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--spacing-xl) * 2) var(--spacing-md);
  width: 100%;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.8s ease;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero h1 .highlight {
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.35rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
  animation: fadeInUp 0.8s ease 0.2s both;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

/* ===========================
   Cards & Grid
   =========================== */

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: var(--spacing-md);
}

.card h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===========================
   Forms
   =========================== */

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

  .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  }

/* ===========================
   Modern Colorful Form Styling
   =========================== */

.auth-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem 2rem;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  box-sizing: border-box;
}

.auth-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

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

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

.auth-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3rem 3rem;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.8s ease-out;
}

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

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe);
  background-size: 400% 400%;
  animation: gradientShift 3s ease infinite;
  border-radius: 24px 24px 0 0;
}

.auth-card h2 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: -0.025em;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.auth-card .subtitle {
  color: #6b7280;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 500;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

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

.auth-form-group {
  margin-bottom: 1.5rem;
  position: relative;
  animation: fadeInUp 0.8s ease-out calc(0.4s + var(--delay, 0s)) both;
}

.auth-form-group:nth-child(1) { --delay: 0s; }
.auth-form-group:nth-child(2) { --delay: 0.1s; }
.auth-form-group:nth-child(3) { --delay: 0.2s; }

.auth-form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
}

.auth-form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  box-sizing: border-box;
}

.auth-form-control:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
}

.auth-form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 
    0 0 0 4px rgba(102, 126, 234, 0.1),
    0 8px 25px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 1);
}

.auth-form-control::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.auth-button {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  letter-spacing: 0.025em;
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.auth-button:hover {
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
  transform: translateY(-3px);
}

.auth-button:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.auth-button::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;
}

.auth-button:hover::before {
  left: 100%;
}

.auth-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.auth-link:hover {
  color: #5a67d8;
  text-decoration: none;
}

.auth-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.auth-link:hover::after {
  width: 100%;
}

.demo-accounts {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  border: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.demo-accounts h4 {
  color: #374151;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.demo-account {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.demo-account:hover {
  border-color: #667eea;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
}

.demo-account:last-child {
  margin-bottom: 0;
}

.demo-role {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.demo-credentials {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #6b7280;
  background: rgba(102, 126, 234, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

.auth-footer p {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

/* ===========================
   RESPONSIVE DESIGN SYSTEM
   =========================== */

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .section-title h2 {
    font-size: 3rem;
  }
}

/* Desktop (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
  .container {
    max-width: 1140px;
  }
}

/* Laptop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  .navbar-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 5rem;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
  }
  
  .navbar-menu.active {
    left: 0;
  }
  
  .navbar-menu li {
    margin: 1rem 0;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  /* Dashboard menu mobile styles */
  .dashboard-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 5rem;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
  }
  
  .dashboard-menu.active {
    left: 0;
  }
  
  .dashboard-menu li {
    margin: 1rem 0;
    width: 80%;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section-title h2 {
    font-size: 2.25rem;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .auth-section {
    padding: 6rem 1rem 3rem 1rem;
  }
  
  .auth-card {
    padding: 2rem 1.5rem;
    max-width: calc(100% - 2rem);
  }
}

/* Mobile Large (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .container {
    max-width: 540px;
  }
  
  .navbar {
    padding: 0.75rem 0;
  }
  
  .navbar-brand {
    gap: 0.5rem;
  }
  
  .brand-name {
    font-size: 1.1rem;
  }
  
  .brand-tagline {
    font-size: 0.7rem;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .navbar-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 5rem;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
  }
  
  .navbar-menu.active {
    left: 0;
  }
  
  .navbar-menu li {
    margin: 1rem 0;
  }
  
  .auth-buttons {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  /* Dashboard menu mobile styles */
  .dashboard-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 5rem;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
  }
  
  .dashboard-menu.active {
    left: 0;
  }
  
  .dashboard-menu li {
    margin: 1rem 0;
    width: 80%;
    text-align: center;
  }
  
  .dashboard-menu a {
    display: block;
    width: 100%;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card {
    padding: 1.25rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .auth-section {
    padding: 5rem 1rem 2rem 1rem;
  }
  
  .auth-card {
    padding: 1.75rem 1.25rem;
    max-width: calc(100% - 1rem);
  }
  
  .auth-card h2 {
    font-size: 1.75rem;
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  .form-control {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
  .container {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    gap: 0.375rem;
  }
  
  .navbar-brand img {
    height: 35px;
    width: 35px;
  }
  
  .brand-name {
    font-size: 1rem;
  }
  
  .brand-tagline {
    font-size: 0.65rem;
  }
  
  .mobile-toggle {
    display: flex;
    width: 24px;
    height: 18px;
  }
  
  .mobile-toggle span {
    height: 2px;
  }
  
  .navbar-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 90%;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 4rem;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
  }
  
  .navbar-menu.active {
    left: 0;
  }
  
  .navbar-menu li {
    margin: 0.75rem 0;
  }
  
  .navbar-menu a {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
  }
  
  .auth-buttons {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
  }
  
  /* Dashboard menu mobile styles */
  .dashboard-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 90%;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 4rem;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
  }
  
  .dashboard-menu.active {
    left: 0;
  }
  
  .dashboard-menu li {
    margin: 0.75rem 0;
    width: 85%;
    text-align: center;
  }
  
  .dashboard-menu a {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    display: block;
    width: 100%;
  }
  
  .auth-buttons .btn {
    width: 100%;
    text-align: center;
  }
  
  .hero {
    padding: 1.5rem 0;
  }
  
  .hero-content h1 {
    font-size: 1.875rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .card h3 {
    font-size: 1.25rem;
  }
  
  .card h4 {
    font-size: 1.1rem;
  }
  
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }
  
  .btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .auth-section {
    padding: 4rem 0.5rem 2rem 0.5rem;
  }
  
  .auth-card {
    padding: 1.5rem 1rem;
    max-width: 100%;
    border-radius: 15px;
  }
  
  .auth-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-control {
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
  }
  
  .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .demo-accounts {
    padding: 1rem;
    margin-top: 1rem;
  }
  
  .demo-account {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
    padding: 0.75rem;
  }
  
  .demo-credentials {
    font-size: 0.75rem;
    word-break: break-all;
  }
  
  .footer {
    padding: 2rem 0 1rem 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-section ul li {
    margin-bottom: 0.375rem;
  }
  
  .footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: 0.85rem;
  }
}

/* Mobile Navigation Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .navbar-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .card {
    transition: transform 0.2s ease;
  }
  
  .card:active {
    transform: scale(0.98);
  }
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
}

/* ===========================
   Footer
   =========================== */

.footer {
  background: #ffffff;
  color: var(--text-primary);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: var(--spacing-2xl);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  font-weight: 700;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-xs);
  color: var(--text-secondary);
}

.footer-section a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-decoration: none;
}

.social-links a:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.social-links a:hover svg {
  transform: scale(1.1);
}

/* Specific social media hover colors */
.social-links a[aria-label="Facebook"]:hover {
  background: #1877f2;
  color: white;
}

.social-links a[aria-label="Instagram"]:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.social-links a[aria-label="TikTok"]:hover {
  background: #000000;
  color: white;
}

.social-links a[aria-label="LinkedIn"]:hover {
  background: #0077b5;
  color: white;
}

/* ===========================
   Team Section
   =========================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.team-image {
  margin-bottom: 1.5rem;
  position: relative;
}

.team-image img {
  width: 200px;
  height: 250px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  border: 3px solid #f3f4f6;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-member:hover .team-image img {
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
}

.team-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.team-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.team-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.team-social {
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f8fafc;
  border-radius: 50%;
  color: #64748b;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  text-decoration: none;
}

.team-social a:hover {
  background: #0077b5;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

/* Responsive Team Grid */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .team-member {
    padding: 1.25rem;
  }
  
  .team-image img {
    width: 160px;
    height: 200px;
  }
  
  .team-info h3 {
    font-size: 1.125rem;
  }
  
  .team-role {
    font-size: 0.8rem;
  }
  
  .team-description {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .team-member {
    padding: 1rem;
  }
  
  .team-image img {
    width: 140px;
    height: 175px;
  }
}

/* ===========================
   Animations
   =========================== */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

/* ===========================
   Utilities
   =========================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }
.gap-3 { gap: var(--spacing-lg); }

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-primary { background: var(--primary-color); color: white; }
.badge-success { background: var(--success-color); color: white; }
.badge-warning { background: var(--warning-color); color: white; }
.badge-danger { background: var(--danger-color); color: white; }

.alert {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border-left: 4px solid var(--success-color);
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid var(--danger-color);
}

/* ===========================
   Tech Animation Styles
   =========================== */

.tech-animations {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.code-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.tech-element {
  z-index: 2;
}

/* Advanced Tech Animation Elements */
.tech-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.8) 0%, rgba(124, 58, 237, 0.4) 50%, transparent 100%);
  animation: pulse 3s ease-in-out infinite;
  filter: blur(1px);
}

.tech-ring {
  position: absolute;
  border: 2px solid rgba(79, 70, 229, 0.6);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.tech-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #4f46e5;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.8);
  animation: nodePulse 2s ease-in-out infinite;
}

.tech-connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.6), transparent);
  animation: dataFlow 4s linear infinite;
}

.tech-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
  min-width: 140px;
}

.tech-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.data-network {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.network-center {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(79, 70, 229, 0.3) 0%, rgba(124, 58, 237, 0.2) 50%, transparent 100%);
  border-radius: 50%;
  animation: networkPulse 4s ease-in-out infinite;
}

.network-ring {
  position: absolute;
  border: 1px solid rgba(79, 70, 229, 0.4);
  border-radius: 50%;
  animation: networkRotate 15s linear infinite;
}

.network-ring:nth-child(1) { width: 100px; height: 100px; top: 50px; left: 50px; }
.network-ring:nth-child(2) { width: 150px; height: 150px; top: 25px; left: 25px; }
.network-ring:nth-child(3) { width: 200px; height: 200px; top: 0; left: 0; }

.network-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #4f46e5;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.8);
  animation: nodeGlow 3s ease-in-out infinite;
}

/* Advanced Animation Keyframes */
@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes nodePulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 0.8; 
  }
  50% { 
    transform: scale(1.5); 
    opacity: 1; 
  }
}

@keyframes dataFlow {
  0% { 
    transform: translateX(-100%); 
    opacity: 0; 
  }
  50% { 
    opacity: 1; 
  }
  100% { 
    transform: translateX(100%); 
    opacity: 0; 
  }
}

@keyframes networkPulse {
  0%, 100% { 
    transform: translateY(-50%) scale(1); 
    opacity: 0.3; 
  }
  50% { 
    transform: translateY(-50%) scale(1.2); 
    opacity: 0.6; 
  }
}

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

@keyframes nodeGlow {
  0%, 100% { 
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 25px rgba(0, 212, 255, 1);
    transform: scale(1.2);
  }
}

/* Advanced Professional Video-like Elements */
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Matrix-style Digital Rain */
.matrix-rain {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  overflow: hidden;
}

.matrix-column {
  position: absolute;
  top: -100%;
  width: 2px;
  height: 200%;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(0, 212, 255, 0.1) 20%, 
    rgba(0, 212, 255, 0.3) 50%, 
    rgba(0, 212, 255, 0.1) 80%, 
    transparent 100%);
  animation: matrixFall 8s linear infinite;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: rgba(0, 212, 255, 0.6);
}

.matrix-column:nth-child(1) { left: 5%; animation-delay: 0s; }
.matrix-column:nth-child(2) { left: 10%; animation-delay: 0.5s; }
.matrix-column:nth-child(3) { left: 15%; animation-delay: 1s; }
.matrix-column:nth-child(4) { left: 20%; animation-delay: 1.5s; }
.matrix-column:nth-child(5) { left: 25%; animation-delay: 2s; }
.matrix-column:nth-child(6) { left: 30%; animation-delay: 2.5s; }
.matrix-column:nth-child(7) { left: 70%; animation-delay: 3s; }
.matrix-column:nth-child(8) { left: 75%; animation-delay: 3.5s; }
.matrix-column:nth-child(9) { left: 80%; animation-delay: 4s; }
.matrix-column:nth-child(10) { left: 85%; animation-delay: 4.5s; }
.matrix-column:nth-child(11) { left: 90%; animation-delay: 5s; }
.matrix-column:nth-child(12) { left: 95%; animation-delay: 5.5s; }

/* Advanced Tech Grid with 3D Effect */
.tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.15) 1px, transparent 1px),
    linear-gradient(rgba(0, 153, 204, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 153, 204, 0.05) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  animation: gridMove3D 25s linear infinite;
  opacity: 0.4;
  transform: perspective(1000px) rotateX(60deg);
}

/* Advanced Data Streams */
.data-stream {
  position: absolute;
  width: 3px;
  height: 150px;
  background: linear-gradient(to bottom, 
    transparent, 
    rgba(0, 212, 255, 0.2), 
    rgba(0, 212, 255, 0.8), 
    rgba(0, 153, 204, 0.8), 
    rgba(0, 102, 255, 0.6), 
    transparent);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  animation: dataStreamAdvanced 4s linear infinite;
}

.data-stream:nth-child(1) { left: 8%; top: 15%; animation-delay: 0s; }
.data-stream:nth-child(2) { left: 18%; top: 35%; animation-delay: 0.7s; }
.data-stream:nth-child(3) { left: 28%; top: 55%; animation-delay: 1.4s; }
.data-stream:nth-child(4) { left: 38%; top: 25%; animation-delay: 2.1s; }
.data-stream:nth-child(5) { left: 48%; top: 45%; animation-delay: 2.8s; }
.data-stream:nth-child(6) { left: 58%; top: 65%; animation-delay: 3.5s; }
.data-stream:nth-child(7) { left: 68%; top: 20%; animation-delay: 0.3s; }
.data-stream:nth-child(8) { left: 78%; top: 40%; animation-delay: 1.0s; }
.data-stream:nth-child(9) { left: 88%; top: 60%; animation-delay: 1.7s; }
.data-stream:nth-child(10) { left: 92%; top: 30%; animation-delay: 2.4s; }

/* Advanced Particle System */
.tech-particles {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.8), rgba(0, 153, 204, 0.4));
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
  animation: particleFloatAdvanced 10s ease-in-out infinite;
}

.tech-particles:nth-child(1) { left: 12%; top: 20%; animation-delay: 0s; }
.tech-particles:nth-child(2) { left: 22%; top: 40%; animation-delay: 1.2s; }
.tech-particles:nth-child(3) { left: 32%; top: 60%; animation-delay: 2.4s; }
.tech-particles:nth-child(4) { left: 42%; top: 30%; animation-delay: 3.6s; }
.tech-particles:nth-child(5) { left: 52%; top: 50%; animation-delay: 4.8s; }
.tech-particles:nth-child(6) { left: 62%; top: 70%; animation-delay: 6.0s; }
.tech-particles:nth-child(7) { left: 72%; top: 25%; animation-delay: 0.6s; }
.tech-particles:nth-child(8) { left: 82%; top: 45%; animation-delay: 1.8s; }
.tech-particles:nth-child(9) { left: 88%; top: 65%; animation-delay: 3.0s; }
.tech-particles:nth-child(10) { left: 95%; top: 35%; animation-delay: 4.2s; }

/* Holographic Effects */
.holographic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 153, 204, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.05) 0%, transparent 70%);
  animation: holographicShift 15s ease infinite;
  opacity: 0.6;
}

/* Neural Network Visualization */
.neural-network {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.neural-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.8), rgba(0, 153, 204, 0.4));
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
  animation: neuralPulse 3s ease-in-out infinite;
}

.neural-connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 212, 255, 0.3), 
    rgba(0, 153, 204, 0.5), 
    rgba(0, 212, 255, 0.3), 
    transparent);
  animation: neuralFlow 4s linear infinite;
}

/* Enterprise-Level Tech Elements */
.enterprise-tech-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.data-orb {
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, 
    rgba(0, 212, 255, 0.9) 0%, 
    rgba(0, 153, 204, 0.7) 30%, 
    rgba(0, 102, 255, 0.5) 60%, 
    transparent 100%);
  border-radius: 50%;
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.8),
    0 0 40px rgba(0, 212, 255, 0.4),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
  animation: dataOrbFloat 8s ease-in-out infinite;
}

.enterprise-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  background: 
    radial-gradient(circle, transparent 60%, rgba(0, 212, 255, 0.1) 100%);
  box-shadow: 
    0 0 30px rgba(0, 212, 255, 0.3),
    inset 0 0 30px rgba(0, 212, 255, 0.1);
  animation: enterpriseRingRotate 12s linear infinite;
}

.enterprise-ring::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 1px solid rgba(0, 153, 204, 0.2);
  border-radius: 50%;
  animation: enterpriseRingRotate 12s linear infinite reverse;
}

.enterprise-ring::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: rgba(0, 212, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
  animation: enterpriseRingRotate 12s linear infinite;
}

/* Advanced Animation Keyframes */
@keyframes matrixFall {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes gridMove3D {
  0% { transform: perspective(1000px) rotateX(60deg) translate(0, 0); }
  100% { transform: perspective(1000px) rotateX(60deg) translate(100px, 100px); }
}

@keyframes dataStreamAdvanced {
  0% { transform: translateY(-150px) scaleY(0.5); opacity: 0; }
  20% { opacity: 0.8; }
  50% { transform: translateY(50vh) scaleY(1); opacity: 1; }
  80% { opacity: 0.8; }
  100% { transform: translateY(100vh) scaleY(0.5); opacity: 0; }
}

@keyframes particleFloatAdvanced {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) scale(1) rotate(0deg); 
    opacity: 0.6; 
  }
  25% { 
    transform: translateY(-15px) translateX(10px) scale(1.1) rotate(90deg); 
    opacity: 0.8; 
  }
  50% { 
    transform: translateY(-25px) translateX(-5px) scale(1.3) rotate(180deg); 
    opacity: 1; 
  }
  75% { 
    transform: translateY(-15px) translateX(5px) scale(1.1) rotate(270deg); 
    opacity: 0.8; 
  }
}

@keyframes holographicShift {
  0%, 100% { 
    opacity: 0.4; 
    transform: scale(1) rotate(0deg); 
  }
  33% { 
    opacity: 0.7; 
    transform: scale(1.1) rotate(120deg); 
  }
  66% { 
    opacity: 0.5; 
    transform: scale(0.9) rotate(240deg); 
  }
}

@keyframes neuralPulse {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    opacity: 0.8; 
  }
  50% { 
    transform: scale(1.5); 
    box-shadow: 0 0 30px rgba(0, 212, 255, 1);
    opacity: 1; 
  }
}

@keyframes neuralFlow {
  0% { 
    transform: translateX(-100%) scaleX(0); 
    opacity: 0; 
  }
  50% { 
    transform: translateX(0%) scaleX(1); 
    opacity: 1; 
  }
  100% { 
    transform: translateX(100%) scaleX(0); 
    opacity: 0; 
  }
}

@keyframes dataOrbFloat {
  0%, 100% { 
    transform: translateY(0px) scale(1); 
    opacity: 0.7; 
  }
  25% { 
    transform: translateY(-20px) scale(1.2); 
    opacity: 1; 
  }
  50% { 
    transform: translateY(-30px) scale(1.4); 
    opacity: 0.9; 
  }
  75% { 
    transform: translateY(-15px) scale(1.1); 
    opacity: 0.8; 
  }
}

@keyframes enterpriseRingRotate {
  0% { 
    transform: rotate(0deg) scale(1); 
    opacity: 0.6; 
  }
  50% { 
    transform: rotate(180deg) scale(1.1); 
    opacity: 0.8; 
  }
  100% { 
    transform: rotate(360deg) scale(1); 
    opacity: 0.6; 
  }
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.125rem; }
  
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .navbar-menu.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Hide some tech elements on mobile for better performance */
  .tech-element:nth-child(4),
  .tech-element:nth-child(6) {
    display: none;
  }
  
  .code-lines {
    display: none; /* Hide code lines on mobile */
  }
  
  /* Hide complex animations on mobile */
  .data-network {
    display: none;
  }
  
  .tech-ring {
    display: none;
  }
  
  .tech-connection {
    display: none;
  }
  
  .tech-glow {
    display: none;
  }
  
  /* Hide advanced video-like elements on mobile for performance */
  .hero-video-overlay {
    display: none;
  }
  
  .matrix-rain {
    display: none;
  }
  
  .matrix-column {
    display: none;
  }
  
  .data-stream {
    display: none;
  }
  
  .tech-grid {
    display: none;
  }
  
  .tech-particles {
    display: none;
  }
  
  .holographic-overlay {
    display: none;
  }
  
  .neural-network {
    display: none;
  }
  
  .neural-node {
    display: none;
  }
  
  .neural-connection {
    display: none;
  }
  
  .enterprise-tech-elements {
    display: none;
  }
  
  .data-orb {
    display: none;
  }
  
  .enterprise-ring {
    display: none;
  }
  
  /* Keep only essential tech cards on mobile */
  .tech-card:nth-child(3),
  .tech-card:nth-child(4) {
    display: none;
  }
  
  /* Adjust hero content for mobile */
  .hero {
    height: 120vh;
    padding: 0;
    margin: 0;
  }
  
  /* Mobile navbar adjustments */
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar .container {
    max-width: 100vw;
    padding: 0 1rem;
  }
  
  /* Mobile logo adjustments */
  .navbar-brand img {
    height: 45px;
  }
  
  .navbar-menu {
    margin-right: 0.5rem;
  }
  
  /* Dashboard navbar mobile adjustments */
  .dashboard-nav .container {
    max-width: 100vw;
    padding: 0 1rem;
  }
  
  .dashboard-menu {
    margin-right: 0.5rem;
  }
  
  /* User profile mobile adjustments */
  .user-profile {
    margin-left: 0.5rem;
  }
  
  .profile-toggle {
    padding: 0.4rem 0.8rem;
  }
  
  .profile-name {
    display: none;
  }
  
  .profile-menu {
    right: -1rem;
    min-width: 180px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem !important;
  }
  
  .hero-content p {
    font-size: 1.1rem !important;
  }
  
  /* Mobile stats adjustments */
  .stats-section {
    padding: var(--spacing-xl) 0;
    margin: var(--spacing-xl) 0;
  }
  
  .stat-item {
    padding: var(--spacing-md);
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }
}

/* ===========================
   Statistics Section
   =========================== */

.stats-section {
  background: linear-gradient(135deg, 
    rgba(0, 212, 255, 0.05) 0%, 
    rgba(0, 153, 204, 0.03) 25%, 
    rgba(0, 102, 255, 0.02) 50%, 
    rgba(0, 153, 204, 0.03) 75%, 
    rgba(0, 212, 255, 0.05) 100%);
  padding: var(--spacing-2xl) 0;
  margin: var(--spacing-2xl) 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 153, 204, 0.015) 0%, transparent 50%);
  animation: gradientShift 20s ease infinite;
}

.stats-section .container {
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.stat-item:hover::before {
  left: 100%;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 212, 255, 0.3);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00d4ff, #0099cc, #0066ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  line-height: 1;
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

/* ===========================
   Dashboard Specific Styles
   =========================== */

.dashboard-nav {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: var(--spacing-sm) 0;
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
}

.dashboard-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 95vw;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 1rem;
}

.dashboard-nav .user-profile {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.dashboard-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-sm);
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 1rem;
}

.dashboard-menu a {
  color: rgba(0, 0, 0, 0.8);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.9rem;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.dashboard-menu a.active,
.dashboard-menu a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #00d4ff, #0099cc, #0066ff);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
  transform: translateY(-1px);
}

/* User Profile Section */
.user-profile {
  position: relative;
  margin-left: auto;
  margin-right: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.profile-dropdown {
  position: relative;
  display: inline-block;
}

.profile-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.profile-toggle:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #0099cc, #0066ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.profile-name {
  color: rgba(0, 0, 0, 0.8);
  font-weight: 500;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.dropdown-arrow {
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.profile-toggle.active .dropdown-arrow {
  transform: rotate(180deg);
}

.profile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.profile-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: rgba(0, 0, 0, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.profile-menu-item:hover {
  background: rgba(0, 212, 255, 0.1);
  color: #0066ff;
}

.profile-menu-item .icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.profile-divider {
  border: none;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0.5rem 0;
}

.logout-btn {
  color: #dc2626 !important;
}

.logout-btn:hover {
  background: rgba(220, 38, 38, 0.1) !important;
  color: #dc2626 !important;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.stat-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.stat-card h3 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xs);
  color: white;
}

.stat-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.leaderboard-table {
  width: 100%;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.leaderboard-table table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th {
  background: var(--primary-color);
  color: white;
  padding: var(--spacing-md);
  text-align: left;
  font-weight: 600;
}

.leaderboard-table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.leaderboard-table tr:hover {
  background: var(--bg-light);
}

.level-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.level-beginner { background: #dbeafe; color: #1e40af; }
.level-intermediate { background: #ddd6fe; color: #6d28d9; }
.level-advanced { background: #fef3c7; color: #92400e; }
.level-expert { background: #d1fae5; color: #065f46; }
.level-master { background: #fce7f3; color: #9f1239; }

/* ===========================
   FOR SCHOOLS PAGE - ENHANCED STYLING
   =========================== */

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

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

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Section Title Enhancement - For Schools Page Only */
.for-schools-page .section-title h2 {
  font-size: 2.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.2;
  animation: fadeInUp 0.6s ease-out;
}

.for-schools-page .section-title p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 500;
  animation: fadeInUp 0.8s ease-out;
}

/* Enhanced Card Styling - For Schools Page Only */
.for-schools-page .card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

.for-schools-page .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.for-schools-page .card:hover::before {
  left: 100%;
}

.for-schools-page .card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-light);
}

/* Card Icons - For Schools Page Only */
.for-schools-page .card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.for-schools-page .card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.for-schools-page .card h4 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.for-schools-page .card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.for-schools-page .card ul {
  list-style: none;
  padding: 0;
}

.for-schools-page .card ul li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  position: relative;
  padding-left: 1.5rem;
}

.for-schools-page .card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Professional Table Styling - For Schools Page Only */
.for-schools-page table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease-out;
}

.for-schools-page table thead tr {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.for-schools-page table th {
  padding: 1.5rem;
  text-align: left;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.for-schools-page table td {
  padding: 1.25rem 1.5rem;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 500;
}

.for-schools-page table tbody tr {
  transition: all 0.3s ease;
}

.for-schools-page table tbody tr:hover {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.05), rgba(236, 72, 153, 0.05));
  transform: scale(1.01);
}

.for-schools-page table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.5);
}

/* Gradient Cards with Border - For Schools Page Only */
.for-schools-page .card[style*="border-left"] {
  border-left-width: 5px !important;
  position: relative;
}

.for-schools-page .card[style*="border-left"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0%;
  background: inherit;
  transition: height 0.4s ease;
  border-radius: 16px 0 0 16px;
}

.for-schools-page .card[style*="border-left"]:hover::after {
  height: 100%;
}

/* Grid Layouts - For Schools Page Only */
.for-schools-page .grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  animation: fadeInUp 0.6s ease-out;
}

.for-schools-page .grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  animation: fadeInUp 0.6s ease-out;
}

/* Enhanced Hero for For Schools Page Only */
.for-schools-page .hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  position: relative;
  overflow: hidden;
}

.for-schools-page .hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

.for-schools-page .hero-content {
  position: relative;
  z-index: 1;
}

.for-schools-page .hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out;
}

.for-schools-page .hero-content p {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease-out;
}

/* Button Enhancements - For Schools Page Only (excluding navbar buttons) */
.for-schools-page .hero .btn,
.for-schools-page .section .btn,
.for-schools-page form .btn {
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

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

.for-schools-page .hero .btn:hover::before,
.for-schools-page .section .btn:hover::before,
.for-schools-page form .btn:hover::before {
  width: 300px;
  height: 300px;
}

.for-schools-page .hero .btn:hover,
.for-schools-page .section .btn:hover,
.for-schools-page form .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Highlight Cards - For Schools Page Only */
.for-schools-page .card[style*="background: linear-gradient"] {
  position: relative;
  overflow: hidden;
}

.for-schools-page .card[style*="background: linear-gradient"]::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

/* Section Backgrounds - For Schools Page Only */
.for-schools-page .section {
  padding: 5rem 0;
  position: relative;
}

.for-schools-page .section[style*="background: var(--bg-light)"] {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
}

/* Responsive Typography - For Schools Page Only */
@media (max-width: 768px) {
  .for-schools-page .section-title h2 {
    font-size: 2rem;
  }
  
  .for-schools-page .section-title p {
    font-size: 1.1rem;
  }
  
  .for-schools-page .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .for-schools-page .hero-content p {
    font-size: 1.2rem;
  }
  
  .for-schools-page .card h3 {
    font-size: 1.3rem;
  }
  
  .for-schools-page .grid-2,
  .for-schools-page .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .for-schools-page table th,
  .for-schools-page table td {
    padding: 1rem;
    font-size: 0.95rem;
  }
}

/* Loading Animation for Cards - For Schools Page Only */
.for-schools-page .card {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Checkmark Style for Benefits - For Schools Page Only */
.for-schools-page .card h3:has(+ p)::before {
  display: none;
}

.for-schools-page .card h3[style*="color: var(--primary-color)"]::before,
.for-schools-page .card h3[style*="color: var(--secondary-color)"]::before {
  display: none;
}

/* Enhanced Form Styling - For Schools Page Only */
.for-schools-page .form-control {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
}

.for-schools-page .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.for-schools-page .form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* Alert Styling - For Schools Page Only */
.for-schools-page .alert {
  border-radius: 12px;
  padding: 1.25rem;
  font-weight: 500;
  font-size: 1.05rem;
  animation: slideInRight 0.4s ease-out;
}

.for-schools-page .alert-success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border-left: 4px solid #10b981;
}

.for-schools-page .alert-error {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

/* ===========================
   DASHBOARD RESPONSIVE STYLES
   =========================== */

/* Tablet and iPad (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .dashboard-nav .container {
    padding: 0 1.5rem;
    max-width: 95vw;
  }

  .dashboard-menu {
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .dashboard-menu::-webkit-scrollbar {
    display: none;
  }

  .dashboard-menu a {
    font-size: 0.85rem;
    padding: 0.5rem 0.875rem;
  }

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

  .stat-card {
    padding: 1.5rem;
  }

  .stat-card h3 {
    font-size: 2rem;
  }

  .leaderboard-table {
    overflow-x: auto;
  }

  .announcements-section {
    padding: 1.5rem;
  }
}

/* Mobile Large (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .dashboard-nav .container {
    padding: 0 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .dashboard-menu {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    margin-left: 0;
    margin-right: 0;
    padding: 0.5rem;
    scrollbar-width: thin;
  }

  .dashboard-menu a {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
  }

  .user-profile {
    margin-left: 0;
    width: 100%;
  }

  .profile-dropdown {
    width: 100%;
  }

  .profile-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.25rem;
  }

  .stat-card h3 {
    font-size: 1.875rem;
  }

  .leaderboard-table {
    overflow-x: auto;
  }

  .leaderboard-table table {
    min-width: 600px;
  }

  .announcements-section {
    padding: 1rem;
  }

  .announcement-card {
    padding: 1rem;
  }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
  .dashboard-nav {
    padding: 0.75rem 0;
  }

  .dashboard-nav .container {
    padding: 0 0.75rem;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .dashboard-menu {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    margin: 0;
    padding: 0.375rem 0.5rem;
    gap: 0.375rem;
    scrollbar-width: thin;
    flex-wrap: nowrap;
  }

  .dashboard-menu a {
    font-size: 0.75rem;
    padding: 0.5rem 0.625rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .user-profile {
    margin: 0;
    width: 100%;
  }

  .profile-dropdown {
    width: 100%;
  }

  .profile-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
  }

  .profile-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .profile-name {
    font-size: 0.875rem;
  }

  .profile-role {
    font-size: 0.7rem;
  }

  .profile-menu {
    right: 0;
    left: auto;
    min-width: 200px;
    margin-top: 0.5rem;
  }

  .profile-menu a {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
    margin-bottom: var(--spacing-lg);
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.375rem;
  }

  .stat-card p {
    font-size: 0.8rem;
  }

  .leaderboard-table {
    overflow-x: auto;
    border-radius: var(--radius-md);
  }

  .leaderboard-table table {
    min-width: 550px;
    font-size: 0.85rem;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 0.75rem 0.5rem;
  }

  .announcements-section {
    padding: 0.875rem;
  }

  .announcements-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .announcement-card {
    padding: 0.875rem;
    margin-bottom: 0.875rem;
  }

  .announcement-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .announcement-card p {
    font-size: 0.875rem;
  }

  .announcement-meta {
    font-size: 0.75rem;
    margin-top: 0.5rem;
  }

  /* Dashboard content sections */
  .dashboard-content {
    padding: 0.875rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  /* Quiz and Lab cards */
  .quiz-card,
  .lab-card {
    padding: 1rem;
    margin-bottom: 0.875rem;
  }

  .quiz-card h3,
  .lab-card h3 {
    font-size: 1.1rem;
  }

  /* Profile page adjustments */
  .profile-section {
    padding: 1rem;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-info {
    align-items: center;
  }
}

/* Extra small devices (up to 375px) */
@media (max-width: 375px) {
  .dashboard-menu a {
    font-size: 0.7rem;
    padding: 0.375rem 0.5rem;
  }

  .profile-toggle {
    padding: 0.5rem 0.75rem;
  }

  .stat-card h3 {
    font-size: 1.5rem;
  }

  .leaderboard-table table {
    font-size: 0.8rem;
  }

  .announcement-card h3 {
    font-size: 1rem;
  }
}

/* ===========================
   BLOG PAGES RESPONSIVE STYLES
   =========================== */

/* Tablet and iPad (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .blog-card {
    padding: 1.5rem;
  }

  .blog-card h3 {
    font-size: 1.5rem;
  }

  .blog-post-header h1 {
    font-size: 2.25rem;
  }

  .blog-post-content {
    padding: 1.5rem;
  }

  .blog-post-content h2 {
    font-size: 1.75rem;
  }

  .blog-post-content h3 {
    font-size: 1.5rem;
  }
}

/* Mobile Large (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .blog-section {
    padding: 2rem 0;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-card {
    padding: 1.25rem;
  }

  .blog-card h3 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
  }

  .blog-card p {
    font-size: 0.9rem;
  }

  .blog-meta {
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .blog-tags {
    gap: 0.375rem;
    flex-wrap: wrap;
  }

  .blog-tag {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
  }

  .blog-post-header {
    padding: 2rem 1rem;
  }

  .blog-post-header h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .blog-post-meta {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .blog-post-content {
    padding: 1.25rem;
  }

  .blog-post-content h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
  }

  .blog-post-content h3 {
    font-size: 1.25rem;
    margin-top: 1.25rem;
  }

  .blog-post-content p {
    font-size: 0.95rem;
  }

  .blog-post-content pre {
    padding: 0.875rem;
    font-size: 0.8rem;
  }

  .blog-post-content img {
    max-width: 100%;
    height: auto;
  }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
  .blog-section {
    padding: 1.5rem 0;
  }

  .blog-header h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .blog-filter {
    flex-direction: column;
    gap: 0.75rem;
  }

  .filter-tags {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .filter-tag {
    padding: 0.5rem 0.875rem;
    font-size: 0.85rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .blog-card {
    padding: 1rem;
  }

  .blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.625rem;
    line-height: 1.3;
  }

  .blog-card p {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .blog-meta {
    font-size: 0.75rem;
    flex-wrap: wrap;
    gap: 0.375rem;
  }

  .blog-tags {
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
  }

  .blog-tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }

  .read-more {
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
  }

  /* Blog Post Page */
  .blog-post-header {
    padding: 1.5rem 0.875rem;
  }

  .blog-post-header h1 {
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .blog-post-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.8rem;
  }

  .blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
  }

  .blog-post-thumbnail {
    max-height: 250px;
  }

  .blog-post-content {
    padding: 1rem 0.875rem;
  }

  .blog-post-content h2 {
    font-size: 1.375rem;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }

  .blog-post-content h3 {
    font-size: 1.125rem;
    margin-top: 1rem;
    margin-bottom: 0.625rem;
  }

  .blog-post-content h4 {
    font-size: 1rem;
    margin-top: 0.875rem;
  }

  .blog-post-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .blog-post-content ul,
  .blog-post-content ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
  }

  .blog-post-content li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .blog-post-content blockquote {
    padding: 0.875rem;
    margin: 1rem 0;
    font-size: 0.95rem;
  }

  .blog-post-content pre {
    padding: 0.75rem;
    font-size: 0.75rem;
    overflow-x: auto;
    border-radius: 6px;
  }

  .blog-post-content code {
    font-size: 0.8rem;
    padding: 0.125rem 0.375rem;
  }

  .blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
  }

  .blog-post-content table {
    display: block;
    overflow-x: auto;
    font-size: 0.85rem;
  }

  .blog-post-footer {
    padding: 1rem 0.875rem;
    flex-direction: column;
    gap: 1rem;
  }

  .back-to-blog {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }
}

/* Extra small devices (up to 375px) */
@media (max-width: 375px) {
  .blog-header h1 {
    font-size: 1.5rem;
  }

  .blog-card h3 {
    font-size: 1.125rem;
  }

  .blog-post-header h1 {
    font-size: 1.5rem;
  }

  .blog-post-content h2 {
    font-size: 1.25rem;
  }

  .blog-post-content h3 {
    font-size: 1.05rem;
  }

  .blog-post-content p,
  .blog-post-content li {
    font-size: 0.875rem;
  }
}

/* ===========================
   ENHANCED MOBILE MENU - RESPONSIVE FOR ALL DEVICES
   =========================== */

/* Mobile menu overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Enhanced mobile toggle - always visible on mobile */
@media (max-width: 991px) {
  .mobile-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #4f46e5;
    border-radius: 8px;
    z-index: 1001;
    position: relative;
    width: 44px;
    height: 44px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .mobile-toggle:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #3730a3;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
  }
  
  .mobile-toggle span {
    width: 20px;
    height: 3px;
    background: #4f46e5;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
  
  .mobile-toggle:hover span {
    background: #3730a3;
  }
  
  /* Hide regular navbar menu on mobile */
  .navbar-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateX(-100%) !important;
  }
  
  .dashboard-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateX(-100%) !important;
  }
}

/* Mobile menu active state */
@media (max-width: 991px) {
  .navbar-menu.active {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 85% !important;
    max-width: 400px !important;
    height: 100vh !important;
    background: #ffffff !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding: 80px 30px 30px 30px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3) !important;
    z-index: 1001 !important;
    border-right: 2px solid #e5e7eb !important;
    overflow-y: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
  
  .dashboard-menu.active {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 85% !important;
    max-width: 400px !important;
    height: 100vh !important;
    background: #ffffff !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding: 80px 30px 30px 30px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3) !important;
    z-index: 1001 !important;
    border-right: 2px solid #e5e7eb !important;
    overflow-y: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
  
  .navbar-menu.active li,
  .dashboard-menu.active li {
    margin: 0 !important;
    width: 100% !important;
    text-align: left !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .navbar-menu.active a,
  .dashboard-menu.active a {
    display: block !important;
    width: 100% !important;
    padding: 15px 0 !important;
    font-size: 1.2rem !important;
    color: #374151 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
  }
  
  .navbar-menu.active a:hover,
  .dashboard-menu.active a:hover {
    color: #4f46e5 !important;
    background: #f8fafc !important;
    padding-left: 15px !important;
  }
  
  .navbar-menu.active .auth-buttons,
  .dashboard-menu.active .auth-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    margin-top: 30px !important;
    width: 100% !important;
    padding-top: 20px !important;
    border-top: 2px solid #e5e7eb !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .navbar-menu.active .auth-buttons .btn,
  .dashboard-menu.active .auth-buttons .btn {
    width: 100% !important;
    text-align: center !important;
    padding: 15px 20px !important;
    font-size: 1.1rem !important;
    border-radius: 8px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Hamburger animation when active */
.mobile-toggle.active {
  background: rgba(255, 255, 255, 1);
  border-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.mobile-toggle.active span {
  background: #dc2626;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Specific breakpoints for different devices */

/* iPhone SE, iPhone 5/5s (320px) */
@media (max-width: 320px) {
  .navbar-menu.active,
  .dashboard-menu.active {
    width: 95%;
    padding: 70px 20px 20px 20px;
  }
  
  .navbar-menu.active a,
  .dashboard-menu.active a {
    font-size: 1.1rem;
    padding: 12px 0;
  }
}

/* iPhone 6/7/8 (375px) */
@media (min-width: 321px) and (max-width: 375px) {
  .navbar-menu.active,
  .dashboard-menu.active {
    width: 90%;
    padding: 75px 25px 25px 25px;
  }
}

/* iPhone 6/7/8 Plus, iPhone X/XS (414px) */
@media (min-width: 376px) and (max-width: 414px) {
  .navbar-menu.active,
  .dashboard-menu.active {
    width: 88%;
    padding: 80px 30px 30px 30px;
  }
}

/* Small Android devices (360px) */
@media (min-width: 415px) and (max-width: 480px) {
  .navbar-menu.active,
  .dashboard-menu.active {
    width: 85%;
    padding: 80px 30px 30px 30px;
  }
}

/* Large Android devices (768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .navbar-menu.active,
  .dashboard-menu.active {
    width: 80%;
    max-width: 350px;
    padding: 80px 30px 30px 30px;
  }
  
  .navbar-menu.active a,
  .dashboard-menu.active a {
    font-size: 1.3rem;
    padding: 18px 0;
  }
}

/* iPad (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .navbar-menu.active,
  .dashboard-menu.active {
    width: 70%;
    max-width: 400px;
    padding: 80px 40px 40px 40px;
  }
  
  .navbar-menu.active a,
  .dashboard-menu.active a {
    font-size: 1.4rem;
    padding: 20px 0;
  }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Smooth transitions for all mobile devices */
@media (max-width: 991px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  .mobile-toggle {
    -webkit-tap-highlight-color: transparent;
  }
  
  .navbar-menu.active,
  .dashboard-menu.active {
    -webkit-overflow-scrolling: touch;
  }
}

/* Force mobile toggle visibility on all navbar types */
@media (max-width: 991px) {
  .navbar .mobile-toggle,
  .dashboard-nav .mobile-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1002 !important;
  }
  
  /* Ensure it's positioned correctly in navbar */
  .navbar .container,
  .dashboard-nav .container {
    position: relative;
  }
  
  /* Make sure navbar has proper positioning for mobile toggle */
  .navbar {
    position: relative;
  }
}

/* Additional visibility enhancements */
@media (max-width: 991px) {
  .mobile-toggle {
    /* High contrast colors for maximum visibility */
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #4f46e5 !important;
    box-shadow: 
      0 4px 12px rgba(79, 70, 229, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.8) !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 8px !important;
  }
  
  .mobile-toggle span {
    background: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
  }
  
  /* Ensure visibility on dark backgrounds */
  .navbar.scrolled .mobile-toggle,
  .dashboard-nav .mobile-toggle {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: #4f46e5 !important;
  }
  
  /* Normal styling for mobile toggle */
  .navbar .mobile-toggle {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #4f46e5 !important;
    box-shadow: 
      0 4px 12px rgba(79, 70, 229, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.8) !important;
  }
  
  .navbar .mobile-toggle span {
    background: #4f46e5 !important;
  }
}

