/* ==========================================================================
   Main CSS Entry Point
   ========================================================================== */

/* Base Styles */
@import 'base/reset.css';
@import 'base/variables.css';

/* Components */
@import 'components/header.css';
@import 'components/carousel.css';
@import 'components/projects.css';
@import 'components/blog.css';
@import 'components/contact.css';
@import 'components/buttons.css';
@import 'components/utility-tools.css';
@import 'components/playground.css';

/* ==========================================================================
   main.css  — Revised with Dark Mode Integration
   ========================================================================== */

/* ───────────────────────────────────────────────────────────────────────────
   1. BASE RESET + BOX-SIZING
   ─────────────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Segoe UI', Verdana, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: block;
}

/* ───────────────────────────────────────────────────────────────────────────
   2. CSS VARIABLES (Light / Dark)
   ─────────────────────────────────────────────────────────────────────────── */
:root {
  /* Light theme (default) - softer colors */
  --color-bg: #f4f6f8;
  --color-bg-alt: #ebeef2;
  --color-text: #2c3e50;
  --color-text-muted: #7f8c8d;
  --color-heading: #2c3e50;
  --color-primary: #3498db;
  --color-secondary: #2ecc71;
  --color-accent: #e74c3c;
  --color-border: #dde2e8;
  --color-card-bg: #f8fafc;
  --color-header-bg: #2c3e50;
  --color-header-text: #ecf0f1;
  --color-shadow: rgba(0, 0, 0, 0.08);
  --color-icon: #000000;

  /* Button colors */
  --color-btn-primary: #1abc9c;
  --color-btn-primary-rgb: 26, 188, 156; /* RGB values for the primary button color */
  --color-btn-primary-hover: #16a085;
  --color-btn-secondary: #3498db;
  --color-btn-secondary-hover: #2980b9;

  --color-section-intro-bg: #34495e;
  --color-section-intro-text: #ecf0f1;

  --color-project-card-bg: #ffffff;
  --color-project-card-shadow: rgba(44, 62, 80, 0.1);

  --color-form-border: #bdc3c7;
  --color-form-status-success: #1abc9c;
  --color-form-status-error: #e74c3c;

  --color-footer-bg: #2c3e50;
  --color-footer-text: #ecf0f1;

  --color-scroll-btn-bg: #1abc9c;
}

[data-theme="dark"] {
  --color-bg: #1a1a2e;
  --color-bg-alt: #16213e;
  --color-text: #e2e8f0;
  --color-text-muted: #a0aec0;
  --color-heading: #f7fafc;
  --color-primary: #4299e1;
  --color-secondary: #48bb78;
  --color-accent: #f56565;
  --color-border: #2d3748;
  --color-card-bg: #1e293b;
  --color-header-bg: rgba(26, 26, 46, 0.95);
  --color-header-text: #e2e8f0;
  --color-shadow: rgba(0, 0, 0, 0.3);
  --color-icon: #ffffff;

  /* Button colors in dark mode */
  --color-btn-primary: #2ecc71;
  --color-btn-primary-rgb: 46, 204, 113; /* RGB values for the primary button color in dark mode */
  --color-btn-primary-hover: #27ae60;
  --color-btn-secondary: #2c90d3;
  --color-btn-secondary-hover: #1a5a83;

  --color-section-intro-bg: #2c3e50;
  --color-section-intro-text: #ecf0f1;

  --color-project-card-bg: #2a2b2e;
  --color-project-card-shadow: rgba(0, 0, 0, 0.4);

  --color-form-border: #3e3f43;
  --color-form-status-success: #2ecc71;
  --color-form-status-error: #e74c3c;

  --color-footer-bg: #121212;
  --color-footer-text: #e0e0e0;

  --color-scroll-btn-bg: #2ecc71;
}

/* ───────────────────────────────────────────────────────────────────────────
   3. UTILITY CLASSES
   ─────────────────────────────────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

/* ───────────────────────────────────────────────────────────────────────────
   4. DARK MODE TOGGLE BUTTON (in header)
   ─────────────────────────────────────────────────────────────────────────── */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

#dark-mode-toggle,
#mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--color-header-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  opacity: 0.9;
  transition: all 0.2s ease;
}

#dark-mode-toggle:hover,
#mobile-menu-toggle:hover {
  opacity: 1;
}

