/* Blue Pixel Systems - Design System CSS */
@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@400;500;600;700&display=swap');

:root {
  /* Primary Colors */
  --primary-50: #E8F6FE;
  --primary-100: #B8E4FC;
  --primary-500: #2DA9F1;
  --primary-600: #1858B6;
  --primary-900: #1054B4;
  
  /* Neutrals */
  --neutral-50: #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #E5E5E5;
  --neutral-500: #787878;
  --neutral-700: #666666;
  --neutral-900: #1A1A1A;
  
  /* Background */
  --bg-page: #FAFAFA;
  --bg-surface: #FFFFFF;
  
  /* Semantic */
  --success: #16A34A;
  --warning: #CA8A04;
  --error: #DC2626;
  --info: #2DA9F1;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(16,84,180,0.05);
  --shadow-card: 0 2px 8px rgba(16,84,180,0.08), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 12px 24px rgba(16,84,180,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-modal: 0 24px 48px rgba(16,84,180,0.15), 0 12px 16px rgba(0,0,0,0.08);
  
  /* Typography */
  --font-family: 'Oxanium', 'Inter', system-ui, sans-serif;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  /* Primary Colors - Dark Theme */
  --primary-50: #1a2332;
  --primary-100: #2d3a4d;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-900: #1e40af;
  
  /* Neutrals - Dark Theme */
  --neutral-50: #1a1a1a;
  --neutral-100: #2d2d2d;
  --neutral-200: #404040;
  --neutral-500: #a3a3a3;
  --neutral-700: #d4d4d4;
  --neutral-900: #fafafa;
  
  /* Background - Dark Theme */
  --bg-page: #0f0f0f;
  --bg-surface: #1a1a1a;
  
  /* Semantic - Dark Theme */
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Shadows - Dark Theme */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.3);
  --shadow-card-hover: 0 12px 24px rgba(0,0,0,0.5), 0 4px 8px rgba(0,0,0,0.3);
  --shadow-modal: 0 24px 48px rgba(0,0,0,0.6), 0 12px 16px rgba(0,0,0,0.4);
}

/* Dark theme specific overrides */
[data-theme="dark"] body {
  color: #fafafa;
  background-color: var(--bg-page);
}

/* Dark theme heading elements - Enhanced contrast */
[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 {
  color: #ffffff;
  font-weight: 700;
}

/* Dark theme specific heading styling */
[data-theme="dark"] h1 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] h2 {
  color: #ffffff;
}

[data-theme="dark"] h3 {
  color: #ffffff;
}

[data-theme="dark"] h4 {
  color: #fafafa;
}

[data-theme="dark"] h5 {
  color: #fafafa;
}

[data-theme="dark"] h6 {
  color: #fafafa;
}

/* Dark theme paragraph text - Enhanced visibility */
[data-theme="dark"] p {
  color: #e5e5e5;
  line-height: 1.6;
}

/* Dark theme section title specific styling */
[data-theme="dark"] .section-title {
  color: #ffffff;
}

[data-theme="dark"] .section-title p {
  color: #e5e5e5;
}

/* Dark theme navbar specific overrides */
[data-theme="dark"] .navbar {
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
  border-bottom: 1px solid #404040;
}

[data-theme="dark"] .navbar-mobile {
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
  border-top: 1px solid #404040;
}

[data-theme="dark"] .navbar-nav a {
  color: #fafafa;
}

[data-theme="dark"] .navbar-nav a:hover,
[data-theme="dark"] .navbar-nav a.active {
  color: #3b82f6;
}

[data-theme="dark"] .navbar-mobile a {
  color: #fafafa;
  border-bottom: 1px solid #404040;
}

[data-theme="dark"] .navbar-mobile a:hover {
  color: #3b82f6;
  background: #2d2d2d;
}

/* Dark theme card overrides */
[data-theme="dark"] .card {
  background: #1a1a1a;
  border: 1px solid #404040;
  border-color: #00FFFF;
}

/* Dark theme section overrides */
[data-theme="dark"] .section-alt {
  background: #0f0f0f;
}

/* Dark theme button overrides */
[data-theme="dark"] .btn-primary {
  background: #3b82f6;
  border-color: #3b82f6;
}

[data-theme="dark"] .btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

[data-theme="dark"] .btn-secondary {
  color: #fafafa;
  border-color: #00FFFF;
  background: transparent;
}

[data-theme="dark"] .btn-secondary:hover {
  background: #2d2d2d;
  border-color: #00FFFF;
}

