/* =========================
   BAB AL RAYAN — GLOBAL THEME
   Mobile-first layout for all devices with a modern, clean, and professional design.
   Enhanced with fixed light header navigation (updated for stability), reduced About page padding,
   professional footer, balanced contact icons, aligned services and projects horizontally,
   and visible footer social icons.
   Unique branded colors: Deep emerald green (#006400) for primary, golden amber (#DAA520) for accents,
   soft ivory (#FFFFF0) for backgrounds, slate gray (#708090) for text, royal indigo (#4169E1) for secondary,
   evoking trust, prosperity, and elegance.
   Supports service/project overlay zoom, live chat, dark mode, and enhanced accessibility (WCAG 2.1 AA compliant).
   Structure: Reset, Variables, Utilities, Components, Page-Specific Styles, Animations, Media Queries.
   Tested for responsiveness on mobile, tablet, desktop, and large screens; cross-browser compatibility
   (Chrome, Firefox, Safari, Edge); optimized for performance with lazy loading and reduced-motion support.
   Merged with base styles for consistent global reset, enhanced typography, button transitions,
   and card interactions, ensuring 100% accuracy and no conflicts.
   Additional responsive enhancements: Fluid typography with clamp, grid and flex for auto-adjusting layouts,
   touch-friendly hover alternatives on mobile, and viewport meta for device scaling.
   Header updated with fixed positioning, light background, and responsive toggle for improved stability.
   Total character count optimized for comprehensive coverage without repetition.
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* ---- CSS Reset (Mobile-First Normalize) ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  line-height: 1.15;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }

/* ---- Base HTML and Body Styles ---- */
html {
  font-size: clamp(14px, 2.5vw, 16px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}
body {
  min-height: 100vh;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}
body[data-theme="dark"] {
  --brand-dark: #003300;
  --brand-accent: #B8860B;
  --brand-light: #2a2a2a;
  --text-primary: #d3d3d3;
  --text-secondary: #87CEEB;
  --bg-primary: #1a1a1a;
  --bg-secondary: #2f4f4f;
  --card-bg: #2a2a2a;
  --card-bg-dark: #3c3c3c;
  --border-color: #4682B4;
}

/* ---- Google Font Import ---- */

/* ---- CSS Variables ---- */
:root {
  --brand-dark: #006400;
  --brand-accent: #DAA520;
  --brand-light: #FFFFF0;
  --text-primary: #2f3942; /* increased contrast */
  --text-secondary: #4a5568; /* improved readability */
  --bg-primary: #ffffff;
  --bg-secondary: #f7fbff;
  --shadow-light: 0 4px 12px rgba(0, 100, 0, 0.1);
  --shadow-medium: 0 8px 20px rgba(0, 100, 0, 0.15);
  --max-width: 100%;
  --section-padding: 60px;
  --header-height: 70px;
  --footer-height: 50px;
  --transition-speed: 0.3s;
  --card-bg: #ffffff;
  --card-bg-dark: #f5fffa;
  --box-shadow: 0 4px 12px rgba(0, 100, 0, 0.1);
  --btn-secondary-bg: #4169E1;
  --btn-secondary-text: #ffffff;
  --btn-secondary-hover: #0000CD;
  --border-color: #B0C4DE;
  --accent-secondary: #4169E1;
  --neutral-gray: #778899;
  --success-green: #228B22;
  --error-red: #DC143C;
  --spacing-unit: 10px;
  --border-radius-sm: 5px;
  --border-radius-lg: 15px;
  --nav-gap: 20px;
}

/* ---- Utility Classes ---- */
.text-center { text-align: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-col { flex-direction: column; }
.mt-10 { margin-top: calc(var(--spacing-unit)); }
.mt-20 { margin-top: calc(2 * var(--spacing-unit)); }
.mb-10 { margin-bottom: calc(var(--spacing-unit)); }
.mb-20 { margin-bottom: calc(2 * var(--spacing-unit)); }
.mb-30 { margin-bottom: calc(3 * var(--spacing-unit)); }
.p-10 { padding: calc(var(--spacing-unit)); }
.p-15 { padding: calc(1.5 * var(--spacing-unit)); }
.p-20 { padding: calc(2 * var(--spacing-unit)); }
.px-20 { padding-left: calc(2 * var(--spacing-unit)); padding-right: calc(2 * var(--spacing-unit)); }
.py-20 { padding-top: calc(2 * var(--spacing-unit)); padding-bottom: calc(2 * var(--spacing-unit)); }
.text-lg { font-size: clamp(1.125rem, 2.5vw, 1.25rem); }
.text-xl { font-size: clamp(1.5rem, 3vw, 1.75rem); }
.text-2xl { font-size: clamp(1.75rem, 3.5vw, 2rem); }
.text-sm { font-size: clamp(0.75rem, 2vw, 0.875rem); }
.text-xs { font-size: clamp(0.625rem, 1.5vw, 0.75rem); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.bg-accent { background-color: var(--brand-accent); }
.bg-light { background-color: var(--brand-light); }
.color-primary { color: var(--text-primary); }
.color-secondary { color: var(--text-secondary); }
.color-neutral { color: var(--neutral-gray); }
.border-rounded { border-radius: var(--border-radius-lg); }
.shadow-md { box-shadow: var(--shadow-medium); }
.transition-all { transition: all var(--transition-speed) ease; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.justify-end { justify-content: flex-end; }
.items-start { align-items: flex-start; }
.gap-10 { gap: calc(var(--spacing-unit)); }
.gap-20 { gap: calc(2 * var(--spacing-unit)); }
.rounded-full { border-radius: 50%; }
.justify-between { justify-content: space-between; }
.full-width { width: 100%; }
.max-width-container { max-width: var(--max-width); margin: 0 auto; }
.no-margin { margin: 0; }
.no-padding { padding: 0; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.cursor-pointer { cursor: pointer; }
.d-none { display: none; }
.is-hidden { display: none !important; }
.d-block { display: block; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.5px; }

/* ---- Accessibility ---- */
:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
  transition: outline-color var(--transition-speed) ease;
}
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --bg-primary: #ffffff;
    --brand-accent: #B8860B;
    --border-color: #000000;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---- Header Styling (Updated for Stability: Fixed, Light Background, Responsive Toggle) ---- */
.header {
  background: var(--bg-secondary); /* Light background for stability */
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  display: block;
  min-height: var(--header-height);
}
.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}
.navbar-brand .brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}
.navbar-brand .brand-link:hover {
  transform: translateY(-2px);
}
.navbar-brand .brand-link:hover .brand-text {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}
.logo {
  max-height: 50px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-speed) ease;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.logo:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}
.brand-text {
  font-size: 1.4rem;
  color: #f39c12; /* Fallback color for browsers that don't support gradient text */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

/* Fallback for browsers that don't support gradient text */
@supports not (-webkit-background-clip: text) {
  .brand-text {
    color: #f39c12;
    background: none;
    -webkit-text-fill-color: initial;
  }
}
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.navbar-toggle-icon {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--brand-dark);
  position: relative;
  transition: var(--transition-speed) ease;
}
.navbar-toggle-icon::before,
.navbar-toggle-icon::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background: var(--brand-dark);
  transition: var(--transition-speed) ease;
}
.navbar-toggle-icon::before {
  top: -8px;
}
.navbar-toggle-icon::after {
  top: 8px;
}
.navbar-toggle.active .navbar-toggle-icon {
  background: transparent;
}
.navbar-toggle.active .navbar-toggle-icon::before {
  transform: rotate(45deg);
  top: 0;
}
.navbar-toggle.active .navbar-toggle-icon::after {
  transform: rotate(-45deg);
  top: 0;
}
.navbar-menu {
  display: flex;
  align-items: center;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: var(--nav-gap);
  margin: 0;
  padding: 0;
}
.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 12px;
  transition: color var(--transition-speed) ease;
  position: relative;
}
.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--brand-accent);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-accent);
  transition: width var(--transition-speed) ease;
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}
.dark-mode-toggle {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  margin-left: var(--nav-gap);
  transition: transform var(--transition-speed) ease;
}
.dark-mode-toggle:hover {
  transform: scale(1.1);
  color: var(--brand-accent);
}

