@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- CSS VARIABLES & TOKENS --- */
:root {
  --primary: #111827;
  --secondary: #00E5FF;
  --accent: #FF4D6D;
  --highlight: #FFD60A;
  --bg-light: #F8FAFC;
  --card-light: rgba(255, 255, 255, 0.75);
  --border-light: rgba(226, 232, 240, 0.8);
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.4);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Outfit', sans-serif;
  --glow-color: rgba(0, 229, 255, 0.4);
}

/* --- DARK MODE OVERRIDES --- */
body.dark-mode {
  --primary: #0F172A;
  --bg-light: #030712;
  --card-light: rgba(17, 24, 39, 0.75);
  --border-light: rgba(55, 65, 81, 0.8);
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --glass-bg: rgba(15, 23, 42, 0.45);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.3), 0 4px 12px -2px rgba(0, 0, 0, 0.25);
  --glow-color: rgba(255, 77, 109, 0.4);
}

/* --- BASE STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

ul {
  list-style: none;
}

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

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

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

/* --- TYPOGRAPHY & GRADIENTS --- */
.gradient-text {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 50%, var(--highlight) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, #00b8cc 100%);
  color: #000;
  box-shadow: 0 4px 14px 0 rgba(0, 229, 255, 0.4);
}

.btn-secondary:hover {
  box-shadow: 0 6px 20px 0 rgba(0, 229, 255, 0.6);
  transform: translateY(-2px) scale(1.02);
}

.btn-outline {
  border: 1px solid var(--border-light);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
}

/* --- FLOATING ACTIONS --- */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.float-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: var(--transition);
  position: relative;
}

.float-btn:hover {
  transform: translateY(-5px) scale(1.1);
}

.float-whatsapp {
  background-color: #25D366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.float-whatsapp::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border: 2px solid #25D366;
  border-radius: 50%;
  animation: pulse 2s infinite;
  opacity: 0.6;
}

.float-call {
  background: linear-gradient(135deg, var(--secondary), #00b8cc);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.4);
}

/* --- GLASSMORPHISM CARD --- */
.glass-card {
  background: var(--card-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 15px 30px -5px var(--glow-color);
  transform: translateY(-5px);
}

/* --- STICKY HEADER & NAVIGATION --- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

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

.logo-icon {
  width: 2.2rem;
  height: 2.2rem;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 900;
}

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

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- MEGA MENU --- */
.has-mega {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card-light);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 3rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition);
  z-index: 99;
}

.has-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.mega-col-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.5rem;
  color: var(--text-primary);
}

.mega-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mega-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mega-link:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

/* --- DARK MODE TOGGLE --- */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-light);
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: rotate(15deg);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
body.dark-mode .theme-toggle .sun-icon { display: block; }
body.dark-mode .theme-toggle .moon-icon { display: none; }

/* --- MOBILE DRAWER --- */
.mobile-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: var(--primary);
  color: #fff;
  z-index: 1001;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 20px 0 40px rgba(0,0,0,0.3);
}

.mobile-drawer.active {
  left: 0;
}

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

.drawer-close {
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-link {
  font-size: 1.2rem;
  font-weight: 600;
  color: #9CA3AF;
  display: block;
}

.drawer-link:hover, .drawer-link.active {
  color: var(--secondary);
  padding-left: 0.5rem;
}

.drawer-item-collapsible {
  display: flex;
  flex-direction: column;
}

.drawer-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.drawer-accordion-btn {
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.drawer-accordion-btn:hover {
  color: var(--secondary);
}

.drawer-accordion-btn i {
  transition: transform 0.3s ease;
}

.drawer-submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 1.2rem;
  border-left: 2px solid rgba(255, 255, 255, 0.05);
}

.drawer-submenu.active {
  opacity: 1;
  margin-top: 0.75rem;
  padding-bottom: 0.5rem;
}

.drawer-sublink {
  font-size: 0.95rem;
  font-weight: 500;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.drawer-sublink:hover, .drawer-sublink.active {
  color: var(--secondary);
  padding-left: 0.3rem;
}

.drawer-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
}

.drawer-overlay.active {
  display: block;
}

/* --- HERO SECTION --- */
.hero-sec {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 1rem;
  display: inline-block;
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .hero-btns {
    justify-content: center;
  }
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-glow-back {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.25) 0%, rgba(255, 77, 109, 0.15) 50%, transparent 100%);
  filter: blur(40px);
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float-slow 8s infinite alternate;
}

.hero-board-frame {
  background: rgba(17, 24, 39, 0.95);
  border: 4px solid #374151;
  border-radius: 1rem;
  padding: 3rem 2rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0, 229, 255, 0.3);
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 450px;
}

.hero-neon-text {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px var(--secondary),
    0 0 40px var(--secondary),
    0 0 80px var(--secondary);
  animation: flicker 4s infinite alternate;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.hero-neon-sub {
  font-size: 1.2rem;
  color: #fff;
  margin-top: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 
    0 0 5px #fff,
    0 0 15px var(--accent),
    0 0 30px var(--accent);
  animation: pulse-glow 2s infinite alternate;
}

.banner-desktop {
  display: block !important;
}

.banner-mobile {
  display: none !important;
}

/* --- STATS SECTION --- */
.stats-sec {
  background: var(--primary);
  color: #fff;
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-item h3 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: #9CA3AF;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- ABOUT PREVIEW --- */
.about-prev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 991px) {
  .about-prev-grid {
    grid-template-columns: 1fr;
  }
}

.about-features {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.about-feat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.about-feat-item i {
  color: var(--secondary);
  font-size: 1.25rem;
}

/* --- PRODUCTS GRID & CARDS --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 1rem;
}

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

.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}

.product-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid var(--secondary);
}

.product-info {
  margin-top: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-link {
  color: var(--secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.product-link:hover {
  gap: 0.5rem;
}

/* --- APPLICATIONS GRID --- */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
}

@media (max-width: 991px) {
  .applications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.service-card {
  padding: 2.5rem 1.8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(255, 77, 109, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: var(--secondary);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #000;
  transform: rotate(10deg);
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* --- WHY CHOOSE US --- */
.why-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

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

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

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

.why-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.why-item i {
  color: var(--secondary);
  font-size: 2rem;
}

.why-item h4 {
  font-size: 1.25rem;
  font-weight: 700;
}

.why-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.why-visual-board {
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative;
}

/* --- PROCESS WORKFLOW --- */
.process-sec {
  background: var(--primary);
  color: #fff;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  position: relative;
}

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

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

.process-step {
  text-align: center;
  position: relative;
}

.process-num {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #000;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.process-step h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.85rem;
  color: #9CA3AF;
}

/* --- PORTFOLIO & GALLERY --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

body.dark-mode .filter-btn.active {
  background: var(--secondary);
  color: #000;
  border-color: var(--secondary);
}

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

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

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.portfolio-item {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(17, 24, 37, 0.9) 0%, rgba(17, 24, 37, 0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}

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

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-overlay h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.portfolio-overlay p {
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- BEFORE / AFTER COMPONENT --- */
.before-after-sec {
  background: var(--bg-light);
}

.before-after-container {
  max-width: 800px;
  margin: 3rem auto 0;
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--border-light);
  user-select: none;
}

.ba-image {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
}

.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before {
  z-index: 1;
}

.ba-after {
  z-index: 2;
  width: 50%;
  overflow: hidden;
}

.ba-after img {
  max-width: none;
  width: var(--container-width, 800px);
  height: 100%;
  object-fit: cover;
}

/* Dynamic variable handles width rendering */

.ba-handle {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--secondary);
  cursor: ew-resize;
  transform: translateX(-50%);
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  border: 2px solid var(--secondary);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0,229,255,0.4);
}

.ba-label {
  position: absolute;
  bottom: 1rem;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 4;
}

.ba-label-before {
  left: 1rem;
}

.ba-label-after {
  right: 1rem;
}

/* --- LIGHTBOX --- */
.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 80%;
}

.lightbox-content img {
  border-radius: 0.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
}

