:root {
  /* Dark Blue Gradient Theme */
  --color-primary: #4f46e5;
  /* Indigo - Primary buttons and accents */
  --color-secondary: #3b82f6;
  /* Blue - Secondary elements */
  --color-accent: #6366f1;
  /* Light Indigo for highlights */

  /* Background Colors */
  --color-bg-light: #0f172a;
  /* Dark Slate - Light background */
  --color-bg-medium: #1e293b;
  /* Darker Slate */
  --color-bg-dark: #020617;
  /* Very Dark Slate - Footer/dark sections */

  /* Text Colors */
  --color-text-primary: #f8fafc;
  /* Light Slate - Main text */
  --color-text-secondary: #cbd5e1;
  /* Medium Slate - Secondary text */
  --color-text-muted: #94a3b8;
  /* Muted Slate - Muted text */
  --color-text-light: #ffffff;
  /* White text for dark backgrounds */

  /* Glassmorphism Elements */
  --color-glass-bg: rgba(79, 70, 229, 0.1);
  --color-glass-bg-medium: rgba(79, 70, 229, 0.15);
  --color-glass-border: rgba(99, 102, 241, 0.2);
  --color-glass-hover: rgba(79, 70, 229, 0.2);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #1d4ed8 100%);
  --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #3730a3 100%);
  --gradient-background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);

  /* Shadows and Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.4);

  /* Transitions and Effects */
  --transition-smooth: all 0.3s ease;
  --blur-amount: 15px;
  --border-radius: 14px;
  --border-radius-large: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gradient-background);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Justify all paragraphs for better readability */
p {
  text-align: justify;
  text-justify: inter-word;
}

/* Animated floating background elements */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 25% 25%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  animation: floatBackground 25s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* Additional blue gradient overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(45deg, rgba(79, 70, 229, 0.05) 0%, transparent 30%),
    linear-gradient(-45deg, rgba(59, 130, 246, 0.03) 70%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

@keyframes floatBackground {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.glass-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--color-glass-border);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  margin: 1rem 0;
  color: var(--color-text-primary);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  background: var(--color-glass-hover);
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* Dark glassmorphism header */
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border-bottom: 1px solid var(--color-glass-border);
  box-shadow: var(--shadow-md);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.logo:hover {
  color: var(--color-secondary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
  font-weight: 500;
  position: relative;
  padding: 8px 16px;
  border-radius: var(--border-radius);
}

.nav-links a:hover {
  background: var(--color-glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-glass-border);
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
  animation: fadeInUp 0.8s ease-out;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
}

.grid {
  display: grid;
  gap: 30px;
  margin: 60px 0;
}

.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));
}

.feature-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--color-glass-border);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  margin: 1rem 0;
  text-align: center;
  color: var(--color-text-primary);
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  background: var(--color-glass-hover);
  text-decoration: none;
  color: inherit;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-weight: 600;
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.section {
  padding: 80px 0;
}

h1,
h2,
h3 {
  color: var(--color-text-primary);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-text-primary);
}

p,
li {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Calculator specific styles */
.calculator-hero {
  padding: 60px 0 40px;
  text-align: center;
  /* Remove old background - let body gradient show through */
}

.calculator-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text-primary) !important;
  text-shadow: 0 2px 6px rgba(79, 70, 229, 0.4);
}

.calculator-hero p {
  color: var(--color-text-secondary) !important;
  font-size: 1.2rem;
  line-height: 1.6;
}

.calculator-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.calculator-form {
  /* Dark Blue Gradient Calculator Form */
  background: var(--color-glass-bg);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--color-glass-border);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  margin: 1rem 0;
  color: var(--color-text-primary);
  transition: var(--transition-smooth);
}

