/* ===== CSS Variables ===== */
:root {
  --primary: #1a56db;
  --primary-dark: #1648b8;
  --primary-light: #e8f0fe;
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius: 0.75rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme variable overrides for better contrast */
.dark {
  --primary: #6490f8;
  --primary-dark: #5a86f0;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  color-scheme: light dark;
  margin:0 !important;
  paddding:0 !important;
  overflow-x: hidden;
}

body {
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  width:100vw !important;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  overflow-x: hidden;
  margin:0 !important;
  paddding:0 !important;
}

main{
  width:100vw !important;
}

.dark body {
  color: var(--gray-200);
  background-color: var(--gray-900);
}

.dark body {
  color: var(--gray-200);
  background-color: var(--gray-900);
 
}

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

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

ul {
  list-style: none;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  font-weight: 700;
  line-height: 1.2;
}

.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6 {
  color: var(--white);
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
}

.dark .section-subtitle {
  color: var(--gray-300);
}

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

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
}

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

.btn-secondary {
  background: transparent;
  color: var(--gray-800);
  border: 2px solid var(--gray-200);
}

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

.dark .btn-secondary {
  color: var(--white);
  border-color: var(--gray-600);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header.transparent {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

.header.solid {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--gray-900);
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.logo-img {
  width: 160px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  display: block;
}
.dark .logo-img { filter: brightness(0) invert(1); }

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

.nav-menu li.has-submenu { position: relative; }
.nav-menu li.has-submenu > a { display: inline-flex; align-items: center; gap: 0.375rem; }
.nav-menu li.has-submenu .submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  display: none;
  z-index: 1000;
}
.nav-menu li.has-submenu:hover .submenu { display: block; }
.nav-menu li.has-submenu.open .submenu { display: block; }
.nav-menu li.has-submenu .submenu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--gray-700);
}
.nav-menu li.has-submenu .submenu li a:hover { background: var(--gray-100); color: var(--primary); }
.dark .nav-menu li.has-submenu .submenu { background: var(--gray-900); border-color: var(--gray-700); }
.dark .nav-menu li.has-submenu .submenu li a { color: var(--gray-300); }
.dark .nav-menu li.has-submenu .submenu li a:hover { background: var(--gray-800); color: var(--primary); }

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
}

.header.transparent .logo {
  color: var(--white);
}

.header.transparent .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.header.transparent .hamburger span {
  background: var(--white);
}

.header.transparent .logo-img {
  filter: brightness(0) invert(1);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

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

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
}

.nav-cta::after {
  display: none;
}

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

#theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-700);
}

#theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

.dark #theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-200);
}

.dark #theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

#theme-toggle .iconify {
  width: 20px;
  height: 20px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100dvh;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  will-change: transform;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.45));
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.12), transparent 70%);
  opacity: 0.3;
  border-radius: 50%;
}

.hero-content {
  max-width: 1200px;
}

.hero-badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0;
}

.hero .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.typing-text {
  color: var(--white);
}

