/*
Theme Name: Nofyi - Free Online Tools
Theme URI: https://nofyi.com
Author: Nofyi Team
Author URI: https://nofyi.com
Description: A fast, SEO-optimized WordPress theme for online tools including word counters, unit converters, calculators, and generators. Designed for maximum traffic and AdSense approval.
Version: 4.5.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nofyi
Tags: tools, calculator, converter, seo-optimized, fast-loading, adsense-ready, responsive, mobile-friendly

This theme is optimized for:
- Fast loading speed (<2 seconds)
- SEO and search engine ranking
- Google AdSense approval
- Mobile responsiveness
- Easy customization
*/

/* ==========================================================================
   Base Styles & CSS Variables
   ========================================================================== */

:root {
  /* Colors */
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #f1f5f9;
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #64748b;
  --muted-foreground: #475569;
  --border: #e2e8f0;
  --success: #10b981;
  --error: #ef4444;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
  
  /* Spacing */
  --container-width: 1200px;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-md);
}

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

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

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.site-header {
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
  min-height: 100px;
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-logo:hover {
  opacity: 0.9;
}

.site-logo img {
  display: block;
  height: 80px;
  width: auto;
  object-fit: contain;
}

.site-logo svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.site-navigation > ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.site-navigation > ul > li > a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.site-navigation > ul > li > a:hover {
  color: var(--primary);
}

.site-footer {
  background-color: var(--background);
  border-top: 1px solid var(--border);
  margin-top: var(--spacing-2xl);
  padding: var(--spacing-2xl) 0;
}

/* ==========================================================================
   Components
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

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

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

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

.card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--background);
  color: var(--foreground);
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* ==========================================================================
   Tool Pages
   ========================================================================== */

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

.tool-sidebar {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  height: fit-content;
  position: sticky;
  top: 120px;
}

.tool-sidebar h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--foreground);
}

.tool-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tool-sidebar li {
  margin-bottom: var(--spacing-sm);
}

.tool-sidebar a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
  display: block;
}

.tool-sidebar a:hover {
  color: var(--primary);
}

.tool-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.tool-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.tool-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 800px;
  margin: 0 auto;
}

.tool-interface {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.tool-result {
  background-color: var(--secondary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.tool-content {
  margin-top: var(--spacing-lg);
}

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

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  /* Mobile menu toggle button */
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
  }
  
  .mobile-menu-toggle:hover {
    background: var(--secondary);
    color: var(--primary);
  }
  
  .mobile-menu-toggle.active {
    background: var(--primary);
    color: white;
  }
  
  /* Hide navigation by default on mobile */
  .site-navigation {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  
  /* Show navigation when active */
  .site-navigation.mobile-menu-active {
    display: block !important;
  }
  
  .tool-title {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 var(--spacing-md);
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-muted { color: var(--muted-foreground); }
.mt-1 { margin-top: var(--spacing-md); }
.mt-2 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-md); }
.mb-2 { margin-bottom: var(--spacing-lg); }
.hidden { display: none; }

/* ==========================================================================
   Performance Optimizations
   ========================================================================== */

/* Lazy loading images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles - Hide all animations and decorative elements */
@media print {
  /* Professional print layout with proper margins */
  @page {
    margin: 1cm;
    size: A4 portrait;
  }
  
  /* Disable all animations */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  
  /* Note: Individual pages control their own print visibility */
  
  /* Hide site header, navigation, footer, and decorative elements */
  .site-header,
  .site-navigation,
  .site-footer,
  .floating-shapes,
  .floating-shape,
  .particles-container,
  .particle,
  .gradient-orb,
  .gradient-orb-1,
  .gradient-orb-2,
  .gradient-orb-3,
  .custom-cursor,
  .custom-cursor-follower,
  .wave-background,
  .tool-description,
  .tool-features,
  .tool-content,
  .tool-interface,
  .search-modal,
  nav,
  footer,
  header,
  .container > *:not(.tool-result) {
    display: none !important;
    visibility: hidden !important;
  }
  
  /* Reset body for print */
  body {
    background: white !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Note: Individual tool pages define their own .tool-result print styles */
  
  /* Remove all shadows and borders */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  /* Ensure text is black */
  .tool-result,
  .tool-result * {
    color: #000 !important;
  }
}

/* ==========================================================================
   Professional Content Sections
   ========================================================================== */

/* Tool Content Sections */
.tool-content {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-lg) 0;
}

.tool-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

.tool-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.tool-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted-foreground);
  margin-bottom: var(--spacing-lg);
}

