@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

@tailwind base;
@tailwind components;
@tailwind utilities;

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

:root {
  --primary: mediumpurple;
  --accent: coral;
  --text-dark: #2d3748;
  --text-light: #4a5568;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background-color: var(--bg-light);
}

/* Navigation styles */
nav {
  background: var(--bg-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

nav ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

nav ul li {
  list-style: none !important;
}

nav ul li::before,
nav ul li::after,
nav ul li::marker {
  display: none !important;
  content: none !important;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
}

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

.nav-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

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

  .nav-cta {
    width: 100%;
    justify-content: center;
  }
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, #f5f0ff 0%, #fff5f5 100%);
  padding: 4rem 1.5rem !important;
  margin-bottom: 3rem !important;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  margin-bottom: 1.5rem !important;
  line-height: 1.2 !important;
}

.hero-content p {
  font-size: 1.125rem !important;
  color: var(--text-light) !important;
  margin-bottom: 2rem !important;
  line-height: 1.7 !important;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2rem !important;
  }

  .hero-content p {
    font-size: 1rem !important;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section styles */
section {
  margin-bottom: 4rem;
}

section h2 {
  font-size: 2.25rem !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  margin-bottom: 1.5rem !important;
  margin-top: 2rem !important;
}

section h3 {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: var(--text-dark) !important;
  margin-bottom: 1rem !important;
  margin-top: 1.5rem !important;
}

section p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  section h2 {
    font-size: 1.75rem !important;
  }

  section h3 {
    font-size: 1.25rem !important;
  }
}

/* Table of Contents */
.toc {
  background: var(--bg-white);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.toc ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.toc li {
  list-style: none !important;
  padding: 0.75rem 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid #e2e8f0;
}

.toc li:last-child {
  border-bottom: none;
}

.toc li::before,
.toc li::after,
.toc li::marker {
  display: none !important;
  content: none !important;
}

.toc a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.125rem;
  display: block;
  transition: color 0.3s;
}

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

/* Card styles */
.card {
  background: var(--bg-white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* List styles */
ul, ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.8;
  list-style: none;
}

ul li, ol li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

ul li::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background: coral;
  border-radius: 50%;
}

ol {
  counter-reset: item;
}

ol li::before {
  content: counter(item) '.';
  counter-increment: item;
  position: absolute;
  left: -2rem;
  color: coral;
  font-weight: 600;
}

/* Table styles */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: var(--bg-white);
}

thead {
  background: var(--primary);
  color: white;
}

thead th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.2s;
}

tbody tr:hover {
  background-color: #f7fafc;
}

tbody td {
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  color: var(--text-light);
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  text-decoration: none !important;
  border-radius: 0.5rem;
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap !important;
  line-height: 1.5 !important;
}

.btn-primary {
  background: transparent !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

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

.btn-accent {
  background: transparent !important;
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

.btn-accent:hover {
  background: var(--accent) !important;
  color: white !important;
}

/* Image styles */
picture {
  display: block;
  margin: 2rem 0;
}

picture img {
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-section h3 {
  color: white !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  margin-bottom: 1.5rem !important;
}

.footer-section ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-section li {
  list-style: none !important;
  margin-bottom: 0.75rem !important;
  padding: 0 !important;
}

.footer-section li::before,
.footer-section li::after,
.footer-section li::marker {
  display: none !important;
  content: none !important;
}

.footer-section a {
  color: #cbd5e0;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid #4a5568;
  padding-top: 2rem;
  text-align: center;
  color: #cbd5e0;
  font-size: 0.875rem;
}

/* Icon styles */
.material-icons {
  color: var(--primary);
  font-size: 2rem;
  vertical-align: middle;
}

.icon-accent {
  color: var(--accent);
}

/* Feature cards with icons */
.feature-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
}

.feature-content {
  flex-grow: 1;
}

/* Responsive utilities */
@media (max-width: 640px) {
  .btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
  }

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

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

/* Text readability */
p, li, td {
  font-size: 1.125rem;
}

@media (max-width: 768px) {
  p, li, td {
    font-size: 1rem;
  }
}

/* Ensure minimum contrast */
.text-readable {
  color: var(--text-dark);
  background-color: var(--bg-white);
}

/* Strong text */
strong {
  font-weight: 600;
  color: var(--text-dark);
}
