/* ============================================
   Plants vs Brainrots - Modern Stylesheet
   Enhanced for E-E-A-T and User Experience
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Modern Color Palette - Green & Purple Theme */
  --primary-color: #10b981;
  --primary-dark: #059669;
  --primary-light: #6ee7b7;
  --secondary-color: #8b5cf6;
  --secondary-dark: #7c3aed;
  --accent-color: #f59e0b;
  --accent-dark: #d97706;
  
  /* Text Colors */
  --text-dark: #111827;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  
  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f3f4f6;
  --bg-lighter: #f9fafb;
  --bg-dark: #1f2937;
  --bg-darker: #111827;
  
  /* Border Colors */
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  
  /* Shadows */
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #10b981 0%, #8b5cf6 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #10b981 100%);
  --gradient-dark: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  font-size: 16px;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background-color: var(--bg-white);
  border-bottom: 2px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

header:hover {
  box-shadow: var(--shadow-lg);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
  box-shadow: var(--shadow-md);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary-color);
}

nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
  color: var(--primary-color);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--gradient-dark);
  color: #f3f4f6;
  padding: 60px 0 20px;
  margin-top: 100px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.footer-section a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.8;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #059669 0%, #7c3aed 100%);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid white;
  font-weight: 700;
}

.btn-secondary:hover {
  background-color: white;
  color: #059669;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-large {
  padding: 16px 36px;
  font-size: 16px;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, #059669 0%, #7c3aed 100%);
  color: white;
  padding: 140px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 64px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero .subtitle {
  font-size: 28px;
  margin-bottom: 30px;
  opacity: 1;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #f0fdf4;
}

.hero p {
  font-size: 18px;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.98;
  line-height: 1.8;
  color: #f0fdf4;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 90px 0;
}

section h2 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 60px;
  text-align: center;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

section h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}

section h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-dark);
}

section h5 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

/* ============================================
   CARDS
   ============================================ */

.content-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.content-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  border-color: var(--primary-light);
}

.content-card:hover::before {
  transform: scaleX(1);
}

.content-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.content-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 15px;
}

.content-card-footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-dark);
}

.content-card-footer strong {
  font-weight: 600;
  color: var(--secondary-dark);
}

.content-card-footer span {
  color: var(--primary-dark);
  font-weight: 700;
}

.card-grid-container {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Existing .card styles follow */

.card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  border-color: var(--primary-light);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  color: white;
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-light);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="phone"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
  background-color: var(--bg-white);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
  background-color: var(--bg-lighter);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */

.alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  border-left: 4px solid;
  font-size: 14px;
}

.alert-warning {
  background-color: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.alert-info {
  background-color: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
}

.alert-success {
  background-color: #dcfce7;
  border-color: #10b981;
  color: #15803d;
}

.alert-error {
  background-color: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

/* ============================================
   TABLES
   ============================================ */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

th {
  background: var(--gradient-primary);
  color: white;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

tr:hover {
  background-color: var(--bg-lighter);
}

tr:last-child td {
  border-bottom: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 15px;
  font-weight: 700;
}

p {
  margin-bottom: 15px;
  color: var(--text-light);
  line-height: 1.8;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

strong {
  font-weight: 700;
  color: var(--text-dark);
}

code {
  background-color: var(--bg-light);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #d946ef;
}

pre {
  background-color: var(--bg-dark);
  color: #f3f4f6;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  margin: 20px 0;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--bg-white);
    border-bottom: 2px solid var(--border-light);
    padding: 20px;
    gap: 0;
    box-shadow: var(--shadow-lg);
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav a::after {
    display: none;
  }

  .hero {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero .subtitle {
    font-size: 20px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  section {
    padding: 60px 0;
  }

  section h2 {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 13px;
  }

  th, td {
    padding: 12px;
  }

  .card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .header-content {
    padding: 12px 0;
  }

  .logo {
    font-size: 20px;
    gap: 8px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  nav ul {
    top: 60px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero .subtitle {
    font-size: 16px;
  }

  .hero p {
    font-size: 14px;
  }

  section h2 {
    font-size: 28px;
  }

  section h3 {
    font-size: 22px;
  }

  .card {
    padding: 20px;
  }

  .card-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: var(--text-light); }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }

.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }
.bg-dark { background-color: var(--bg-dark); }

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }

.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.hidden { display: none; }
.visible { display: block; }

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in {
  animation: slideIn 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.bounce {
  animation: bounce 1s infinite;
}

/* ============================================
   CODE BLOCK FIXES
   ============================================ */

.code-block {
    /* Ensures the code block is fully visible and scrollable if content is too long */
    white-space: pre-wrap; /* Allows text to wrap, but preserves whitespace */
    word-break: break-all; /* Breaks long words */
    overflow-x: auto; /* Adds horizontal scrollbar if needed */
    max-height: 150px; /* Set a max height to prevent one script from dominating the page */
    overflow-y: auto; /* Adds vertical scrollbar if content exceeds max-height */
    background-color: var(--bg-darker); /* Dark background for code */
    color: var(--primary-light); /* Light text for contrast */
    padding: 15px;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}