.calculator-form:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  background: var(--color-glass-hover);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  align-items: end;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-text-primary) !important;
  font-size: 1.1rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  /* Dark theme inputs */
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-glass-border);
  border-radius: 8px;
  color: var(--color-text-primary);
  font-size: 1rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 3px rgba(79, 70, 229, 0.2),
    var(--shadow-md);
  background: rgba(30, 41, 59, 0.8);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--color-bg-dark);
  color: var(--color-text-primary);
  padding: 8px;
}

.form-group input::placeholder {
  color: #6b7280;
  opacity: 0.8;
}

.form-group small {
  display: block;
  margin-top: 5px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.height-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.weight-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 25px;
  padding: 4px;
  margin-bottom: 10px;
}

.weight-toggle button {
  flex: 1;
  padding: 8px 16px;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.9rem;
  font-weight: 500;
}

.weight-toggle button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary);
}

.weight-toggle button.active {
  background: var(--color-primary);
  color: white;
}

.weight-unit {
  flex: 1;
  padding: 8px 16px;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.9rem;
  font-weight: 500;
}

.weight-unit:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary);
}

.weight-unit.active {
  background: var(--color-primary);
  color: white;
}

.result-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--color-glass-border);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-glow);
  padding: 2rem;
  margin: 1rem 0;
  text-align: center;
  color: var(--color-text-primary);
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease-out;
}

.result-card.show {
  opacity: 1;
  transform: translateY(0);
}

.result-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text-light) !important;
  text-shadow: 0 2px 8px rgba(79, 70, 229, 0.5);
  margin: 20px 0;
}

.result-category {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-text-primary) !important;
}

.result-category.underweight {
  color: #60a5fa;
}

.result-category.normal {
  color: var(--color-mint);
}

.result-category.overweight {
  color: #fbbf24;
}

.result-category.obese {
  color: #f87171;
}

.share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.share-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--color-glass-border);
  border-radius: 20px;
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.share-btn:hover {
  background: var(--color-primary);
  color: white;
}

.info-section {
  background: var(--color-glass-bg);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--color-glass-border);
  border-radius: 20px;
  padding: 30px;
  margin: 40px 0;
}

.info-section h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-secondary);
  font-weight: 600;
}

.info-section ul {
  list-style: none;
  padding-left: 0;
}

.info-section li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.info-section li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.faq-section {
  margin: 40px 0;
}

.faq-item {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 15px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.faq-question:hover {
  background: var(--color-glass-hover);
}

.faq-answer {
  padding: 0 20px;
  color: var(--color-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 20px 20px;
}

.related-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 30px 0;
}

.related-tool {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  text-decoration: none;
  color: var(--color-text-primary);
  transition: var(--transition-smooth);
}

.related-tool:hover {
  background: var(--color-glass-hover);
  transform: translateY(-2px);
}

.ad-space {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--color-glass-border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  color: var(--color-text-secondary);
  margin: 40px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer {
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-glass-border);
  padding: 60px 0 30px;
  margin-top: 100px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--color-text-light);
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-section a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--color-glass-border);
  color: var(--color-text-secondary);
}

.lazy-load {
  opacity: 0;
  transition: opacity 0.6s ease-in;
}

