/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #fafaf8;
  --bg-secondary: #fdfdfd;
  --accent-coral: #ff6b6b;
  --accent-teal: #6bcbba;
  --accent-lavender: #b19cd9;
  --text-primary: #1e1e1e;
  --text-secondary: #666666;
  --text-light: #999999;
  --border-light: #e5e5e5;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-size: 16px;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

/* Header */
.header {
  background: var(--bg-secondary);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  height: 70px;
}

.logo {
  order: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-coral);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.logo:hover {
  color: var(--accent-teal);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  order: 1;
}

.burger {
  display: none; /* Hidden by default (desktop) */
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 200;
  background: none;
  border: none;
}

.burger span {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--accent-coral);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-coral);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-coral);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
}

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

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--accent-coral);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-button {
  display: inline-block;
  background: var(--accent-coral);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
}

.cta-button:hover {
  background: var(--accent-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-bubble {
  position: absolute;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  font-weight: 500;
  animation: float 3s ease-in-out infinite;
}

.bubble-1 {
  top: 20px;
  left: 20px;
  background: var(--accent-coral);
  color: white;
  animation-delay: 0s;
}

.bubble-2 {
  top: 100px;
  right: 30px;
  background: var(--accent-teal);
  color: white;
  animation-delay: 1s;
}

.bubble-3 {
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-lavender);
  color: white;
  font-size: 1.5rem;
  animation-delay: 2s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Articles Section */
.articles-section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.article-category {
  background: var(--accent-teal);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.article-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.article-title a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.article-title a:hover {
  color: var(--accent-coral);
}

.article-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.read-more {
  color: var(--accent-coral);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--accent-teal);
}

/* Article Page Styles */
.article-page {
  padding: 2rem 0 4rem;
}

.article-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
}

.article-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-coral);
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.article-content blockquote {
  border-left: 4px solid var(--accent-coral);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

/* About Page */
.about-page {
  padding: 2rem 0 4rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.page-header h1 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--accent-coral);
  font-weight: 500;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-section {
  margin-bottom: 3rem;
}

.about-section h2 {
  color: var(--accent-coral);
  margin-bottom: 1rem;
}

.about-section ul {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.about-section li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

.footer p {
  margin-bottom: 0.5rem;
  color: #ccc;
}

.footer-tagline {
  font-style: italic;
  color: var(--accent-coral);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    gap: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .article-card {
    padding: 1.5rem;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 1rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-light);
  border-radius: 50%;
  border-top-color: var(--accent-coral);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Lazy Loading */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Burger Menu Styles */
@media (max-width: 900px) {
  .burger {
    display: flex;
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 201;
    background: none;
    border: none;
  }
  .nav-menu {
    flex: unset;
    width: 240px;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-medium);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 2rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: var(--transition);
    z-index: 150;
  }
  .nav-menu.open {
    transform: translateX(0);
  }
  .nav-container {
    justify-content: flex-start;
  }
}

/* Burger menu open/close animation */
.burger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Featured Articles Grid (Home Page Only) */
.featured-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2rem;
}

.featured-articles-grid .article-card:first-child {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--accent-teal) 0%,
    var(--accent-lavender) 100%
  );
  color: white;
}

.featured-articles-grid .article-card:first-child .article-category {
  background: var(--accent-coral);
}

.featured-articles-grid .article-card:first-child .article-title a,
.featured-articles-grid .article-card:first-child .read-more {
  color: white;
}

.featured-articles-grid .article-card:first-child .article-title a:hover,
.featured-articles-grid .article-card:first-child .read-more:hover {
  color: var(--accent-coral);
}

@media (max-width: 900px) {
  .featured-articles-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .featured-articles-grid .article-card:first-child {
    grid-column: auto;
    grid-row: auto;
    background: linear-gradient(
      135deg,
      var(--accent-teal) 0%,
      var(--accent-lavender) 100%
    );
    color: white;
  }
}

/* Quote Section (Home Page) */
.quote-section {
  padding: 3rem 0;
  background: linear-gradient(90deg, var(--bg-secondary) 60%, #f7f7fa 100%);
  text-align: center;
}

.blog-quote {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--accent-coral);
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
  border-left: 6px solid var(--accent-teal);
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

/* Resources CTA Section (Home Page) */
.resources-cta-section {
  padding: 3rem 0 4rem 0;
  background: linear-gradient(90deg, #f7f7fa 0%, var(--bg-secondary) 100%);
  text-align: center;
}

.resources-cta-title {
  font-size: 2rem;
  color: var(--accent-teal);
  margin-bottom: 1rem;
}

.resources-cta-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.resources-cta-button {
  display: inline-block;
  background: var(--accent-coral);
  color: #fff;
  font-weight: 600;
  padding: 0.9rem 2.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.resources-cta-button:hover {
  background: var(--accent-teal);
  color: #fff;
}

/* Prevent Text Copying */
body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
span,
li,
blockquote,
.article-excerpt,
.article-title,
.article-meta,
.section-title,
.footer,
.about-content,
.blog-quote,
.resources-cta-section,
.resources-cta-title,
.resources-cta-text {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
}

.no-copy {
  user-select: none !important;
  -webkit-user-select: none !important;
  -ms-user-select: none !important;
  -moz-user-select: none !important;
}