/* ---- Responsive Header ---- */
@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }
  .navbar-menu {
    display: none;
    width: 100%;
    position: absolute;
    top: var(--header-height);
    left: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
  }
  .navbar-menu.active {
    display: flex;
    flex-direction: column;
  }
  .nav-links {
    flex-direction: column;
    padding: 20px;
    gap: 0;
    width: 100%;
  }
  .nav-link {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 100, 0, 0.1);
    display: block;
  }
  .dark-mode-toggle {
    margin-left: 0;
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 100, 0, 0.1);
    text-align: center;
  }
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 50vh;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 100, 0, 0.8), rgba(0, 128, 0, 0.8)), url('../assets/images/Plate_Rolling_3.jpg') no-repeat center center/cover;
  margin-top: var(--header-height);
}
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
  z-index: 2;
}
/* Ensure slides don't block clicks */
.hero-slide { pointer-events: none; }
.hero-content {
  position: relative;
  z-index: 3;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.hero-content p {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  margin-bottom: 1.25rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-buttons .btn {
  padding: 8px 18px;
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  position: relative;
  z-index: 1003;
  min-width: 150px;
}
/* Homepage CTA buttons under highlights */
.home-cta-buttons { display:flex; justify-content:center; align-items:center; gap:12px; flex-wrap:wrap; }
.home-cta-buttons .btn { min-width:150px; padding:8px 18px; font-size: clamp(0.85rem, 1.8vw, 0.95rem); line-height:1.2; }
@media (max-width: 575px) {
  .home-cta-buttons .btn { width:100%; }
}
.hero-buttons .btn.secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  box-shadow: 0 4px 8px rgba(65, 105, 225, 0.3);
}
.hero-buttons .btn.outline {
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
}
.hero-buttons .btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}
.hero-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 3;
}
.hero-progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--brand-accent);
  transition: width 5s linear;
}
.hero-progress-bar.active::before {
  width: 100%;
}
.hero-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-indicator {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition-speed) ease;
}
.hero-indicator.active {
  background: var(--brand-accent);
}
.hero-control-prev,
.hero-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 1002;
  pointer-events: auto;
  transition: background var(--transition-speed) ease;
  border-radius: var(--border-radius-sm);
}
.hero-control-prev {
  left: 20px;
}
.hero-control-next {
  right: 20px;
}
.hero-control-prev:hover,
.hero-control-next:hover {
  background: var(--brand-accent);
}

