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

/* Common glassmorphism and button base styles */
.nav,
.container,
.data-viewer,
.stats,
.export-section {
  backdrop-filter: blur(15px);
  border-radius: 16px;
  transition: all 0.3s ease;
}
.btn-primary,
.btn-secondary,
.btn-success,
.btn-export {
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  padding: 20px;
  overflow-x: hidden;
  transition: all 0.5s ease;
}

body.light-mode {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
}

/* Navigation */
.nav {
  max-width: 1400px;
  margin: 0 auto 20px auto;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.light-mode .nav {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

body.light-mode .nav-brand {
  color: #212529;
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

body.light-mode .nav-link {
  color: #495057;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 1);
}

body.light-mode .nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #212529;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: containerFloat 6s ease-in-out infinite;
  transition: all 0.5s ease;
}

body.light-mode .container {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: white;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

body.light-mode .header {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shimmer 3s infinite;
}

.header-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 15px;
  font-weight: 200;
  letter-spacing: -1px;
  background: linear-gradient(45deg, #fff, #f0f0f0, #fff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 4s ease-in-out infinite;
  padding-right: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.logo-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.logo:hover .logo-svg {
  transform: scale(1.1) rotate(5deg);
}

.mode-toggle {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 12px 20px;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 120px;
  justify-content: center;
}

.mode-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.mode-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.light-mode .mode-toggle::before {
  left: calc(100% - 28px);
  background: #667eea;
}

body.light-mode .mode-toggle {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: white;
}

body.light-mode .mode-toggle:hover {
  background: rgba(0, 0, 0, 0.15);
}

.header p {
  opacity: 0.9;
  font-size: 1.2rem;
  font-weight: 300;
  animation: fadeInUp 1s ease 0.5s both;
  max-width: 800px;
  margin: 0 auto;
}

/* Comprehensive Feature Overview */
.hero-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

body.light-mode .hero-content {
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

body.light-mode .hero-card {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

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

.hero-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body.light-mode .hero-card:hover {
  background: rgba(0, 0, 0, 0.05);
}

.hero-card h3 {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.4rem;
  margin-bottom: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

body.light-mode .hero-card h3 {
  color: #212529;
}

.hero-card .icon {
  font-size: 1.8rem;
  opacity: 0.8;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-size: 1.05rem;
}

body.light-mode .hero-card p {
  color: #495057;
}

.use-cases {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .use-cases {
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.use-cases h2 {
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: 600;
}

body.light-mode .use-cases h2 {
  color: #212529;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.use-case-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

body.light-mode .use-case-item {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.use-case-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
}

body.light-mode .use-case-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.use-case-item h4 {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 1.1rem;
}

body.light-mode .use-case-item h4 {
  color: #212529;
}

.use-case-item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

body.light-mode .use-case-item p {
  color: #6c757d;
}

.format-selector {
  padding: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

body.light-mode .format-selector {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.format-tabs {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px;
  border-radius: 16px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

body.light-mode .format-tabs {
  background: rgba(0, 0, 0, 0.05);
}

.format-tab {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

body.light-mode .format-tab {
  color: #495057;
}

.format-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.format-tab:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(102, 126, 234, 0.1);
}

body.light-mode .format-tab:hover {
  color: #343a40;
}

.format-tab:hover::before {
  left: 100%;
}

.format-tab.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.input-section {
  padding: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

body.light-mode .input-section {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* File Upload Styles */
.file-upload-section {
  margin-bottom: 30px;
}

.file-drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

body.light-mode .file-drop-zone {
  border: 2px dashed rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.02);
}

.file-drop-zone:hover {
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.file-drop-zone.drag-over,
.file-drop-zone.touch-active {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.15);
  transform: scale(1.02);
}

/* Enhanced mobile touch feedback */
@media (max-width: 768px) {
  .file-drop-zone.touch-active {
    background: rgba(102, 126, 234, 0.2);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
  }
}

.drop-zone-content {
  position: relative;
  z-index: 2;
}

.drop-zone-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.7;
}

.file-drop-zone h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 600;
}

body.light-mode .file-drop-zone h3 {
  color: #212529;
}

.file-drop-zone p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-bottom: 20px;
}

body.light-mode .file-drop-zone p {
  color: #6c757d;
}

.supported-formats {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.format-badge {
  background: rgba(102, 126, 234, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

body.light-mode .format-badge {
  background: rgba(102, 126, 234, 0.1);
  color: #495057;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.file-info {
  margin-top: 15px;
  padding: 15px 20px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

body.light-mode .file-info {
  background: rgba(102, 126, 234, 0.05);
}

.file-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.file-name {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  flex: 1;
  text-align: left;
}

body.light-mode .file-name {
  color: #212529;
}

.file-size {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

body.light-mode .file-size {
  color: #6c757d;
}

.remove-file-btn {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #dc3545;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.remove-file-btn:hover {
  background: rgba(220, 53, 69, 0.3);
  transform: scale(1.1);
}

.input-divider {
  text-align: center;
  margin: 30px 0;
  position: relative;
}

.input-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

body.light-mode .input-divider::before {
  background: rgba(0, 0, 0, 0.1);
}

.input-divider span {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.light-mode .input-divider span {
  background: rgba(255, 255, 255, 0.9);
  color: #6c757d;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Loading Indicator */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Enhanced Error Styling */
.error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #dc3545;
  padding: 15px 20px;
  border-radius: 12px;
  margin: 15px 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.error::before {
  content: "⚠️";
  font-size: 1.2em;
}

body.light-mode .error {
  background: rgba(220, 53, 69, 0.05);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Success Message Styling */
.success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #28a745;
  padding: 15px 20px;
  border-radius: 12px;
  margin: 15px 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.success::before {
  content: "✅";
  font-size: 1.2em;
}

body.light-mode .success {
  background: rgba(40, 167, 69, 0.05);
  border: 1px solid rgba(40, 167, 69, 0.2);
}

/* Export Functionality Styles */
.export-section {
  margin-top: 25px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  animation: fadeInScale 0.4s ease;
}

body.light-mode .export-section {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.export-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .export-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.export-header h4 {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  font-weight: 600;
}

body.light-mode .export-header h4 {
  color: #212529;
}

.export-format-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: relative;
  width: 50px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

body.light-mode .toggle-slider {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: #667eea;
  border-color: #667eea;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(26px);
}

.toggle-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

body.light-mode .toggle-label {
  color: #495057;
}

.export-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-export {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  min-width: 90px;
  justify-content: center;
}

body.light-mode .btn-export {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #495057;
}

.btn-export:hover {
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.4);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

body.light-mode .btn-export:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
  color: #667eea;
}

.export-icon {
  font-size: 1.1em;
  opacity: 0.8;
}

/* Consolidated Mobile Styles */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  .nav {
    margin-bottom: 15px;
    padding: 12px 20px;
  }
  .nav-brand {
    font-size: 1.1rem;
  }
  .nav-links {
    gap: 15px;
  }
  .nav-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  .container {
    padding: 15px;
    border-radius: 20px;
  }
  .header {
    padding: 25px 20px;
  }
  .header h1 {
    font-size: 2rem;
  }
  .header p {
    font-size: 1rem;
  }
  .format-selector,
  .input-section {
    padding: 20px;
  }
  .format-tabs {
    gap: 6px;
  }
  .format-tab {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .button-group {
    gap: 10px;
    flex-wrap: wrap;
  }
  .btn-primary,
  .btn-secondary,
  .btn-success {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  textarea {
    height: 200px;
    padding: 15px;
    font-size: 13px;
  }
  .data-viewer {
    padding: 15px;
    max-height: 400px;
    font-size: 13px;
  }
  .export-buttons {
    gap: 8px;
  }
  .btn-export {
    padding: 10px 16px;
    font-size: 0.85rem;
    min-width: 80px;
  }
  .export-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  .modal-overlay {
    padding: 15px;
  }
  .modal-container {
    margin: 20px auto;
    border-radius: 20px;
    max-height: 90vh;
  }
  .modal-header {
    padding: 25px 20px;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .modal-title {
    font-size: 1.5rem;
  }
  .modal-content {
    padding: 20px;
  }
  .feature-grid-modal {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .use-case-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-links {
    gap: 20px;
    margin: 20px 0;
  }
}

@media (max-width: 480px) {
  .nav-links {
    flex-direction: column;
    gap: 10px;
  }
  .hero-card {
    padding: 20px;
  }
  .hero-card h3 {
    font-size: 1.2rem;
  }
  .use-case-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
  .modal-container {
    margin: 10px auto;
    border-radius: 16px;
  }
  .modal-header {
    padding: 20px 15px;
  }
  .modal-content {
    padding: 20px 15px;
  }
  .feature-section {
    padding: 20px;
    margin: 20px 0;
  }
}

.input-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

body.light-mode label {
  color: #212529;
}

textarea {
  width: 100%;
  height: 250px;
  padding: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
  font-size: 14px;
  resize: vertical;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
}

body.light-mode textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(0, 0, 0, 0.15);
  color: #212529;
}

textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

body.light-mode textarea::placeholder {
  color: rgba(108, 117, 125, 0.7);
}

textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2),
    0 8px 32px rgba(102, 126, 234, 0.3);
  transform: scale(1.01);
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
}

body.light-mode textarea:focus {
  background: rgba(255, 255, 255, 0.95);
  color: #212529;
}

.button-group {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

button {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

button:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

body.light-mode .btn-secondary {
  background: rgba(108, 117, 125, 0.1);
  color: #495057;
  border: 1px solid rgba(108, 117, 125, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  color: white;
  box-shadow: 0 8px 32px rgba(17, 153, 142, 0.3);
}

button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 1);
}

body.light-mode .btn-secondary:hover {
  background: rgba(108, 117, 125, 0.2);
  color: #343a40;
}

.output-section {
  padding: 30px;
  min-height: 200px;
}

.data-viewer {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 25px;
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
  font-size: 14px;
  line-height: 1.8;
  max-height: 600px;
  overflow-y: auto;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.3s ease;
  position: relative;
}

body.light-mode .data-viewer {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #212529;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Path display and all other data viewer styles remain the same */
.path-display {
  position: sticky;
  top: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.9),
    rgba(118, 75, 162, 0.9)
  );
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  color: white;
  font-weight: 500;
  font-size: 13px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  display: none;
  align-items: center;
  gap: 8px;
}

.path-display.visible {
  opacity: 1;
  transform: translateY(0);
  display: flex;
}

.path-icon {
  font-size: 16px;
  opacity: 0.8;
}

.path-text {
  flex: 1;
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
  letter-spacing: 0.3px;
}

.path-copy {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.path-copy:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.path-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1;
}

.path-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* All other data styling remains the same */
.clickable-value {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
}

.clickable-value:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: translateX(2px);
}

.data-key {
  color: #ffa726;
  font-weight: 600;
}
.data-string {
  color: #66bb6a;
}
.data-number {
  color: #42a5f5;
  font-weight: 600;
}
.data-boolean {
  color: #ab47bc;
  font-weight: 700;
}
.data-null {
  color: #78909c;
  font-weight: 700;
}

body.light-mode .data-key {
  color: #d84315;
}
body.light-mode .data-string {
  color: #2e7d32;
}
body.light-mode .data-number {
  color: #1565c0;
}
body.light-mode .data-boolean {
  color: #7b1fa2;
}
body.light-mode .data-null {
  color: #546e7a;
}

.data-object,
.data-array {
  margin-left: 25px;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding-left: 20px;
  position: relative;
}

body.light-mode .data-object,
body.light-mode .data-array {
  border-left: 2px solid rgba(0, 0, 0, 0.15);
}

.collapsible {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-left: 25px;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 8px 8px 8px 25px;
  margin: 2px 0;
}

.collapsible::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #667eea;
  font-size: 12px;
}

.collapsible:not(.collapsed)::before {
  content: "▼";
}

.collapsible.collapsed::before {
  transform: translateY(-50%) rotate(-90deg);
}

.collapsible-content {
  display: block;
  animation: expandDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.collapsible-content.hidden {
  display: none;
}

.error {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 107, 0.3);
  margin-top: 15px;
}

.stats {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 25px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.light-mode .stats {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-item {
  text-align: center;
  padding: 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .stat-item {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #66bb6a;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.9);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px 30px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .footer {
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

body.light-mode .footer-link {
  color: #495057;
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 1);
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

body.light-mode .footer p {
  color: #6c757d;
}

/* Floating particles */
.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.5s ease;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

body.light-mode .particle {
  background: rgba(26, 42, 78, 0.5);
}

/* Modern Glassmorphism Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 20px;
  animation: modalFadeIn 0.3s ease;
}

body.light-mode .modal-overlay {
  background: rgba(255, 255, 255, 0.2);
}

.modal-container {
  max-width: 1000px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(25px);
  border-radius: 24px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-height: 85vh;
  overflow: hidden;
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

body.light-mode .modal-container {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shimmer 3s infinite;
}

.modal-header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: white;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

body.light-mode .modal-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.modal-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  background: linear-gradient(45deg, #fff, #f0f0f0, #fff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 4s ease-in-out infinite;
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.modal-content {
  padding: 40px;
  overflow-y: auto;
  max-height: calc(85vh - 120px);
  color: rgba(255, 255, 255, 0.9);
}

body.light-mode .modal-content {
  color: #212529;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.feature-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 25px;
  margin: 25px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

body.light-mode .feature-section {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.feature-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

.feature-section:hover::before {
  left: 100%;
}

.feature-section:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

body.light-mode .feature-section:hover {
  background: rgba(0, 0, 0, 0.05);
}

.modal-content h3 {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.4rem;
  margin: 30px 0 20px 0;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
}

body.light-mode .modal-content h3 {
  color: #212529;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-content h4 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin: 20px 0 15px 0;
  font-weight: 600;
}

body.light-mode .modal-content h4 {
  color: #343a40;
}

.modal-content p {
  margin: 15px 0;
  line-height: 1.7;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
}

body.light-mode .modal-content p {
  color: #495057;
}

.feature-grid-modal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.feature-item-modal {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

body.light-mode .feature-item-modal {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.feature-item-modal:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
}

body.light-mode .feature-item-modal:hover {
  background: rgba(0, 0, 0, 0.05);
}

.feature-item-modal h5 {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 1.1rem;
}

body.light-mode .feature-item-modal h5 {
  color: #212529;
}

.feature-item-modal p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

body.light-mode .feature-item-modal p {
  color: #6c757d;
}

.highlight-box {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1),
    rgba(118, 75, 162, 0.1)
  );
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  backdrop-filter: blur(10px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.contact-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

body.light-mode .contact-item {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

body.light-mode .contact-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 15px;
  opacity: 0.8;
}

/* Contact form styles */
.contact-form input,
.contact-form select,
.contact-form textarea {
  transition: all 0.3s ease;
}

.contact-form select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.8)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.contact-form select option {
  background: #1a1a2e;
  color: white;
  padding: 8px 12px;
}

body.light-mode .contact-form input,
body.light-mode .contact-form select,
body.light-mode .contact-form textarea {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  color: #212529 !important;
}

body.light-mode .contact-form select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

body.light-mode .contact-form select option {
  background: white;
  color: #212529;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #667eea !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Form feedback styles */
.form-success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4caf50;
}

.form-error {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #f44336;
}

body.light-mode .form-success {
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
}

body.light-mode .form-error {
  background: rgba(244, 67, 54, 0.1);
  color: #c62828;
}

/* Mobile modal responsiveness */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 15px;
  }

  .modal-container {
    margin: 20px auto;
    border-radius: 20px;
    max-height: 90vh;
  }

  .modal-header {
    padding: 25px 20px;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-content {
    padding: 25px 20px;
    max-height: calc(90vh - 120px);
  }

  .feature-grid-modal {
    grid-template-columns: 1fr;
    gap: 15px;
  }

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

  .modal-content h3 {
    font-size: 1.2rem;
    flex-direction: column;
    text-align: center;
  }
}

/* Duplicate 480px styles removed - consolidated above */

/* Modal animations moved to consolidated section below */

/* Duplicate mobile styles removed - consolidated above */

/* Duplicate 480px styles removed - consolidated above */

/* All Animations Consolidated */
@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes containerFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
@keyframes textShine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes expandDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 2000px;
    transform: translateY(0);
  }
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Google AdSense Integration Styles */
.ad-container {
  margin: 30px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
}

body.light-mode .ad-container {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.ad-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.03),
    transparent
  );
  transition: left 0.8s ease;
}

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

.ad-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 500;
}

body.light-mode .ad-label {
  color: rgba(0, 0, 0, 0.5);
}

/* Specific ad placement styles */
.ad-top {
  margin-top: 20px;
  margin-bottom: 25px;
}

.ad-middle {
  margin: 35px auto;
  border-left: 3px solid rgba(102, 126, 234, 0.3);
  padding-left: 25px;
}

.ad-bottom {
  margin-top: 40px;
  margin-bottom: 20px;
}

/* AdSense responsive styling - Optimized for better ad rendering */
.adsbygoogle {
  display: block !important;
  min-height: 50px; /* Reduced from 90px to allow more flexible ad sizes */
  width: 100%;
  margin: 0 auto;
  /* Removed background and border-radius that might interfere with ad rendering */
  transition: opacity 0.3s ease;
}

/* Only add subtle background in light mode if ad fails to load */
body.light-mode .adsbygoogle:empty {
  background: rgba(0, 0, 0, 0.01);
  border-radius: 8px;
}

/* Ensure ads are visible when loaded */
.adsbygoogle[data-ad-status="filled"] {
  opacity: 1;
}

/* Style for when ads are loading */
.adsbygoogle:not([data-ad-status]) {
  opacity: 0.7;
}

/* Mobile ad optimizations */
@media (max-width: 768px) {
  .ad-container {
    margin: 20px 10px;
    padding: 15px;
  }

  .ad-middle {
    padding-left: 15px;
    border-left-width: 2px;
  }

  .ad-label {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }

  .adsbygoogle {
    min-height: 50px; /* Consistent with desktop for better mobile ad rendering */
  }
}
