:root {
  --ink: #0b1a2a;
  --muted: #516170;
  --primary: #0e5fa8;
  --primary-strong: #0b4a86;
  --accent: #39b972;
  --accent-strong: #2f9e60;
  --surface: #ffffff;
  --surface-alt: #f5f8fb;
  --line: #e3eaf2;
  --shadow: 0 30px 70px rgba(14, 44, 84, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.site-loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top right,
      rgba(57, 185, 114, 0.18),
      transparent 45%),
    linear-gradient(135deg, #0b2444, #0f4a8c 55%, #0e5fa8 100%);
  display: grid;
  place-items: center;
  z-index: 2000;
}

.loader-inner {
  display: grid;
  gap: 14px;
  text-align: center;
  color: #fff;
  justify-items: center;
  align-items: center;
}

.loader-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), #76e4a5);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
  margin: 0 auto;
}

.loader-text {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-top: 4px;
  opacity: 0;
}

.loader-bar {
  width: 220px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: #fff;
  border-radius: 999px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--surface-alt);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.headline {
  font-family: "Merriweather", serif;
  font-size: clamp(2.1rem, 3vw, 3.1rem);
  margin: 16px 0 12px;
  line-height: 1.15;
}

.subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 680px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease, color 0.25s ease;
  will-change: transform;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 35px rgba(57, 185, 114, 0.28);
}

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

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff !important;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 2000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo>span {
  line-height: 1.4;
  display: block;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.nav-cta {
  margin-left: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}

.mobile-menu {
  position: fixed;
  top: 76px;
  right: 0;
  width: min(320px, 86vw);
  max-width: 320px;
  height: calc(100vh - 76px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 50px rgba(10, 33, 60, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  font-size: 0.98rem;
  color: var(--muted);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1190;
  overflow-y: auto;
  overflow-x: hidden;
}

.mobile-menu a {
  padding: 10px 0;
  border-bottom: 1px solid rgba(10, 33, 60, 0.08);
}

.page-hero {
  background: linear-gradient(135deg, #0b2444, #0e5fa8 55%, #0f6f8e 100%);
  color: #fff;
  padding-top: 140px;
  padding-bottom: 70px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px,
      transparent 0);
  background-size: 44px 44px;
  opacity: 0.35;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.hero {
  background:
    linear-gradient(135deg,
      rgba(10, 31, 61, 0.92) 0%,
      rgba(13, 58, 111, 0.88) 50%,
      rgba(14, 95, 168, 0.85) 100%),
    url('https://images.unsplash.com/photo-1516549655169-df83a0774514?w=1920&h=1080&fit=crop') center/cover no-repeat;
  color: #fff;
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right,
      rgba(57, 185, 114, 0.15),
      transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px,
      transparent 0);
  background-size: 50px 50px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  max-width: 1000px;
  width: 100%;
  text-align: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  margin-bottom: 28px;
}

.hero-badge i {
  width: 20px;
  height: 20px;
}

.hero-title {
  font-family: "Merriweather", serif;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.2;
  margin: 0 0 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-spacing: 0.1em;
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: none;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title .char {
  display: inline-block;
  transform-origin: bottom;
  white-space: pre;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 36px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
  justify-content: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.stat {
  padding: 20px 0;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.stat strong {
  display: block;
  font-size: 2.2rem;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.stat {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.hero-card {
  background: transparent;
  color: var(--ink);
  border-radius: 24px;
  padding: 0;
  box-shadow: none;
  display: grid;
  gap: 16px;
  border: none;
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(57, 185, 114, 0.4), rgba(14, 95, 168, 0.4));
  border-radius: 26px;
  z-index: -1;
  opacity: 0.6;
  filter: blur(20px);
}

.hero-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.15);
}

.hero-card .card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.hero-card .card-meta span {
  align-items: center;
  gap: 12px;
  margin-top: -52px;
  margin-left: 18px;
  margin-right: 18px;
  background: rgba(9, 26, 49, 0.92);
  color: #fff;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(6, 18, 36, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 22px;
  align-items: stretch;
  max-width: 100%;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 22px;
  align-items: stretch;
  max-width: 100%;
}

.card {
  background: var(--surface);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(10, 33, 60, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px rgba(10, 33, 60, 0.12);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(14, 95, 168, 0.12);
  color: var(--primary);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.3;
  min-height: 2.6em;
}

.card .subtitle {
  margin: 0 0 16px;
  flex-grow: 1;
}

.card .pill-list {
  margin-top: auto;
  padding-top: 16px;
}

.home-services-grid .card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}

.home-services-grid .subtitle {
  margin: 0;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
}

.about-values {
  display: grid;
  gap: 16px;
}

.value-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.value-item span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(57, 185, 114, 0.15);
  color: var(--accent-strong);
  align-items: center;
  justify-content: center;
}

.compliance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.compliance .badge {
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.process .step {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line);
}

.industries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.industry-card {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  min-height: 280px;
  color: #fff;
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease;
}

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

.industry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 20, 40, 0.2), #071b33);
}

.industry-content {
  position: relative;
  padding: 24px;
  z-index: 1;
}

.pan-india {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  background: #0c1f3a;
  color: #fff;
  border-radius: 30px;
  padding: 32px;
}

.pan-india .region {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
}

.cta {
  background: linear-gradient(120deg, #0e5fa8, #39b972);
  color: #fff;
  border-radius: 30px;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: start;
}

.contact-card {
  background: var(--surface-alt);
  border-radius: 28px;
  padding: 28px;
}

.form-field {
  display: grid;
  gap: 8px;
}

input,
select,
textarea {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(14, 95, 168, 0.2);
  border-color: var(--primary);
}

textarea {
  resize: vertical;
}

.footer {
  background: #071527;
  color: #e8eef6;
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}

.footer small {
  color: #a7b6c8;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 160px;
  display: grid;
  gap: 12px;
  z-index: 1100;
}

.floating-actions a {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
  will-change: transform;
}

.floating-actions a:hover {
  transform: translateY(-3px);
}

.action-whatsapp {
  background: #25d366;
}

.action-phone {
  background: #0e5fa8;
}

.action-email {
  background: #39b972;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.gsap-init .reveal {
  opacity: 0;
  transform: translateY(26px);
}

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

.fallback-animate {
  animation: fadeUp 0.9s ease both;
}

body.animate-fallback .hero-badge,
body.animate-fallback .hero-title,
body.animate-fallback .hero-subtitle,
body.animate-fallback .hero-actions,
body.animate-fallback .hero-stats,
body.animate-fallback .hero-card {
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .nav-inner {
    height: 76px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .logo {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
  }

  .nav-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    /* Removing any default button vertical alignment */
    vertical-align: middle !important;
  }

  .nav-toggle i,
  .nav-toggle svg {
    width: 30px !important;
    height: 30px !important;
    display: block !important;
    margin: 0 !important;
  }

  .mobile-menu.active {
    transform: translateX(0);
  }
}

@media (min-width: 1200px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(320px, 380px));
    justify-content: center;
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(240px, 280px));
    justify-content: center;
  }
}

