:root {
  --primary-100: #e6f2ff;
  --primary-200: #b3d9ff;
  --primary-300: #80bfff;
  --primary-400: #4da6ff;
  --primary-500: #0066ff;
  --primary-600: #0052cc;
  --primary-700: #003d99;
  --primary-800: #002966;
  --primary-900: #001433;

  --secondary-100: #f3f0ff;
  --secondary-200: #e4d9ff;
  --secondary-300: #d1bfff;
  --secondary-400: #b399ff;
  --secondary-500: #8b5cf6;
  --secondary-600: #7c4ae6;
  --secondary-700: #6b37d6;
  --secondary-800: #5a24c6;
  --secondary-900: #4912b6;

  --success-100: #ecfdf5;
  --success-200: #d1fae5;
  --success-300: #a7f3d0;
  --success-400: #6ee7b7;
  --success-500: #10b981;
  --success-600: #059669;
  --success-700: #047857;
  --success-800: #065f46;
  --success-900: #064e3b;

  --warning-100: #fffbeb;
  --warning-200: #fef3c7;
  --warning-300: #fcd34d;
  --warning-400: #fbbf24;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --warning-700: #b45309;
  --warning-800: #92400e;
  --warning-900: #78350f;

  --danger-100: #fef2f2;
  --danger-200: #fecaca;
  --danger-300: #fca5a5;
  --danger-400: #f87171;
  --danger-500: #ef4444;
  --danger-600: #dc2626;
  --danger-700: #b91c1c;
  --danger-800: #991b1b;
  --danger-900: #7f1d1d;

  --gray-50: #fefefe;
  --gray-100: #f7f7f7;
  --gray-200: #e8e8e8;
  --gray-300: #d1d1d1;
  --gray-400: #9a9a9a;
  --gray-500: #6b6b6b;
  --gray-600: #4a4a4a;
  --gray-700: #2d2d2d;
  --gray-800: #1a1a1a;
  --gray-900: #0a0a0a;

  --white: #fefefe;
  --black: #0a0a0a;

  --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
  --gradient-success: linear-gradient(135deg, var(--success-500) 0%, var(--primary-500) 100%);
  --gradient-hero: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 40%, var(--success-500) 100%);
  --gradient-brand: linear-gradient(135deg, #0066FF 0%, #8B5CF6 50%, #10B981 100%);

  --shadow-sm: 0 2px 4px 0 rgb(0 0 0 / 0.03);
  --shadow: 0 4px 16px 0 rgb(0 0 0 / 0.04);
  --shadow-md: 0 8px 32px 0 rgb(0 0 0 / 0.08);
  --shadow-lg: 0 16px 48px 0 rgb(0 0 0 / 0.12);
  --shadow-xl: 0 24px 64px 0 rgb(0 0 0 / 0.16);
  --shadow-2xl: 0 32px 80px 0 rgb(0 0 0 / 0.20);
  
  --shadow-soft: 0 8px 32px rgb(0 0 0 / 0.08);
  --shadow-glow: 0 0 32px rgb(102 123 255 / 0.15);
  --shadow-brand: 0 8px 32px rgb(0 102 255 / 0.12);

  --border-radius-sm: 0.375rem;
  --border-radius: 0.75rem;
  --border-radius-md: 1rem;
  --border-radius-lg: 1.5rem;
  --border-radius-xl: 2rem;
  --border-radius-2xl: 2.5rem;

  --font-family-base: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-family-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Fira Code', monospace;
  
  --spacing-base: 8px;
  --spacing-xs: calc(var(--spacing-base) * 0.5);
  --spacing-sm: calc(var(--spacing-base) * 1);
  --spacing-md: calc(var(--spacing-base) * 2);
  --spacing-lg: calc(var(--spacing-base) * 3);
  --spacing-xl: calc(var(--spacing-base) * 4);
  --spacing-2xl: calc(var(--spacing-base) * 6);
  --spacing-3xl: calc(var(--spacing-base) * 8);
  --spacing-4xl: calc(var(--spacing-base) * 10);
  --spacing-5xl: calc(var(--spacing-base) * 12);
  --spacing-6xl: calc(var(--spacing-base) * 16);
  --spacing-7xl: calc(var(--spacing-base) * 20);
  
  /* Modern container system */
  --container-xs: 480px;
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1440px;
  
  /* Grid and layout */
  --grid-gap: clamp(1rem, 3vw, 2rem);
  --section-padding: clamp(4rem, 8vw, 6rem);
  --card-padding: clamp(1.5rem, 4vw, 2.5rem);

  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.25s ease-in-out;
  --transition-slow: 0.35s ease-in-out;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-900);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container-2xl);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.container-xs { max-width: var(--container-xs); }