/* Dark theme form overrides */
[data-theme="dark"] .form-control {
  background: #1a1a1a;
  border-color: #404040;
  color: #fafafa;
}

[data-theme="dark"] .form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Dark theme alert overrides */
[data-theme="dark"] .alert-success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

[data-theme="dark"] .alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Dark theme dropdown overrides */
[data-theme="dark"] .dropdown-menu {
  background: #1a1a1a;
  border: 1px solid #404040;
}

[data-theme="dark"] .dropdown-menu a {
  color:#1a1a1a ;/*#fafafa;*/
}

[data-theme="dark"] .dropdown-menu a:hover {
  background: #2d2d2d;
  color: #3b82f6;
}

/* Additional Dark Theme Overrides */
[data-theme="dark"] .highlight-box {
  background: #2d2d2d;
  border: 1px solid #404040;
  color: #fafafa;
}

[data-theme="dark"] .feature-item {
  background: #1a1a1a;
  border: 1px solid #404040;
}

[data-theme="dark"] .feature-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .page-header {
  background: #1a1a1a;
  border-bottom: 1px solid #404040;
}

[data-theme="dark"] .breadcrumb a {
  color: #a3a3a3;
}

[data-theme="dark"] .breadcrumb a:hover {
  color: #3b82f6;
}

[data-theme="dark"] .section-title {
  color: #ffffff;
}

[data-theme="dark"] .section-title h2 {
  color: #ffffff;
  margin-bottom: 16px;
}

[data-theme="dark"] .section-title p {
  color: #e5e5e5;
  max-width: 640px;
  margin: 0 auto;
}

[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fafafa;
}

[data-theme="dark"] .footer {
  background: #0f0f0f;
  color: #fafafa;
}

[data-theme="dark"] .footer a {
  color: #a3a3a3;
}

[data-theme="dark"] .footer a:hover {
  color: #3b82f6;
}

[data-theme="dark"] .metric-card {
  background: #1a1a1a;
  border: 1px solid #00FFFF;
  color: #fafafa;
}

[data-theme="dark"] .timeline-item {
  background: #1a1a1a;
  border: 1px solid #404040;
  border-radius: 12px;
  color: #fafafa;
}

[data-theme="dark"] .auth-page {
  background: #0f0f0f;
}

[data-theme="dark"] .auth-card {
  background: #1a1a1a;
  border: 1px solid #404040;
  color: #fafafa;
}

[data-theme="dark"] .auth-link a {
  color: #3b82f6;
}

[data-theme="dark"] .contact-grid {
  background: #0f0f0f;
}

[data-theme="dark"] .contact-info {
  background: #1a1a1a;
  border: 1px solid #404040;
  border-radius: 12px;
}

[data-theme="dark"] .contact-item {
  color: #fafafa;
}

[data-theme="dark"] .icon {
  color: #3b82f6;
}

/* Form elements in dark theme */
[data-theme="dark"] label {
  color: #fafafa;
}

[data-theme="dark"] .form-error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Links in dark theme */
[data-theme="dark"] a {
  color: #3b82f6;
}

[data-theme="dark"] a:hover {
  color: #60a5fa;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 20px;
  line-height: 1.5;
  color: var(--neutral-900);
  background-color: var(--bg-page);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--neutral-900);
}

h1 { font-size: 48px; letter-spacing: -0.01em; }
h2 { font-size: 32px; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  
  /* Ensure navbar visibility on mobile */
  .navbar {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    border-bottom: 2px solid var(--neutral-200);
    opacity: 1;
    background-image: none;
  }
  
  .navbar-mobile {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    opacity: 1;
    background-image: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-900);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  /* REMOVED transition: all 0.25s ease; to prevent opacity issues */
  border-bottom: 1px solid var(--neutral-200);
  opacity: 1 !important;
  background-image: none;
  /* Prevent any transition from affecting opacity */
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo img {
  height: 48px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-nav a {
  color: var(--neutral-900);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--primary-600);
}

.navbar-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-600);
}

.navbar-auth {
  display: flex;
  gap: 12px;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--neutral-900);
}

/* Mobile Navigation - Hidden by default on desktop */
.navbar-mobile {
  display: none;
  /* Removed backdrop-filter to prevent background visibility */
}