.typing-text::after {
  content: "|";
  margin-left: 6px;
  color: var(--white);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-text-block {
  opacity: 0;
  transform: translateX(-16px);
  animation: fadeInLeft 0.8s ease forwards;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (min-width: 1024px) {
  .hero {
    height: 100dvh;
    padding: 0;
  }
}

/* ===== Gallery ===== */
.gallery {
  padding: 7rem 0;
  background: var(--white);
}

.dark .gallery {
  background: var(--gray-900);
}

.product-carousel { position: relative; overflow: hidden; }
.product-track { display: flex; gap: 1rem; will-change: transform; transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1); padding: 0.5rem 0; }
.product-card { flex: 0 0 auto; width: 88vw; border-radius: var(--radius); border: 1px solid var(--gray-200); background: var(--white); box-shadow: var(--shadow); overflow: hidden; transform-origin: center; transition: transform 400ms ease, box-shadow 400ms ease, opacity 400ms ease; }
.dark .product-card { background: var(--gray-800); border-color: var(--gray-700); }
.product-card .media { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card.landscape .media { aspect-ratio: 16 / 9; }
.product-card.portrait .media { aspect-ratio: 9 / 16; }
.product-nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.product-btn { pointer-events: auto; background: rgba(0,0,0,0.5); color: var(--white); border: none; width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; }
@media (min-width: 920px) { .product-card { width: calc((100% - 2rem) / 3); } .product-btn { width: 44px; height: 44px; } }
@media (min-width: 1280px) { .product-card { width: calc((100% - 4rem) / 5); } }

.product-card.center { transform: scale(1.06); z-index: 2; box-shadow: var(--shadow-xl); }
.product-card.left1, .product-card.right1 { transform: scale(1.03); opacity: 0.98; }
.product-card.left2, .product-card.right2 { transform: scale(0.98); opacity: 0.92; }
.carousel {
  position: relative;
  perspective: 1000px;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow: hidden;
  padding: 1rem 0.5rem;
  cursor: grab;
}

.carousel-slide {
  position: relative;
  width: clamp(300px, 36vw, 520px);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s;
  opacity: 0;
  pointer-events: none;
}

.dark .carousel-slide {
  background: var(--gray-800);
  border-color: var(--gray-700);
}

.carousel-slide .media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-slide.landscape .media { aspect-ratio: 16 / 9; }
.carousel-slide.portrait .media { aspect-ratio: 9 / 16; }

.carousel-slide:hover { transform: translateZ(20px) rotateY(3deg) scale(1.02); box-shadow: var(--shadow-xl); }

.carousel-slide.active { transform: translateZ(40px) scale(1.05); opacity: 1; pointer-events: auto; }
.carousel-slide.prev { transform: translateX(-20px) rotateY(12deg); opacity: 1; pointer-events: auto; }
.carousel-slide.next { transform: translateX(20px) rotateY(-12deg); opacity: 1; pointer-events: auto; }

.carousel-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.carousel-btn {
  pointer-events: auto;
  background: rgba(0,0,0,0.5);
  color: var(--white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

@media (max-width: 920px) {
  .carousel-slide { width: 88vw; }
  .carousel-btn { width: 40px; height: 40px; }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.show { display: flex; }

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 92vh;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black, #000);
  display: grid;
  grid-template-rows: 1fr auto;
  height: 92vh;
}

.lightbox-inner { display: grid; place-items: center; padding: 0.5rem; min-height: 0; }
.lightbox-inner img,
.lightbox-inner video { max-width: 92vw; max-height: 100%; display: block; object-fit: contain; }

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #dc2626;
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 1.25rem;
  cursor: pointer;
}
.lightbox-close:hover { background: #ef4444; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  color: var(--gray-900);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.5rem;
  cursor: pointer;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  overflow-x: auto;
  background: rgba(0,0,0,0.5);
  flex-shrink: 0;
  box-sizing: border-box;
}
.lightbox-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex: 0 0 auto;
}
.lightbox-thumb.active { border-color: var(--primary); }
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-thumb .thumb-video { display: grid; place-items: center; width: 100%; height: 100%; background: #111; color: #eee; font-size: 0.75rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.hero .stat-number {
  color: var(--white);
}

.hero .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* ===== About Section ===== */
.about {
  padding: 7rem 0;
  background: var(--white);
}

.dark .about {
  background: var(--gray-900);
}

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

.about-description {
  font-size: 1.0625rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}
.dark .about-description {
  color: var(--gray-300);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--gray-700);
}
.dark .feature {
  color: var(--gray-200);
}

.feature svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.about-image::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 2rem;
  right: -2rem;
  bottom: -2rem;
  background: var(--primary);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.1;
}

/* ===== Services Section ===== */
.services {
  padding: 7rem 0;
  background: var(--gray-50);
}