/* --- TESTIMONIALS SLIDER --- */
.testimonial-sec {
  background: var(--primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.testimonial-sec::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(255, 77, 109, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.testimonial-slider-container {
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 1rem;
}

.testimonial-bubble {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2rem;
  padding: 3rem;
  text-align: center;
  position: relative;
}

.testimonial-text {
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.testimonial-author {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary);
}

.testimonial-role {
  font-size: 0.85rem;
  color: #9CA3AF;
  margin-top: 0.25rem;
}

.testimonial-rating {
  color: var(--highlight);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.slider-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--secondary);
  transform: scale(1.3);
}

/* --- FAQ ACCORDION --- */
.faq-sec {
  background: var(--bg-light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--card-light);
  transition: var(--transition);
}

.faq-trigger {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-top: 1px solid transparent;
}

.faq-item.active {
  border-color: var(--secondary);
}

.faq-item.active .faq-panel {
  max-height: 200px;
  padding-bottom: 1.5rem;
  border-top-color: var(--border-light);
}

.faq-icon {
  font-size: 1.2rem;
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--secondary);
}

/* --- BLOG GRID & CARDS --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 991px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.blog-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.blog-card-title:hover {
  color: var(--secondary);
}

.blog-summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* --- CONTACT SEC & FORMS --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

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

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.contact-info-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(0, 229, 255, 0.1);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.contact-info-text h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-info-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: 0.75rem;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  background: var(--card-light);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

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

/* --- GOOGLE MAPS BLOCK --- */
.map-container {
  height: 400px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 2rem;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: #9CA3AF;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.footer-col-title {
  color: #FFF;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link:hover {
  color: var(--secondary);
  padding-left: 0.25rem;
}

.footer-brand p {
  margin: 1.2rem 0;
  font-size: 0.95rem;
}

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

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
}

.social-icon:hover {
  background: var(--secondary);
  color: #000;
  border-color: var(--secondary);
  transform: translateY(-3px);
}

/* --- FOOTER CONTACT DETAILS --- */
.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: #9CA3AF;
  font-size: 0.95rem;
  text-align: left;
}

.footer-contact-item i {
  color: var(--secondary);
  margin-top: 0.3rem;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .footer-contact-links {
    align-items: center;
  }
  .footer-contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
  }
  .footer-contact-item i {
    margin-top: 0;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
  }
}

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

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- SPLIT LAYOUT (SERVICES SUB PAGES WITH STICKY FORM) --- */
.split-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 991px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.sticky-aside {
  position: sticky;
  top: 7rem;
  z-index: 10;
}

@media (max-width: 991px) {
  .sticky-aside {
    position: static;
  }
}

/* --- SUB-PAGE HEROES --- */
.sub-hero {
  padding: 6rem 0 4rem;
  text-align: center;
  background: var(--primary);
  color: #fff;
  position: relative;
}

.sub-hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.sub-hero-breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #9CA3AF;
  font-weight: 500;
}

.sub-hero-breadcrumbs a:hover {
  color: var(--secondary);
}