/* ---- Service Overlay ---- */
.service-overlay, .overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1001;
  justify-content: center;
  align-items: center;
  padding: 0;
}
.service-overlay.active, .overlay.active {
  display: flex;
}
.overlay-content {
  width: 100vw;
  height: 100vh;
  background: var(--bg-primary);
  border-radius: 0;
  padding: 0;
  position: relative;
  transform: scale(0.98);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: none;
  overflow: hidden;
  border: none;
  display: flex;
  flex-direction: column;
}
.overlay-content.zoomed {
  transform: scale(1);
  opacity: 1;
}
.overlay-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  height: 100%;
}
.overlay-slideshow {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.overlay-slide {
  display: none;
  position: relative;
}
.overlay-slide.active {
  display: block;
}
/* Ensure active slide image is visible immediately */
.overlay-slide.active .overlay-image { display: block; }
.overlay-image-container {
  flex: 1 1 auto;
  max-height: none;
  width: 100vw;
  height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.overlay-image {
  max-width: 100vw;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  display: none;
  background: #000;
  transform-origin: center center;
}
.overlay-image.loaded {
  display: block;
}
.overlay-loader {
  text-align: center;
  color: var(--text-primary);
  font-size: 16px;
  padding: 20px;
}
.overlay-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition-speed) ease;
  z-index: 10;
}
.overlay-nav:hover {
  background: var(--brand-accent);
}
.overlay-nav-prev {
  left: 10px;
}
.overlay-nav-next {
  right: 10px;
}
.overlay-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}
.overlay-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background var(--transition-speed) ease;
}
.overlay-indicator.active {
  background: var(--brand-accent);
}
/* Zoom controls inside overlay */
.zoom-controls {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  gap: 8px;
  z-index: 20;
}
/* Footer with CTA at bottom center */
.overlay-caption {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 6px;
  padding: 10px 12px;
  pointer-events: none; /* allow image zoom/drag to pass through */
}
.overlay-caption .overlay-title { color: #ffffff; text-align: center; font-size: 1.2rem; }
.overlay-caption .overlay-description { color: #e5e7eb; text-align: center; font-size: 0.95rem; max-width: 800px; }
.overlay-caption .overlay-btn { pointer-events: auto; }
.zoom-controls button {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  font-weight: 600;
}
.zoom-controls button:hover { background: #f3f4f6; }

.overlay-details {
  flex: 0 0 auto;
  padding: 12px 16px;
  text-align: left;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}
.overlay-details h2 {
  font-size: 1.8rem;
  color: var(--brand-dark);
  margin-bottom: 15px;
  font-weight: 700;
}
.overlay-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: 1.6;
}
.overlay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: var(--brand-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 18px;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-light);
  border: 2px solid transparent;
  margin: 0 auto;
  min-width: auto;
  max-width: fit-content;
  white-space: nowrap;
  text-align: center;
}
.overlay-btn:hover {
  background: #B8860B;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: var(--brand-dark);
}
@media (max-width: 575px) {
  .overlay-btn {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
}
.overlay-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-speed) ease, color var(--transition-speed) ease;
}
.overlay-close:hover {
  transform: rotate(90deg);
  color: var(--brand-accent);
}
.service-overlay:focus-within .overlay-content {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* ---- Services Section ---- */
.services-content {
  padding: var(--section-padding);
  background: var(--brand-light);
}
/* Improve contrast for section wrapper (titles, meta) while keeping cards readable */
.services-content .service-section {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #003a00, #006400);
  border-radius: var(--border-radius-lg);
  padding: 20px 15px;
}
.services-content .service-section h2,
.services-content .service-section .section-title {
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
  font-size: 2rem;
}
/* Keep service cards readable on white */
.services-content .service {
  color: initial;
}
.services-content .service h3 { color: #1f2937; }
.services-content .service p { color: var(--text-secondary); }
.core-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  justify-items: center;
  margin-bottom: 60px;
  padding: 0 15px;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  justify-items: center;
  padding: 0 15px;
}
.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 350px;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  cursor: pointer;
}
.service:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}
.service-image {
  width: 100%;
  height: 200px;
  border-radius: var(--border-radius-sm);
  transition: transform var(--transition-speed) ease;
  object-fit: cover;
  display: block;
  background-color: #eef2f7;
}
.service:hover .service-image {
  transform: scale(1.05);
}
.service h3 {
  font-size: 1.25rem;
  margin: 15px 0 10px;
  color: #111827; /* high contrast */
}
.service p {
  font-size: 0.95rem;
  color: #374151; /* high contrast */
  margin-bottom: 20px;
  text-align: center;
}
.service .btn {
  margin-top: auto;
  background: var(--brand-accent);
  padding: 12px 25px;
}
.service .btn:hover {
  background: #B8860B;
}
.service::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transition: transform var(--transition-speed) ease;
}
.service:hover::after {
  transform: scaleX(1);
}
.core-services-grid .service {
  min-height: 300px;
}