.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }
.container-xl { max-width: var(--container-xl); }
.container-2xl { max-width: var(--container-2xl); }

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254, 254, 254, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(232, 232, 232, 0.5);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-normal);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-brand h1 {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Advanced Navigation System */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--gray-100);
  color: var(--gray-900);
  transform: translateY(-2px);
}

.nav-link i {
  width: 18px;
  height: 18px;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.dropdown-arrow {
  transition: transform var(--transition-fast);
}

.dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--spacing-md));
  left: 0;
  min-width: 600px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-2xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: 1001;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--spacing-3xl);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-4xl);
}

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

.dropdown-section {
  display: flex;
  flex-direction: column;
}

.dropdown-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-lg);
  padding: 0 var(--spacing-sm);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) var(--spacing-md);
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-fast);
  margin-bottom: var(--spacing-xs);
}

.dropdown-link:hover {
  background: var(--gray-50);
  color: var(--primary-600);
  transform: translateX(4px);
}

.dropdown-link i {
  width: 20px;
  height: 20px;
  color: var(--primary-500);
  flex-shrink: 0;
}

.dropdown-link div {
  display: flex;
  flex-direction: column;
}

.link-title {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.link-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.search-toggle,
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--border-radius);
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-toggle:hover,
.mobile-menu-toggle:hover {
  background: var(--gray-200);
  color: var(--gray-800);
  transform: scale(1.05);
}

.mobile-menu-toggle {
  display: none;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-container {
  max-width: 600px;
  margin: 10vh auto 0;
  padding: 0 var(--spacing-lg);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-lg) var(--spacing-xl);
  box-shadow: var(--shadow-2xl);
  margin-bottom: var(--spacing-lg);
}

.search-box i:first-child {
  width: 24px;
  height: 24px;
  color: var(--gray-400);
  margin-right: var(--spacing-md);
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.125rem;
  color: var(--gray-900);
  background: transparent;
}

.search-box input::placeholder {
  color: var(--gray-500);
}

.search-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-close:hover {
  background: var(--gray-200);
}

.search-results {
  background: var(--white);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  max-height: 60vh;
  overflow-y: auto;
  padding: var(--spacing-lg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--white);
  z-index: 2001;
  transition: right var(--transition-normal);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-xl);
  border-bottom: 1px solid var(--gray-200);
}

.mobile-menu-header h3 {
  font-weight: 700;
  color: var(--gray-900);
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-content {
  padding: var(--spacing-xl);
}

.mobile-nav-section {
  margin-bottom: var(--spacing-5xl);
}

.mobile-nav-section h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-lg);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-fast);
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.mobile-nav-link:hover {
  background: var(--gray-50);
  color: var(--primary-600);
}

.mobile-nav-link i {
  width: 20px;
  height: 20px;
  color: var(--primary-500);
}

/* Navigation responsive breakpoints */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .search-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  .dropdown-menu {
    min-width: 90vw;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    grid-template-columns: 1fr;
  }
  
  .dropdown.active .dropdown-menu {
    transform: translateX(-50%) translateY(0);
  }
  
  .search-container {
    margin-top: 5vh;
    padding: 0 var(--spacing-md);
  }
}


.hero {
  padding-top: clamp(120px, 15vw, 180px);
  padding-bottom: var(--section-padding);
  background: var(--gradient-hero);
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.1;
}