/* Professional Lists */
.tool-content ul {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0;
}

.tool-content ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--spacing-md);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.tool-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

/* Numbered Lists */
.tool-content ol {
  counter-reset: item;
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0;
}

.tool-content ol li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: var(--spacing-md);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  counter-increment: item;
}

.tool-content ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.feature-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
  margin: var(--spacing-2xl) 0;
}

.faq-item {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.faq-item h3::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-bottom: 0;
  padding-left: 2.25rem;
}

/* Info Boxes */
.info-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.info-box.success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-left-color: var(--success);
}

.info-box.warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-left-color: #f59e0b;
}

.info-box p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
}

/* Section Dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: var(--spacing-2xl) 0;
}

/* Responsive Design for Content */
@media (max-width: 768px) {
  .tool-content h2 {
    font-size: 1.5rem;
  }
  
  .tool-content h3 {
    font-size: 1.25rem;
  }
  
  .tool-content p,
  .tool-content ul li,
  .tool-content ol li {
    font-size: 1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    padding: var(--spacing-lg);
  }
}

/* ==========================================================================
   ANIMATIONS & EFFECTS (v2.0)
   ========================================================================== */

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Keyframe Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

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

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary);
  }
  50% {
    box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary);
  }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.2s; opacity: 0; }
.stagger-3 { animation-delay: 0.3s; opacity: 0; }
.stagger-4 { animation-delay: 0.4s; opacity: 0; }
.stagger-5 { animation-delay: 0.5s; opacity: 0; }
.stagger-6 { animation-delay: 0.6s; opacity: 0; }

/* Enhanced Card Hover Effects */
.card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.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);
  transition: left 0.5s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

/* Category Icon Animations */
.card svg {
  transition: transform 0.3s ease;
}

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

/* Button Ripple Effect */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

/* Input Field Glow Effect */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  animation: glow 2s ease-in-out infinite;
  border-color: var(--primary);
}

/* Tool Result Animation */
.tool-result {
  animation: fadeIn 0.5s ease-out;
}

.tool-result.show {
  animation: fadeIn 0.5s ease-out, pulse 0.5s ease-out;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

/* Floating Background Shapes */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  opacity: 0.05;
  animation: float 6s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
  top: 10%;
  left: 10%;
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  animation-delay: 0s;
}

.floating-shape:nth-child(2) {
  top: 60%;
  right: 10%;
  width: 120px;
  height: 120px;
  background: var(--success);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation-delay: 1s;
  animation-duration: 8s;
}

.floating-shape:nth-child(3) {
  bottom: 20%;
  left: 20%;
  width: 100px;
  height: 100px;
  background: var(--primary);
  transform: rotate(45deg);
  animation-delay: 2s;
  animation-duration: 7s;
}

/* Hero Section Animation */
.hero-title {
  animation: fadeIn 0.8s ease-out;
  position: relative;
  z-index: 1;
}

.hero-description {
  animation: fadeIn 0.8s ease-out 0.2s backwards;
  position: relative;
  z-index: 2;
}

.hero-search {
  animation: fadeIn 0.8s ease-out 0.4s backwards;
  position: relative;
  z-index: 3;
}

/* Scroll Reveal Effect */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Page Transition */
body {
  animation: fadeIn 0.3s ease-out;
}

/* Tool Interface Slide-in */
.tool-interface {
  animation: slideInLeft 0.6s ease-out;
}

/* Success/Error Message Animations */
.message-success,
.message-error {
  animation: slideInRight 0.4s ease-out;
}