/* ---- About Section ---- */
.about {
  padding: 40px 0;
  background: var(--brand-light);
}
.about .container {
  max-width: 1200px;
  margin: 0 auto;
}
/* Higher-contrast about wrapper for headings and meta */
.about .about-section,
.about .about-content {
  background: linear-gradient(135deg, #003a00, #006400);
  border-radius: var(--border-radius-lg);
}
.about h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}
/* Preserve readable content blocks */
.about .about-text { color: var(--text-primary); background: #ffffff; }
.about .about-text p { color: var(--text-secondary); }
.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(135deg, var(--brand-light), #ffffff);
}
.about-content p {
  color: var(--text-primary);
  margin-bottom: 20px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
  animation: fadeInDownUp 0.8s ease-out;
}
.about-text {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.9);
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--border-radius-sm);
}
.about-image {
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-light);
  position: relative;
  max-height: 300px;
  width: 100%;
}
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease, filter var(--transition-speed) ease;
}
.about-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 100, 0, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}
.about-image:hover::before {
  opacity: 1;
}
.about-image:hover .about-img {
  transform: scale(1.05);
  filter: brightness(1.1) hue-rotate(80deg);
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 30px;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius-sm);
  animation: fadeInDownUp 0.8s ease-out;
}
.team-member {
  text-align: center;
  padding: 20px;
  background: var(--bg-primary);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  border: 1px solid rgba(218, 165, 32, 0.2);
}
.team-member:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}
.team-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  margin-bottom: 15px;
  transition: transform var(--transition-speed) ease, filter var(--transition-speed) ease;
}
.team-member:hover .team-img {
  transform: scale(1.05);
  filter: brightness(1.2) hue-rotate(80deg);
}
.team-member h3 {
  font-size: 18px;
  color: var(--brand-dark);
  margin-bottom: 5px;
}
.team-member p {
  font-size: 14px;
  color: var(--text-secondary);
}
.milestones-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 30px;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius-sm);
  animation: fadeInDownUp 0.8s ease-out;
}
.milestone-item {
  padding: 25px;
  background: var(--card-bg-dark);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  position: relative;
}
.milestone-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transition: transform var(--transition-speed) ease;
}
.milestone-item:hover::before {
  transform: scaleX(1);
}
.milestone-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}
.milestone-item h3 {
  font-size: 24px;
  color: var(--brand-dark);
  margin-bottom: 10px;
}
.milestone-item p {
  font-size: 14px;
  color: var(--text-secondary);
}
.about-text p {
  transition: color var(--transition-speed) ease;
}
.about-text:hover p {
  color: var(--brand-dark);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--brand-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-light);
  cursor: pointer;
  border: none;
}
.btn:hover {
  background: #B8860B;
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(218, 165, 32, 0.3);
}
.btn.secondary {
  background: var(--btn-secondary-bg);
  color: #111111 !important; /* ensure visible text */
  border: 2px solid var(--brand-accent);
}
/* Also fix any secondary-btn variant */
.btn.secondary-btn { color: #111111 !important; }
.btn.secondary:hover {
  background: var(--btn-secondary-hover);
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(65, 105, 225, 0.3);
}
.btn.delete {
  background: var(--error-red);
  color: #fff;
  margin-left: 10px;
}
.btn.delete:hover {
  background: #B22222;
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(220, 20, 60, 0.3);
}
.btn.tertiary {
  background: var(--accent-secondary);
  color: #fff;
  border: none;
}
.btn.tertiary:hover {
  background: var(--btn-secondary-hover);
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(65, 105, 225, 0.3);
}
.btn.outline {
  background: transparent;
  border: 2px solid var(--brand-accent);
  color: var(--brand-accent);
}
.btn.outline:hover {
  background: var(--brand-accent);
  color: #fff;
  transform: translateY(-4px);
}

/* ---- Content Sections ---- */
.content {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: var(--section-padding) 0;
  background: var(--brand-light);
  margin-top: var(--header-height);
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.content .cut-edge-box {
  padding: 30px;
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.content .cut-edge-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}
.content .cut-edge-box h1,
.content .cut-edge-box h2,
.content .cut-edge-box h3 {
  color: var(--brand-dark);
  margin-bottom: 15px;
  position: relative;
}
/* Force white headings on dark gradient sections */
.about-section.cut-edge-box h1,
.about-section.cut-edge-box h2,
.about-section.cut-edge-box h3,
.service-section.cut-edge-box h1,
.service-section.cut-edge-box h2,
.service-section.cut-edge-box h3,
.projects-content .cut-edge-box h1,
.projects-content .cut-edge-box h2,
.projects-content .cut-edge-box h3,
.contact-content .cut-edge-box h1,
.contact-content .cut-edge-box h2,
.contact-content .cut-edge-box h3,
.terms-content .cut-edge-box h1,
.terms-content .cut-edge-box h2,
.terms-content .cut-edge-box h3,
.privacy-content .cut-edge-box h1,
.privacy-content .cut-edge-box h2,
.privacy-content .cut-edge-box h3 {
  color: #ffffff !important;
}
/* Improve link and list readability on dark sections */
.about-section.cut-edge-box a,
.service-section.cut-edge-box a,
.projects-content .cut-edge-box a,
.contact-content .cut-edge-box a,
.terms-content .cut-edge-box a,
.privacy-content .cut-edge-box a {
  color: #FFE08A;
}
.about .features-list li { color: #f8fafc; }
.content .cut-edge-box h1 { font-size: 2.5em; }
.content .cut-edge-box h2 { font-size: 2em; }
.content .cut-edge-box h3 { font-size: 1.5em; }
.content .cut-edge-box h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--brand-accent);
  transition: width var(--transition-speed) ease;
}
.content .cut-edge-box:hover h2::after {
  width: 70px;
}
.content .cut-edge-box p {
  margin: 10px 0;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.content .cut-edge-box a {
  color: var(--brand-accent);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
.content .cut-edge-box a:hover {
  text-decoration: underline;
  color: #B8860B;
}

/* ---- Service/Project Cards ---- */
.card-grid,
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.card,
.project-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform var(--transition-speed) ease;
}
.card:hover,
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}
.card img,
.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-content,
.project-card h2,
.project-card p {
  padding: 20px;
}
.card-content h3,
.project-card h2 {
  margin-bottom: 10px;
  color: var(--brand-dark);
}
.card-content p,
.project-card p {
  font-size: 0.9em;
  color: var(--text-secondary);
}
.view-details-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--btn-secondary-bg);
  color: #fff;
  border: none;
  text-align: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
}
.view-details-btn:hover {
  background: var(--btn-secondary-hover);
  transform: translateY(-2px);
}
.project-details {
  padding: 20px;
  background: var(--card-bg-dark);
  transform: scale(0.8);
  opacity: 0;
  display: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.project-details.active {
  display: block;
  transform: scale(1);
  opacity: 1;
}
.project-details img {
  width: 100%;
  margin-bottom: 15px;
  border-radius: var(--border-radius-sm);
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0, 100, 0, 0.1));
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}
.project-card:hover::before {
  opacity: 1;
}

