/* navbar.css - Complete Navigation Styles */

/* NAVBAR STYLES */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 62px;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-ink) 8%, transparent);
  box-shadow: 0 1px 10px color-mix(in srgb, var(--color-ink) 9%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Enhanced backdrop-filter support */
@supports (backdrop-filter: blur(10px)) {
  .nav {
    background: rgba(248, 250, 252, 0.6);
    backdrop-filter: blur(10px);
  }
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
  .nav {
    background: rgba(248, 250, 252, 0.95);
  }
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
}

.nav-brand:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-ink);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-toggle:hover {
  background-color: color-mix(in srgb, var(--color-ink) 10%, transparent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-ink);
  transition: color 0.3s ease;
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.demo-btn {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-base) !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.4);
  color: var(--color-base) !important;
}

/* Add padding to body to account for fixed navbar */
body {
  padding-top: 62px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--color-base);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 400px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .nav-links a:hover {
    background-color: color-mix(in srgb, var(--color-primary) 5%, transparent);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .demo-btn {
    margin: 0.5rem 2rem 1rem 2rem !important;
    text-align: center;
    border-bottom: none !important;
    padding: 0.8rem 1.5rem !important;
  }

  .demo-btn:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .nav,
  .nav-links,
  .nav-toggle,
  .demo-btn {
    transition: none !important;
  }
}

/* Focus styles for keyboard navigation */
.nav-toggle:focus,
.nav-links a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Active state for current page */
.nav-links a.active {
  color: var(--color-primary);
  font-weight: 600;
}

 .footer {
            border-top: 1px solid var(--color-border);
            background: #0F172A;
            color: #fff;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 3rem 1rem;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .footer-section {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }

        .footer-logo img {
            width: auto;
            height: 40px;
        }

        .footer-description {
            font-size: 0.875rem;
            color: #fff;
            margin-bottom: 0.5rem;
        }

        .footer-contact {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            font-size: 0.875rem;
            color: #fff
        }

        .footer-heading {
            font-size: 0.875rem;
            font-weight: 600;
            color: #fff;
            margin-bottom: 0.5rem;
        }

        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .footer-links a {
            font-size: 0.875rem;
            color: #fff;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .footer-links a:hover {
            color: var(--color-primary);
        }

        .footer-bottom {
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid var(--color-border);
            text-align: center;
        }

        .footer-copyright {
            font-size: 0.875rem;
            color: var(--color-muted);
        }

        @media (min-width: 768px) {
            .footer-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (min-width: 640px) and (max-width: 767px) {
            .footer-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }