/* ============================================================
   MAIN CSS STYLESHEET
   ============================================================ */

/* Root Variables */
:root {
  --charcoal: #4a3f44;
  --burgundy: #7a3333;
  --burgundy-dark: #5d2527;
  --warm: #f5f0eb;
  --ink: #2d2d2d;
  --muted: #716b6c;
  --white: #fff;
  --line: rgba(74, 63, 68, 0.14);
  --shadow: 0 18px 50px rgba(45, 45, 45, 0.12);
  --max: 1180px;
}

html[data-theme='dark'] {
  --warm: #171516;
  --ink: #f3ece8;
  --muted: #c3b6b1;
  --white: #242022;
  --line: rgba(245, 240, 235, 0.16);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--warm);
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

/* Top Navigation Bar */
.top-bar {
  color: #f8f4f0;
  background: var(--charcoal);
  font-size: 0.78rem;
}

.top-bar__inner,
.top-bar__left,
.top-bar__right,
.top-bar__item {
  display: flex;
  align-items: center;
}

.top-bar__inner {
  justify-content: space-between;
  min-height: 34px;
  gap: 20px;
}

.top-bar__left,
.top-bar__right {
  gap: 18px;
}

.top-bar__item {
  gap: 7px;
  opacity: 0.88;
}

.top-bar__social {
  padding: 2px 7px;
}

/* Header & Site Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(45, 45, 45, 0.12);
}

.site-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo,
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--charcoal);
}

.site-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.site-logo span {
  font-size: 1.05rem;
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal);
}

.nav-link:hover {
  color: var(--burgundy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--burgundy-dark);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}

.btn-white {
  color: var(--burgundy);
  background: white;
}

.btn-lg {
  padding: 14px 22px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0 5px 8px;
  border: 0;
  color: var(--charcoal);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 99px;
  background: #d9cdc7;
  transition: background 0.25s;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--burgundy);
  font-size: 0.65rem;
  transition: transform 0.25s, background 0.25s;
}

/* Light Mode (Default): Show ONLY leaf icon, hide moon icon */
.toggle-thumb .icon-leaf {
  display: block !important;
}

.toggle-thumb .icon-moon {
  display: none !important;
}

/* Dark Mode: Hide leaf icon, show ONLY moon icon */
html[data-theme='dark'] .toggle-track {
  background: var(--burgundy);
}

html[data-theme='dark'] .toggle-thumb {
  transform: translateX(18px);
  color: #f5d58f;
  background: #292326;
}

html[data-theme='dark'] .toggle-thumb .icon-leaf {
  display: none !important;
}

html[data-theme='dark'] .toggle-thumb .icon-moon {
  display: block !important;
}