#dark-mode-toggle i,
#mobile-menu-toggle i {
  font-size: 1.25rem;
  line-height: 1;
}

/* Keep the rotation effect only for the dark mode toggle */
#dark-mode-toggle:hover {
  transform: rotate(20deg);
}

/* ───────────────────────────────────────────────────────────────────────────
   5. HEADER & NAVIGATION
   ─────────────────────────────────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-header-bg);
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

#logo-container {
  position: relative;
  overflow: hidden;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  min-width: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--color-header-text);
  text-decoration: none;
  position: relative;
  z-index: 2;
  letter-spacing: 0.5px;
}

/* Ensure bokeh container stays behind the logo */
#logo-container .bokeh-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-color: transparent;
  overflow: hidden;
}

/* Light mode - single light effect */
.bokeh-light {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(26, 188, 156, 0.15) 0%,
    rgba(52, 152, 219, 0.1) 40%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  filter: blur(30px);
  pointer-events: none;
}

/* Dark mode - solar system */
[data-theme="dark"] .bokeh-container {
  background-color: #000000;
}

[data-theme="dark"] .bokeh-light.orbital {
  display: block;
}

/* Hide orbital lights in light mode */
.bokeh-light.orbital {
  display: none;
}

/* Light mode main light */
.bokeh-light.main {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle at center,
    rgba(26, 188, 156, 0.15) 0%,
    rgba(52, 152, 219, 0.1) 40%,
    transparent 70%
  );
  filter: blur(30px);
  z-index: 1;
  will-change: transform;
  transform-origin: center center;
  position: absolute;
  left: -150px;
  top: -150px;
}

/* Dark mode main light (sun) */
[data-theme="dark"] .bokeh-light.main {
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 236, 184, 0.25) 20%,
    rgba(255, 195, 77, 0.2) 40%,
    rgba(255, 147, 41, 0.15) 70%,
    transparent 90%
  );
  filter: blur(15px);
  box-shadow: 
    0 0 40px rgba(255, 236, 184, 0.25),
    0 0 80px rgba(255, 195, 77, 0.15);
  left: -100px;
  top: -100px;
  mix-blend-mode: screen;
}

/* Mercury - Closest to sun */
.bokeh-light.orbital:nth-child(2) {
  width: 60px;
  height: 60px;
  background: radial-gradient(
    circle at center,
    rgba(169, 169, 169, 0.4) 0%,    /* Mercury grey */
    rgba(128, 128, 128, 0.3) 30%,   /* Mercury dark grey */
    rgba(105, 105, 105, 0.2) 60%,   /* Mercury darker grey */
    transparent 80%
  );
  filter: blur(8px);
  animation-duration: 3s;
}

/* Venus */
.bokeh-light.orbital:nth-child(3) {
  width: 80px;
  height: 80px;
  background: radial-gradient(
    circle at center,
    rgba(255, 198, 73, 0.4) 0%,     /* Venus yellow */
    rgba(255, 183, 77, 0.3) 30%,    /* Venus orange */
    rgba(255, 160, 0, 0.2) 60%,     /* Venus dark orange */
    transparent 80%
  );
  filter: blur(10px);
  animation-duration: 4s;
}

/* Earth */
.bokeh-light.orbital:nth-child(4) {
  width: 85px;
  height: 85px;
  background: radial-gradient(
    circle at center,
    rgba(152, 251, 152, 0.4) 0%,    /* Earth green */
    rgba(100, 149, 237, 0.3) 30%,   /* Earth blue */
    rgba(0, 128, 128, 0.2) 60%,     /* Deep sea green */
    transparent 80%
  );
  filter: blur(10px);
  animation-duration: 5s;
}

/* Mars */
.bokeh-light.orbital:nth-child(5) {
  width: 70px;
  height: 70px;
  background: radial-gradient(
    circle at center,
    rgba(255, 99, 71, 0.4) 0%,      /* Mars red */
    rgba(205, 92, 92, 0.3) 30%,     /* Mars dark red */
    rgba(178, 34, 34, 0.2) 60%,     /* Mars deeper red */
    transparent 80%
  );
  filter: blur(9px);
  animation-duration: 6s;
}

