/* modern.css - 2026 Bento Grid 2.0 & Glassmorphism Design System */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Theme variables - Default Dark Mode */
  --bg-color: #0b0f19;
  --bg-grid: rgba(255, 255, 255, 0.02);
  --color-primary: #3b82f6;
  --color-primary-glow: rgba(59, 130, 246, 0.15);
  --color-accent: #a855f7;
  --color-accent-glow: rgba(168, 85, 247, 0.15);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-inverse: #0b0f19;

  /* Glassmorphism properties */
  --glass-bg: rgba(17, 24, 39, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --glass-blur: 20px;

  /* Spacing & Radii */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --container-padding: clamp(1rem, 5vw, 4rem);
}

/* Light Theme overrides */
html.light-theme {
  --bg-color: #f8fafc;
  --bg-grid: rgba(15, 23, 42, 0.02);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-inverse: #ffffff;

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-border-hover: rgba(15, 23, 42, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.05);
}

/* Ensure the <html> element itself has correct dark bg so there's never a white flash */
html {
  background-color: #0b0f19;
  color-scheme: dark;
}

html.light-theme {
  background-color: #f8fafc;
  color-scheme: light;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  /* !important ensures modern.css wins over any legacy stylesheet (e.g. old style.css) */
  background-color: var(--bg-color) !important;
  color: var(--text-main) !important;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ambient glow blobs */
.ambient-glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
  transition: all 0.5s ease;
}

.glow-1 {
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  top: -10vw;
  right: -10vw;
  animation: floatGlow1 20s ease-in-out infinite;
}

.glow-2 {
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  bottom: -10vw;
  left: -10vw;
  animation: floatGlow2 25s ease-in-out infinite;
}

.glow-3 {
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  top: 40vh;
  left: 30vw;
  width: 30vw;
  height: 30vw;
  animation: floatGlow3 22s ease-in-out infinite;
}

@keyframes floatGlow1 {
  0% {
    top: -10vw;
    right: -10vw;
    opacity: 0.35;
  }

  50% {
    top: -7vw;
    right: -6vw;
    opacity: 0.5;
  }

  100% {
    top: -10vw;
    right: -10vw;
    opacity: 0.35;
  }
}

@keyframes floatGlow2 {
  0% {
    bottom: -10vw;
    left: -10vw;
    opacity: 0.35;
  }

  50% {
    bottom: -6vw;
    left: -8vw;
    opacity: 0.5;
  }

  100% {
    bottom: -10vw;
    left: -10vw;
    opacity: 0.35;
  }
}

@keyframes floatGlow3 {
  0% {
    top: 40vh;
    left: 30vw;
    opacity: 0.3;
  }

  50% {
    top: 43vh;
    left: 33vw;
    opacity: 0.45;
  }

  100% {
    top: 40vh;
    left: 30vw;
    opacity: 0.3;
  }
}

/* Base Bento Grid layout */
.bento-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--container-padding);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Bento card classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bento-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Glass Metallic Shimmer Sweep */
.bento-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent);
  transform: skewX(-25deg);
  transition: 0.75s;
  pointer-events: none;
}

html.light-theme .bento-card::after {
  background: linear-gradient(to right,
      transparent,
      rgba(15, 23, 42, 0.04),
      transparent);
}

.bento-card:hover::after {
  left: 150%;
}

/* Staggered animation delays for cards */
.bento-card:nth-child(1) {
  animation-delay: 0.05s;
}

.bento-card:nth-child(2) {
  animation-delay: 0.1s;
}

.bento-card:nth-child(3) {
  animation-delay: 0.15s;
}

.bento-card:nth-child(4) {
  animation-delay: 0.2s;
}

.bento-card:nth-child(5) {
  animation-delay: 0.25s;
}

.bento-card:nth-child(6) {
  animation-delay: 0.3s;
}

.bento-card:nth-child(7) {
  animation-delay: 0.35s;
}

.bento-card:nth-child(8) {
  animation-delay: 0.4s;
}