.hero-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 2rem;
  letter-spacing: -0.04em;
}

.gradient-text {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.375rem;
  opacity: 0.9;
  margin-bottom: 3.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-family-mono);
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main {
  padding: var(--section-padding) 0;
}

.tools-section {
  margin-bottom: var(--section-padding);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: var(--grid-gap);
  margin-top: var(--spacing-5xl);
}

.tool-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-xl);
  padding: var(--card-padding);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(0);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: all var(--transition-normal);
}

.tool-card:hover {
  box-shadow: var(--shadow-2xl);
  transform: translateY(-8px);
  border-color: var(--primary-300);
}

.tool-card:hover::before {
  opacity: 1;
}

/* Glassmorphism elements */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}


.tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: var(--border-radius-2xl);
  background: var(--gradient-brand);
  color: white;
  margin-bottom: var(--spacing-5xl);
  box-shadow: var(--shadow-brand);
  position: relative;
  overflow: hidden;
}

.tool-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--border-radius-2xl);
  background: var(--gradient-brand);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.tool-card:hover .tool-icon::before {
  opacity: 0.3;
  animation: pulse-glow 2s ease-in-out infinite;
}

.tool-icon i {
  width: 36px;
  height: 36px;
}

.tool-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--spacing-xl);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.tool-description {
  color: var(--gray-600);
  margin-bottom: var(--spacing-5xl);
  line-height: 1.65;
  flex-grow: 1;
  font-size: 1rem;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-5xl);
}

.tag {
  display: inline-flex;
  align-items: center;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--border-radius-lg);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.tag:hover {
  background: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-200);
  transform: translateY(-1px);
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--primary-600);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-top: auto;
  padding: var(--spacing-sm) 0;
  border-radius: var(--border-radius);
  position: relative;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.tool-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
  border-radius: 1px;
}

.tool-link:hover {
  color: var(--primary-700);
  gap: var(--spacing-md);
}

.tool-link:hover::before {
  width: 60px;
}

.tool-link i {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.tool-link:hover i {
  transform: translateX(2px);
}

.about-section {
  background: var(--gray-50);
  padding: var(--section-padding);
  border-radius: var(--border-radius-2xl);
  margin: var(--section-padding) var(--spacing-md);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--spacing-5xl);
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-content p {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--section-padding) 0 var(--spacing-5xl);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gray-700) 50%, transparent 100%);
  transform: translateX(-50%);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--gray-400);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--primary-400);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-content p {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.footer-bottom-content a {
  color: var(--primary-400);
  text-decoration: none;
  font-weight: 500;
}

.footer-bottom-content a:hover {
  color: var(--primary-300);
}


/* Enhanced animations and effects */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

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

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

.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Modern hover effects */
.hover-lift {
  transition: all var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Enhanced focus styles */
.focus-ring {
  position: relative;
}

.focus-ring:focus-visible {
  outline: none;
}

.focus-ring:focus-visible::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--primary-500);
  border-radius: inherit;
  animation: pulse-ring 0.3s ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.05); opacity: 0; }
}

/* Performance optimizations */
.tool-card,
.btn,
.tool-icon {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* 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;
  }
  
  .tool-card:hover,
  .btn:hover {
    transform: translate3d(0, 0, 0);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .tool-card {
    border-width: 2px;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
  
  .tag {
    border: 1px solid currentColor;
  }
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: shimmer 1.5s infinite;
}

/* ===== RESPONSIVE SYSTEM MAGISTRALE ===== */
/* Mobile First Approach - Breakpoints moderni */

/* Extra Small Devices - Portrait Phones (320px - 374px) */
@media (max-width: 374px) {
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .hero-title {
    font-size: clamp(2rem, 10vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-3xl);
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: var(--spacing-4xl);
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-2xl);
    align-items: center;
  }
  
  .stat {
    width: 100%;
    max-width: 200px;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
  
  .tool-card {
    padding: var(--spacing-3xl);
    text-align: center;
  }
  
  .tool-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-3xl);
  }
  
  .tool-icon i {
    width: 28px;
    height: 28px;
  }
  
  .tool-title {
    font-size: 1.375rem;
  }
  
  .nav-brand h1 {
    font-size: 1.25rem;
  }
  
  .nav-tagline {
    display: none;
  }
}