@media (max-width: 1024px) {
  .navbar-nav, .navbar-auth {
    display: none;
  }
  
  .navbar-toggle {
    display: block;
  }
  
  .navbar-mobile {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 16px;
    z-index: 9999;
    border-top: 1px solid var(--neutral-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Ensure complete opacity - no transparency */
    opacity: 1;
    /* Block all background visibility */
    background-image: none;
  }
  
  .navbar-mobile.active {
    display: flex;
  }
  
  .navbar-mobile a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--neutral-900);
    border-bottom: 1px solid var(--neutral-200);
    transition: all 0.2s ease;
  }
  
  .navbar-mobile a:hover {
    color: var(--primary-600);
    padding-left: 8px;
    background: var(--neutral-50);
    border-radius: 8px;
  }
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  min-width: 200px;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--neutral-200);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
}

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

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--neutral-700);
}

.dropdown-menu a:hover {
  background: var(--primary-50);
  color: var(--primary-600);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-900);
  transform: translateY(-2px) scale(1.02);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-600);
  border-color: var(--primary-600);
}

.btn-secondary:hover {
  background: var(--primary-50);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

.btn:disabled {
  background: var(--neutral-200);
  color: var(--neutral-500);
  cursor: not-allowed;
  transform: none;
}

/* Hero Section */
.hero {
  padding: 160px 0 96px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg-surface) 100%);
}

.hero-home {
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-600) 50%, var(--primary-500) 100%);
  color: white;
}

.hero-home h1 {
  font-size: 72px;
  color: white;
  margin-bottom: 24px;
}

.hero-home p {
  font-size: 20px;
  max-width: 640px;
  margin: 0 auto 32px;
  opacity: 0.9;
}

.hero-logo {
  width: 120px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-home h1 {
    font-size: 48px;
  }
  
  .hero {
    padding: 120px 0 64px;
  }
}

/* Page Header */
.page-header {
  padding: 140px 0 64px;
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg-surface) 100%);
}

.page-header h1 {
  margin-bottom: 16px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--neutral-500);
  margin-bottom: 8px;
}

.breadcrumb a {
  color: var(--neutral-500);
}

.breadcrumb a:hover {
  color: var(--primary-600);
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-surface);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  margin-bottom: 16px;
}

.section-title p {
  color: var(--neutral-700);
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

/* Cards */
.card {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-card-hover);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;

}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary-600);
}

.card h3 {
  margin-bottom: 12px;
  color: var(--neutral-900);
}

.card p {
  color: var(--neutral-700);
  line-height: 1.6;
}

/* Dark theme card content */
[data-theme="dark"] .card h3 {
  color: #ffffff;
}

[data-theme="dark"] .card p {
  color: #e5e5e5;
}

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Metric Cards */
.metric-card {
  text-align: center;
  padding: 32px;
}

.metric-card .value {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-600);
  margin-bottom: 8px;
}

.metric-card .label {
  color: var(--neutral-700);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Dark theme metric cards */
[data-theme="dark"] .metric-card .label {
  color: #e5e5e5;
}

[data-theme="dark"] .metric-card .value {
  color: #3b82f6;
}

/* Product Cards */
.product-card {
  display: flex;
  flex-direction: column;
}

.product-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-50) 100%);
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image svg {
  width: 64px;
  height: 64px;
  stroke: var(--primary-600);
}

.product-card h3 {
  margin-bottom: 12px;
  color: var(--neutral-900);
}

.product-card p {
  color: var(--neutral-700);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Dark theme product cards */
[data-theme="dark"] .product-card {
  background: #1a1a1a;
  border: 1px solid #404040;
  border-color:#00ffff ;
}

[data-theme="dark"] .product-card:hover {
  border-color:#3b82f6 ;/*#3b82f6;*/
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .product-card-image {
  background: linear-gradient(135deg, #2d3a4d 0%, #1a2332 100%);
}

[data-theme="dark"] .product-card-image svg {
  stroke: #3b82f6;
}

[data-theme="dark"] .product-card h3 {
  color: #ffffff;
}

[data-theme="dark"] .product-card p {
  color: #e5e5e5;
}

.product-card .btn {
  align-self: flex-start;
}

/* Feature List */
.feature-list {
  display: grid;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-item .icon {
  width: 40px;
  height: 40px;
  background: var(--primary-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item .icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary-600);
}

.feature-item h4 {
  margin-bottom: 4px;
  color: var(--neutral-900);
}

.feature-item p {
  color: var(--neutral-700);
  font-size: 16px;
}

/* Dark theme feature items */
[data-theme="dark"] .feature-item {
  background: #1a1a1a;
  border: 1px solid #404040;
  border-radius: 8px;
}

[data-theme="dark"] .feature-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .feature-item h4 {
  color: #ffffff;
}

[data-theme="dark"] .feature-item p {
  color: #e5e5e5;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--neutral-900);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-family);
  font-size: 16px;
  border: 2px solid var(--neutral-200);
  border-radius: 12px;
  background: var(--neutral-100);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-500);
  background: var(--primary-50);
}

.form-control.error {
  border-color: var(--error);
}

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

.form-error {
  color: var(--error);
  font-size: 14px;
  margin-top: 4px;
}

.form-hint {
  color: var(--neutral-500);
  font-size: 12px;
  margin-top: 4px;
}

/* Auth Card */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-page);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow-modal);
  text-align: center;
}