.bento-card:nth-child(9) {
  animation-delay: 0.45s;
}

.bento-card:nth-child(10) {
  animation-delay: 0.5s;
}

.bento-card:nth-child(11) {
  animation-delay: 0.55s;
}

.bento-card:nth-child(12) {
  animation-delay: 0.6s;
}

.bento-card:nth-child(13) {
  animation-delay: 0.65s;
}

.bento-card:nth-child(14) {
  animation-delay: 0.7s;
}

.bento-card:nth-child(15) {
  animation-delay: 0.75s;
}

/* Bento Grid Spans */
.span-full {
  grid-column: span 4;
}

.span-3 {
  grid-column: span 3;
}

.span-2 {
  grid-column: span 2;
}

.span-1 {
  grid-column: span 1;
}

.row-span-2 {
  grid-row: span 2;
}

.bento-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4),
    0 0 20px 0 var(--color-primary-glow);
}

html.light-theme .bento-card:hover {
  box-shadow: 0 12px 40px 0 rgba(15, 23, 42, 0.1),
    0 0 20px 0 var(--color-primary-glow);
}

/* Text styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.gradient-text {
  /* Fallback color so text is never invisible if gradient-clip is unsupported */
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}

/* Floating Glass Header — full viewport width, no dead-space */
.header-glass {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  max-width: 100%;
  padding: 10px var(--container-padding);
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}

html.light-theme .header-glass {
  background: rgba(248, 250, 252, 0.9);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.nav-glass {
  max-width: 1600px;
  margin: 0 auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  transition: all 0.3s ease;
}

html.light-theme .nav-glass {
  background: transparent;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
}

.logo-container img {
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-container:hover img {
  transform: rotate(360deg);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

/* Controls section: Contacts + theme toggle */
.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-nav-glass {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
}

.contact-nav-glass a {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-nav-glass a:hover {
  color: var(--text-main);
}

/* Custom switch for light/dark mode */
.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

/* Premium Buttons */
/* Premium Buttons */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  }

  50% {
    box-shadow: 0 4px 30px rgba(59, 130, 246, 0.6), 0 0 15px rgba(168, 85, 247, 0.4);
  }

  100% {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  }
}

.btn-glass {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: var(--text-inverse) !important;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulseGlow 3s infinite;
  position: relative;
  overflow: hidden;
}

.btn-glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.25),
      transparent);
  transform: skewX(-25deg);
  transition: 0.75s;
  pointer-events: none;
}

.btn-glass:hover::after {
  left: 150%;
}

.btn-glass:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
}

.btn-glass-secondary {
  background: transparent;
  color: var(--text-main) !important;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-glass-secondary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent);
  transform: skewX(-25deg);
  transition: 0.75s;
  pointer-events: none;
}

.btn-glass-secondary:hover::after {
  left: 150%;
}

.btn-glass-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-border-hover);
  transform: translateY(-1px);
}

/* Slider / Hero section */
.hero-bento {
  min-height: 500px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
}

.hero-image-wrapper {
  flex: 1;
  height: 100%;
  min-height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--glass-border);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.5s ease;
}

.hero-bento:hover .hero-image-wrapper img {
  transform: scale(1.05);
}

/* Services Section style */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 var(--container-padding);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.section-title-wrapper h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

@keyframes floatIcon {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0px);
  }
}

.service-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  animation: floatIcon 4s ease-in-out infinite;
}

.service-card:hover .service-icon-box {
  background: var(--color-primary);
  transform: scale(1.1) rotate(-10deg);
  animation-play-state: paused;
}

.service-card:hover .service-icon-box img {
  filter: brightness(0) invert(1);
}

.service-icon-box img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.service-info h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.service-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* About Page styling */
.about-bento {
  display: flex;
  flex-direction: row;
  gap: 48px;
}

.about-details {
  flex: 1.2;
}

.about-details p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--text-muted);
}

.about-goals {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  margin-top: 24px;
}

.about-goals h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.about-image {
  flex: 0.8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  min-height: 400px;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}

/* Why Choose Us styling */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  text-align: center;
  align-items: center;
  padding: 40px;
}

.why-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 2rem;
  color: var(--color-accent);
  transition: all 0.3s ease;
  animation: floatIcon 4.5s ease-in-out infinite;
}

.why-card:hover .why-icon {
  background: var(--color-accent);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
  animation-play-state: paused;
}

.why-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Gallery Bento layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 24px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--glass-border);
  cursor: pointer;
}

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

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.8), transparent);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: #fff;
  font-size: 1.2rem;
}

/* Interactive Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.contact-form-card {
  padding: 40px;
}

.contact-form-card form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group-row {
  display: flex;
  gap: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

html.light-theme .form-group input,
html.light-theme .form-group textarea {
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-main);
}

html.light-theme .form-group input::placeholder,
html.light-theme .form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px var(--color-primary-glow);
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-detail-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-text p,
.contact-text a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-text a:hover {
  color: var(--color-primary);
}

/* Footer structure */
.footer-bento {
  margin-top: 60px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-about h4,
.footer-links-box h4 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.footer-about p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: var(--color-primary);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: var(--color-primary);
}

.footer-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  height: 250px;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}


/* Live Workshop Tracker */
.workshop-tracker {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.job-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-primary);
}

.job-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.job-id {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.job-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.job-status-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.job-progress-container {
  width: 120px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.job-progress-bar {
  height: 100%;
  background: linear-gradient(95deg, var(--color-primary), var(--color-accent));
  border-radius: 10px;
  width: 0%;
  transition: width 1s ease-in-out;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-in-progress {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-completed {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-dot.pulsing {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

/* Service Estimator Tool */
.estimator-card {
  padding: 40px;
}

.estimator-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.estimator-row {
  display: flex;
  gap: 20px;
}

.estimator-select {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px 48px 16px 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

/* Dropdown <option> elements need explicit color (browser doesn't inherit from select in all cases) */
.estimator-select option {
  background: var(--bg-color);
  color: var(--text-main);
}

html.light-theme .estimator-select {
  background-color: rgba(0, 0, 0, 0.02);
  color: var(--text-main);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(15,23,42,0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

html.light-theme .estimator-select option {
  background: #f8fafc;
  color: #0f172a;
}

.estimator-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-glow);
}

.estimator-range-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.estimator-range-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}

.estimator-slider {
  width: 100%;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.estimate-result-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 250px;
}

.estimate-price-box {
  margin: 16px 0;
}

.estimate-amount {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-main);
}

.estimate-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-right: 4px;
}

/* Parts Catalog Grid */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.part-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
}

.part-img-box {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--glass-border);
  margin-bottom: 20px;
}

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

.part-card:hover .part-img-box img {
  transform: scale(1.06);
}

.part-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: var(--text-inverse);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.part-info h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.part-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.part-spec-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.part-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--glass-border);
  padding-top: 16px;
  margin-top: 16px;
}

.part-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.01);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover,
.faq-item.active {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.03);
}

.faq-trigger {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-content-inner {
  padding: 0 24px 24px 24px;
}

/* Testimonial reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-primary);
}

.review-name {
  font-weight: 700;
  font-size: 0.95rem;
}

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

.star-rating {
  color: #fbbf24;
  font-size: 0.85rem;
  display: flex;
  gap: 2px;
}

.review-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.6;
}

/* ============================================================
   HEADER / NAV — Mobile hamburger hidden on desktop by default
   ============================================================ */

/* Hamburger button: hidden on desktop, shown on mobile */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
  position: relative;
  z-index: 10;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile dropdown nav: hidden by default everywhere */
.mobile-nav {
  display: none;
  flex-direction: column;
  width: 100%;
  padding: 8px 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 8px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links li a {
  display: block;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.mobile-nav-links li a:hover,
.mobile-nav-links li.active a {
  color: var(--color-primary);
  background: rgba(59, 130, 246, 0.08);
}


/* ============================================================
   ESTIMATOR PRICE BUMP ANIMATION
   ============================================================ */

@keyframes priceBump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); color: var(--color-accent); }
  100% { transform: scale(1); }
}

