/* ARJYO Premium Painting Service - Design System */
:root {
  --primary: #1a3a5c;
  --primary-dark: #0d2137;
  --accent: #c9a227;
  --accent-light: #e6c65a;
  --accent-hover: #b88f1f;
  --text: #2d3436;
  --text-light: #636e72;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --border-radius: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-heading);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before {
  opacity: 0.15;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

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

.btn-icon {
  padding: 0.75rem;
  border-radius: 50%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  transition: var(--transition);
  background: rgba(26, 58, 92, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.logo-text span {
  font-weight: 700;
  font-size: 1.5rem;
}

.header.scrolled .logo-text {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--white);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  display: inline-block;
}

.header.scrolled .nav-menu a {
  color: var(--text);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu .btn {
  padding: 0.7rem 1.75rem;
  font-size: 0.95rem;
  margin-left: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  /* Match logo height or link height for alignment */
}

.nav-menu .btn::before {
  display: none;
}

.header.scrolled .nav-menu .btn {
  color: var(--primary-dark);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header.scrolled .mobile-toggle:hover {
  background: rgba(29, 58, 92, 0.1);
}

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.header.scrolled .mobile-toggle span {
  background: var(--primary);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dark);
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
}

#hero-canvas {
  display: none;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: url('../assets/images/hero-interior-premium-v2.png') center/cover no-repeat;
  z-index: 1;
  filter: brightness(0.65);
  animation: kenBurns 20s infinite alternate ease-in-out;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(13, 33, 55, 0.3) 0%,
      rgba(13, 33, 55, 0.6) 100%);
  z-index: 2;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-content {
  max-width: 900px;
  color: var(--white);
  padding: 4rem 3rem;
  text-align: center;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.hero-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid var(--accent);
  border-radius: 50px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(3.5rem, 10vw, 6rem);
  letter-spacing: -3px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.35rem;
  margin: 0 auto 2.5rem;
  opacity: 0.95;
  max-width: 700px;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Brands Section */
.brands {
  padding: 6rem 0;
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(201, 162, 39, 0.15);
  color: var(--accent);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

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

.brand-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-md);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.brand-card:hover::before {
  transform: scaleX(1);
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.brand-card img {
  height: 60px;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.brand-card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.brand-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* About */
.about {
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

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

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow-md);
  z-index: 5;
}

.about-badge .number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.about-badge span {
  display: block;
  font-size: 0.85rem;
}

.about-content h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

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

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

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--gray-100);
  border-radius: 8px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-heading);
}

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

/* Services */
.services {
  padding: 5rem 0;
  background: var(--primary-dark);
}

.services .section-header h2,
.services .section-header p {
  color: var(--white);
}

.services .section-header p {
  opacity: 0.8;
}

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

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: var(--border-radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.1), rgba(13, 33, 55, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.service-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* Color Experience */
.color-exp {
  padding: 5rem 0;
}

.color-exp-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.color-picker h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.color-categories {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.mobile-color-select {
  display: none;
}

.color-cat-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--gray-300);
  background: var(--white);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.color-cat-btn:hover,
.color-cat-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--primary-dark);
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.color-swatch {
  aspect-ratio: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: 3px solid transparent;
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.1);
  z-index: 2;
}

.color-swatch.selected {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.color-preview {
  background: var(--gray-100);
  border-radius: 16px;
  padding: 2rem;
}

.room-preview {
  aspect-ratio: 16/10;
  background: #e8e0d5;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.wall-surface {
  position: absolute;
  inset: 0;
  transition: background-color 0.5s ease;
}

.room-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 250"><path d="M0 250 L200 100 L400 250" fill="rgba(0,0,0,0.03)"/><rect x="150" y="120" width="100" height="80" fill="rgba(255,255,255,0.3)" stroke="rgba(0,0,0,0.1)"/></svg>') center/cover;
}

.selected-color-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.color-sample {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.color-details h4 {
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.color-details span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* 3D Showcase */
.showcase {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

#product-canvas {
  width: 100%;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--white) 0%, var(--gray-200) 100%);
  border-radius: 16px;
}