/* Small Devices - Landscape Phones (375px - 575px) */
@media (min-width: 375px) and (max-width: 575px) {
  .container {
    padding: 0 var(--spacing-lg);
  }
  
  .hero {
    padding-top: clamp(100px, 12vw, 140px);
    padding-bottom: var(--spacing-7xl);
  }
  
  .hero-stats {
    flex-direction: row;
    gap: var(--spacing-2xl);
    justify-content: space-between;
  }
  
  .stat {
    flex: 1;
    min-width: 80px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .tool-card {
    padding: var(--spacing-4xl);
  }
  
  .tool-icon {
    width: 72px;
    height: 72px;
  }
  
  .tool-icon i {
    width: 32px;
    height: 32px;
  }
}

/* Medium Devices - Portrait Tablets (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .container {
    padding: 0 var(--spacing-xl);
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-3xl);
    max-width: 600px;
    margin: var(--spacing-5xl) auto 0;
  }
  
  .tool-card {
    padding: var(--spacing-5xl);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-3xl);
    text-align: left;
    align-items: start;
  }
  
  .tool-icon {
    margin: 0;
    grid-row: 1 / span 2;
  }
  
  .tool-content {
    grid-column: 2;
    display: flex;
    flex-direction: column;
  }
  
  .tool-title {
    margin-bottom: var(--spacing-md);
  }
  
  .tool-description {
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
  }
  
  .tool-tags {
    margin-bottom: var(--spacing-lg);
  }
  
  .tool-link {
    margin-top: auto;
  }
  
  .hero-stats {
    gap: var(--spacing-5xl);
  }
  
  .about-section {
    margin: var(--spacing-7xl) var(--spacing-lg);
  }
}

/* Large Devices - Landscape Tablets & Small Laptops (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    padding: 0 var(--spacing-2xl);
  }
  
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-4xl);
  }
  
  .tool-card {
    padding: var(--spacing-4xl);
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  
  .tool-icon {
    margin: 0 auto var(--spacing-4xl);
    width: 80px;
    height: 80px;
  }
  
  .tool-icon i {
    width: 36px;
    height: 36px;
  }
  
  .hero-container {
    padding: 0 var(--spacing-2xl);
  }
  
  .nav-container {
    padding: 0 var(--spacing-2xl);
  }
  
  .footer-content {
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-5xl);
  }
}

/* Extra Large Devices - Laptops & Desktops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-4xl);
  }
  
  .tool-card {
    padding: var(--spacing-5xl);
  }
}

/* XXL Devices - Large Desktops (1200px+) */
@media (min-width: 1200px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-4xl);
  }
  
  .container {
    max-width: min(1440px, calc(100vw - 4rem));
  }
}

/* ===== ORIENTAMENTO SPECIFICO ===== */

/* Portrait Orientation - Mobile & Tablet */
@media (orientation: portrait) and (max-width: 768px) {
  .hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
  }
  
  .hero-stats {
    margin-top: var(--spacing-5xl);
  }
  
  .main {
    padding-top: var(--spacing-6xl);
  }
  
  .tools-section {
    margin-bottom: var(--spacing-6xl);
  }
}

/* Landscape Orientation - Mobile */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    padding-top: 120px;
    padding-bottom: var(--spacing-5xl);
    min-height: auto;
  }
  
  .hero-stats {
    flex-direction: row;
    gap: var(--spacing-4xl);
    margin-top: var(--spacing-3xl);
  }
  
  .main {
    padding-top: var(--spacing-4xl);
  }
  
  .navbar {
    backdrop-filter: blur(20px);
  }
}

/* ===== HIGH-DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .tool-icon,
  .btn {
    transform: translate3d(0, 0, 0);
  }
  
  .hero::before {
    opacity: 0.05;
  }
}