/* Jupiter */
.bokeh-light.orbital:nth-child(6) {
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle at center,
    rgba(255, 222, 173, 0.4) 0%,    /* Jupiter beige */
    rgba(210, 180, 140, 0.3) 30%,   /* Jupiter tan */
    rgba(184, 134, 11, 0.2) 60%,    /* Jupiter brown */
    transparent 80%
  );
  filter: blur(12px);
  animation-duration: 7s;
}

/* Saturn */
.bokeh-light.orbital:nth-child(7) {
  width: 140px;
  height: 140px;
  background: radial-gradient(
    circle at center,
    rgba(238, 232, 205, 0.4) 0%,    /* Saturn pale gold */
    rgba(218, 165, 32, 0.3) 30%,    /* Saturn gold */
    rgba(184, 134, 11, 0.2) 60%,    /* Saturn dark gold */
    transparent 80%
  );
  filter: blur(12px);
  animation-duration: 8s;
}

/* Uranus */
.bokeh-light.orbital:nth-child(8) {
  width: 110px;
  height: 110px;
  background: radial-gradient(
    circle at center,
    rgba(173, 216, 230, 0.4) 0%,    /* Uranus light blue */
    rgba(135, 206, 235, 0.3) 30%,   /* Uranus sky blue */
    rgba(0, 191, 255, 0.2) 60%,     /* Uranus deep blue */
    transparent 80%
  );
  filter: blur(11px);
  animation-duration: 9s;
}

/* Neptune */
.bokeh-light.orbital:nth-child(9) {
  width: 100px;
  height: 100px;
  background: radial-gradient(
    circle at center,
    rgba(0, 127, 255, 0.4) 0%,      /* Neptune blue */
    rgba(25, 25, 112, 0.3) 30%,     /* Neptune dark blue */
    rgba(0, 0, 128, 0.2) 60%,       /* Neptune deep blue */
    transparent 80%
  );
  filter: blur(11px);
  animation-duration: 10s;
}

/* Base orbital styles */
.bokeh-light.orbital {
  opacity: 1;
  mix-blend-mode: screen;
  z-index: 2;
}

/* Twinkle animation */
@keyframes twinkle {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.8; }
}

.bokeh-light.orbital {
  animation: twinkle 3s infinite ease-in-out;
}

/* Stagger the animations */
.bokeh-light.orbital:nth-child(2) { animation-delay: -0.5s; }
.bokeh-light.orbital:nth-child(3) { animation-delay: -1.0s; }
.bokeh-light.orbital:nth-child(4) { animation-delay: -1.5s; }
.bokeh-light.orbital:nth-child(5) { animation-delay: -2.0s; }
.bokeh-light.orbital:nth-child(6) { animation-delay: -2.5s; }
.bokeh-light.orbital:nth-child(7) { animation-delay: -3.0s; }
.bokeh-light.orbital:nth-child(8) { animation-delay: -3.5s; }
.bokeh-light.orbital:nth-child(9) { animation-delay: -4.0s; }

#logo-container:hover .bokeh-light {
  opacity: 1;
}

#nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

/* Remove the left margin from Home item since we're centering the nav */
#nav-links .nav-item:first-child {
  margin-left: 0;
}

.nav-item {
  position: relative;  /* Add this for proper dropdown positioning */
}

.nav-item .nav-link,
.nav-item .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  color: var(--color-header-text);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  font-weight: 500;
  opacity: 0.9;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: inherit;
  font-family: inherit; /* Ensure font family is consistent */
}

/* Specific overrides for dropdown-toggle to match nav-link exactly */
.nav-item .dropdown-toggle {
  font-weight: 500; /* Ensure it's the same as other nav items */
  letter-spacing: normal; /* Match letter spacing */
  text-rendering: optimizeLegibility; /* Improve text rendering */
}

.dropdown-toggle i {
  font-size: 0.875rem;
  transition: transform 0.2s ease;
  margin-left: 0.25rem;
  line-height: inherit; /* Match line height */
}

.nav-item .nav-link:hover,
.nav-item .dropdown-toggle:hover {
  opacity: 1;
  color: var(--color-btn-secondary);
}

.dropdown-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

#mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--color-header-text);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 0.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.5rem 1rem;
  }

  #logo-container {
    min-width: auto;
    padding: 0.5rem 0.75rem;
  }

  #site-logo {
    font-size: 1.25rem;
  }

  #nav-links {
    position: fixed;
    top: var(--header-height, 60px); /* Use CSS variable for header height */
    right: 0;
    bottom: 0;
    background-color: var(--color-header-bg);
    flex-direction: column;
    width: 200px;
    padding: 1rem 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    gap: 0;
    height: calc(100vh - var(--header-height, 60px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }

  #nav-links.nav-open {
    transform: translateX(0);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item .nav-link,
  .nav-item .dropdown-toggle {
    display: flex;
    width: 100%;
    padding: 0.75rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    font-weight: 500; /* Ensure consistent font weight on mobile */
  }

  .nav-item .nav-link:hover,
  .nav-item .dropdown-toggle:hover,
  .nav-item .dropdown-toggle[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.1);
  }

  #mobile-menu-toggle {
    display: inline-flex;
  }

  #site-header {
    margin-bottom: 0;
  }
  
  #section-intro {
    margin-top: -20px; /* Negative margin to pull it up */
  }
  
  /* Remove any additional space that might be in the main container */
  #site-main {
    padding-top: 0;
    margin-top: 0;
  }
  
  /* Make sure header doesn't have extra padding */
  #site-header {
    padding-bottom: 0;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   6. SECTION: INTRODUCTION
   ─────────────────────────────────────────────────────────────────────────── */
.section-intro {
  background-color: var(--color-section-intro-bg);
  color: var(--color-section-intro-text);
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
}

.bokeh-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.intro-content {
  position: relative;
  z-index: 2;
}

.bokeh-light {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(26, 188, 156, 0.15) 0%,
    rgba(52, 152, 219, 0.1) 40%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  filter: blur(20px);
  pointer-events: none;
}

.intro-title {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.intro-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.intro-buttons .btn-primary {
  background-color: var(--color-btn-primary);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
}

.intro-buttons .btn-primary:hover {
  background-color: var(--color-btn-primary-hover);
}

.intro-buttons .btn-secondary {
  background-color: var(--color-btn-secondary);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
}

.intro-buttons .btn-secondary:hover {
  background-color: var(--color-btn-secondary-hover);
}

/* ───────────────────────────────────────────────────────────────────────────
   7. SECTION: ABOUT
   ─────────────────────────────────────────────────────────────────────────── */
.section-about {
  background-color: var(--color-bg);
  padding: 5rem 2rem;
  padding-left: 0;
  padding-right: 0;
}

.section-about .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Base styles for about-photo-container */
.about-photo-container {
  flex: 1 1 250px;
  text-align: center;
  margin: 0 auto;
  max-width: 250px;
}

.about-photo {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 4px 8px var(--color-shadow);
  transition: transform 0.3s ease;
}

.about-image img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  mask-image: radial-gradient(circle, black 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle, black 70%, transparent 100%);
}

@media (max-width: 768px) {
  .about-image img {
    width: 150px;
    height: 150px;
  }
}

/* Small mobile screens */
@media (max-width: 480px) {
  .about-photo-container {
    max-width: 100%;
  }
  
  .carousel-slide {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Medium screens */
@media (min-width: 481px) and (max-width: 767px) {
  .about-photo-container {
    max-width: 200px;
  }
}

/* Desktop/tablet */
@media (min-width: 768px) {
  .carousel-slide {
    flex-direction: row;
    gap: 4rem;
  }

  .about-photo-container {
    flex: 0 0 40%;
    max-width: 300px;
  }
  
  .about-text-container {
    flex: 0 0 55%;
    text-align: left;
    align-items: flex-start;
  }
  
  .about-photo:hover {
    transform: scale(1.05);
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .about-photo-container {
    max-width: 320px;
  }
}

.about-text-container {
  flex: 2 1 400px;
}

.about-paragraph {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--color-text);
}

/* About Section Carousel Styles */
.about-carousel {
  width: 100%;
  margin-top: 2rem;
  position: relative;
  padding-bottom: 3rem;
}

.carousel-container {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.about-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .about-carousel {
    min-height: 300px;
  }

  .carousel-container {
    min-height: 300px;
  }

  .carousel-slide {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem;
  }

  .about-photo-container {
    flex: 0 0 45%;
    max-width: 45%;
  }

  .about-text-container {
    flex: 0 0 50%;
    max-width: 50%;
    text-align: left;
    align-items: flex-start;
  }
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  max-width: 180px;
  margin-left: auto;
  margin-right: auto;
}

.carousel-btn {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.carousel-btn:hover {
  color: var(--color-primary);
}

.carousel-indicators {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-bg-alt);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px var(--color-shadow);
}

.indicator.active {
  background-color: var(--color-primary);
}

/* Auto-play toggle button - make it match dark mode toggle */
#auto-play-toggle {
  display: none;
}

/* ───────────────────────────────────────────────────────────────────────────
   8. SECTION: PROJECTS
   ─────────────────────────────────────────────────────────────────────────── */
.section-projects {
  background-color: var(--color-bg-alt);
  padding: 5rem 2rem;
  padding-left: 0;
  padding-right: 0;
}

.section-projects .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.projects-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: none;
  border: 1px solid var(--color-primary);
  color: var(--color-text);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--color-primary);
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.project-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px var(--color-shadow);
  background-color: var(--color-card-bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border: 1px solid var(--color-border);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--color-shadow);
}

