/* Custom CSS for Tachiyomi Website */

:root {
  --primary-color: #8b5cf6;
  --secondary-color: #ef4444;
  --accent-color: #f59e0b;
  --dark-bg: #020817;
  --dark-card: #1e293b;
  --dark-border: #334155;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --gradient: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  --gradient-subtle: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1),
    rgba(239, 68, 68, 0.1)
  );
}

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

body {
  background-color: var(--dark-bg);
  color: var(--text-light);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Navigation */
.custom-navbar {
  background: rgba(2, 8, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border);
  padding: 0.75rem 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: bold;
  font-size: 1.1rem;
}

.brand-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 1.25rem;
}

.navbar-nav .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

.btn-gradient {
  background: var(--gradient);
  color: var(--text-light);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
  color: var(--text-light);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--dark-bg),
    var(--dark-card),
    var(--dark-bg)
  );
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0L20 20L0 20Z' fill='%23334155' fill-opacity='0.02'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-buttons {
  margin-bottom: 2rem;
}

.hero-features {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.feature-badge {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-image-container {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(139, 92, 246, 0.2), transparent);
  border-radius: 24px;
}

/* Sections */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 3rem;
}

.bg-dark-card {
  background-color: rgba(30, 41, 59, 0.3);
}

.bg-gradient-subtle {
  background: var(--gradient-subtle);
}

/* Feature Cards */
.feature-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(139, 92, 246, 0.3);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
  color: var(--primary-color);
}

.feature-description {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Statistics */
.stat-card {
  padding: 1.5rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-number {
  transform: scale(1.1);
}

.stat-label {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-description {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Accordion */
.custom-accordion .accordion-item {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  margin-bottom: 0.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.custom-accordion .accordion-button {
  background: var(--dark-card);
  color: var(--text-light);
  border: none;
  padding: 1.5rem;
  font-weight: 600;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background: var(--dark-card);
  color: var(--primary-color);
  box-shadow: none;
}

.custom-accordion .accordion-button:focus {
  box-shadow: none;
  border: none;
}

.custom-accordion .accordion-body {
  background: var(--dark-bg);
  color: var(--text-muted);
  border-top: 1px solid var(--dark-border);
}

/* CTA Section */
.cta-section {
  background: var(--gradient);
  padding: 5rem 0;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
}

.cta-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}

.cta-buttons {
  margin-bottom: 2rem;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-feature {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* Footer */
.footer {
  background: var(--dark-card);
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--dark-border);
}

.footer-brand .brand-icon {
  width: 32px;
  height: 32px;
}

.footer-description {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-title {
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

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

.footer-contact .contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-contact .contact-item i {
  margin-right: 0.75rem;
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 2rem;
  margin-top: 3rem;
}

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

.footer-links-bottom {
  display: flex;
  gap: 1.5rem;
  justify-content: end;
}

.footer-links-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-features {
    justify-content: center;
  }

  .cta-features {
    justify-content: center;
  }

  .footer-links-bottom {
    justify-content: center;
    margin-top: 1rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .hero-buttons {
    text-align: center;
  }

  .hero-buttons .btn {
    display: block;
    margin-bottom: 1rem;
    width: 100%;
  }

  .cta-buttons .btn {
    display: block;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}

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

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

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

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

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

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