.showcase-info h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.showcase-info p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.finish-selector {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.finish-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--gray-300);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.finish-btn:hover,
.finish-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--primary-dark);
}

.product-features {
  display: grid;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

/* Gallery */
.gallery {
  padding: 5rem 0;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--accent), var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
  opacity: 0.1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 58, 92, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}

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

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

.gallery-overlay h4 {
  color: var(--white);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.gallery-overlay span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background: var(--off-white);
}

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

.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-style: italic;
}

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

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
}

.author-info h5 {
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* CTA */
.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
}

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

.cta h2 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.cta p {
  color: var(--primary);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.cta .btn {
  background: var(--primary-dark);
  color: var(--white);
}

.cta .btn:hover {
  background: var(--primary);
}

/* Contact */
.contact {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-heading);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.25rem;
}

.info-content h4 {
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.info-content p {
  color: var(--text-light);
}

.map-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--gray-200);
  border-radius: 12px;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

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

.footer-brand img {
  height: 60px;
  width: 60px;
  margin-bottom: 1rem;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  background: transparent;
  box-shadow: none;
}

.footer-brand p {
  opacity: 0.8;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

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

.footer ul a {
  opacity: 0.8;
  transition: var(--transition);
  display: block;
  padding: 0.25rem 0;
}

.footer ul a:hover {
  opacity: 1;
  color: var(--accent);
  transform: translateX(5px);
}

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

.footer-bottom p {
  opacity: 0.7;
  font-size: 0.9rem;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 1200px) {
  .container {
    padding: 0 1.5rem;
  }

  .about-grid,
  .color-exp-grid,
  .showcase-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 992px) {
  .hero-content {
    max-width: 700px;
    padding: 1rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .brands-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

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

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

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    color: var(--text);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

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

  .stats-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    justify-content: center;
    flex-direction: column;
  }

  .about-badge {
    bottom: -15px;
    right: -15px;
    padding: 1rem 1.5rem;
  }

  .color-exp-grid {
    gap: 2rem;
  }

  .contact-grid {
    gap: 2rem;
  }

  .showcase-grid {
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .color-palette {
    grid-template-columns: repeat(4, 1fr);
  }

  .color-categories {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
  }

  .btn {
    padding: 0.8rem 1.5rem;
  }

  .contact-form,
  .contact-info {
    padding: 2rem;
  }

  .mobile-toggle span {
    width: 20px;
  }
}

@media (max-width: 480px) {
  .color-palette {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-tag {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .section-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .brand-card {
    padding: 1.5rem 1rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .container {
    padding: 0 0.75rem;
  }

  .footer {
    padding: 2rem 0 1rem;
  }
}

/* Animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Changed default to visible for safety */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

/* =========================================
   RESPONSIVE DESIGN SYSTEM (Comprehensive) 
   ========================================= */

/* Tablet & Small Desktop (Max 992px) */
@media (max-width: 992px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .about-grid,
  .color-exp-grid,
  .showcase-grid {
    gap: 2rem;
  }

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

/* Tablet & Mobile (Max 1024px) */
@media (max-width: 1024px) {
  /* ... existing styles ... */

  /* Color Dropdown Logic */
  .color-cat-btn {
    display: none;
  }

  /* Compact Footer for Mobile */
  .footer {
    padding: 2rem 0 1rem;
    font-size: 0.9rem;
  }

  .footer-grid {
    display: grid;
    /* Explicitly set display grid */
    grid-template-columns: 1fr 1fr;
    /* Create 2 columns */
    gap: 2rem 1rem;
    /* Vertical gap 2rem, Horizontal gap 1rem */
    margin-bottom: 2rem;
    text-align: left;
  }

  /* First Item (Brand Info) - Full Width */
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  /* Last Item (Contact Info) - Full Width */
  .footer-grid>div:last-child {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 1rem;
  }

  .footer h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .footer-brand p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .footer ul li {
    margin-bottom: 0.5rem;
  }

  .footer-bottom {
    padding-top: 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-logo img {
    height: 40px;
  }

  .mobile-color-select {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid var(--accent);
    border-radius: var(--border-radius-md);
    background: var(--primary-dark);
    color: var(--white);
    margin-bottom: 2rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23c9a227' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
  }

  .mobile-color-select:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
  }

  /* Typos & Size Reduction */
  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.25;
    letter-spacing: -1px;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
    /* Reduced from 2rem */
  }

  h3 {
    font-size: 1.3rem;
  }

  p,
  .brand-card p,
  .service-card p {
    font-size: 0.9rem;
  }

  .container {
    padding: 0 1rem;
  }

  /* Compact Cards */
  .brand-card,
  .service-card,
  .gallery-item {
    margin-bottom: 1rem;
  }

  .header {
    padding: 1rem 0;
  }

  /* Global Mobile Padding Reduction */
  .about,
  .services,
  .brands,
  .showcase,
  .gallery,
  .testimonials,
  .contact,
  .color-exp {
    padding: 3rem 0;
  }

  /* Compact Floating Header */
  .header {
    top: 1rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    background: rgba(26, 58, 92, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  .header.scrolled {
    top: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.05);
  }

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

  .logo-text span {
    display: none;
    /* Hide "Paint Service" on mobile to keep box small */
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .mobile-toggle {
    transform: scale(0.8);
    background: rgba(255, 255, 255, 0.1);
    /* Subtle box background */
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-toggle span {
    background: var(--accent) !important;
    /* Gold bars for visibility */
    display: block;
    width: 25px;
    height: 2px;
  }

  /* Adjust for white scrolled header */
  .header.scrolled .mobile-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.05);
  }

  .header.scrolled .mobile-toggle span {
    background: var(--primary-dark) !important;
  }

  /* Constrain Canvas Overflow */
  #product-canvas {
    width: 100% !important;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Constrain Canvas Overflow */

  /* Hamburger Menu Logic */
  /* Hamburger Menu Logic - Floating Panel */
  /* Hamburger Menu Logic - Floating Panel (Left Side) */
  .nav-menu {
    position: fixed;
    top: 1rem;
    left: -100%;
    /* Start off-screen left */
    width: auto;
    min-width: 200px;
    /* Reduced width */
    height: auto;
    max-height: calc(100vh - 2rem);
    background: var(--primary-dark);
    flex-direction: column;
    padding: 1.5rem 1rem;
    /* Reduced padding */
    transition: var(--transition);
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.4);
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-left: 1rem;
    /* Spacing from left edge */
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
    /* Slide in to left position */
    right: auto;
  }

  .nav-menu a {
    font-size: 1.1rem;
    display: block;
    width: 100%;
    padding: 0.8rem 0;
    color: var(--white) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
  }

  .nav-menu a:last-child {
    border-bottom: none;
    margin-top: 1rem;
    background: var(--accent);
    color: var(--primary-dark);
    text-align: center;
    border-radius: var(--border-radius);
    padding: 0.8rem;
  }

  .nav-menu a::after {
    display: none;
    /* No hover underline in mobile */
  }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
    /* Above the menu */
  }

  /* Stack Grids */
  .about-grid,
  .showcase-grid,
  .color-exp-grid,
  .brands-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .brands-grid {
    gap: 1rem;
    /* Tighter for small brand cards */
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Reorder Visuals to Top */
  .about-image,
  .showcase-info,
  .finish-selector {
    order: -1;
  }

  /* Stats Vertical */
  .stats-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero {
    padding-top: 4rem;
    /* Reduced from 6rem */
    text-align: center;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .color-palette {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Mobile Small (Max 576px) */
@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.25rem;
  }

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

  .color-palette {
    grid-template-columns: repeat(4, 1fr);
  }

  .color-categories {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .color-cat-btn {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .section-tag {
    font-size: 0.75rem;
  }

  .brand-card,
  .service-card {
    padding: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo,
  .social-links {
    justify-content: center;
  }
}