/* ============================================================
   Jay Murlidhar Tech Solutions — Static site styles
   ============================================================ */

:root {
  /* Brand palette derived from logo */
  --bg: #ffffff;
  --surface: #f9fafb;
  --surface-2: #f3f4f6;
  --text: #1f2937;
  --text-muted: #4b5563;
  --primary: #6f4e98;
  /* logo purple */
  --primary-700: #4e366b;
  --primary-300: #8a6ab8;
  /* lighter purple */
  --gold: #6f4e98;
  /* logo purple */
  --gold-2: #4e366b;
  /* deeper purple */
  --border: #e5e7eb;

  --gradient-gold: linear-gradient(135deg, var(--gold), var(--gold-2));
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-300));

  --shadow-soft: 0 6px 24px -8px rgba(11, 31, 58, 0.18);
  --shadow-glow: 0 12px 30px -10px rgba(111, 78, 152, 0.45);

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;

  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  height: 120px;
  width: auto;
  margin-bottom: 1.5rem;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.preloader-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(111, 78, 152, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--primary);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.text-gold {
  color: var(--gold);
}

.muted {
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .3s ease, box-shadow .3s ease, background .4s ease, color .3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gradient-primary);
  background-size: 200% auto;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: background-position 0.5s ease, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), box-shadow 0.3s ease;
}

.btn-gold::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: all 0.7s ease;
  pointer-events: none;
}

.btn-gold:hover {
  background-position: right center;
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px) scale(1.03);
}

.btn-gold:hover::before {
  left: 150%;
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-4px) scale(1.03);
}

.btn-block {
  width: 100%;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-soft);
}

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

.brand-logo {
  height: 75px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  padding: .55rem .9rem;
  font-weight: 500;
  color: #fff;
  border-radius: 8px;
  transition: color 0.3s ease, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  position: relative;
  display: inline-block;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: .9rem;
  right: .9rem;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.navbar.scrolled .nav-link {
  color: var(--text);
}

.nav-link:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* ---------- Dropdown ---------- */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  border: 1px solid var(--border);
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.7rem 1.2rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: var(--surface);
  color: var(--primary);
  padding-left: 1.5rem;
}

.dropdown-header {
  display: block;
  padding: 0.8rem 1.2rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.7;
  letter-spacing: 0.08em;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.4rem 0;
}

.nav-cta {
  margin-left: .5rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--primary);
  transition: transform .25s ease, opacity .25s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--border);
  background: #fff;
  animation: fade-in .25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-primary), url("../assets/LUCES GAMER.jpeg") center/cover no-repeat;
  background-blend-mode: multiply;
  opacity: .98;
  z-index: -1;
  background-size: 150% 150%;
  animation: slow-drift 25s ease-in-out infinite;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 70% 20%, rgba(111, 78, 152, 0.25), transparent 60%);
}

.hero-inner {
  padding: clamp(120px, 15vw, 160px) 20px clamp(64px, 10vw, 120px);
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-title {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
}

.hero-sub {
  color: rgba(255, 255, 255, .85);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 680px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 750px;
  margin-inline: auto;
}

.hero-stats>div {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius);
  padding: 1rem .5rem;
  backdrop-filter: blur(6px);
}

.hero-stats strong {
  display: block;
  font-size: 1.4rem;
  color: var(--border);
  font-family: var(--font-display);
}

.hero-stats span {
  font-size: .8rem;
  color: rgba(255, 255, 255, .8);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

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

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: center;
}

/* ---------- Slider Controls & Layout ---------- */
.slider-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.slider-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.services-slider {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 1rem 2rem;
  margin: -1rem -1rem 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.services-slider::-webkit-scrollbar {
  display: none;
}

.services-slider .service-card {
  min-width: 320px;
  max-width: 350px;
  flex: 0 0 auto;
  scroll-snap-align: center;
  transform: translateY(0);
  /* override scroll-jitter */
}

@media (max-width: 768px) {
  .services-slider .service-card {
    min-width: 280px;
    max-width: 300px;
  }
}

/* ---------- Service cards ---------- */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28), box-shadow 0.4s ease, border-color 0.4s ease;
  box-shadow: 0 4px 12px rgba(11, 31, 58, .04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: auto;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-glow);
  border-color: transparent;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card .service-img {
  width: 160px;
  height: auto;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.service-card:hover .service-img {
  transform: scale(1.15);
}

.service-card h3 {
  margin-bottom: .75rem;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--primary-300);
}

.service-card p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* ---------- About ---------- */
.about-grid {
  gap: 3rem;
}

.check-list {
  margin: 1rem 0 1.5rem;
  display: grid;
  gap: .5rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}

.about-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.about-card h3 {
  color: var(--primary);
  margin-top: 1rem;
}

.about-card h3:first-child {
  margin-top: 0;
}

/* ---------- Team Feature ---------- */
.team-feature {
  position: relative;
  background-color: #ffffff;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px), 
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
  overflow: hidden;
  z-index: 1;
}

