:root {
  /* Colors */
  --primary-color: #6a11cb;
  --primary-light: #8e2de2;
  --secondary-color: #2d4059;
  --accent-color: #ff7e5f;
  --accent-light: #feb47b;
  --dark-bg: #121212;
  --dark-surface: #1e1e1e;
  --dark-surface-light: #2a2a2a;
  --light-bg: #f8f9fa;
  --light-surface: #ffffff;
  --light-surface-dark: #e9ecef;
  --text-dark: #212529;
  --text-light: #f8f9fa;
  --text-muted-dark: #6c757d;
  --text-muted-light: #adb5bd;
  --border-dark: #343a40;
  --border-light: #dee2e6;
  --success-color: #28a745;
  --error-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;

  /* Fonts */
  --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  
  /* Sizes */
  --container-max-width: 1200px;
  --container-padding: 1.5rem;
  --header-height: 4.5rem;
  --footer-padding: 3rem 0;
  --section-spacing: 5rem 0;
  --border-radius: 0.375rem;
  --border-radius-lg: 0.5rem;
  --transition-speed: 0.3s;
  
  /* Theme (Dark is default) */
  --body-bg: var(--dark-bg);
  --surface-bg: var(--dark-surface);
  --surface-bg-light: var(--dark-surface-light);
  --text-color: var(--text-light);
  --text-muted: var(--text-muted-light);
  --border-color: var(--border-dark);
}

/* Light mode */
body.light-mode {
  --body-bg: var(--light-bg);
  --surface-bg: var(--light-surface);
  --surface-bg-light: var(--light-surface-dark);
  --text-color: var(--text-dark);
  --text-muted: var(--text-muted-dark);
  --border-color: var(--border-light);
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--body-bg);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2.25rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.75rem;
  margin-top: 1.75rem;
}

h4 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  padding: 0 var(--container-padding);
  margin: 0 auto;
}

.center {
  text-align: center;
}

section {
  padding: var(--section-spacing);
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed);
  cursor: pointer;
}

.btn:focus, .btn:hover {
  text-decoration: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(106, 17, 203, 0.25);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: #1a2a3a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(45, 64, 89, 0.25);
}

.btn-tertiary {
  background-color: transparent;
  color: var(--primary-light);
  border-color: var(--primary-light);
}

.btn-tertiary:hover, .btn-tertiary:focus {
  background-color: var(--primary-light);
  color: white;
  transform: translateY(-2px);
}

/* Header */
header {
  position: sticky;
  top: 0;
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color var(--transition-speed);
}

.light-mode header {
  background-color: rgba(255, 255, 255, 0.95);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 2.5rem;
  width: auto;
}

.main-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0 1.25rem;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-speed);
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  transition: width var(--transition-speed);
}

.main-nav a:hover, .main-nav a:focus, .main-nav a.active {
  color: var(--primary-light);
}

.main-nav a:hover::after, .main-nav a:focus::after, .main-nav a.active::after {
  width: 100%;
}

nav {
  display: flex;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 2rem;
  height: 1.5rem;
  cursor: pointer;
  z-index: 1010;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}

/* Dark/Light Mode Switch */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  margin-left: 2rem;
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 48px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: var(--dark-surface-light);
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
}

.slider:before {
  background-color: var(--light-surface);
  bottom: 4px;
  content: "";
  height: 16px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 16px;
}

input:checked + .slider {
  background-color: var(--primary-light);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.theme-switch-wrapper em {
  margin-left: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--dark-bg), var(--secondary-color));
  padding: 5rem 0;
  margin-bottom: 3rem;
}

.light-mode .hero {
  background: linear-gradient(135deg, var(--light-bg), #c5d1eb);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 90%;
}

.hero-content h1 {
  font-size: 3.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.hero-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.3), rgba(142, 45, 226, 0.3));
  z-index: 1;
  border-radius: var(--border-radius-lg);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
}