.dark .services {
  background: var(--gray-800);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.dark .service-card {
  background: var(--gray-800);
  border-color: var(--gray-700);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-description {
  color: var(--gray-500);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}

.dark .service-description {
  color: var(--gray-300);
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-features li {
  font-size: 0.875rem;
  color: var(--gray-600);
  padding-left: 1.25rem;
  position: relative;
}

.dark .service-features li {
  color: var(--gray-300);
}

.service-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

/* ===== Why Choose Us ===== */
.why-us {
  padding: 7rem 0;
  background: var(--white);
}

.dark .why-us {
  background: var(--gray-900);
}

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

.why-us-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.why-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  transition: var(--transition);
}

.why-item:hover {
  background: var(--primary-light);
}

.dark .why-item {
  background: var(--gray-800);
}

.dark .why-item:hover {
  background: rgba(26, 86, 219, 0.15);
}

.why-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.why-content h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

.why-content p {
  font-size: 0.9375rem;
  color: var(--gray-500);
}
.dark .why-content p {
  color: var(--gray-300);
}

.why-us-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}

/* ===== Projects Section ===== */
.projects {
  padding: 7rem 0;
  background: var(--gray-50);
}

.dark .projects {
  background: var(--gray-800);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.dark .project-card {
  background: var(--gray-800);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 12;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition);
}

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

.project-category {
  background: var(--white);
  color: var(--primary);
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dark .project-category {
  background: var(--gray-900);
  color: var(--primary);
}

.project-info {
  padding: 1.25rem 1.5rem;
}

.project-info h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.project-info p {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.dark .project-info p {
  color: var(--gray-300);
}

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

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

.testimonial-card {
  background: var(--gray-50);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.testimonial-card:hover {
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-lg);
}

.dark .testimonial-card {
  background: var(--gray-800);
  border-color: var(--gray-700);
}

.dark .testimonial-card:hover {
  background: var(--gray-700);
  border-color: var(--gray-600);
}

.testimonial-text {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.dark .testimonial-text {
  color: var(--gray-300);
}

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

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--gray-900);
}

.dark .testimonial-author strong {
  color: var(--white);
}

.testimonial-author span {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.dark .testimonial-author span {
  color: var(--gray-400);
}

/* ===== Contact Section ===== */
.contact {
  padding: 7rem 0;
  background: var(--gray-50);
}

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

.contact-info p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}
.dark .contact-info p {
  color: var(--gray-300);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-item strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--gray-900);
}
.dark .contact-item strong {
  color: var(--white);
}

.contact-item span {
  font-size: 0.9375rem;
  color: var(--gray-500);
}
.dark .contact-item span {
  color: var(--gray-300);
}

.contact-item a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.contact-item a:hover {
  color: var(--primary-dark);
  text-decoration-color: currentColor;
}
.dark .contact-item a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration-color: rgba(255, 255, 255, 0.92);
}
.dark .contact-item a:hover {
  color: #ffffff;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  grid-column: 1 / -1;
  width: 100%;
  max-width: 880px;
  justify-self: center;
}
.form-title {
  grid-column: 1 / -1;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}
.dark .form-title { color: var(--white); }
.contact-form .btn.full-width { grid-column: 1 / -1; width: 100%; }
.dark .contact-form { background: var(--gray-800); }

.dark .contact {
  background: var(--gray-900);
}

.dark .contact-form {
  background: var(--gray-800);
  box-shadow: var(--shadow-md);
}

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

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.dark .form-group label {
  color: var(--gray-300);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
}

.dark .form-group input,
.dark .form-group select,
.dark .form-group textarea {
  border-color: var(--gray-700);
  color: var(--gray-200);
  background: var(--gray-900);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.dark .form-group input::placeholder,
.dark .form-group textarea::placeholder {
  color: var(--gray-500);
}

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

.contact-form .btn {
  margin-top: 0.5rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gray-800);
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-brand .logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.footer-brand .logo-img { width: 160px; height: auto; }
.footer-brand .logo span { display: block; }

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.75;
  max-width: 300px;
}
.dark .footer-brand p {
  color: var(--gray-300);
}

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

