/*
 * Zeta Calculator - Home Styles
 * Professional, modern design for the Zeta Calculator homepage
 * Created: June 2025
 * Updated: June 30, 2025
 */

/* Import base styles from pages.css */
@import url('pages.css');

/* Header - Enhanced for homepage */
.page-header {
  background-color: var(--card-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}

.dark-mode .page-header {
  background-color: var(--card-color);
}

.header-container {
  padding: 1rem 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--text-color);
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 40px;
  width: auto;
}

/* Hero Section */
.hero-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--text-color), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.text-primary {
  color: var(--primary-color);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  position: relative;
}

.stat-value::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 2rem;
  height: 3px;
  background: var(--primary-color);
  border-radius: 4px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
}

.hero-image {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.calculator-display {
  background: var(--card-color);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(var(--primary-rgb), 0.25);
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  transform: perspective(800px) rotateY(-10deg) rotateX(5deg);
  position: relative;
  transition: all 0.5s ease;
  border: 1px solid var(--border-color);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.calculator-display.animated {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: perspective(800px) rotateY(-10deg) rotateX(5deg) translateY(0);
  }
  50% {
    transform: perspective(800px) rotateY(-5deg) rotateX(3deg) translateY(-15px);
  }
  100% {
    transform: perspective(800px) rotateY(-10deg) rotateX(5deg) translateY(0);
  }
}

.calculator-display:hover {
  transform: perspective(800px) rotateY(-5deg) rotateX(2deg) translateY(-10px);
  box-shadow: 0 30px 60px -15px rgba(var(--primary-rgb), 0.3);
}

.calc-screen {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  color: white;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.calc-screen::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255,255,255,0.2) 0%,
    rgba(255,255,255,0) 80%
  );
  transform: rotate(45deg);
  pointer-events: none;
}

.calc-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.1) 50%, 
    rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.calc-result {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: right;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.calc-illustration {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.calc-icon {
  width: 60px;
  height: 60px;
  background-color: var(--hover-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.calc-icon:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
}

.calc-icon.clicking {
  transform: scale(0.9);
  background-color: var(--primary-color);
  color: white;
}

/* Tools Section */
.tools-section {
  padding: 6rem 0;
  background-color: var(--section-alt-bg);
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-color);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 600px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.tool-card {
  background-color: var(--card-color);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px -10px rgba(var(--primary-rgb), 0.15);
  border-color: var(--primary-light);
}

.tool-card:hover .tool-icon {
  transform: scale(1.2);
}

.tool-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.tool-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.tool-description {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.tool-link:hover {
  gap: 0.75rem;
  color: var(--primary-dark);
}

.tool-link i {
  transition: transform 0.2s ease;
}

.tool-link:hover i {
  transform: translateX(3px);
}

.view-more-container {
  text-align: center;
  margin-top: 3.5rem;
  padding-bottom: 1rem;
}

.view-more-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  padding: 0.875rem 2rem;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 220px;
  margin-top: 3rem;
}

.view-more-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(var(--primary-rgb), 0.3);
}

.view-more-link i {
  transition: transform 0.3s ease;
  font-size: 1.1rem;
}

.view-more-link:hover i {
  transform: translateX(5px);
}

/* Features Section */
.features-section {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem 2rem;
  margin-top: 4rem;
}

.feature-card {
  padding: 2rem;
  background-color: var(--card-color);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid var(--border-color);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-light);
  box-shadow: 0 20px 30px -10px rgba(var(--primary-rgb), 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  transition: all 0.3s ease;
  position: relative;
}

.feature-card:hover .feature-icon {
  transform: rotateY(180deg);
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.feature-description {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* How It Works Section */
.how-it-works-section {
  padding: 6rem 0;
  background-color: var(--section-alt-bg);
  position: relative;
}

.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 4rem;
}

.step-item {
  flex: 1;
  background-color: var(--card-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
}

.step-item:hover {
  transform: translateY(-10px);
  border-color: var(--primary-light);
  box-shadow: 0 20px 30px -10px rgba(var(--primary-rgb), 0.15);
}

.step-number {
  background-color: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.step-description {
  font-size: 1rem;
  color: var(--text-light);
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Testimonials Section */
.featured-tools-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-gradient-light, #f8fafc);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.dark-mode .featured-tools-section {
  background-color: var(--bg-gradient-dark, #0f172a);
}

/* Featured Tools Grid */
.featured-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 1rem;
}

/* Call to Action Section */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 0%, transparent 10%),
                    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.2) 0%, transparent 10%),
                    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.2) 0%, transparent 15%),
                    radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.2) 0%, transparent 15%);
  opacity: 0.5;
  z-index: 0;
}

.dark-mode .cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-description {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 1rem;
}

.cta-section .btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 180px;
}