.auth-card .logo {
  width: 80px;
  margin-bottom: 24px;
}

.auth-card h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.auth-card .subtitle {
  color: var(--neutral-700);
  margin-bottom: 32px;
}

/* Enhanced dark theme hero section text */
[data-theme="dark"] .hero-home h1 {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .hero-home p {
  color: #f0f0f0;
  opacity: 0.95;
}

/* Dark theme CTA section text */
[data-theme="dark"] .cta-section h2 {
  color: #ffffff;
  margin-bottom: 16px;
}

[data-theme="dark"] .cta-section p {
  color: #f0f0f0;
  opacity: 0.95;
  max-width: 640px;
  margin: 0 auto 32px;
}

/* Dark theme breadcrumb */
[data-theme="dark"] .breadcrumb {
  color: #a3a3a3;
}

[data-theme="dark"] .breadcrumb a {
  color: #a3a3a3;
}

[data-theme="dark"] .breadcrumb a:hover {
  color: #3b82f6;
}

/* Dark theme form hints */
[data-theme="dark"] .form-hint {
  color: #a3a3a3;
}

.auth-card .form-group {
  text-align: left;
}

.auth-card .btn {
  width: 100%;
  margin-top: 8px;
}

.auth-card .auth-link {
  margin-top: 24px;
  color: var(--neutral-700);
}

.auth-card .auth-link a {
  font-weight: 600;
}

/* Alert */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
}

.alert-success {
  background: #ECFDF5;
  color: var(--success);
  border: 1px solid var(--success);
}

.alert-error {
  background: #FEF2F2;
  color: var(--error);
  border: 1px solid var(--error);
}

.alert-warning {
  background: #FFFBEB;
  color: var(--warning);
  border: 1px solid var(--warning);
}

.alert-info {
  background: var(--primary-50);
  color: var(--primary-600);
  border: 1px solid var(--primary-500);
}

/* CTA Section */
.cta-section {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-600) 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 32px;
}

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

.cta-section .btn-primary:hover {
  background: var(--neutral-100);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item .icon {
  width: 48px;
  height: 48px;
  background: var(--primary-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item .icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary-600);
}

.contact-item h4 {
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--neutral-700);
}

/* Dark theme contact items */
[data-theme="dark"] .contact-item p {
  color: #e5e5e5;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  background: var(--neutral-900);
  color: white;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--neutral-500);
  font-size: 14px;
}

/* Dark theme footer content */
[data-theme="dark"] .footer-brand p {
  color: #a3a3a3;
}

[data-theme="dark"] .auth-card .subtitle {
  color: #e5e5e5;
}

.footer-links h4 {
  color: white;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--neutral-500);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: var(--neutral-500);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Dashboard */
.dashboard-header {
  padding: 120px 0 32px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--neutral-200);
}

.dashboard-content {
  padding: 48px 0;
}

.dashboard-stats {
  margin-bottom: 48px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 64px;
  height: 64px;
  background: var(--primary-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: 700;
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Highlight Box */
.highlight-box {
  background: var(--neutral-100);
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
}

.highlight-box h3 {
  margin-bottom: 16px;
}

/* Timeline */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 24px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-200);
}

.timeline-item {
  position: relative;
  text-align: center;
  flex: 1;
}

.timeline-item .number {
  width: 48px;
  height: 48px;
  background: var(--primary-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.timeline-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--neutral-700);
}

/* Dark theme timeline items */
[data-theme="dark"] .timeline-item p {
  color: #e5e5e5;
}