.team-feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image:
    /* Left squares */
    linear-gradient(#f3f4f6, #f3f4f6),
    linear-gradient(#e5e7eb, #e5e7eb),
    linear-gradient(#f9fafb, #f9fafb),
    linear-gradient(#f3f4f6, #f3f4f6),
    /* Right squares */
    linear-gradient(#f3f4f6, #f3f4f6),
    linear-gradient(#e5e7eb, #e5e7eb);
  background-size: 50px 50px;
  background-position:
    calc(50% - 400px) 100px,
    calc(50% - 300px) 50px,
    calc(50% - 450px) 250px,
    calc(50% - 250px) 200px,
    calc(50% + 450px) 250px,
    calc(50% + 550px) 100px;
  background-repeat: no-repeat;
}

.team-feature-grid {
  align-items: center;
  gap: 4rem;
}

.team-feature-img-wrapper {
  position: relative;
  text-align: center;
}

.team-feature-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  mix-blend-mode: multiply;
}

.team-feature-content .eyebrow {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-transform: none;
}

.team-feature-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #1f2937;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.team-feature-subtitle {
  color: var(--text-muted);
  font-weight: 300;
}

.team-feature-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.team-social-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.btn-3d {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  color: #1f2937;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  position: relative;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  box-shadow: 
    -6px 6px 0 #d1d5db,
    -8px 8px 15px rgba(0,0,0,0.05);
  transform: translate(0, 0);
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.btn-3d:hover {
  transform: translate(-3px, 3px);
  box-shadow: 
    -3px 3px 0 #d1d5db,
    -4px 4px 10px rgba(0,0,0,0.05);
}

.btn-3d-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient-primary);
  color: #fff;
  padding: clamp(40px, 6vw, 64px) 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-inner h2 {
  color: #fff;
  margin-bottom: .25rem;
}

.cta-inner p {
  color: rgba(255, 255, 255, .85);
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  align-items: start;
}

.contact-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}

.contact-list .ic {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 1.1rem;
}

.contact-list strong {
  display: block;
  color: var(--primary);
}

.contact-list a:hover {
  color: var(--gold);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: .25rem;
}

.field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .6rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(111, 78, 152, 0.18);
}

.form-status {
  margin: .25rem 0 0;
  font-size: .9rem;
  min-height: 1.2em;
}

.form-status.success {
  color: #1f7a3a;
}

.form-status.error {
  color: #b3261e;
}

/* ---------- Premium Dark Footer ---------- */
.footer {
  background: linear-gradient(145deg, #1e0f35 0%, #3a1f63 100%);
  color: #d1d5db;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.footer h4 {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
}

.footer-list a {
  color: #d1d5db;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.4rem 0;
}

.footer-list a:hover {
  color: #fff;
  transform: translateX(5px);
}

.footer-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #9ca3af;
}

.footer-logo {
  height: 100px;
  margin-bottom: 2rem;
  filter: brightness(1.2);
}

.social-icons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.social-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
  background: #fff;
  color: #000;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

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

.footer-contact-item {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.15); /* Slightly darker area for copyright */
  padding-bottom: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
  .footer-list {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    justify-content: center;
  }
  .footer-center {
    order: -1;
  }
}

/* ---------- Social Icons ---------- */
.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--gradient-primary);
  transform: translateY(-2px);
  color: #fff;
}

.social-icon svg {
  width: 22px;
  height: 22px;
}
/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 90px;
  right: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .55);
  transition: transform .25s ease;
  animation: pulse-ring 2.4s ease-out infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
}

/* ---------- AI Chat Widget ---------- */
.ai-chat-widget {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
}

.ai-chat-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.ai-chat-btn:hover {
  transform: scale(1.08);
}

.ai-chat-window {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 320px;
  height: 400px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(111, 78, 152, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.ai-chat-window.active {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ai-chat-header {
  padding: 1rem;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-avatar {
  background: rgba(255, 255, 255, 0.2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.ai-header-info strong {
  display: block;
  font-size: 0.95rem;
}

.ai-status {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #25d366;
  border-radius: 50%;
}

.ai-chat-close {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.ai-chat-close:hover {
  opacity: 1;
}

.ai-chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fafafc;
}

.ai-message {
  max-width: 85%;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  border-radius: var(--radius);
  word-wrap: break-word;
  animation: fade-in-up 0.3s ease;
}

.bot-message {
  align-self: flex-start;
  background: #edeaff;
  color: var(--text);
  border-bottom-left-radius: 2px;
}

.user-message {
  align-self: flex-end;
  background: var(--gradient-primary);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.ai-typing .typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 20px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out;
  opacity: 0.6;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-chat-input-area {
  display: flex;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: #fff;
  gap: 0.5rem;
}

#aiChatInput {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

#aiChatInput:focus {
  border-color: var(--gold);
}

#aiChatSend {
  background: transparent;
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

#aiChatSend:hover {
  background: var(--surface);
  color: var(--gold);
}

@media (max-width: 400px) {
  .ai-chat-window {
    width: 290px;
  }
}

/* ---------- Animations ---------- */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

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

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

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ---------- Service Modal ---------- */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-modal.active {
  opacity: 1;
  visibility: visible;
}

.service-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.service-modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  text-align: center;
}

.service-modal.active .service-modal-content {
  transform: translateY(0) scale(1);
}

.service-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  color: var(--text);
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.service-modal-close:hover {
  opacity: 1;
  color: var(--primary);
}

.service-modal-header {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.service-modal-img {
  max-height: 120px;
  border-radius: var(--radius);
  object-fit: contain;
}

.service-modal-icon {
  font-size: 3rem;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-modal-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-modal-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.service-modal-actions .btn {
  width: 100%;
}


/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 20px;
  }

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

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

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}