@media (min-width: 961px) and (max-width: 1199px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: 0 auto;
  }
}

@media (min-width: 720px) and (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 720px) {
  .container {
    width: min(1200px, 90vw);
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding: 140px 0 80px;
    min-height: auto;
  }

  .hero-grid {
    max-width: 100%;
    padding: 0 20px;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 8px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: 24px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    padding: 0 4px;
  }

  .hero-actions {
    margin-bottom: 48px;
    padding: 0 8px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 12px;
  }

  .stat {
    padding: 18px 16px;
  }

  .page-hero {
    padding-top: 130px;
  }

  .floating-actions {
    right: 12px;
    bottom: 150px;
  }

  .hero-title .char {
    display: inline;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Gallery Mobile Styles */
  .gallery-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

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

  .gallery-item {
    border-radius: 18px;
  }

  .gallery-overlay {
    padding: 18px;
  }

  .gallery-content h3 {
    font-size: 1.1rem;
  }

  .gallery-content p {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  .gallery-view-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .gallery-meta {
    padding: 12px 16px;
  }

  /* Lightbox Mobile Styles */
  .gallery-lightbox {
    padding: 10px;
  }

  .lightbox-content {
    gap: 16px;
  }

  .lightbox-content img {
    max-height: 60vh;
    border-radius: 12px;
  }

  .lightbox-caption h3 {
    font-size: 1.3rem;
  }

  .lightbox-caption p {
    font-size: 0.95rem;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close i,
  .lightbox-nav i {
    width: 20px;
    height: 20px;
  }
}

/* Tablet Responsive Styles */
@media (min-width: 721px) and (max-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .filter-btn {
    padding: 11px 20px;
    font-size: 0.9rem;
  }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 721px) and (max-width: 960px) {
  .hero-grid {
    max-width: 700px;
  }
}

/* ============================================
   GALLERY SECTION STYLES
   ============================================ */

/* Gallery Filters */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.filter-btn {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(14, 95, 168, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.filter-btn:hover::before {
  width: 200%;
  height: 200%;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 95, 168, 0.15);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(14, 95, 168, 0.25);
}

.filter-btn.active::before {
  display: none;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 28px;
  align-items: start;
}

.gallery-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(10, 33, 60, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(10, 33, 60, 0.15);
  border-color: rgba(14, 95, 168, 0.3);
}

.gallery-item.hidden {
  display: none;
}

.gallery-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
}

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

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

/* Gallery Overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(11, 26, 42, 0) 0%,
      rgba(11, 26, 42, 0.7) 50%,
      rgba(11, 26, 42, 0.95) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.gallery-content {
  color: #fff;
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-content {
  transform: translateY(0);
}

.gallery-content h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.gallery-content p {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.gallery-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.gallery-view-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.gallery-view-btn i {
  width: 18px;
  height: 18px;
}

/* Gallery Meta */
.gallery-meta {
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Lightbox Modal */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 39, 0.96);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 1200px;
  max-height: 90vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  animation: lightboxZoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lightboxZoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-caption {
  text-align: center;
  color: #fff;
  max-width: 700px;
}

.lightbox-caption h3 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.lightbox-caption p {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* Lightbox Controls */
.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-close i,
.lightbox-nav i {
  width: 24px;
  height: 24px;
}

/* ============================================
   END GALLERY SECTION STYLES
   ============================================ */

/* Performance optimizations */

.card,
.btn,
.floating-actions a,
.hero-badge,
.value-item span {
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 90px;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(57, 185, 114, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(57, 185, 114, 0.4);
  background: var(--accent-strong);
}

.back-to-top:active {
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .back-to-top {
    right: 12px;
    bottom: 80px;
    width: 48px;
    height: 48px;
  }
}

/* ============================================
   FLOATING ACTION BUTTONS
   ============================================ */

.floating-actions {
  position: fixed;
  left: 30px;
  bottom: 30px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.floating-actions a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Animations/Hover */
.floating-actions a:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Colors */
.floating-actions .action-whatsapp {
  background: #25D366;
  color: white;
}

.floating-actions .action-phone {
  background: #0e5fa8;
  /* Brand Primary */
  color: white;
}

.floating-actions .action-email {
  background: #ffffff;
  color: #ea4335;
}

.floating-actions i {
  width: 24px;
  height: 24px;
}

/* Tooltip/Label on hover */
.floating-actions a::after {
  content: attr(aria-label);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #333;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.floating-actions a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
  .floating-actions {
    left: 20px;
    bottom: 20px;
    gap: 12px;
  }

  .floating-actions a {
    width: 48px;
    height: 48px;
  }

  .floating-actions a::after {
    display: none;
    /* Hide tooltips on mobile */
  }
}