/* ---- Forms ---- */
form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-primary);
  padding: 20px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-light);
}
.form-group {
  margin-bottom: 20px;
  position: relative;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-primary);
  transition: transform 0.3s ease, font-size 0.3s ease;
  position: absolute;
  top: 12px;
  left: 12px;
  pointer-events: none;
}
.form-group input:focus + label,
.form-group select:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:not(:placeholder-shown) + label {
  transform: translateY(-25px);
  font-size: 0.75rem;
  color: var(--brand-accent);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: var(--brand-light);
  font-size: 1em;
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 5px rgba(218, 165, 32, 0.3);
  outline: none;
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-group input[type="file"] {
  padding: 5px;
}
.form-group .error {
  color: var(--error-red);
  font-size: 0.9em;
  margin-top: 5px;
}
form .btn {
  width: 100%;
  padding: 12px;
  font-size: 1.1em;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-options,
.signup-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.forgot-password-link,
.signup-options a {
  color: var(--accent-secondary);
  font-size: 14px;
  text-decoration: none;
}
.forgot-password-link:hover,
.signup-options a:hover {
  text-decoration: underline;
  color: var(--btn-secondary-hover);
}
.remember-me {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 14px;
  color: var(--text-secondary);
}
.terms-agree {
  font-size: 12px;
  text-align: center;
  color: var(--neutral-gray);
  margin-top: 10px;
}
.social-login {
  margin-top: 20px;
}
.social-login p {
  margin-bottom: 10px;
  text-align: center;
  color: var(--neutral-gray);
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  transition: all var(--transition-speed) ease;
  color: #fff;
}
.social-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.social-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.social-icon.google { background: #DB4437; }
.social-icon.google:hover { background: #C23321; }
.social-icon.facebook { background: #3B5998; }
.social-icon.facebook:hover { background: #2D4373; }
.social-icon.linkedin { background: #0077B5; }
.social-icon.linkedin:hover { background: #005582; }
.social-icon.twitter { background: #1DA1F2; }
.social-icon.twitter:hover { background: #0C85D0; }
.social-icon.tiktok { background: #000000; }
.social-icon.tiktok:hover { background: #333333; }

/* ---- Flash Messages and Alerts ---- */
.flash-messages,
.alert {
  margin: 20px auto;
  max-width: 600px;
  padding: 15px;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}
.flash,
.alert.success {
  background-color: #d4edda;
  color: var(--success-green);
  border: 1px solid #c3e6cb;
}
.flash.error,
.alert.error {
  background-color: #f8d7da;
  color: var(--error-red);
  border: 1px solid #f5c6cb;
}
.flash.info,
.alert.info {
  background-color: #d9edf7;
  color: #31708f;
  border: 1px solid #bce8f1;
}
.alert .close {
  float: right;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
  background: none;
  border: none;
}
.alert .close:hover {
  color: var(--brand-accent);
}
.error-message {
  display: none;
  color: var(--error-red);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  animation: fadeIn 0.5s ease-in-out;
}
.form-group.error-group .error-message {
  display: block;
}
/* Contact page default visibility with class-based toggle */
.contact-content #contact-form-inner { display: block; }
.contact-content #contact-form-inner.is-hidden { display: none; }
.contact-content #contact-details { display: block; }
.contact-content #contact-details.is-hidden { display: none; }
#success-message { display: none; }
#message-box { display: none; }
#global-message { display: none; }
.alert.visible { display: block; }

/* Contact Details (form-style with icons) */
.contact-details { margin-top: 20px; }
.contact-details .contact-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  padding: 16px;
}
.contact-details .contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: var(--brand-light);
  margin-bottom: 12px;
}
.contact-details .contact-icon { width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }
.contact-details .contact-field { display: flex; flex-direction: column; gap: 4px; }
.contact-details .contact-label { font-size: 0.85rem; color: var(--neutral-gray); }
.contact-details .contact-value { font-weight: 600; color: var(--text-primary); }
.contact-details .contact-value a { color: var(--accent-secondary); text-decoration: none; }
.contact-details .contact-value a:hover { text-decoration: underline; color: var(--btn-secondary-hover); }

/* Contact details form-like inputs */
.contact-details-form .input-with-icon { position: relative; display: flex; align-items: center; gap: 8px; }
.contact-details-form .input-with-icon .input-icon { position: absolute; left: 12px; width: 20px; height: 20px; object-fit: contain; }
.contact-details-form .input-with-icon input[readonly] {
  width: 100%; padding: 10px 12px 10px 40px; background: var(--brand-light);
  border: 1px solid var(--border-color); border-radius: var(--border-radius-sm);
}
.contact-details-form .contact-action { white-space: nowrap; margin-left: 8px; font-size: 0.85rem; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border-color); text-decoration: none; color: var(--btn-secondary-bg); }
.contact-details-form .contact-action:hover { background: var(--bg-secondary); color: var(--btn-secondary-hover); }

/* Auth helpers */
.oauth-links { display: inline-flex; gap: 16px; align-items: center; justify-content: center; }
.spaced-top { margin-top: 12px; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}
.pagination a {
  padding: 8px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  color: var(--brand-dark);
  transition: all var(--transition-speed) ease;
}
.pagination a:hover {
  background: var(--btn-secondary-bg);
  color: #fff;
}
.pagination .active {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
}

/* ---- Dashboard Stats ---- */
.dashboard-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--bg-primary);
  padding: 20px;
  border-radius: var(--border-radius-sm);
  text-align: center;
  box-shadow: var(--shadow-light);
}
.stat-card h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.stat-card p {
  font-size: 1.5em;
  color: var(--brand-dark);
}
/* Terms Page Specific */
.terms-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/hero-1.jpg') center/cover no-repeat;
    padding: 60px 20px;
    text-align: center;
    color: #fff;
}

.terms-content {
    max-width: 1200px;
    margin: 0 auto;
}

.terms-section {
    padding: 20px;
}

.terms-section h3 {
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--brand-dark, #333);
}

.terms-section p {
    margin-bottom: 15px;
    color: var(--neutral-gray, #6c757d);
}

.terms-section .btn.btn-primary {
    margin-top: 20px;
}
/* ---- Admin Tables ---- */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-primary);
  box-shadow: var(--shadow-light);
  margin-bottom: 20px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}
.admin-table th,
.admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.admin-table th {
  background: var(--brand-dark);
  color: #fff;
}
.admin-table tr:hover {
  background: var(--bg-secondary);
}
.admin-table .actions a {
  margin-right: 10px;
  color: var(--btn-secondary-bg);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}
.admin-table .actions a:hover {
  color: var(--btn-secondary-hover);
}

/* ---- Error Page ---- */
.error-page,
.error-content {
  text-align: center;
  padding: var(--section-padding);
  margin-top: var(--header-height);
}
.error-page h1,
.error-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--error-red);
  margin-bottom: 20px;
}
.error-page p,
.error-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-primary);
  margin-bottom: 30px;
}
.error-content .btn {
  background: var(--brand-accent);
}
.error-content .btn:hover {
  background: #B8860B;
}

/* ---- Page Header ---- */
.page-header {
  padding: 40px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--brand-dark), #008000);
  color: #fff;
  position: relative;
  overflow: hidden;
  animation: fadeInDown 0.8s ease-out;
  margin-top: var(--header-height);
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(218, 165, 32, 0.1) 0%, transparent 70%);
  opacity: 0.3;
  z-index: 0;
}
.page-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.page-header p {
  font-size: 16px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  color: #f0fff0;
}