/* Hover Glow for Important Elements */
.btn-primary:hover {
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

/* Number Counter Animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.count-up {
  animation: countUp 0.5s ease-out;
}

/* Skeleton Loading Animation */
.skeleton {
  background: linear-gradient(90deg, var(--secondary) 25%, var(--border) 50%, var(--secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  /* Reduce animation complexity on mobile for performance */
  .card:hover {
    transform: translateY(-4px);
  }
  
  .floating-shapes {
    display: none;
  }
  
  .animate-float {
    animation: none;
  }
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .floating-shapes {
    display: none;
  }
}

/* Interactive Tool Elements */
.tool-input-group {
  transition: all 0.3s ease;
}

.tool-input-group:focus-within {
  /* Removed scale to fix expansion bug */
}

/* Copy Button Animation */
.copy-btn {
  transition: all 0.2s ease;
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn.copied {
  background-color: var(--success) !important;
  animation: pulse 0.5s ease;
}

/* Progress Bar Animation */
@keyframes progress {
  from {
    width: 0%;
  }
}

.progress-bar {
  animation: progress 1s ease-out;
}

/* Tooltip Animation */
.tooltip {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.tooltip.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ==========================================================================
   CUSTOM CURSOR & PARTICLE EFFECTS (v2.1)
   ========================================================================== */

/* Custom Cursor - DISABLED (was causing cursor to disappear) */
/* Removed custom cursor functionality to fix disappearing cursor issue */

/* Particle Container */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(0);
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) translateX(var(--drift)) scale(1);
  }
}

/* Stagger particle animations */
.particle:nth-child(1) { left: 10%; animation-delay: 0s; --drift: 20px; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; --drift: -30px; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; --drift: 40px; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; --drift: -20px; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; --drift: 30px; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; --drift: -40px; }
.particle:nth-child(7) { left: 70%; animation-delay: 0.5s; --drift: 25px; }
.particle:nth-child(8) { left: 80%; animation-delay: 1.5s; --drift: -35px; }
.particle:nth-child(9) { left: 90%; animation-delay: 2.5s; --drift: 45px; }
.particle:nth-child(10) { left: 15%; animation-delay: 3.5s; --drift: -25px; }

/* Wave Animation Background */
.wave-background {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  z-index: -1;
  opacity: 0.05;
  overflow: hidden;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: waveMove 10s linear infinite;
}

.wave:nth-child(2) {
  animation-delay: -5s;
  opacity: 0.5;
}

@keyframes waveMove {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* Gradient Orbs */
.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
  animation: orbFloat 20s ease-in-out infinite;
}

.gradient-orb-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.gradient-orb-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  bottom: -250px;
  right: -250px;
  animation-delay: -10s;
}

.gradient-orb-3 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  top: 50%;
  left: 50%;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-50px, 50px) scale(0.9);
  }
}

/* Disable particles and orbs on mobile for performance */
@media (max-width: 768px) {
  .particles-container,
  .gradient-orb {
    display: none;
  }
}

/* ==========================================================================
   TOOL PAGE ANIMATIONS (v2.2)
   ========================================================================== */

/* Tool Container Entrance */
.tool-container {
  animation: toolPageFadeIn 0.6s ease-out;
}

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

/* Tool Header Animation */
.tool-header {
  animation: toolHeaderSlide 0.8s ease-out 0.2s both;
}

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

/* Tool Title Gradient Effect */
.tool-title {
  background: linear-gradient(135deg, #1e40af, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: toolTitlePulse 3s ease-in-out infinite;
}

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

/* Tool Input Groups Stagger Animation */
.tool-input-group:nth-child(1) {
  animation: toolInputSlide 0.6s ease-out 0.3s both;
}

.tool-input-group:nth-child(2) {
  animation: toolInputSlide 0.6s ease-out 0.4s both;
}

.tool-input-group:nth-child(3) {
  animation: toolInputSlide 0.6s ease-out 0.5s both;
}

.tool-input-group:nth-child(4) {
  animation: toolInputSlide 0.6s ease-out 0.6s both;
}

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

/* Button Hover Glow */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

/* Result Box Animation */
.tool-result {
  animation: resultAppear 0.5s ease-out;
}

@keyframes resultAppear {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Tool Content Sections */
.tool-content h2,
.tool-content h3 {
  animation: contentHeadingSlide 0.6s ease-out;
}

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

/* Input Focus Glow Enhancement */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 0 20px rgba(37, 99, 235, 0.2);
  animation: inputFocusGlow 1.5s ease-in-out infinite;
}

@keyframes inputFocusGlow {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 0 20px rgba(37, 99, 235, 0.2);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 0 30px rgba(37, 99, 235, 0.3);
  }
}

/* Copy Button Success Animation */
.copy-btn.copied {
  animation: copySuccess 0.6s ease-out;
}

