/* ===== BASE STYLES ===== */
:root {
  /* Color Scheme */
  --text-accent: #2a3a00; /* Dark olive green for text in light mode */
  --text-accent-dark: #1f2a00; /* Darker variant */
  --primary: #ddff00; /* Button color in light mode */
  --primary-dark: #c2e600; /* Darker button variant */
  --black: #010001;
  --white: #f3f5f7;
  --gray: #e0e0e0;
  --dark-gray: #6b7280;
  
  /* Backgrounds (Light Mode Default) */
  --bg-primary: var(--white);
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  
  /* Text (Light Mode Default) */
  --text-primary: var(--black);
  --text-secondary: var(--dark-gray);
  --hero-text: var(--black); /* Added for hero text */
  
  /* UI */
  --radius: 24px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(1, 0, 1, 0.1);
  --transition: all 0.3s ease;
  
  /* Fonts */
  --font-heading: 'Nunito Sans', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --text-accent: #ddff00; /* Bright yellow for text in dark mode */
  --text-accent-dark: #c2e600;
  --primary: #ddff00; /* Keep buttons bright in dark mode */
  --primary-dark: #c2e600;
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-card: #2d2d2d;
  --text-primary: var(--white);
  --text-secondary: #b0b0b0;
  --hero-text: var(--white); /* Added for hero text */
  --black: #010001;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  transition: var(--transition);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TEXT ACCENTS ===== */
.slogan {
  font-family: 'Octarine', sans-serif; /* Apply the font */
  font-weight: 300;                   /* Explicitly set light weight */
  color: var(--text-accent-dark);
  text-transform: lowercase;
  letter-spacing: 1px;
  font-variant: normal;              /* Remove small-caps if unwanted */
}

[data-theme="dark"] .slogan {
  color: var(--text-accent);
}

.category {
  color: var(--text-accent-dark);
  background-color: rgba(179, 195, 0, 0.1);
}

[data-theme="dark"] .category {
  color: var(--text-accent);
}

.read-more {
  color: var(--text-accent-dark);
}

[data-theme="dark"] .read-more {
  color: var(--text-accent);
}

.footer-links h5,
.footer-newsletter h5,
.footer-social h5 {
  color: var(--text-accent-dark);
}

[data-theme="dark"] .footer-links h5,
[data-theme="dark"] .footer-newsletter h5,
[data-theme="dark"] .footer-social h5 {
  color: var(--text-accent);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  background-color: var(--text-accent-dark);
}

[data-theme="dark"] .main-nav a:hover::after,
[data-theme="dark"] .main-nav a.active::after {
  background-color: var(--text-accent);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000 !important;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(179, 195, 0, 0.3);
}

[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 5px 15px rgba(221, 255, 0, 0.3);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--black);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--black);
  font-family: var(--font-body);
}

.btn-secondary:hover {
  background: var(--black);
  color: var(--white);
}

[data-theme="dark"] .btn-secondary {
  color: var(--white);
  border-color: var(--white);
}

[data-theme="dark"] .btn-secondary:hover {
  background: var(--white);
  color: var(--black);
}

/* ===== HEADER ===== */
.header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  background-color: rgba(243, 245, 247, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(1, 0, 1, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-theme="dark"] .header {
  background-color: rgba(30, 30, 30, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.logo-text h1 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.logo-container .slogan {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: lowercase;
  margin-top: 2px;
  color: var(--text-accent-dark);
}

[data-theme="dark"] .logo-container .slogan {
  color: var(--primary);
}

.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: var(--bg-primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 15px;
  min-width: 200px;
  z-index: 1;
  margin-top: 10px;
}

.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin-bottom: 10px;
}

.dropdown-menu li:last-child {
  margin-bottom: 0;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 4px;
}

.dropdown-menu a:hover {
  background-color: rgba(221, 255, 0, 0.1);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
  background: none;
  border: none;
  padding: 5px;
  z-index: 101;
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(221, 255, 0, 0.1), rgba(243, 245, 247, 0.3)),
              url('img/hero-placeholder.jpg') center/cover no-repeat;
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--hero-text);
  max-width: 600px;
}

.hero p {
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 30px;
  color: var(--hero-text);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: 60px 0;
  background-color: var(--bg-primary);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.resource-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(1, 0, 1, 0.15);
}

[data-theme="dark"] .resource-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray);
}

.card-content {
  padding: 25px;
}

.category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-accent-dark); /* Dark olive green */
  background-color: rgba(179, 195, 0, 0.1); /* Light yellow-green tint */
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* Remove the dark mode override completely */
/* [data-theme="dark"] .category {
  color: var(--text-accent);
} */

.resource-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text-primary);
}

.resource-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.read-more {
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
}

.read-more::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.read-more:hover::after {
  width: 100%;
}

.ad-card {
  position: relative;
  overflow: hidden;
}

.ad-card::before {
  content: 'Ad';
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

.cta-section {
  text-align: center;
  padding: 60px;
  background: linear-gradient(135deg, rgba(221, 255, 0, 0.1), rgba(243, 245, 247, 0.3));
  border-radius: var(--radius);
  margin-top: 40px;
}

[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, rgba(221, 255, 0, 0.1), rgba(30, 30, 30, 0.3));
}

.cta-section h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--bg-secondary);
  color: var(--black);
  padding: 60px 0 30px;
}

[data-theme="dark"] .footer {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about .logo-container {
  margin-bottom: 20px;
}

.footer-about .logo-text h4 {
  color: var(--black);
}

[data-theme="dark"] .footer-about .logo-text h4 {
  color: var(--white);
}

.footer-about .slogan {
  color: var(--text-accent-dark);
}

[data-theme="dark"] .footer-about .slogan {
  color: var(--primary);
}

.footer-description {
  color: var(--black);
  font-size: 0.9rem;
}

[data-theme="dark"] .footer-description {
  color: var(--gray);
}

.footer-links h5,
.footer-newsletter h5,
.footer-social h5 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-accent-dark);
}

[data-theme="dark"] .footer-links h5,
[data-theme="dark"] .footer-newsletter h5,
[data-theme="dark"] .footer-social h5 {
  color: var(--text-accent);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--black);
  font-size: 0.9rem;
  transition: var(--transition);
}

[data-theme="dark"] .footer-links a {
  color: var(--gray);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray);
  font-size: 0.9rem;
  background-color: var(--white);
  color: var(--text-primary);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  transition: var(--transition);
  color: var(--black);
}

[data-theme="dark"] .social-icons a {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.social-icons a:hover {
  background-color: var(--primary);
  color: var(--black);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--black);
  font-size: 0.8rem;
}

[data-theme="dark"] .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  border: none;
  transition: var(--transition);
}
.theme-toggle i {
  color: #000 !important;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
}

.toast.success {
  background-color: #4CAF50;
}

.toast.error {
  background-color: #F44336;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  .hero h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 15px;
  }
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding: 10px 0 0 20px;
    display: none;
    background-color: transparent;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero {
    padding: 80px 0;
    min-height: 400px;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .cta-section {
    padding: 40px 20px;
  }
  
  .dropdown-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
  }
  
  .dropdown.active .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
  }
}

@media (max-width: 576px) {
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .logo-text h1 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .card-content {
    padding: 20px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Performance optimizations */
img {
  will-change: transform;
}