/* ---- Login/Signup Specific ---- */
.form-container {
    padding: var(--section-padding, 40px 20px);
    background: var(--brand-light, #f8f9fa);
    margin-top: var(--header-height, 70px);
}

/* Center auth extras on login page */
.login-content .auth-extras { text-align: center; }
.login-content .oauth-links { display: inline-flex; gap: 16px; align-items: center; justify-content: center; }
.login-content .auth-extras p { margin: 8px 0; }

/* Improve checkbox alignment on signup */
.signup-content .checkbox-group { display: flex; align-items: center; gap: 10px; }
.signup-content .checkbox-group label { display: inline-flex; align-items: center; gap: 8px; margin: 0; position: static; top: auto; left: auto; pointer-events: auto; }
.signup-content #terms { margin: 0; }

/* Ensure checkbox group ignores floating label absolute styles */
.form-group.checkbox-group label { position: static; top: auto; left: auto; pointer-events: auto; }
.form-group.checkbox-group input[type="checkbox"] { position: static; }

.form-box {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(135deg, var(--bg-primary, #fff), var(--brand-light, #f8f9fa));
    border-radius: var(--border-radius-lg, 8px);
    box-shadow: var(--shadow-light, 0 2px 8px rgba(0, 0, 0, 0.1));
    transition: transform var(--transition-speed, 0.3s) ease;
}

.form-box:hover {
    transform: translateY(-4px);
}

.form-box h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--brand-dark, #333);
    text-align: center;
}

.form-box p {
    margin-bottom: 20px;
    color: var(--neutral-gray, #6c757d);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-dark, #333);
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: var(--border-radius-sm, 5px);
    font-size: 1rem;
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary, #007bff);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.form-group .error-message {
    color: var(--error-color, #dc3545);
    font-size: 0.9rem;
    margin-top: 5px;
}
.form-help {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 5px;
    display: block;
    font-style: italic;
}

.form-group.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 20px; /* Space above checkbox when below submit button */
    margin-bottom: 15px;
    padding: 10px 0;
}

.form-group.checkbox-group label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.btn.btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--brand-primary, #007bff);
    color: #fff;
    text-align: center;
    border: none;
    border-radius: var(--border-radius-sm, 5px);
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition-speed, 0.3s);
}

.btn.btn-primary:hover {
    background: var(--brand-dark, #0056b3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }

    .form-box {
        padding: 20px;
    }

    .form-box h2 {
        font-size: 1.25rem;
    }

    .form-group.checkbox-group {
        margin-top: 15px;
    }
}
/* Quote Page */
.quote-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/hero-1.jpg') center/cover no-repeat;
    padding: 60px 20px;
    text-align: center;
    color: #fff;
}

.quote-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.quote-section {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

.btn:hover {
    background: #0056b3;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

/* ---- Dashboard Specific ---- */
.dashboard-content {
  padding: var(--section-padding);
  background: var(--brand-light);
  margin-top: var(--header-height);
}
.dashboard-welcome {
  position: relative;
  width: 100%;
  min-height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 100, 0, 0.7), rgba(0, 128, 0, 0.7));
  padding: 40px 0;
}
.dashboard-welcome .carousel,
.dashboard-slideshow-container {
  position: relative;
  width: 100%;
  min-height: 400px;
  overflow: hidden;
}
.dashboard-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400px;
  display: none;
}
.dashboard-slide.active {
  display: block;
}
.dashboard-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity var(--transition-speed) ease;
}
.dashboard-slide:hover .dashboard-bg {
  opacity: 1;
}
.dashboard-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  gap: 10px;
}
.dashboard-controls button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition-speed) ease;
}
.dashboard-controls button:hover {
  background: rgba(218, 165, 32, 0.4);
}
.dashboard-welcome .carousel-caption {
  position: absolute;
  bottom: 20%;
  left: 10%;
  right: 10%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: var(--border-radius-sm);
  text-align: center;
  z-index: 1;
  border: 1px solid rgba(218, 165, 32, 0.3);
  transition: background var(--transition-speed) ease;
}
.dashboard-welcome .carousel-caption:hover {
  background: rgba(0, 0, 0, 0.8);
}
.dashboard-welcome .carousel-caption h5 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #f0fff0;
}
.dashboard-welcome .carousel-caption p {
  font-size: 18px;
  color: #e6e6fa;
}
.quick-actions-box,
.features-box {
  margin-bottom: var(--section-padding);
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}
.quick-actions-list,
.features-list {
  list-style: none;
  padding: 0;
}
.quick-actions-list li {
  margin-bottom: 15px;
  padding: 10px;
  background: var(--bg-primary);
  border-left: 3px solid var(--brand-accent);
  transition: all var(--transition-speed) ease;
}
.quick-actions-list li:hover {
  background: var(--brand-light);
  transform: translateX(5px);
}
.features-list li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.dashboard-link {
  color: var(--brand-accent);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}