@media (max-width: 768px) {
  .timeline {
    flex-direction: column;
    gap: 32px;
  }
  
  .timeline::before {
    top: 0;
    bottom: 0;
    left: 24px;
    right: auto;
    width: 2px;
    height: auto;
  }
  
  .timeline-item {
    text-align: left;
    padding-left: 72px;
  }
  
  .timeline-item .number {
    position: absolute;
    left: 0;
    margin: 0;
  }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }

/* Extra small screens - ensure navbar visibility */
@media (max-width: 480px) {
  .navbar {
    background: #FFFFFF !important;
    height: 70px;
    border-bottom: 2px solid var(--neutral-200);
  }
  
  .navbar-logo img {
    height: 40px;
  }
  
  .navbar-mobile {
    top: 70px;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    /* Removed backdrop-filter to prevent background visibility */
    z-index: 9999;
    opacity: 1;
    background-image: none;
  }
  
  .navbar-mobile a {
    padding: 14px 0;
    font-size: 16px;
    color: var(--neutral-900) !important;
  }
  
  .navbar-mobile a:hover {
    background: var(--neutral-50);
    color: var(--primary-600) !important;
  }
}

/* Theme Toggle Button Styles */
.navbar-theme-toggle {
  margin-left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--neutral-200);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  color: var(--neutral-700);
  margin: 0 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.theme-toggle-btn:hover {
  background: var(--neutral-50);
  border-color: var(--primary-500);
  color: var(--primary-600);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

/* Sun and Moon icon visibility based on theme */
.sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.moon-icon {
  opacity: 0;
  transform: rotate(180deg);
  position: absolute;
}

/* When dark theme is active */
[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: rotate(-180deg);
}

[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

/* Mobile theme toggle */
.mobile-theme-toggle {
  padding: 16px 0;
  border-bottom: 1px solid var(--neutral-200);
  margin-bottom: 8px;
}

.mobile-theme-toggle .theme-toggle-btn {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  justify-content: flex-start;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--neutral-700);
}

.mobile-theme-toggle .theme-toggle-btn::before {
  content: "🌙 Dark Mode";
  margin-right: 12px;
  font-size: 18px;
}

.mobile-theme-toggle .theme-toggle-btn:hover {
  background: var(--neutral-50);
  color: var(--primary-600);
}

/* Dark theme mobile toggle */
[data-theme="dark"] .mobile-theme-toggle .theme-toggle-btn::before {
  content: "☀️ Light Mode";
}

[data-theme="dark"] .mobile-theme-toggle .theme-toggle-btn {
  color: var(--neutral-700);
}

[data-theme="dark"] .mobile-theme-toggle .theme-toggle-btn:hover {
  background: var(--neutral-100);
  color: var(--primary-600);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-theme-toggle {
    display: none;
  }
}

@media (min-width: 1025px) {
  .mobile-theme-toggle {
    display: none;
  }
}

/* Force navbar background override - ensure visibility across all devices */
@media screen and (max-width: 1200px) {
  .navbar {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    opacity: 1;
    background-image: none;
  }
  
  .navbar-mobile {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    opacity: 1;
    background-image: none;
    z-index: 9999;
  }
}

/* Additional override for any potential conflicts */
.navbar,
.navbar-mobile,
.dropdown-menu {
  background-color: #FFFFFF !important;
  background: #FFFFFF !important;
  opacity: 1 !important;
  background-image: none;
}

/* Force navbar opacity during scroll and transforms */
.navbar,
.navbar-mobile {
  /* Ensure opacity is never affected by JavaScript or CSS transforms */
  opacity: 1 !important;
  opacity: 1;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Prevent any transform from affecting opacity */
.navbar {
  /* Ensure navbar never disappears or becomes transparent */
  transform: none !important;
  will-change: auto;
}

/* Mobile menu always stays opaque */
.navbar-mobile {
  /* Force complete opacity during scroll and interactions */
  opacity: 1 !important;
  background: rgba(255, 255, 255, 1) !important;
  background-color: #FFFFFF !important;
}

/* Complete background blocking for mobile navbar */
@media screen and (max-width: 768px) {
  .navbar-mobile {
    /* Force complete opacity and background blocking */
    background: rgba(255, 255, 255, 1) !important;
    background-color: #FFFFFF !important;
    opacity: 1 !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    /* Additional scroll protection */
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
  }
}

/* Force navbar to stay visible during any scroll events */
@media screen {
  .navbar {
    /* Override any JavaScript scroll effects */
    transform: none !important;
    opacity: 1 !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    display: block !important;
    visibility: visible !important;
  }
}
