/* Base styles */
:root {
    --background: #ffffff;
    --foreground: #0f172a;
    --muted: #64748b;
    --muted-foreground: #64748b;
    --primary: #0f172a;
    --primary-foreground: #ffffff;
    --border: #e2e8f0;
    --radius: 0.5rem;
    --animation-timing: cubic-bezier(0.16, 1, 0.3, 1); /* Smooth easing function */
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  /* Header */
  .header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
  }
  
  .header-content {
    display: flex;
    align-items: center;
    height: 4rem;
  }
  
  .logo {
    margin-right: 1rem;
    font-size: 1.25rem;
    font-weight: bold;
  }
  
  .nav {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    gap: 1rem;
  }
  
  .nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.2s;
  }
  
  .nav a:hover {
    color: var(--primary);
  }
  
  /* Main content */
  .main {
    padding: 2.5rem 0;
  }
  
  .hero {
    margin-bottom: 3rem;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
  }
  
  @media (min-width: 640px) {
    .hero h1 {
      font-size: 3.5rem;
    }
  }
  
  @media (min-width: 768px) {
    .hero h1 {
      font-size: 4rem;
    }
  }
  
  .hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--muted-foreground);
  }
  
  /* Tools grid */
  .tools-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }
  
  @media (min-width: 640px) {
    .tools-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1024px) {
    .tools-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  .tool-card {
    position: relative;
    height: 250px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
    z-index: 1;
  }
  
  .tool-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  .tool-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
  }
  
  .tool-card:hover .tool-card-image {
    transform: scale(1.05);
  }
  
  .tool-card-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    pointer-events: none;
    transition: opacity 0.8s var(--animation-timing); /* Slower fade out */
  }
  
  .tool-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.25rem;
  }
  
  .tool-card-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
  }
  
  .tool-card-link {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, opacity 0.8s var(--animation-timing); /* Slower fade out */
    z-index: 2;
  }
  
  .tool-card-link:hover {
    background-color: rgba(255, 255, 255, 1);
  }
  
  .tool-card-link svg {
    width: 1rem;
    height: 1rem;
  }
  
  /* Footer */
  .footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
  }
  
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  @media (min-width: 768px) {
    .footer-content {
      flex-direction: row;
      justify-content: space-between;
    }
  }
  
  .footer p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-align: center;
  }
  
  @media (min-width: 768px) {
    .footer p {
      text-align: left;
    }
  }
  
  .footer-links {
    display: flex;
    gap: 1rem;
  }
  
  .footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
  }
  
  .footer-links a:hover {
    text-decoration: underline;
  }
  
  /* Animation overlay */
  .animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s var(--animation-timing); /* Slower fade in */
  }
  
  .animation-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
  
  /* Animation classes */
  .animating {
    position: fixed;
    z-index: 101;
    transition: all 1.2s var(--animation-timing); /* Slower overall transition */
  }
  
  .fade-content .tool-card-content,
  .fade-content .tool-card-link {
    opacity: 0;
  }
  
  /* Animation keyframes */
  @keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
  }
  
  .fade-out {
    animation: fadeOut 0.8s var(--animation-timing) forwards; /* Slower fade out animation */
  }