.dashboard-link:hover {
  text-decoration: underline;
  color: #B8860B;
}

/* ---- Live Chat ---- */
.live-chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--brand-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-speed) ease;
  z-index: 1003;
}
.live-chat-btn:hover {
  background: #B8860B;
  transform: scale(1.1);
}
.live-chat-popup {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
  display: none;
  z-index: 1003;
  flex-direction: column;
}
.live-chat-popup.active {
  display: flex;
}
.live-chat-content {
  padding: 20px;
  flex: 1;
}
.live-chat-content h2 {
  font-size: 1.5rem;
  color: var(--brand-dark);
  margin-bottom: 15px;
}
.live-chat-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition-speed) ease;
  z-index: 1004;
}
.live-chat-close:hover {
  color: var(--brand-accent);
}
#live-chat-form .form-group {
  margin-bottom: 15px;
}
#live-chat-form .btn {
  width: 100%;
  padding: 10px;
}

/* static/css/style.css (add or replace footer section) */
.footer {
    background: #f8f9fa;
    padding: 40px 0;
    border-top: 1px solid #ddd;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.footer-logo img {
    height: 60px;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.quick-links, .social-links {
    flex: 1;
    min-width: 150px;
}

.quick-links h3, .social-links h3 {
    margin-bottom: 20px;
}

.quick-links ul, .social-links ul {
    list-style: none;
}

.quick-links li, .social-links li {
    margin-bottom: 10px;
}

.quick-links a, .social-links a {
    text-decoration: none;
    color: #f24747;
}

.quick-links a:hover, .social-links a:hover {
    color: #007bff;
}

.social-links ul {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links li {
    margin: 0;
}

.social-links img {
    height: 30px;
    width: 30px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    text-align: center;
    border-top: 1px solid #dddddd;
    padding-top: 20px;
}
/* ---- Animations ---- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDownUp {
  0% { opacity: 0; transform: translateY(-10px); }
  50% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
.service, .team-member, .milestone-item, .project-card, .contact-details, .delete-info-card,
.stat-card, .card {
  animation: scaleIn 0.5s ease-out;
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
.quick-actions-list li, .features-list li, .footer-links li {
  animation: slideInLeft 0.6s ease-out forwards;
}
.quick-actions-list li:nth-child(1), .features-list li:nth-child(1), .footer-links li:nth-child(1) { animation-delay: 0.1s; }
.quick-actions-list li:nth-child(2), .features-list li:nth-child(2), .footer-links li:nth-child(2) { animation-delay: 0.2s; }
.quick-actions-list li:nth-child(3), .features-list li:nth-child(3), .footer-links li:nth-child(3) { animation-delay: 0.3s; }

/* ---- Spacing Utilities ---- */
.pt-5 { padding-top: 5px; }
.pt-30 { padding-top: 30px; }
.pb-5 { padding-bottom: 5px; }
.pb-30 { padding-bottom: 30px; }
.pl-5 { padding-left: 5px; }
.pl-30 { padding-left: 30px; }
.pr-5 { padding-right: 5px; }
.pr-30 { padding-right: 30px; }
.m-5 { margin: 5px; }
.m-30 { margin: 30px; }

/* ---- Media Queries (Mobile-First) ---- */
/* ---- Enhanced Mobile Responsive Design ---- */
@media (max-width: 575px) {
  .container {
    padding: 0 15px;
  }
  
  .hero {
    padding: 40px 0;
    min-height: 60vh;
  }
  
  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 1.2;
  }
  
  .hero p {
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin: 15px 0;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 14px;
    min-width: 120px;
  }
  
  .navbar-container {
    padding: 0 15px;
  }
  
  .brand-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-link {
    padding: 15px 20px;
    display: block;
    width: 100%;
  }
  
  .content {
    padding: 30px 0;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 20px;
  }
  
  .card {
    margin-bottom: 20px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-control {
    padding: 12px 15px;
    font-size: 16px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service, .project-card {
    max-width: 100%;
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .table {
    font-size: 14px;
  }
  
  .table th,
  .table td {
    padding: 8px 4px;
  }
  
  /* Hero section mobile improvements */
  .hero {
    min-height: 50vh;
    padding: 20px 0;
  }
  
  .hero-content {
    padding: 20px;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
    margin-bottom: 15px;
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    margin-bottom: 20px;
  }
  
  .hero-controls {
    display: none;
  }
  
  .hero-indicators {
    bottom: 10px;
  }
  
  /* Content sections mobile improvements */
  .home-content {
    padding: 30px 15px;
  }
  
  .home-content h2 {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
    text-align: center;
    margin-bottom: 20px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
  }
  
  .service {
    padding: 15px;
    text-align: center;
  }
  
  .service h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .service p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  /* Contact section mobile improvements */
  .contact-section {
    padding: 30px 15px;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  
  .contact-item {
    padding: 15px;
  }
  
  .contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .contact-item p {
    font-size: 0.9rem;
  }
  
  /* Form improvements */
  .form-container {
    padding: 20px 15px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .form-group {
    width: 100%;
  }
  
  /* Button improvements */
  .btn {
    width: 100%;
    margin: 10px 0;
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  /* Card improvements */
  .card {
    margin: 15px 0;
    padding: 15px;
  }
  
  .card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .card p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  /* Navigation improvements */
  .navbar {
    padding: 10px 0;
  }
  
  .navbar-brand {
    flex: 1;
  }
  
  .navbar-brand .logo {
    height: 40px;
    width: auto;
  }
  
  .navbar-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
  }
  
  /* Footer improvements */
  .footer {
    padding: 30px 15px 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-links h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .footer-links ul {
    gap: 10px;
  }
  
  .footer-links li {
    margin: 5px 0;
  }
  
  .footer-links a {
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    padding: 15px 0;
    text-align: center;
  }
  
  .footer-bottom p {
    font-size: 0.8rem;
  }
}

@media (min-width: 576px) {
  .container {
    padding: 0 20px;
  }
  
  .hero {
    min-height: 60vh;
    padding: 40px 0;
  }
  
  .hero-content h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  
  .hero-content p {
    font-size: clamp(1rem, 3vw, 1.3rem);
  }
  
  .btn {
    width: auto;
    min-width: 150px;
  }
  
  .navbar-brand .brand-text {
    display: inline;
  }
  
  .nav-links {
    flex-direction: row;
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: none;
    box-shadow: none;
  }
  
  .nav-links li {
    width: auto;
    border-bottom: none;
  }
  
  .nav-link {
    padding: 10px 15px;
    display: inline-block;
    width: auto;
  }
  
  .core-services-grid, .services-grid, .projects-grid, .team-grid, .milestones-grid,
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
  .form-row { flex-direction: row; }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    flex-direction: row;
    gap: 20px;
  }
  
  .form-group {
    flex: 1;
  }
}
@media (min-width: 768px) {
  .core-services-grid, .services-grid, .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid, .team-grid, .milestones-grid { grid-template-columns: repeat(2, 1fr); }
  .overlay-main { flex-direction: row; }
  .overlay-content { max-width: min(1200px, 95vw); width: 95vw; }
  .overlay-details { text-align: left; }
  .overlay-slideshow { max-width: 60vw; }
  .footer-content { grid-template-columns: repeat(3, 1fr); }
  .live-chat-popup { width: 400px; }
  .hero h1 { font-size: 3em; }
  .hero p { font-size: 1.2em; }
}
@media (min-width: 992px) {
  :root { --max-width: 960px; }
  .core-services-grid, .services-grid, .projects-grid { grid-template-columns: repeat(4, 1fr); }
  .team-grid, .milestones-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .form-row .form-group { flex-basis: 50%; }
  .dashboard-welcome { min-height: 600px; }
}
@media (min-width: 1200px) {
  :root { --max-width: 1140px; }
  .team-grid, .milestones-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-content { max-width: 1000px; }
  .contact-form-box, .login-box, .signup-box { max-width: 600px; }
}
@media (min-width: 1440px) {
  :root { --max-width: 1320px; }
  .core-services-grid, .services-grid, .projects-grid { grid-template-columns: repeat(5, 1fr); }
  .hero-content { max-width: 1200px; }
}
@media (orientation: landscape) {
  .hero { height: 80vh; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: clamp(1.5rem, 5vw, 2.5rem); }
  .service, .project-card { max-width: 100%; }
}

/* ---- Dark Mode ---- */
@media (prefers-color-scheme: dark) {
  body {
    --brand-dark: #003300;
    --brand-accent: #B8860B;
    --brand-light: #2a2a2a;
    --text-primary: #d3d3d3;
    --text-secondary: #87CEEB;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2f4f4f;
    --card-bg: #2a2a2a;
    --card-bg-dark: #3c3c3c;
    --border-color: #4682B4;
  }
  .header { background: var(--bg-secondary); border-bottom-color: var(--border-color); }
  .hero { background: linear-gradient(135deg, rgba(0, 51, 0, 0.8), rgba(0, 64, 0, 0.8)), url('../assets/images/Plate_Rolling_3.jpg') no-repeat center center/cover; }
  .footer { background: linear-gradient(135deg, var(--brand-dark), #003300); }
  .alert.success { background-color: #228B22; color: #d4edda; }
  .alert.error { background-color: #B22222; color: #f8d7da; }
}

/* ---- Additional Utility Classes ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  flex: 1;
  padding: 0 15px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ---- Mobile Navigation Toggle ---- */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 5px;
}

.navbar-toggle-icon {
  display: block;
  width: 25px;
  height: 3px;
  background: currentColor;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-toggle-icon::before,
.navbar-toggle-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: currentColor;
  transition: all 0.3s ease;
}

.navbar-toggle-icon::before {
  top: -8px;
}

.navbar-toggle-icon::after {
  top: 8px;
}

.navbar-toggle.active .navbar-toggle-icon {
  background: transparent;
}

.navbar-toggle.active .navbar-toggle-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.navbar-toggle.active .navbar-toggle-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-link {
    padding: 15px 20px;
    display: block;
    width: 100%;
  }
}