.lazy-load.loaded {
  opacity: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {

  0%,
  100% {
    filter: drop-shadow(0 0 10px currentColor);
  }

  50% {
    filter: drop-shadow(0 0 20px currentColor);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s ease;
    gap: 1rem;
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .section {
    padding: 50px 0;
  }

  .glass-card {
    padding: 20px;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .calculator-form {
    padding: 30px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .height-inputs {
    grid-template-columns: 1fr;
  }

  .share-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .share-btn {
    width: 100%;
    text-align: center;
  }

  .related-tools {
    grid-template-columns: 1fr;
  }

  .faq-question {
    padding: 15px;
    font-size: 1rem;
  }

  .faq-answer {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .result-value {
    font-size: 2.5rem !important;
  }

  .result-category {
    font-size: 1.2rem !important;
  }

  /* Ensure footer is always visible */
  footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .result-value {
    font-size: 2.5rem;
  }
}

/* Interactive calculator animations */
@keyframes progressGrow {
  from {
    width: 0%;
  }
}

@keyframes gaugeGrow {
  from {
    background: conic-gradient(from 180deg, rgba(255, 255, 255, 0.1) 0deg, rgba(255, 255, 255, 0.1) 180deg);
  }
}

@keyframes barGrow {
  from {
    width: 0%;
  }
}

@keyframes countUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card {
  animation: fadeInUp 0.6s ease-out;
}

.result-card>div {
  animation: fadeInUp 0.8s ease-out;
}

/* Enhanced visual elements */
.progress-container {
  position: relative;
}

.gauge {
  position: relative;
  overflow: hidden;
}

.comparison-bars .comparison-item {
  transition: all 0.3s ease;
}

.comparison-bars .comparison-item:hover {
  transform: translateX(5px);
}

.animated-value {
  position: relative;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .animated-value {
    font-size: 2rem;
  }

  .gauge {
    width: 100px;
    height: 50px;
  }

  .gauge-value {
    font-size: 1rem;
  }
}

/* En
hanced Mobile Responsiveness and PWA Optimizations */

/* Mobile-First Calculator Styles */
.calculator-container {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.calculator-form {
  background: var(--color-glass-bg);
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--color-glass-border);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition-smooth);
}

.calculator-form:hover {
  background: var(--color-glass-hover);
  box-shadow: var(--shadow-glow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--color-text-primary);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Enhanced Result Card Styles */
.result-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--color-glass-border);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  opacity: 1;
  transform: translateY(0);
}

.result-card::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 2s ease-in-out;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
  min-height: 48px;
  /* Touch target size */
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--gradient-secondary);
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-secondary:hover {
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

/* Weight Unit Toggle */
.weight-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 1rem;
  gap: 4px;
}

.weight-unit {
  flex: 1;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.9rem;
  min-height: 40px;
}

.weight-unit.active {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

/* Height Input Styles */
.height-inputs {
  display: flex;
  gap: 0.5rem;
}

.height-inputs input {
  flex: 1;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .calculator-form {
    padding: 1.5rem;
    border-radius: 15px;
  }

  .result-card {
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-group input,
  .form-group select {
    padding: 0.875rem;
    font-size: 16px;
    /* Prevents zoom on iOS */
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: none;
  }

  .weight-toggle {
    margin-bottom: 1rem;
  }

  .weight-unit {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  /* Enhanced touch targets */
  .weight-unit,
  .btn,
  input,
  select {
    min-height: 44px;
  }

  /* Improved text sizing for mobile */
  .animated-value {
    font-size: 2rem !important;
  }

  .result-card h2 {
    font-size: 1.5rem;
  }

  .result-card h3 {
    font-size: 1.25rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .calculator-form,
  .result-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .form-group input,
  .form-group select {
    padding: 0.75rem;
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .btn {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .weight-unit {
    padding: 0.625rem 0.5rem;
    font-size: 0.85rem;
  }

  .height-inputs {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .faq-question {
    padding: 12px;
    font-size: 0.9rem;
  }

  .faq-answer {
    padding: 0 12px;
    font-size: 0.85rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 12px 15px;
  }
}

/* PWA Specific Styles */
@media (display-mode: standalone) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .container {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
}

/* Improved navigation for better UX */
.nav-links a {
  position: relative;
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.2), transparent);
  transition: left 0.5s;
}

.nav-links a:hover::before {
  left: 100%;
}

/* Enhanced button styles */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  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, height 0.6s;
  z-index: -1;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

/* Improved card hover effects */
.feature-card,
.glass-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before,
.glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(79, 70, 229, 0.1), transparent);
  transform: rotate(-45deg);
  transition: transform 0.6s;
  opacity: 0;
}

.feature-card:hover::before,
.glass-card:hover::before {
  transform: rotate(-45deg) translate(50%, 50%);
  opacity: 1;
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {

  .form-group input,
  .form-group select {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--color-glass-border);
  }

  .calculator-form,
  .result-card {
    background: var(--color-glass-bg);
    border-color: var(--color-glass-border);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {

  .form-group input,
  .form-group select {
    border-width: 3px;
  }

  .btn {
    border: 2px solid currentColor;
  }

  .weight-unit.active {
    border: 2px solid white;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .result-card::before {
    animation: none;
  }
}

/* Print styles */
@media print {
  .calculator-form {
    background: white;
    color: black;
    border: 2px solid black;
  }

  .result-card {
    background: white;
    color: black;
    border: 2px solid black;
    page-break-inside: avoid;
  }

  .btn {
    display: none;
  }
}

/* Enhanced Focus Styles for Accessibility */
*:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

button:focus,
input:focus,
select:focus {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
  z-index: 10;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Error States */
.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success States */
.success {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Force visibility for result cards with content */
.result-card:not(:empty) {
  opacity: 1 !important;
  transform: translateY(0) !important;
  display: block !important;
}

/* Enhanced Calculator Result Animations */
@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes progressGrow {
  from {
    width: 0%;
  }

  to {
    width: var(--progress-width, 100%);
  }
}

@keyframes barGrow {
  from {
    width: 0%;
  }

  to {
    width: var(--bar-width, 100%);
  }
}

@keyframes gaugeGrow {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Install Button Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(100px);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*
 Calculator Result Visibility Fixes */
.result-card {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  z-index: 10 !important;
}

.result-card.show {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  transform: translateY(0) !important;
}

#result {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  z-index: 10 !important;
}

#result.show {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  transform: translateY(0) !important;
}

/* Force visibility for all calculator outputs */
[id*="result"],
[class*="result"],
.calculator-output,
.output-section {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Ensure footer is always visible */
footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
}

/* Better mobile navigation */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.mobile-menu-toggle:hover {
  background: var(--color-glass-bg);
}

/* Improved FAQ styling */
.faq-item {
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.faq-question:hover {
  background: var(--color-glass-hover);
}

.faq-question span:last-child {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question span:last-child {
  transform: rotate(45deg);
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
  .faq-question,
  .btn,
  .weight-unit,
  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .faq-question {
    justify-content: space-between;
  }

  /* Improved mobile navigation */
  .nav-links a {
    padding: 12px 20px;
    border-radius: 8px;
    transition: var(--transition-smooth);
  }

  .nav-links a:hover {
    background: var(--color-glass-bg);
  }

  /* Better mobile form styling */
  .calculator-form {
    margin: 20px 0;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  /* Improved mobile result display */
  .result-card {
    margin: 20px 0;
    padding: 20px;
  }

  .result-value {
    font-size: 2.2rem !important;
  }

  /* Better mobile footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-section ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .footer-section ul li {
    margin: 0;
  }
}

/* Ensure consistent FAQ behavior across all pages */
.faq-item {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  background: var(--color-glass-hover);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
  user-select: none;
}

.faq-question span:last-child {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-primary);
  transition: transform 0.3s ease;
  min-width: 20px;
  text-align: center;
}

.faq-answer {
  padding: 0 20px;
  color: var(--color-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 20px 20px;
}

.faq-item.active .faq-question span:last-child {
  transform: rotate(45deg);
}

/* Additional text contrast fixes */
.container p,
.section p,
.glass-card p,
.calculator-form p,
.result-card p,
.info-section p {
  color: var(--color-text-secondary) !important;
}

.container h1,
.container h2,
.container h3,
.container h4,
.container h5,
.container h6,
.section h1,
.section h2,
.section h3,
.section h4,
.section h5,
.section h6,
.glass-card h1,
.glass-card h2,
.glass-card h3,
.glass-card h4,
.glass-card h5,
.glass-card h6,
.calculator-form h1,
.calculator-form h2,
.calculator-form h3,
.calculator-form h4,
.calculator-form h5,
.calculator-form h6,
.result-card h1,
.result-card h2,
.result-card h3,
.result-card h4,
.result-card h5,
.result-card h6 {
  color: var(--color-text-primary) !important;
  text-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* Ensure all text elements have proper contrast */
* {
  color: inherit;
}

body * {
  color: inherit;
}

/* Animated value display fixes */
.animated-value {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Progress bar visibility */
.progress-bar,
.gauge-container,
.comparison-bars {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Share button visibility */
.share-buttons,
.share-btn {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}
/* Enhanced
 Button Animations - Fix Jitter */
.btn {
  will-change: transform;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn:active {
  transform: translateY(0) scale(1);
}

/* Fix Navigation Button Hover Jitter */
.nav-links a {
  transition: background-color 0.15s ease, color 0.15s ease;
  will-change: background-color;
  transform: translateZ(0); /* Force hardware acceleration */
}

.nav-links a:hover {
  background: var(--color-glass-bg);
  backdrop-filter: blur(8px);
}

/* Mobile Menu Improvements */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease;
}

.mobile-menu-toggle:hover {
  background: var(--color-glass-bg);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-dark);
    backdrop-filter: blur(20px);
    border-radius: 0 0 1rem 1rem;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 1rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    margin: 0;
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin: 0.25rem 0;
  }

  .nav-links a:hover {
    background: var(--color-glass-bg);
  }
}

/* Input Validation Styles */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input.error,
.form-group select.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideInDown 0.3s ease;
}

.error-message::before {
  content: "⚠️";
  font-size: 0.75rem;
}

/* Unit Toggle Improvements */
.weight-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.weight-unit {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-glass-border);
  background: transparent;
  color: var(--color-text-secondary);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.875rem;
}

.weight-unit.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.weight-unit:hover:not(.active) {
  background: var(--color-glass-bg);
  color: var(--color-text-primary);
}

/* FAQ Accordion Improvements */
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1rem;
  font-weight: 500;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.15s ease;
  border-radius: 0.5rem;
}

.faq-question:hover {
  background: var(--color-glass-hover);
}

.faq-question:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.faq-answer {
  padding: 0 1rem 1rem 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  display: none;
  animation: slideInDown 0.3s ease;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Enhanced Form Validation */
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-glass-border);
  background: var(--color-glass-bg);
  color: var(--color-text-primary);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.15s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Loading States */
.btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Visible for Better Accessibility */
.btn:focus-visible,
.nav-links a:focus-visible,
.weight-unit:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn {
    border: 2px solid currentColor;
  }
  
  .nav-links a {
    border: 1px solid currentColor;
  }
}

/* Responsive Typography */
@media (max-width: 576px) {
  .calculator-hero h1 {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Print Styles */
@media print {
  .mobile-menu-toggle,
  .nav-links,
  .btn,
  .ad-space {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}/* H
eight Input Styling */
.height-inputs {
  display: flex;
  gap: 0.5rem;
}

.height-inputs input {
  flex: 1;
}

.height-inputs input:first-child::after {
  content: "ft";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-secondary);
  pointer-events: none;
}

.height-inputs input:last-child::after {
  content: "in";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-secondary);
  pointer-events: none;
}

/* Stable Navigation - No Shaking */
nav {
  position: relative;
  z-index: 100;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--color-text-primary);
  border-radius: 0.5rem;
  font-weight: 500;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease;
  transform: translateZ(0); /* Hardware acceleration */
  backface-visibility: hidden; /* Prevent flickering */
}

.nav-links a:hover {
  background: var(--color-glass-bg);
  color: var(--color-primary);
}

.nav-links a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Logo Hover Fix */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--color-text-primary);
  transition: color 0.2s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.logo:hover {
  color: var(--color-primary);
}

/* Remove any conflicting transform animations on navigation */
@media (max-width: 768px) {
  .nav-links a {
    transform: none !important;
  }
  
  .nav-links a:hover {
    transform: none !important;
    background: var(--color-glass-bg);
  }
}