.cta-section .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes button-glow {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.cta-section .btn-primary {
  animation: button-glow 2s infinite;
}

.cta-section .btn-outline {
  background-color: transparent;
  color: white;
  border-color: white;
}

.cta-section .btn-outline:hover {
  background-color: white;
  color: var(--primary-color);
}

.cta-section .btn-primary {
  background-color: white;
  color: var(--primary-color);
  border-color: white;
}

.featured-tool-card {
  display: block;
  background-color: var(--card-color);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.featured-tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.1);
  border-color: var(--primary-light);
}

.tool-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  height: 100%;
  justify-content: space-between;
}

.tool-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text-color);
  text-align: center;
}

.tool-card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  flex-grow: 1;
  text-align: center;
}

.tool-card-stats {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.75rem;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.tool-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  justify-content: center;
}

.tool-stat i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.featured-tools-footer {
  margin-top: 3rem;
  text-align: center;
  padding: 1rem 0;
}

.featured-tools-footer .btn i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.featured-tools-footer .btn:hover i {
  transform: translateX(5px);
}







.testimonial-author-details h4 {
  margin: 0 0 0.2rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.testimonial-author-details p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.rating {
  color: #FFD700;
  font-size: 0.9rem;
}

.testimonial-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.nav-arrow {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-arrow:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.testimonial-indicators {
  display: flex;
  gap: 0.6rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.testimonial-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* Trust Indicators Styles */
.trust-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.trust-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.trust-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), rgba(var(--primary-rgb), 0.7));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.25);
}

.trust-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.trust-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.trust-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .testimonial-trust-wrapper {
    margin-top: 3rem;
  }
  
  .testimonial-carousel-enhanced {
    padding: 3rem;
  }
  
  .testimonial-cards-container {
    min-height: 240px;
  }
}

@media (min-width: 992px) {
  .testimonial-cards-container {
    min-height: 220px;
  }
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Different animations for different elements */
.tool-card.animate-on-scroll {
  transform: translateY(40px);
}

.feature-card.animate-on-scroll {
  transform: translateY(30px) scale(0.95);
}

.step-item.animate-on-scroll {
  transform: translateY(25px);
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .calculator-display {
    animation: none;
    transform: none;
  }
  
  .calc-screen::after {
    animation: none;
  }
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .container {
    padding: 0 2rem;
  }
  
  .hero-wrapper {
    gap: 2rem;
  }
}

@media (max-width: 992px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
  }
  
  .hero-image {
    order: -1;
    margin-bottom: 2rem;
  }
  
  .calculator-display {
    transform: none;
    max-width: 350px;
  }
  
  .featured-tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-container {
    flex-direction: column;
    gap: 2.5rem;
  }
  
  .step-arrow {
    transform: rotate(90deg);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 0.5rem 0;
  }
  
  /* Hide search container on mobile for home page */
  .home-page .search-container,
  .home-page #searchContainer,
  body.home-page .header-container .search-container {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    left: -9999px !important;
  }
  
  /* Improved header responsive layout */
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .nav-menu {
    gap: 0.75rem;
    margin-left: auto;
  }
  
  .hero-section, .tools-section, .features-section, .how-it-works-section, .featured-tools-section, .cta-section {
    padding: 4rem 0;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 2rem 3rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-tools-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-tool-card {
    display: block;
  }
  
  .tool-card-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1.25rem;
  }
  
  /* Further improve mobile navigation */
  .nav-menu {
    gap: 0.5rem;
  }
  
  .nav-link {
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .theme-toggle {
    width: 32px;
    height: 32px;
  }
  
  /* Adjust logo size */
  .logo-img {
    height: 34px;
  }
  
  /* Ensure header spacing is correct */
  .header-container {
    padding: 0.5rem 0;
    justify-content: space-between;
  }
}

@media (max-width: 375px) {
  .nav-menu {
    gap: 0.25rem;
  }
  
  .nav-link {
    padding: 0.3rem 0.4rem;
    font-size: 0.8rem;
  }
  
  .theme-toggle {
    width: 28px;
    height: 28px;
  }
  
  .theme-toggle i {
    font-size: 0.9rem;
  }
}

/* Calculator Display Animations */
.calculator-display {
  animation: float 6s ease-in-out infinite;
}

.calculator-display.animated {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: perspective(800px) rotateY(-10deg) rotateX(5deg) translateY(0);
  }
  50% {
    transform: perspective(800px) rotateY(-5deg) rotateX(3deg) translateY(-15px);
  }
  100% {
    transform: perspective(800px) rotateY(-10deg) rotateX(5deg) translateY(0);
  }
}

.calc-icon.clicking {
  transform: scale(0.9);
  background-color: var(--primary-color);
  color: white;
}

.calc-result {
  transition: all 0.3s ease;
}

.calc-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.1) 50%, 
    rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Button Animations */
.btn i {
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(4px);
}

/* Button hover improvements */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* Featured tool card button styling */
.featured-tool-card .btn-primary {
  padding: 0.625rem 1.25rem;
  min-width: 120px;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