.price-bump {
  animation: priceBump 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  display: inline-block;
}

/* ============================================================
   LARGE SCREENS (≥ 1600px) — scale bento grid up
   ============================================================ */
@media (min-width: 1600px) {
  .bento-container {
    max-width: 1700px;
  }
}

@media (min-width: 2000px) {
  :root {
    --container-padding: clamp(2rem, 4vw, 5rem);
  }

  .bento-container {
    max-width: 2100px;
    gap: 32px;
  }

  body {
    font-size: 1.05rem;
  }

  h1 {
    font-size: 4rem;
  }
}

@media (min-width: 2500px) {
  .bento-container {
    max-width: 2450px;
    gap: 36px;
  }

  body {
    font-size: 1.1rem;
  }
}

/* ============================================================
   TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .bento-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .span-3,
  .span-2,
  .span-1 {
    grid-column: span 2;
  }

  /* Keep span-full spanning full width */
  .span-full {
    grid-column: span 2;
  }

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

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

  .gallery-item.span-full {
    grid-column: span 2;
  }

  .gallery-item.span-2 {
    grid-column: span 2;
  }

  .gallery-item.span-1 {
    grid-column: span 1;
  }

  .hero-bento {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
  }

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

  .hero-image-wrapper {
    min-height: 280px;
  }

  .iframe-products-card {
    min-height: 550px !important;
  }

  .iframe-products-card iframe {
    height: 550px !important;
  }

  .about-bento {
    flex-direction: column;
  }

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

  .footer-bento {
    grid-template-columns: 1fr 1fr;
  }

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

/* ============================================================
   MOBILE (≤ 768px) — hamburger appears, desktop nav hides
   ============================================================ */
@media (max-width: 768px) {

  /* Show hamburger, hide desktop nav links */
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none !important;
  }

  /* Header bar layout on mobile: logo left, [controls + hamburger] right */
  .nav-glass {
    flex-wrap: wrap;
    gap: 0;
    position: relative;
  }

  /* Row 1: logo on left, controls + hamburger on right */
  .logo-container {
    flex: 1;
  }

  .header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* Dropdown nav appears below the header bar */
  .mobile-nav {
    order: 3;
    width: 100%;
  }

  /* Contact links: hide on mobile to save space (phone/email in footer) */
  .contact-nav-glass {
    display: none !important;
  }

  /* Bento grid: single column */
  .bento-container {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }

  .span-full,
  .span-3,
  .span-2,
  .span-1 {
    grid-column: span 1;
  }

  /* Hero: stack text on top, image below */
  .hero-bento {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    gap: 24px;
    padding: 24px;
  }

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

  .hero-content h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero-image-wrapper {
    width: 100%;
    min-height: 220px;
    flex: none;
  }

  .service-grid,
  .why-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.span-full,
  .gallery-item.span-2,
  .gallery-item.span-1 {
    grid-column: span 1;
  }

  .about-bento {
    flex-direction: column;
  }

  .about-image {
    min-height: 250px;
  }

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

  .contact-form-card {
    padding: 24px;
  }

  .form-group-row {
    flex-direction: column;
    gap: 16px;
  }

  .footer-bento {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .estimator-card > div:nth-child(2) {
    flex-direction: column;
    gap: 24px !important;
  }

  .estimate-result-card {
    min-height: 200px;
    width: 100%;
  }

  .estimator-row {
    flex-direction: column;
    gap: 16px;
  }

  .parts-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .section-title-wrapper h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
}

/* ============================================================
   SMALL MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .logo-container span {
    font-size: 1rem;
  }

  .logo-container img {
    width: 32px;
    height: 32px;
  }

  .hero-content h1 {
    font-size: clamp(1.5rem, 9vw, 2rem);
  }

  .bento-card {
    padding: 20px;
  }

  .why-card {
    padding: 24px 16px;
  }

  .review-card {
    padding: 20px;
  }
}