/* Features Section */
.features {
  padding: 5rem 0;
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: var(--surface-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border: 1px solid var(--border-color);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  margin-bottom: 1.5rem;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Recent Posts Section */
.recent-posts {
  padding: 5rem 0;
  background-color: var(--surface-bg-light);
}

.recent-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.post-card {
  background-color: var(--surface-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border: 1px solid var(--border-color);
  height: 100%;
}

.post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-image {
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.post-content h3 a {
  color: var(--text-color);
  transition: color var(--transition-speed);
}

.post-content h3 a:hover {
  color: var(--primary-light);
}

.post-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: block;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary-light);
  transition: color var(--transition-speed);
}

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

.center {
  text-align: center;
  margin-top: 3rem;
}

/* Beginners Guide Section */
.beginners-guide {
  padding: 5rem 0;
}

.beginners-header {
  text-align: center;
  margin-bottom: 3rem;
}

.beginners-header h2 {
  margin-bottom: 0.5rem;
}

.beginners-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto;
}

.beginners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.beginners-card {
  background-color: var(--surface-bg);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border: 1px solid var(--border-color);
}

.beginners-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.beginners-icon {
  margin: 0 auto 1.5rem;
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.beginners-card h3 {
  margin-bottom: 1rem;
}

.beginners-card p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

/* Newsletter Section */
.newsletter {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.newsletter-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.newsletter-content h2 {
  margin-bottom: 1rem;
}

.newsletter-content p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.newsletter-form input[type="email"] {
  flex-grow: 1;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border: none;
  background-color: white;
}

.newsletter-form button {
  padding: 1rem 1.5rem;
  background-color: var(--dark-surface);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.newsletter-form button:hover {
  background-color: var(--secondary-color);
}

/* Footer */
footer {
  background-color: var(--dark-surface);
  color: var(--text-light);
  padding: var(--footer-padding);
  margin-top: auto;
}

.light-mode footer {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  height: 2.5rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer-about p {
  margin-bottom: 1.5rem;
  color: var(--text-muted-light);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-light);
  transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
}

.social-links a:hover {
  background-color: var(--primary-light);
  color: white;
  transform: translateY(-3px);
}

.footer-links h3, .footer-posts h3, .footer-contact h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links ul, .footer-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li, .footer-posts ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a, .footer-posts ul li a {
  color: var(--text-muted-light);
  transition: color var(--transition-speed);
  font-weight: 500;
}

.footer-links ul li a:hover, .footer-posts ul li a:hover {
  color: var(--primary-light);
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--text-muted-light);
}

.footer-contact p svg {
  margin-right: 0.5rem;
  min-width: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.copyright {
  color: var(--text-muted-light);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--text-muted-light);
  transition: color var(--transition-speed);
}

.footer-legal a:hover {
  color: var(--primary-light);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 900px;
  width: 90%;
  background-color: var(--dark-surface);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
}

.light-mode .cookie-consent {
  background-color: var(--light-surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cookie-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.cookie-content p {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.cookie-buttons button {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.btn-accept-all {
  background-color: var(--primary-light);
  color: white;
  border: none;
}

.btn-accept-all:hover {
  background-color: var(--primary-color);
}

.btn-customize {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--text-muted);
}

.btn-customize:hover {
  background-color: var(--surface-bg-light);
}

.btn-reject {
  background-color: transparent;
  color: var(--text-muted);
  border: none;
}

.btn-reject:hover {
  color: var(--error-color);
}

.cookie-more {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: underline;
}

.cookie-more:hover {
  color: var(--primary-light);
}

/* Blog Posts Page */
.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  padding: 5rem 0 3rem;
  text-align: center;
  color: white;
  margin-bottom: 3rem;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

.blog-filters {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.search-box {
  display: flex;
  max-width: 400px;
  width: 100%;
}

.search-box input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  background-color: var(--surface-bg);
  color: var(--text-color);
}

.search-box button {
  padding: 0.75rem 1rem;
  background-color: var(--primary-light);
  color: white;
  border: none;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.search-box button:hover {
  background-color: var(--primary-color);
}

.category-filter select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--surface-bg);
  color: var(--text-color);
  cursor: pointer;
  min-width: 200px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23adb5bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.posts-grid-large {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.posts-grid-large .post-card {
  display: flex;
  flex-direction: column;
}

.posts-grid-large .post-card.large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.post-card.large .post-image {
  height: 350px;
}

.post-card.large .post-content {
  padding: 2rem;
}

.post-card.large .post-content h2 {
  font-size: 1.75rem;
  margin-top: 0;
}

.post-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(106, 17, 203, 0.1);
  color: var(--primary-light);
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  gap: 0.5rem;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--surface-bg);
  color: var(--text-color);
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  border: 1px solid var(--border-color);
}

.pagination a:hover {
  background-color: var(--primary-light);
  color: white;
}

.pagination span.active {
  background-color: var(--primary-light);
  color: white;
}

.pagination a.next {
  width: auto;
  padding: 0 1rem;
}

.pagination a.next svg {
  margin-left: 0.5rem;
}

/* About Page */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.about-content h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.about-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
}

.about-values {
  padding: 5rem 0;
  background-color: var(--surface-bg-light);
}

.about-values h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
  background-color: var(--surface-bg);
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border: 1px solid var(--border-color);
  height: 100%;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
  margin: 0 auto 1.5rem;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.team-section {
  padding: 5rem 0;
}

.team-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.team-member {
  text-align: center;
  background-color: var(--surface-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border: 1px solid var(--border-color);
  height: 100%;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.team-member h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.25rem;
}

.team-member p {
  color: var(--text-muted);
  margin: 0 1.5rem 1.5rem;
}

.team-member p:first-of-type {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.team-member .social-links {
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.testimonials {
  padding: 5rem 0;
  background-color: var(--surface-bg-light);
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonial {
  background-color: var(--surface-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border: 1px solid var(--border-color);
  height: 100%;
}

.testimonial:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  font-size: 5rem;
  color: rgba(106, 17, 203, 0.1);
  position: absolute;
  top: -2rem;
  left: -1rem;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.125rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.testimonial-author h4 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
}

.testimonial-author p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.875rem;
}

.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.cta-content {
  text-align: center;
  color: white;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 1rem;
}

.cta-content p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
  opacity: 0.9;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact-form-container {
  background-color: var(--surface-bg);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
}

.contact-form-container h2 {
  margin-top: 0;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--surface-bg-light);
  color: var(--text-color);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color var(--transition-speed);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.1);
}

.form-group.checkbox {
  display: flex;
  align-items: center;
}

.form-group.checkbox input {
  width: auto;
  margin-right: 0.75rem;
}

.form-group.checkbox label {
  margin-bottom: 0;
}

.contact-info {
  background-color: var(--surface-bg);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
}

.contact-info h2 {
  margin-top: 0;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  margin-bottom: 2rem;
}

.info-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 1.5rem;
}

.info-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.info-content p {
  margin: 0;
  color: var(--text-muted);
}

.info-content a {
  color: var(--text-color);
  transition: color var(--transition-speed);
}

.info-content a:hover {
  color: var(--primary-light);
}

.social-links-large {
  margin-top: 2.5rem;
}

.social-links-large h3 {
  margin-bottom: 1rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.social-btn {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: var(--surface-bg-light);
  color: var(--text-color);
  border-radius: var(--border-radius);
  transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
  border: 1px solid var(--border-color);
}

.social-btn svg {
  margin-right: 0.75rem;
}

.social-btn:hover {
  background-color: var(--primary-light);
  color: white;
  transform: translateY(-3px);
}

.map-section {
  padding: 5rem 0;
  background-color: var(--surface-bg-light);
}

.map-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 450px;
}

.faq-section {
  padding: 5rem 0;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.faq-item {
  background-color: var(--surface-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1010;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--surface-bg);
  border-radius: var(--border-radius);
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

.close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition-speed);
}

.close:hover {
  color: var(--error-color);
}

.modal svg {
  margin: 0 auto 1.5rem;
  display: block;
}

.modal h2 {
  margin-bottom: 1rem;
}

.modal p {
  margin-bottom: 2rem;
  color: var(--text-muted);
}

/* Blog Post Page */
.blog-post {
  padding: 5rem 0;
}

.post-header {
  text-align: center;
  margin-bottom: 3rem;
}

.post-header h1 {
  margin-bottom: 1rem;
  font-size: 3rem;
}

.post-header .post-meta {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.post-header .post-meta span {
  display: inline-block;
  margin: 0 0.5rem;
}

.post-featured-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
  width: 100%;
  height: auto;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.7;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.post-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

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

.post-content ul li, .post-content ol li {
  margin-bottom: 0.5rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 3rem auto;
  max-width: 800px;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.tag-label {
  margin-right: 1rem;
  font-weight: 700;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin: 0.25rem;
  background-color: rgba(106, 17, 203, 0.1);
  color: var(--primary-light);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.tag:hover {
  background-color: var(--primary-light);
  color: white;
}

.post-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 3rem auto;
  max-width: 800px;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.share-label {
  margin-right: 1rem;
  font-weight: 700;
}

.share-btn {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
}

.share-btn svg {
  margin-right: 0.5rem;
}

.share-btn:hover {
  transform: translateY(-3px);
}

.facebook {
  background-color: #3b5998;
  color: white;
}

.twitter {
  background-color: #1da1f2;
  color: white;
}

.linkedin {
  background-color: #0077b5;
  color: white;
}

.post-author-bio {
  display: flex;
  align-items: center;
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: var(--surface-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.author-avatar {
  flex-shrink: 0;
  margin-right: 2rem;
}

.author-avatar img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h3 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

.author-role {
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 1rem;
}

.author-info p:last-of-type {
  margin-bottom: 1rem;
}

.author-social {
  display: flex;
  gap: 0.75rem;
}

.author-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: var(--surface-bg-light);
  border-radius: 50%;
  color: var(--text-color);
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.author-social a:hover {
  background-color: var(--primary-light);
  color: white;
}

.related-posts {
  max-width: 1000px;
  margin: 5rem auto 0;
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.related-posts .posts-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  :root {
    --container-max-width: 960px;
  }
}

@media (max-width: 992px) {
  :root {
    --container-max-width: 720px;
  }
  
  .features-grid, .posts-grid, .beginners-grid, .footer-grid, .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-image {
    max-width: 80%;
    margin: 0 auto;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-slider {
    grid-template-columns: 1fr;
  }
  
  .contact-grid, .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --container-max-width: 540px;
    --section-spacing: 3rem 0;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    flex-direction: column;
    background-color: var(--dark-bg);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
  }
  
  .light-mode .main-nav {
    background-color: var(--light-bg);
  }
  
  .main-nav.active {
    display: flex;
    opacity: 1;
  }
  
  .main-nav li {
    margin: 1rem 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .theme-switch-wrapper {
    margin: 2rem 0 0;
  }
  
  .features-grid, .posts-grid, .beginners-grid, .values-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .post-card.large {
    grid-template-columns: 1fr;
  }
  
  .post-card.large .post-image {
    height: 250px;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .post-author-bio {
    flex-direction: column;
    text-align: center;
  }
  
  .author-avatar {
    margin: 0 auto 1.5rem;
  }
  
  .author-social {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal {
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  :root {
    --container-padding: 1rem;
  }
  
  .social-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input[type="email"] {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
  }
  
  .newsletter-form button {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
  }
  
  .post-share {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .share-label {
    margin-bottom: 1rem;
  }
  
  .share-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fadeIn {
  animation: fadeIn 0.5s ease-in forwards;
}
