/* Reset and Body Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4e73df;
  --primary-dark: #224abe;
  --primary-light: #eaecf4;
  --secondary-color: #858796;
  --success-color: #1cc88a;
  --info-color: #36b9cc;
  --warning-color: #f6c23e;
  --danger-color: #e74a3b;
  --light-color: #f8f9fc;
  --dark-color: #5a5c69;
  --card-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: var(--light-color);
  color: var(--dark-color);
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
  padding: 4rem 1rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.1;
  pointer-events: none;
}

header h1 {
  font-size: 3em;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header p {
  font-size: 1.3em;
  margin-top: 1rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* Navigation Bar */
nav {
  background-color: white;
  display: flex;
  justify-content: center;
  padding: 0.75rem 0;
  box-shadow: var(--card-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

nav a {
  color: var(--dark-color);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  display: block;
  transition: var(--transition);
  font-weight: 600;
  border-radius: 0.5rem;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 80%;
}

nav a:hover {
  color: var(--primary-color);
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 300px;
  box-shadow: var(--card-shadow);
  z-index: 1;
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  transform: translateY(10px);
  opacity: 0;
  transition: var(--transition);
}

.dropdown:hover .dropdown-content {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.dropdown-content a {
  color: var(--dark-color);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  display: block;
  text-align: left;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.dropdown-content a:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

/* Main Section */
main {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.hero h2 {
  font-size: 2.5em;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.hero h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.hero p {
  font-size: 1.3em;
  color: var(--secondary-color);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero img {
  width: 100%;
  max-width: 400px;
  margin-top: 2rem;
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.hero img:hover {
  transform: scale(1.02);
}

/* Section Cards */
.sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.section-card {
  background: white;
  box-shadow: var(--card-shadow);
  border-radius: 1rem;
  text-align: center;
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid #e3e6f0;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.6s ease-out forwards;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: var(--transition);
}

.section-card:hover::before {
  transform: scaleX(1);
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 2rem rgba(58, 59, 69, 0.2);
}

.section-card h3 {
  font-size: 1.5em;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-card p {
  font-size: 1.1em;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.section-card a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  color: white;
  background: var(--primary-color);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.section-card a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition);
}

.section-card a:hover::before {
  left: 100%;
}

.section-card a:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Content Sections */
.content {
  margin: 2rem auto;
  padding: 2.5rem;
  max-width: 1000px;
  background: white;
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
}

section {
  margin-bottom: 3rem;
}

h2 {
  color: var(--primary-color);
  border-bottom: 2px solid #e3e6f0;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  font-weight: 800;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary-color);
}

h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  color: var(--dark-color);
  font-weight: 700;
}

h4 {
  font-size: 1.2rem;
  margin: 1.5rem 0 1rem;
  color: var(--dark-color);
  font-weight: 600;
}

ul {
  margin: 0;
  padding-left: 2rem;
  margin-top: 0.5rem;
  color: var(--secondary-color);
  line-height: 1.8;
}

/* Tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

th, td {
  padding: 1.25rem;
  border-bottom: 1px solid #e3e6f0;
}

th {
  background-color: var(--primary-light);
  font-weight: 700;
  color: var(--primary-color);
  text-align: left;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: var(--primary-light);
}

/* Footer */
footer {
  background-color: white;
  color: var(--secondary-color);
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  box-shadow: var(--card-shadow);
}

footer p {
  font-size: 0.95em;
  margin: 0;
  line-height: 1.6;
}

/* Navigation Buttons */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e3e6f0;
}

.nav-button {
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: var(--transition);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.nav-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition);
}

.nav-button:hover::before {
  left: 100%;
}

.nav-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.nav-button.disabled {
  background: var(--secondary-color);
  cursor: not-allowed;
}

.nav-button.disabled:hover {
  background: var(--secondary-color);
  transform: none;
}

/* Warning Headings */
.warning-heading {
  color: var(--danger-color);
  font-weight: 700;
  margin: 1.5rem 0;
  padding-left: 2rem;
  position: relative;
  background: rgba(231, 74, 59, 0.1);
  padding: 1rem 1rem 1rem 3rem;
  border-radius: 0.5rem;
}

.warning-heading::before {
  content: "⚠️";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Responsive Design */
@media (max-width: 768px) {
  .sections {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  header h1 {
    font-size: 2.2em;
  }

  .hero h2 {
    font-size: 2em;
  }

  .content {
    padding: 1.5rem;
  }

  .section-card {
    padding: 1.5rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-card:nth-child(1) { animation-delay: 0.1s; }
.section-card:nth-child(2) { animation-delay: 0.2s; }
.section-card:nth-child(3) { animation-delay: 0.3s; }
.section-card:nth-child(4) { animation-delay: 0.4s; }
.section-card:nth-child(5) { animation-delay: 0.5s; }
.section-card:nth-child(6) { animation-delay: 0.6s; }
.section-card:nth-child(7) { animation-delay: 0.7s; }
.section-card:nth-child(8) { animation-delay: 0.8s; }