.footer-column h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column a {
  font-size: 0.9375rem;
  color: var(--gray-400);
}
.dark .footer-column a {
  color: var(--gray-300);
}

.footer-column a:hover {
  color: var(--white);
}

.footer-column li:not(:has(a)) {
  font-size: 0.9375rem;
}

.footer-bottom {
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
}

/* ===== Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .about-content,
  .why-us-content,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image {
    order: -1;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 920px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .dark .nav-menu {
    background: var(--gray-900);
    border-bottom-color: var(--gray-700);
    box-shadow: var(--shadow-md);
  }

  .dark .nav-menu .nav-link {
    color: var(--gray-200);
  }

  .dark .nav-menu .nav-link:hover {
    color: var(--primary);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header .nav-menu.active .nav-link {
    color: var(--gray-800);
  }
  .header .nav-menu.active .nav-link:hover {
    color: var(--primary);
  }
  .dark .header .nav-menu.active .nav-link {
    color: var(--gray-200);
  }

  .nav-menu li.has-submenu { width: 100%; }
  .nav-menu li.has-submenu .submenu {
    position: static;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .nav-menu li.has-submenu .submenu { display: none; }
  .nav-menu li.has-submenu.open .submenu { display: block; }
  .nav-menu li.has-submenu > a::after { content: "▾"; font-size: 0.875rem; }
  .nav-menu li.has-submenu .submenu li { margin: 0.25rem 0; }
  .nav-menu li.has-submenu .submenu li a {
    display: block;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-50);
    color: var(--gray-700);
  }
  .nav-menu li.has-submenu .submenu li a:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--gray-900);
  }
  .dark .nav-menu li.has-submenu .submenu li a {
    border-color: var(--gray-700);
    background: var(--gray-800);
    color: var(--gray-200);
  }
  .dark .nav-menu li.has-submenu .submenu li a:hover {
    background: rgba(26, 86, 219, 0.12);
    border-color: var(--primary);
    color: var(--white);
  }
}

  .hamburger {
    display: flex;
  }

  .dark .header.solid .hamburger span,
  .dark .header.transparent .hamburger span {
    background: var(--white);
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    height: 100svh;
    padding: 0;
  }

  .hero-stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .logo-img { width: 120px; max-height: 40px; }

  .about-image img { max-height: 320px; }

  .form-group.full-width {
    grid-column: span 1;
  }

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

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

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

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

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

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

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

@media (min-width: 921px) {
  .hamburger { display: none !important; }
}

@media (max-width: 920px) {
  .hamburger { display: flex; }
}
.dark .header.solid {
  background: rgba(17, 24, 39, 0.95);
  border-bottom-color: var(--gray-800);
}

.dark .header.solid .nav-link {
  color: var(--gray-300);
}

.dark .header.solid .nav-link:hover {
  color: var(--primary);
}
.dark .header.solid .logo {
  color: var(--white);
}

/* Dark theme header when not transparent (for subpages) */
.dark .header:not(.transparent) {
  background: rgba(17, 24, 39, 0.95);
  border-bottom-color: var(--gray-800);
}

.dark .header:not(.transparent) .nav-link {
  color: var(--gray-300);
}

.dark .header:not(.transparent) .nav-link:hover {
  color: var(--primary);
}

.dark .header:not(.transparent) .logo {
  color: var(--white);
}

.dark .header:not(.transparent) .logo-img {
  filter: brightness(0) invert(1);
}

.dark .header:not(.transparent) .hamburger span {
  background: var(--white);
}

.lightbox-content { display: grid; grid-template-rows: auto 1fr auto; }

@media (max-width: 1024px) {
  .lightbox-thumbs { display: none; }
}
@media (min-width: 1024px) {
  .lightbox-content { grid-template-rows: minmax(0, 1fr) 108px; }
  .lightbox-thumbs { height: 108px; }
}