/* --- PRODUCT DETAILS STYLE --- */
.product-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 991px) {
  .product-details-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.specs-table th, .specs-table td {
  padding: 0.9rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.specs-table th {
  font-weight: 700;
  background: rgba(0, 229, 255, 0.05);
}

/* --- PORTFOLIO MASONRY --- */
.masonry-gallery {
  column-count: 3;
  column-gap: 1.5rem;
}

@media (max-width: 991px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .masonry-gallery {
    column-count: 1;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.masonry-item img {
  width: 100%;
  display: block;
}

.masonry-item:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
}

/* --- ANIMATIONS & KEYFRAMES --- */
@keyframes flicker {
  0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
    opacity: 0.99;
    text-shadow: 
      0 0 4px #fff,
      0 0 10px #fff,
      0 0 20px var(--secondary),
      0 0 40px var(--secondary),
      0 0 80px var(--secondary);
  }
  20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
    opacity: 0.4;
    text-shadow: none;
  }
}

@keyframes pulse-glow {
  0% {
    text-shadow: 0 0 5px #fff, 0 0 10px var(--accent);
    opacity: 0.8;
  }
  100% {
    text-shadow: 0 0 10px #fff, 0 0 25px var(--accent), 0 0 50px var(--accent);
    opacity: 1;
  }
}

@keyframes float-slow {
  0% {
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }
  100% {
    transform: translate(-50%, -50%) translateY(-15px) scale(1.05);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.lead-p {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* --- RATING STARS --- */
.stars-wrap {
  display: flex;
  gap: 0.25rem;
  color: var(--highlight);
}

/* --- OTHER ENQUIRY FORM / STICKY FORM WRAP --- */
.sticky-form-card {
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  border-radius: 1.5rem;
  background: var(--card-light);
  backdrop-filter: blur(12px);
  padding: 2rem;
}

/* ==========================================================================
   OPTIMIZED RESPONSIVENESS MEDIA QUERIES
   ========================================================================== */

/* --- TABLET & MOBILE GLOBAL OVERRIDES (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .nav-menu {
    display: none !important;
  }
  
  .mobile-toggle {
    display: block !important;
  }
  
  .hero-sec {
    min-height: auto;
    padding: 3rem 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-grid > div:first-child {
    order: 2;
  }

  .hero-visual {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
  }

  .banner-desktop {
    display: block !important;
    margin-bottom: 0 !important;
  }

  .banner-mobile {
    display: block !important;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-tagline {
    border-left: none;
    border-bottom: 2px solid var(--accent);
    padding-left: 0;
    padding-bottom: 0.25rem;
  }

  .why-grid, 
  .split-layout, 
  .product-details-grid, 
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .sticky-aside {
    position: static;
  }

  .about-prev-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* --- TABLET SPECIFIC (768px – 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .section-padding {
    padding: 4.5rem 0;
  }

  .hero-title {
    font-size: 3.2rem;
  }

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

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

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

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

  .masonry-gallery {
    column-count: 2;
  }

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

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

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

/* --- MOBILE SPECIFIC (320px – 767px) --- */
@media (max-width: 767px) {
  .nav-actions .btn-outline,
  .nav-actions .btn-secondary {
    display: none !important;
  }

  html {
    font-size: 15px; /* Scale down rem values slightly on mobile */
  }

  body {
    overflow-x: hidden; /* Hard safety check for horizontal scroll */
  }

  .container {
    padding: 0 1.25rem;
  }

  .section-padding {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 2.8rem);
    line-height: 1.2;
  }

  .hero-desc {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .hero-board-frame {
    max-width: 100%;
    padding: 2rem 1.5rem;
  }

  .hero-neon-text {
    font-size: 2rem;
  }

  .hero-neon-sub {
    font-size: 1rem;
    letter-spacing: 0.2em;
  }

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

  .stat-item h3 {
    font-size: 2.2rem;
  }

  .stat-item p {
    font-size: 0.8rem;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-grid,
  .services-grid,
  .portfolio-grid,
  .process-grid,
  .why-items {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .masonry-gallery {
    column-count: 1;
  }

  .before-after-container {
    border-radius: 1rem;
    border-width: 2px;
  }

  .ba-label {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    bottom: 0.5rem;
  }

  .ba-handle-button {
    width: 2.5rem;
    height: 2.5rem;
  }

  .testimonial-bubble {
    padding: 2rem 1.25rem;
    border-radius: 1.25rem;
  }

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

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

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

  .social-icons {
    justify-content: center;
  }

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

  .floating-actions {
    bottom: 1.5rem;
    right: 1.5rem;
    gap: 0.75rem;
  }

  .float-btn {
    width: 3rem;
    height: 3rem;
  }
}

/* --- SMALL MOBILE PHONES (max-width: 480px) --- */
@media (max-width: 480px) {
  .nav-actions .btn-outline span {
    display: none !important; /* Hide 'Call Now' text, show phone icon only */
  }

  .nav-actions .btn-outline {
    padding: 0.6rem 0.8rem;
    border-radius: 50%; /* Make it a circular button */
    aspect-ratio: 1;
  }

  .nav-actions .btn-secondary {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .hero-btns .btn {
    width: 100%; /* Make buttons full-width stacked on tiny screens */
  }

  .stats-grid {
    grid-template-columns: 1fr; /* Single column stats on extremely narrow viewports */
    gap: 1.5rem;
  }
}

/* --- ULTRA SMALL PHONES (max-width: 360px) --- */
@media (max-width: 360px) {
  .logo span {
    display: none; /* Hide brand text on iPhone SE to make room for buttons */
  }

  .nav-actions {
    gap: 0.5rem;
  }
}