@keyframes copySuccess {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* Tool Icon Bounce */
.tool-icon {
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Loading State */
.tool-loading {
  animation: toolLoadingPulse 1.5s ease-in-out infinite;
}

@keyframes toolLoadingPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Disable animations on mobile for performance */
@media (max-width: 768px) {
  .tool-container,
  .tool-header,
  .tool-input-group {
    animation: none;
  }
  
  .tool-title {
    animation: none;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* ==========================================================================
   Dropdown Menu Styles
   ========================================================================== */

/* Override default navigation styles for dropdown menu */
.site-navigation .nav-menu {
    display: flex !important;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.site-navigation .nav-menu > li {
    position: relative;
    margin: 0;
}

.site-navigation .nav-menu > li > a {
    color: var(--foreground) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem !important;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: block;
    white-space: nowrap;
}

.site-navigation .nav-menu > li > a:hover {
    color: var(--primary) !important;
}

/* Dropdown Styles */
.site-navigation .menu-item-has-children {
    position: relative;
}

.site-navigation .menu-item-has-children > a::after {
    content: "▼";
    font-size: 0.625rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.site-navigation .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.site-navigation .sub-menu {
    position: absolute !important;
    top: 100%;
    left: auto;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    list-style: none;
    margin: 0.5rem 0 0 0 !important;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: block !important;
}

/* First dropdown (Tools) aligns left */
.site-navigation .nav-menu > li:nth-child(2) .sub-menu {
    left: 0;
    right: auto;
}

.site-navigation .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-navigation .sub-menu li {
    margin: 0;
    display: block;
}

.site-navigation .sub-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--foreground) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9375rem !important;
    white-space: nowrap;
}

.site-navigation .sub-menu li a:hover {
    background: var(--secondary);
    color: var(--primary) !important;
    padding-left: 2rem;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .site-navigation .nav-menu {
        flex-direction: column !important;
        gap: 0;
        align-items: stretch !important;
        padding: 1rem;
        width: 100%;
    }
    
    .site-navigation .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    
    .site-navigation .nav-menu > li > a {
        display: block;
        padding: 1rem !important;
        font-size: 1rem !important;
    }
    
    .site-navigation .sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        margin-top: 0 !important;
        background: var(--secondary);
    }
    
    .site-navigation .sub-menu li a {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .site-navigation .menu-item-has-children > a::after {
        float: right;
    }
    
    .site-navigation .search-toggle {
        margin: 1rem;
        width: calc(100% - 2rem);
        justify-content: center;
        padding: 1rem;
        background: var(--primary);
        color: white;
        border-radius: var(--radius-md);
    }
}

/* ==========================================================================
   Live Search Dropdown
   ========================================================================== */

.live-search-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid var(--border) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    margin-top: 0.5rem !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    z-index: 10000 !important;
    width: 100% !important;
}

.search-result-item {
    display: block !important;
    padding: 0.75rem 1rem !important;
    color: var(--foreground) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--border) !important;
    transition: all 0.2s ease !important;
    background: white !important;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--secondary);
    color: var(--primary);
    padding-left: 1.5rem;
}

.search-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--muted-foreground);
}

/* ==========================================================================
   Search Modal & Button
   ========================================================================== */

.search-toggle {
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    margin-left: var(--spacing-md);
}

.search-toggle:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

.search-toggle svg {
    width: 20px;
    height: 20px;
}

.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    backdrop-filter: blur(4px);
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.3s ease;
}

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

.search-modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.search-modal-close:hover {
    background-color: var(--secondary);
    color: var(--foreground);
}

.search-modal h2 {
    margin-bottom: var(--spacing-lg);
    color: var(--foreground);
}

.search-modal .search-form {
    position: relative;
}

.search-input-wrapper {
    position: relative;
}

.search-modal input[type="search"] {
    width: 100%;
    padding: var(--spacing-md);
    font-size: 1.125rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.2s ease;
}

.search-modal input[type="search"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Live search results inside modal */
.search-modal .live-search-dropdown {
    margin-top: var(--spacing-md);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .search-toggle {
        margin-left: var(--spacing-sm);
    }
    
    .search-modal {
        padding-top: 5vh;
    }
    
    .search-modal-content {
        width: 95%;
        padding: var(--spacing-lg);
    }
    
    .search-modal h2 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Cursor Fix - Ensure cursor is always visible
   ========================================================================== */

* {
    cursor: auto !important;
}

a, button, input[type="submit"], input[type="button"], .btn, .card {
    cursor: pointer !important;
}

input[type="text"], input[type="search"], input[type="email"], input[type="tel"], textarea, select {
    cursor: text !important;
}

/* Ensure footer has visible cursor */
.site-footer,
.site-footer * {
    cursor: auto !important;
}

.site-footer a {
    cursor: pointer !important;
}