/* Dark Mode Theme Overrides */
html[data-theme='dark'] body,
html[data-theme='dark'] .services-section,
html[data-theme='dark'] .trust-section,
html[data-theme='dark'] .cta-section { background: var(--warm); }
html[data-theme='dark'] .site-header,
html[data-theme='dark'] .review-card,
html[data-theme='dark'] .stats-strip,
html[data-theme='dark'] .project-card-3d .card-3d-inner { background: var(--white); }
html[data-theme='dark'] .nav-link,
html[data-theme='dark'] .site-logo,
html[data-theme='dark'] .section-title,
html[data-theme='dark'] .service-title,
html[data-theme='dark'] .project-title,
html[data-theme='dark'] .project-title-3d,
html[data-theme='dark'] .mobile-toggle,
html[data-theme='dark'] .review-text { color: var(--ink) !important; }
html[data-theme='dark'] .service-card,
html[data-theme='dark'] .project-card { background: #211d1f; border-color: var(--line); }
html[data-theme='dark'] .reviews-section { background: #211d1f; }

/* Dark mode support for partner marquee and service detail page */
body.dark-mode {
  --warm: #121212;
  --white: #1e1e1e;
  --ink: #e0e0e0;
  --charcoal: #2a2225;
  --muted: #a0989a;
  --line: rgba(255, 255, 255, 0.12);
  background-color: var(--warm) !important;
  color: var(--ink) !important;
}

body.dark-mode .partner-marquee-section {
  background-color: #1e1e1e !important;
  border-color: var(--line) !important;
}

body.dark-mode .partner-marquee-section .section-title {
  color: #a0989a !important;
}

body.dark-mode .marquee-item img {
  filter: brightness(0.9) contrast(1.1) !important;
}

body.dark-mode .blog-detail-wrapper {
  background-color: #121212 !important;
}

body.dark-mode .blog-post-card {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
  border-color: var(--line) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .blog-post-title,
body.dark-mode .blog-content,
body.dark-mode .blog-content p,
body.dark-mode .blog-content li,
body.dark-mode .blog-content h2,
body.dark-mode .blog-content h3,
body.dark-mode .blog-content h4 {
  color: #f0f0f0 !important;
}

body.dark-mode .blog-lead {
  color: #c0b8ba !important;
  border-left-color: var(--burgundy) !important;
}

body.dark-mode .blog-breadcrumb a {
  color: #dca3a0 !important;
}

body.dark-mode .blog-breadcrumb .active,
body.dark-mode .blog-breadcrumb .divider {
  color: #888 !important;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--charcoal);
  font-size: 1.2rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  display: grid;
  align-items: center;
  background: var(--charcoal);
  color: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 35%, rgba(122, 51, 51, 0.8), transparent 35%),
              linear-gradient(120deg, #302b2f, #625458);
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(45, 45, 45, 0.94), rgba(74, 63, 68, 0.62) 62%, rgba(45, 45, 45, 0.2));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  max-width: 680px;
  animation: rise 0.8s ease both;
}

.hero-eyebrow,
.section-eyebrow {
  color: #dca3a0;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.73rem;
}

.eyebrow-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #dca3a0;
}

.hero-headline {
  margin: 18px 0;
  max-width: 690px;
  font-family: Georgia, serif;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 1.02;
  font-weight: 500;
}

.hero-subtext {
  max-width: 590px;
  color: #eee5e1;
  font-size: 1.05rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 30px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.hero-visual-card > i {
  color: #e9b75e;
  font-size: 2.6rem;
}

.hero-visual-card strong {
  display: block;
  font: 700 2rem Georgia, serif;
}

.hero-visual-card span {
  color: #e5d8d3;
}

/* Hero Slider Controls */
.hero-slider {
  isolation: isolate;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.hero-slide.is-current {
  opacity: 1;
  visibility: visible;
}

.hero-slide .hero-content {
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.8s ease 0.15s, opacity 0.8s ease 0.15s;
}

.hero-slide.is-current .hero-content {
  transform: none;
  opacity: 1;
}

.hero-slider-controls {
  position: absolute;
  z-index: 3;
  right: max(20px, calc((100% - var(--max)) / 2));
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: white;
  background: rgba(45, 45, 45, 0.3);
  cursor: pointer;
}

.hero-arrow:hover {
  background: var(--burgundy);
}

.hero-dots {
  display: flex;
  gap: 7px;
}

.hero-dots button {
  width: 26px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.active {
  background: white;
}

/* Statistics Section */
.stats-section {
  position: relative;
  z-index: 2;
  margin-top: -42px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  box-shadow: var(--shadow);
}

.stat-item {
  padding: 24px 18px;
  text-align: center;
}

.stat-bordered {
  border-right: 1px solid var(--line);
}

.stat-number {
  color: var(--burgundy);
  font: 700 2.1rem Georgia, serif;
}

.stat-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Section Shared Layouts */
.section {
  padding: 92px 0;
}

.section-header {
  margin-bottom: 38px;
}

.section-title {
  margin: 8px 0;
  color: var(--burgundy);
  font: 500 clamp(2rem, 4vw, 3rem) Georgia, serif;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
}

/* Services Section */
.services-section {
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  padding: 30px 24px;
  border: 1px solid var(--line);
  background: var(--warm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-icon {
  color: var(--burgundy);
  font-size: 2rem;
}

.service-title {
  color: var(--charcoal);
  font: 700 1.15rem Georgia, serif;
}

.service-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.service-link {
  color: var(--burgundy);
  font-size: 0.82rem;
  font-weight: 800;
}

/* Partner Logo Marquee Styles */
.partner-marquee-section {
  overflow: hidden;
  position: relative;
  width: 100%;
  background: #ffffff !important;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scroll-marquee var(--marquee-speed, 40s) linear infinite;
  will-change: transform;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2.5rem;
}

.marquee-item img {
  height: 70px;
  max-width: 200px;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}

.marquee-item img:hover {
  transform: translateY(-6px) scale(1.08);
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Projects Section Filters */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter-btn {
  border: 1px solid var(--line);
  padding: 9px 16px;
  color: var(--charcoal);
  background: transparent;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  color: white;
  background: var(--burgundy);
  border-color: var(--burgundy);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  overflow: hidden;
  background: white;
  box-shadow: 0 8px 24px rgba(45, 45, 45, 0.07);
}

.project-image {
  position: relative;
  height: 190px;
}

.project-image img,
.project-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-placeholder {
  display: grid;
  place-items: center;
  color: #b7a9a5;
  font-size: 3rem;
  background: linear-gradient(135deg, #e8dfd9, #cfc1bb);
}

.project-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 9px;
  color: white;
  background: var(--burgundy);
  font-size: 0.7rem;
  font-weight: 800;
}

.project-body {
  padding: 20px;
}

.project-title {
  margin: 0 0 8px;
  color: var(--charcoal);
  font: 700 1.25rem Georgia, serif;
}

.project-meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 0.78rem;
}

.project-meta i,
.project-features i {
  color: var(--burgundy);
}

.project-features {
  padding: 12px 0 0 18px;
  margin: 10px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.project-features li {
  margin: 3px 0;
}

/* Trust Badges Section */
.trust-section {
  padding-top: 10px;
  background: white;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-badge {
  flex: 1 1 150px;
  min-height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--warm);
}

.trust-badge img {
  max-height: 60px;
  filter: grayscale(1);
  opacity: 0.65;
}

.trust-badge:hover img {
  filter: none;
  opacity: 1;
}

.trust-text-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--charcoal);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

/* Reviews / Testimonials Section */
.reviews-section {
  background: #eee7e1;
}

.reviews-slider {
  overflow: hidden;
}

.reviews-track {
  display: flex;
  transition: transform 0.45s ease;
}

.review-card {
  flex: 0 0 100%;
  padding: 34px clamp(22px, 7vw, 90px);
  background: white;
}

.review-rating {
  color: #f59e0b;
}

.review-text {
  max-width: 780px;
  margin: 20px auto 28px;
  color: var(--charcoal);
  text-align: center;
  font: 500 clamp(1.25rem, 2.5vw, 2rem) Georgia, serif;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.review-avatar,
.review-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.review-avatar-placeholder {
  display: grid;
  place-items: center;
  color: white;
  background: var(--burgundy);
}

.review-author-info strong,
.review-author-info span {
  display: block;
}

.review-author-info span {
  color: var(--muted);
  font-size: 0.8rem;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.slider-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  background: transparent;
  cursor: pointer;
}

.slider-dots {
  display: flex;
  gap: 7px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c6b9b4;
  cursor: pointer;
}

.slider-dot.active {
  background: var(--burgundy);
}

/* Call To Action (CTA) Section */
.cta-section {
  padding: 55px 0;
  background: white;
}

.cta-card {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(120deg, var(--charcoal), var(--burgundy));
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 45px clamp(25px, 6vw, 70px);
}

.cta-content h2 {
  margin: 0;
  font: 500 clamp(1.8rem, 4vw, 3rem) Georgia, serif;
}

.cta-content p {
  margin-bottom: 0;
  color: #eaded9;
}

/* Footer Section */
.site-footer {
  color: #eee5e1;
  background: var(--charcoal);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 65px 0;
}

.footer-logo {
  color: white;
}

.footer-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-about {
  color: #cfc4c1;
  font-size: 0.85rem;
}

.footer-heading {
  margin: 0 0 15px;
  color: white;
  font-size: 0.95rem;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin: 9px 0;
  color: #cfc4c1;
  font-size: 0.84rem;
}

.footer-links a:hover {
  color: #e4a4a0;
}

.footer-contact li {
  display: flex;
  gap: 10px;
}

.footer-contact i {
  width: 15px;
  color: #dca3a0;
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: white;
  background: var(--burgundy);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #b9acab;
  font-size: 0.75rem;
}

.footer-bottom p {
  margin: 0;
}

/* Animation Classes & Keyframes */
.reveal-up {
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  font-size: 32px;
  text-decoration: none;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background-color 0.3s;
}

.whatsapp-float.scroll-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background-color: #2d2d2d;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-5px);
}

/* Blog Content Layout Fixes */
.blog-content h3, 
.blog-content h4 {
  color: #4a3f44;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

.blog-content ul {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.blog-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

.blog-content table th,
.blog-content table td {
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
}

.blog-content table th {
  background-color: #f5f0eb;
  font-weight: bold;
}

/* 3D Animated Projects Section Styles */
@property --edge-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.projects-grid-3d {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 36px;
  perspective: 1400px;
}

.project-card-3d {
  position: relative;
  border-radius: 16px;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.project-card-3d:hover {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale3d(1.03, 1.03, 1.03);
}

.card-3d-glow {
  position: absolute;
  inset: -24px;
  z-index: 0;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 15%, rgba(122, 51, 51, 0.55), transparent 65%);
  filter: blur(34px);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.project-card-3d:hover .card-3d-glow {
  opacity: 0.7;
}

.card-3d-inner {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform-style: preserve-3d;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card-3d:hover .card-3d-inner {
  box-shadow: 0 30px 60px rgba(122, 51, 51, 0.22), 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(122, 51, 51, 0.3);
}

.card-3d-edge {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 16px;
  padding: 1.5px;
  background: conic-gradient(
    from var(--edge-angle, 0deg),
    transparent 0 65%,
    rgba(255, 255, 255, 0.95) 78%,
    var(--burgundy, #7a3333) 84%,
    transparent 92%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: edge-spin 3.2s linear infinite;
  pointer-events: none;
}

.project-card-3d:hover .card-3d-edge {
  opacity: 1;
}

@keyframes edge-spin {
  to {
    --edge-angle: 360deg;
  }
}

.card-3d-shine {
  position: absolute;
  top: 0;
  left: -160%;
  width: 55%;
  height: 100%;
  z-index: 5;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.4) 45%, transparent 65%);
  transform: skewX(-20deg);
  transition: left 0.75s ease;
  pointer-events: none;
}

.project-card-3d:hover .card-3d-shine {
  left: 140%;
}

.card-glare {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
}

.project-card-3d:hover .card-glare {
  opacity: 1;
}

/* Card Image & Slideshow Component */
.project-image-3d {
  position: relative;
  width: 100%;
  display: block;
  transform: translateZ(20px);
  transition: transform 0.3s ease;
}

.project-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 220px;
  overflow: hidden;
}

@supports not (aspect-ratio: 4 / 3) {
  .project-slides { height: 220px; }
}

.project-slide-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}

.project-slide-img.is-active {
  opacity: 1;
  z-index: 1;
}

.project-image-3d .project-image-overlay,
.project-image-3d .project-badge-3d,
.project-image-3d .project-capacity-chip {
  position: absolute;
  z-index: 5;
}

.project-slide-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 6;
}

.project-slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.3s ease, transform 0.3s ease;
}

.project-slide-dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 55%);
}

.project-badge-3d {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 12px;
  color: #fff;
  background: var(--burgundy, #7a3333);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateZ(30px);
}

.project-capacity-chip {
  position: absolute;
  left: 16px;
  bottom: -22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--charcoal, #4a3f44);
  transform: translateZ(55px);
  animation: chip-float 3.4s ease-in-out infinite;
}

.project-capacity-chip i {
  color: var(--burgundy, #7a3333);
}

@keyframes chip-float {
  0%, 100% { transform: translateZ(55px) translateY(0); }
  50%      { transform: translateZ(55px) translateY(-6px); }
}

.project-body-3d {
  padding: 34px 24px 24px;
  transform: translateZ(25px);
}

.project-title-3d {
  margin: 0 0 10px;
  color: var(--charcoal, #4a3f44);
  font: 700 1.25rem Georgia, serif;
}

.project-meta-3d {
  display: flex;
  gap: 16px;
  color: var(--muted, #716b6c);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.project-meta-3d i,
.project-features-3d i {
  color: var(--burgundy, #7a3333);
}

.project-features-3d {
  padding: 12px 0 0 0;
  margin: 10px 0 0;
  border-top: 1px solid var(--line, rgba(74, 63, 68, 0.14));
  color: var(--muted, #716b6c);
  font-size: 0.82rem;
  list-style: none;
}

.project-features-3d li {
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.projects-grid-3d .reveal-up:nth-child(1) { animation-delay: 0.05s; }
.projects-grid-3d .reveal-up:nth-child(2) { animation-delay: 0.15s; }
.projects-grid-3d .reveal-up:nth-child(3) { animation-delay: 0.25s; }
.projects-grid-3d .reveal-up:nth-child(4) { animation-delay: 0.35s; }
.projects-grid-3d .reveal-up:nth-child(5) { animation-delay: 0.45s; }
.projects-grid-3d .reveal-up:nth-child(6) { animation-delay: 0.55s; }
.projects-grid-3d .reveal-up:nth-child(n+7) { animation-delay: 0.6s; }

/* Media Queries */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .top-bar__right { display: none; }
  .top-bar__inner { justify-content: center; }
  .top-bar__left { gap: 10px; }
  .top-bar__item span { font-size: 0.7rem; }
  .site-header__inner { min-height: 66px; }
  .mobile-toggle { display: block; }
  
  .site-nav {
    position: fixed;
    inset: 66px 0 auto;
    display: none;
    padding: 22px;
    background: var(--white);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
  }

  .site-nav.open { display: block; }
  .nav-list { display: grid; gap: 0; }
  .nav-link { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .header-actions > .btn { display: none; }
  .theme-toggle-btn { padding-left: 0; }
  .toggle-label { display: none; }
  .mobile-toggle { margin-left: 0; }
  .hero-section { min-height: 590px; }
  .hero-headline { font-size: 3rem; }
  .stats-section { margin-top: 0; padding-top: 14px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 18px 8px; }
  .stat-bordered:nth-child(2) { border-right: 0; }
  .stat-bordered:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .services-grid, .projects-grid { grid-template-columns: 1fr; }
  .section { padding: 65px 0; }
  .cta-inner, .footer-bottom { display: block; }
  .cta-actions { margin-top: 22px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .footer-bottom p + p { margin-top: 7px; }
}

@media (max-width: 640px) {
  .card-3d-edge,
  .card-3d-glow,
  .card-3d-shine {
    display: none;
  }
}

/* ============================================================
   E-COMMERCE & CART STYLES (MOBILE-FIRST)
   ============================================================ */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.product-card { background: var(--white, #fff); border: 1px solid var(--line, #e2e8f0); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.product-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--ink, #1a202c); }
.product-price { font-size: 1.2rem; font-weight: 800; color: #2b6cb0; margin-bottom: 0.75rem; }
.badge-stock { display: inline-block; padding: 0.25rem 0.6rem; font-size: 0.75rem; font-weight: 700; border-radius: 50px; margin-bottom: 1rem; }
.badge-stock.in_stock { background: #e6fffa; color: #234e52; }
.badge-stock.out_of_stock { background: #fff5f5; color: #9b2c2c; }
.product-actions { display: flex; gap: 0.5rem; margin-top: auto; }
.product-actions .btn { flex: 1; text-align: center; font-size: 0.85rem; padding: 0.6rem; border-radius: 6px; }

/* Sticky Cart Header Icon */
.cart-badge-icon { position: relative; display: inline-flex; align-items: center; color: currentColor; font-size: 1.2rem; margin-right: 1rem; text-decoration: none; }
.cart-badge-icon .badge { position: absolute; top: -8px; right: -10px; background: #e53e3e; color: #fff; font-size: 0.7rem; font-weight: 800; padding: 2px 6px; border-radius: 50%; }

/* Mobile Table Responsiveness */
.table-responsive-cart { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }