/* Base Styles */
:root {
  --primary: #8e2de2;
  --primary-gradient: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
  --secondary: #14f195;
  --accent: #FFFF00;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* Flowing background gradient & particles - USED */
.cinematic-bg,
.floating-particles {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
  padding: 0.4rem 5%;
  min-height: 44px;
  background-color: rgba(26, 26, 46, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--light);
  text-decoration: none;
}

.logo span {
  color: var(--secondary);
}

.logo-icon {
  margin-right: 10px;
  font-size: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2.5rem;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--light);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(26, 26, 46, 0.95);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  top: 100%;
  left: 0;
  margin-top: 10px;
  transition: opacity 0.3s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-content a {
  color: var(--light);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:hover {
  background-color: rgba(142, 45, 226, 0.3);
  color: var(--secondary);
  padding-left: 20px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--light);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1001;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-menu {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--light);
}

.mobile-nav-links {
  list-style: none;
  padding: 1rem 0;
}

.mobile-nav-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-links a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-nav-links a:hover {
  color: var(--secondary);
  background-color: rgba(142, 45, 226, 0.1);
}

.mobile-dropdown-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1.5rem;
  color: var(--light);
  background: none;
  border: none;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-dropdown-btn:hover {
  color: var(--secondary);
  background-color: rgba(142, 45, 226, 0.1);
}

.mobile-dropdown-content {
  display: none;
  background-color: rgba(0, 0, 0, 0.2);
  padding-left: 1rem;
}

.mobile-dropdown-content.active {
  display: block;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: none;
}

@keyframes horizontalGradient {
  0% {
    background-position: 0% 0;
  }

  50% {
    background-position: 100% 0;
  }

  100% {
    background-position: 0% 0;
  }
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(142, 45, 226, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(20, 241, 149, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(74, 0, 224, 0.06) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

section,
footer {
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(142, 45, 226, 0.2) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(20, 241, 149, 0.1) 0%, transparent 70%);
  bottom: -50px;
  right: -50px;
  animation: float 10s ease-in-out infinite reverse;
  z-index: 0;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(30px);
  }
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.breadcrumb {
  display: inline-block;
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(248, 249, 250, 0.8);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

/* Section */
.section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: slideUp 0.8s ease-out;
}

.section-label {
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-top: 0.5rem;
  color: var(--light);
  font-weight: 800;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  font-size: 1.1rem;
  color: rgba(248, 249, 250, 0.7);
  margin-top: 1rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Articles Grid */
/* Articles Grid - changed to match intro-section width on mobile */
.articles-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

/* Mobile adjustment to align width with intro-section */
@media (max-width: 768px) {
  .articles-grid {
    max-width: 900px;
    padding: 0;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .articles-grid {
    padding: 0;
    grid-template-columns: 1fr;
  }
}

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  animation: slideUp 0.8s ease-out;
  animation-fill-mode: both;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card:nth-child(1) {
  animation-delay: 0.1s;
}

.article-card:nth-child(2) {
  animation-delay: 0.2s;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 241, 149, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.article-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary);
  box-shadow: 0 20px 50px rgba(142, 45, 226, 0.2);
}

.article-card:hover::before {
  opacity: 1;
}

.article-header {
  padding: 2.5rem;
  position: relative;
  z-index: 2;
}

.article-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.article-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--light);
  font-weight: 700;
  line-height: 1.3;
}

.article-description {
  color: rgba(248, 249, 250, 0.75);
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 0.95rem;
}

.article-hook {
  background: rgba(142, 45, 226, 0.12);
  border-left: 3px solid var(--secondary);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: rgba(20, 241, 149, 0.9);
  font-weight: 500;
  line-height: 1.6;
}

.article-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: rgba(248, 249, 250, 0.6);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-benefits {
  margin-bottom: 1.5rem;
}

.benefits-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.benefits-list {
  list-style: none;
  margin-bottom: 1rem;
}

.benefits-list li {
  font-size: 0.9rem;
  color: rgba(248, 249, 250, 0.7);
  margin-bottom: 0.6rem;
  padding-left: 1.5rem;
  position: relative;
}

.benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

.article-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.topic-tag {
  background: rgba(20, 241, 149, 0.1);
  border: 1px solid rgba(20, 241, 149, 0.3);
  color: var(--secondary);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.read-more {
  margin-top: auto;
}

.learn-button {
  display: inline-block;
  background: var(--primary-gradient);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(142, 45, 226, 0.3);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.learn-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(142, 45, 226, 0.5);
}

/* Intro Section */
.intro-section {
  max-width: 900px;
  margin: 0 auto 6rem;
  padding: 3rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  text-align: center;
  animation: slideUp 0.8s ease-out 0.2s backwards;
}

.intro-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.intro-section p {
  color: rgba(248, 249, 250, 0.8);
  font-size: 1.05rem;
  line-height: 1.8;
}



/* Footer */
.footer {
  background-color: #14142b;
  padding: 5rem 5% 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column h4 {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--primary-gradient);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--light);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary-gradient);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(142, 45, 226, 0.3);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* Suggested Section in Mobile Nav */
.suggested-section {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.suggested-section h4 {
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.suggested-section a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(142, 45, 226, 0.1);
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--secondary);
}

.suggested-section a:hover {
  background: rgba(142, 45, 226, 0.2);
  color: var(--secondary);
  padding-left: 2rem;
}

/* Animations */
@keyframes floatAnimation {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-15px);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    width: 55%;
  }

  .hero-image {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 5%;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    flex-direction: column;
    height: auto;
    padding: 120px 5% 5rem;
  }

  .hero-content {
    width: 100%;
    padding-right: 0;
    text-align: center;
    margin-bottom: 3rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .section-title {
    font-size: 2rem;
  }
}