.project-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-thumbnail-container {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  margin: 0;
}

.project-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-thumbnail {
  transform: scale(1.05);
}

.project-links {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.project-card:hover .project-links {
  opacity: 1;
  transform: translateY(0);
}

.project-link-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-card-bg);
  color: var(--color-text);
  border-radius: 50%;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px var(--color-shadow);
}

.project-link-btn:hover {
  background-color: var(--color-primary);
  color: white;
}

.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
  color: var(--color-heading);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  background-color: var(--color-bg);
  color: var(--color-text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
}

.project-description {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.project-features {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: auto;
}

.project-features li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.project-features i {
  color: var(--color-primary);
}

.projects-cta {
  text-align: center;
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.github-link {
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  opacity: 0.9;
  transition: all 0.2s ease;
  text-decoration: none;
}

.github-link:hover {
  opacity: 1;
  transform: rotate(20deg);
}

.github-link i {
  font-size: 1.75rem;
  line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .project-info {
    padding: 1rem;
  }
  
  .project-title {
    font-size: 1.2rem;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   9. SECTION: BLOG
   ─────────────────────────────────────────────────────────────────────────── */
.section-blog {
  background-color: var(--color-bg);
  padding: 5rem 2rem;
  padding-left: 0;
  padding-right: 0;
}

.section-blog .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

/* Featured Post Styles */
.featured-post {
  max-width: 1000px;
  margin: 0 auto 3rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.blog-post-featured {
  display: flex;
  background-color: var(--color-card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px var(--color-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--color-shadow);
}

.featured-post-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  padding-left: 2rem;
  padding-right: 2rem;
}

.featured-post-meta {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.post-tag {
  background-color: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.post-date {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.featured-post-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.featured-post-title a {
  color: var(--color-heading);
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-post-title a:hover {
  color: var(--color-primary);
}

.featured-post-excerpt {
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
  flex-grow: 1;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.reading-time, .post-category {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.read-more {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.read-more:hover {
  gap: 0.5rem;
}

.featured-post-image {
  flex: 0 0 40%;
  overflow: hidden;
}

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

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

/* Blog Section Subtitle */
.blog-section-subtitle {
  font-size: 1.5rem;
  margin: 2rem 0 1.5rem;
  text-align: center;
  color: var(--color-heading);
}

/* Blog Grid Styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.blog-card {
  background-color: var(--color-card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px var(--color-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--color-shadow);
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

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

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

.blog-card-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-heading);
  line-height: 1.4;
}

.blog-card-excerpt {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* CTA Button */
.blog-cta {
  text-align: center;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .blog-post-featured {
    flex-direction: column;
  }
  
  .featured-post-image {
    flex: 0 0 250px;
  }
  
  .post-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .post-meta {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .featured-post-title {
    font-size: 1.5rem;
  }
  
  .blog-card-image {
    height: 160px;
  }
  
  .featured-post-content {
    padding: 1.5rem;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   10. SECTION: CONTACT
   ─────────────────────────────────────────────────────────────────────────── */
.section-contact {
  background-color: var(--color-bg-alt);
  padding: 5rem 2rem;
  padding-left: 0;
  padding-right: 0;
}

.section-contact .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.contact-info {
  flex: 1 1 300px;
}

.contact-info-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.contact-info-text {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--color-text);
}

.contact-email {
  color: var(--color-btn-primary);
  text-decoration: none;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 24px;
  height: 24px;
  filter: invert(16%) sepia(76%) saturate(507%) hue-rotate(152deg) brightness(92%) contrast(87%);
  /* Adjust filter or replace with direct-colored SVG for dark mode if needed */
}

.contact-form {
  flex: 2 1 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-label {
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-input,
.form-textarea {
  padding: 0.75rem;
  border: 1px solid var(--color-form-border);
  border-radius: 4px;
  font-size: 1rem;
  background-color: var(--color-bg);
  color: var(--color-text);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-btn-primary);
}

.form-submit-btn {
  align-self: flex-start;
  background-color: var(--color-btn-primary);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
}

.form-submit-btn:hover {
  background-color: var(--color-btn-primary-hover);
}

/* Status message under form */
.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Success uses --color-form-status-success; error uses --color-form-status-error */
/* Example in JS: statusEl.style.color = varOrValue('--color-form-status-success'); */

/* ───────────────────────────────────────────────────────────────────────────
   11. FOOTER
   ─────────────────────────────────────────────────────────────────────────── */
.footer-container {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  text-align: center;
  padding: 2rem;
}

.footer-text {
  font-size: 0.9rem;
}

/* ───────────────────────────────────────────────────────────────────────────
   12. SCROLL-TO-TOP BUTTON
   ─────────────────────────────────────────────────────────────────────────── */
.scroll-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem;
  border: none;
  border-radius: 50%;
  background-color: var(--color-scroll-btn-bg);
  color: #ffffff;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
  z-index: 200;
}

.scroll-btn.visible {
  opacity: 1;
  visibility: visible;
}

/* ───────────────────────────────────────────────────────────────────────────
   13. MEDIA QUERIES
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .about-content,
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .about-text-container {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .intro-title {
    font-size: 2rem;
  }

  .intro-subtitle {
    font-size: 1rem;
  }

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

/* ───────────────────────────────────────────────────────────────────────────
   ICON COLOR (black in light mode, white in dark mode)
   ─────────────────────────────────────────────────────────────────────────── */
/* 1. Define --color-icon in light mode */
:root {
  --color-icon: #000000;
}

/* 2. Override --color-icon when theme="dark" */
[data-theme="dark"] {
  --color-icon: #ffffff;
}

/* 3. Apply var(--color-icon) to all Bootstrap Icon <i> elements you use */
#dark-mode-toggle i,
.social-link i,
#scrollToTopBtn i {
  color: var(--color-icon);
}

/* ───────────────────────────────────────────────────────────────────────────
   In Dark Mode: Make "Get in Touch" a darker blue with same hover transition
   ─────────────────────────────────────────────────────────────────────────── */
[data-theme="dark"] .intro-buttons .btn-secondary {
  /* Use the global dark mode style instead */
  background-color: var(--color-btn-secondary);
}

[data-theme="dark"] .intro-buttons .btn-secondary:hover {
  /* Use the global dark mode style instead */
  background-color: var(--color-btn-secondary-hover);
}

[data-theme="dark"] .blog-cta .btn-secondary {
  /* Use the global dark mode style instead */
  background-color: var(--color-btn-secondary);
}

[data-theme="dark"] .blog-cta .btn-secondary:hover {
  /* Use the global dark mode style instead */
  background-color: var(--color-btn-secondary-hover);
}

/* Form validation and loading states */
.form-input.invalid,
.form-textarea.invalid {
  border-color: var(--color-form-status-error);
  background-color: rgba(231, 76, 60, 0.05);
}

.validation-message {
  font-size: 0.8rem;
  margin-top: 0.25rem;
  min-height: 1rem;
  color: var(--color-form-status-error);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.validation-message.error {
  opacity: 1;
}

/* Loading spinner animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinning {
  animation: spin 1s linear infinite;
  display: inline-block;
}

/* Form focus states */
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-btn-primary);
  box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.2);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus {
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
}

/* Disabled state for submit button */
.form-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Form field character count */
.form-input,
.form-textarea {
  position: relative;
}

.char-count {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text);
  opacity: 0.7;
}

/* Improve form field spacing */
.contact-form {
  gap: 1.25rem;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  color: var(--color-header-text);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
  opacity: 0.9;
  cursor: pointer;
  padding: 0;
}

.dropdown-toggle:hover {
  color: var(--color-btn-primary);
  opacity: 1;
}

.dropdown-toggle i {
  font-size: 0.875rem;
  transition: transform 0.2s ease;
  margin-left: 0.25rem;
}

.dropdown-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background-color: var(--color-header-bg);
  min-width: 200px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
  list-style: none;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--color-header-bg);
  transform: translateX(-50%) rotate(45deg);
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1.5rem;
  color: var(--color-header-text);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9375rem;
  opacity: 0.9;
  text-align: center;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-btn-primary);
  opacity: 1;
}

/* Active dropdown item (current page) */
.dropdown-item.active,
.dropdown-item[aria-current="page"] {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-btn-primary);
  font-weight: 600;
  position: relative;
}

/* Add a small indicator for the active page */
.dropdown-item.active::after,
.dropdown-item[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-btn-primary);
}

/* Dark mode adjustments */
[data-theme="dark"] .dropdown-menu {
  background-color: var(--color-header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .dropdown-menu::before {
  background-color: var(--color-header-bg);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .nav-item {
    display: block;
  }

  .dropdown-toggle {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    display: none;
    transform: none;
    left: 0;
  }

  .dropdown-menu::before {
    display: none;
  }

  .dropdown-menu.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown-item {
    padding: 0.75rem 2.5rem;
    font-size: 1rem;
    text-align: left;
  }

  .dropdown-toggle[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

#site-main {
  padding-top: 70px; /* Add space for fixed header */
}

.section {
  padding: 5rem 2rem;
  scroll-margin-top: 70px; /* Offset for fixed header */
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
  width: 100%;
}

.blog-cta {
  text-align: center;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.blog-link {
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  opacity: 0.9;
  transition: all 0.2s ease;
  text-decoration: none;
}

.blog-link:hover {
  opacity: 1;
  transform: rotate(20deg);
}

.blog-link i {
  font-size: 1.75rem;
  line-height: 1;
}

/* General button styles */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-btn-secondary);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  transition: gap 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--color-btn-secondary-hover);
  gap: 0.7rem;
}

/* Dark mode button styles */
[data-theme="dark"] .btn-secondary {
  background-color: #2c90d3;  /* darker blue under dark mode */
  color: #ffffff;
}

[data-theme="dark"] .btn-secondary:hover {
  background-color: #1a5a83;  /* even darker on hover */
}

/* ───────────────────────────────────────────────────────────────────────────
   13. TOOLS PAGES
   ─────────────────────────────────────────────────────────────────────────── */
.tool-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
  width: 100%;
}

.tool-section .section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-heading);
}

.tool-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.tool-description {
  /* Caused long boxes */
  /* flex: 1 1 500px;  */
  color: var(--color-text);
}

.tool-description p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.tool-features {
  flex: 1 1 400px;
  background-color: var(--color-bg-alt);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px var(--color-shadow);
}

.tool-features h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-heading);
}

.tool-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tool-features li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--color-text);
  font-size: 1.05rem;
}

.tool-features i {
  color: var(--color-btn-primary);
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .tool-section .section-title {
    font-size: 2rem;
  }
  
  .tool-features {
    padding: 1.5rem;
  }
}

/* Remove horizontal padding from all sections */
.section-intro,
.section-about,
.section-projects,
.section-blog,
.section-contact {
  padding-left: 0;
  padding-right: 0;
}

/* Fix tool section padding */
.tool-section,
.playground-section,
.visualizer-section,
.utility-section {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
  width: 100%;
}

/* Fix for main section containers */
.section {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
  width: 100%;
}

/* Fix navigation container */
/* .nav-container {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
  width: 100%;
} */

/* Move padding to content containers */
.about-content,
.projects-grid,
.blog-grid,
.featured-post,
.contact-container,
.tool-content,
.playground-tools,
.visualizer-container,
.utility-tools,
.tool-features {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Remove flex centering that could be causing issues */
body {
  display: block;
  min-height: 100vh;
}

/* Fix modal content */
.modal-content {
  max-width: 1200px;
  box-sizing: border-box;
}