/* ==========================================================================
   DESIGN TOKENS & INITIALIZATION
   ========================================================================== */
:root {
  /* SafeNet Creations Brand Colors */
  --color-navy: #0B2942;
  --color-deep-teal: #0C5D66;
  --color-cyan: #1EA6B8;
  --color-gold: #d39a3f;

  /* Primary Layout Colors */
  --bg-primary: #05101a;
  --bg-secondary: #061523;
  --bg-tertiary: #0b2942;

  --text-primary: #f8fafc;
  --text-secondary: #b3c0cf;
  --text-muted: #8fa0b4;

  /* Accents & Glows */
  --accent-cyan: #1ea6b8;
  --accent-cyan-glow: rgba(30, 166, 184, 0.25);
  --accent-teal: #0c5d66;
  --accent-teal-glow: rgba(12, 93, 102, 0.25);
  --accent-gold: #d39a3f;
  --accent-gold-glow: rgba(211, 154, 63, 0.25);

  --glass-bg: rgba(6, 21, 35, 0.75);
  --glass-border: rgba(30, 166, 184, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.5);

  /* Fonts */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  position: relative;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 2000;
  transform: translateY(-160%);
  border-radius: 8px;
  background: #fff;
  color: var(--bg-primary);
  padding: 10px 14px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* New Generation Grid Overlay Background with mouse track glow */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(30, 166, 184, 0.015) 1px, transparent 1px),
    linear-gradient(rgba(30, 166, 184, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(30, 166, 184, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
  transition: background 0.1s ease-out;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Make elements sit above body grid background and be interactive */
.nav-bar,
.hero-section,
.trust-bar-section,
.services-section,
.tech-section,
.tech-stack-section,
.contact-section,
.footer {
  position: relative;
  z-index: 10;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* ==========================================================================
   TYPOGRAPHY & BUTTONS
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(30, 166, 184, 0.85);
  outline-offset: 3px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 30%, var(--accent-cyan) 70%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(30, 166, 184, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

/* Button styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--color-deep-teal) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(30, 166, 184, 0.25);
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30, 166, 184, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: pointer;
}
.btn-secondary:hover {
  background: rgba(30, 166, 184, 0.05);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-fast);
}

.nav-container {
  max-width: 1280px;
  height: 80px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-headings);
  font-size: 1.45rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-gold));
}

.logo-accent {
  background: linear-gradient(135deg, var(--accent-cyan), var(--color-deep-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
  padding: 8px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
  border-radius: 2px;
}

/* Navigation Dropdown Menu */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(5, 16, 26, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  min-width: 200px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-headings);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition-fast);
  text-align: left;
}

.dropdown-item:hover {
  background: rgba(30, 166, 184, 0.1);
  color: var(--text-primary);
}

.nav-link-dropdown-arrow {
  font-size: 0.65rem;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .nav-link-dropdown-arrow,
.nav-item-dropdown:focus-within .nav-link-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-cta {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION & DECORATIVE GLOWS
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 10%, #081d2f 0%, var(--bg-primary) 70%);
}

.hero-bg-glows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.glow-1, .glow-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
}

.glow-1 {
  background: var(--accent-cyan);
  top: -10%;
  left: 10%;
}

.glow-2 {
  background: var(--accent-gold);
  bottom: 10%;
  right: 10%;
}

.hero-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero-header-text {
  text-align: center;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   CAROUSEL CONTAINER
   ========================================================================== */
.carousel-wrapper {
  position: relative;
  width: 100%;
  margin-top: 20px;
  padding: 0 40px;
}

.carousel-scroller {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  gap: 40px;
  padding: 20px 0;
}

.carousel-scroller::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.carousel-item {
  width: 100%;
  flex-shrink: 0;
  scroll-snap-align: center;
  transition: opacity 0.5s;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
  background: rgba(11, 41, 66, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

/* Custom glow overlay per project card */
.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

#project-saas .project-card::after { background: var(--accent-cyan); }
#project-ecommerce .project-card::after { background: var(--accent-teal); }
#project-agency .project-card::after { background: var(--accent-gold); }

.project-info {
  position: relative;
  z-index: 10;
}

.project-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.cat-cyan { background: rgba(30, 166, 184, 0.15); color: var(--accent-cyan); }
.cat-teal { background: rgba(12, 93, 102, 0.15); color: #2dd4bf; }
.cat-gold { background: rgba(138, 91, 0, 0.15); color: #f59e0b; }

.project-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
  font-weight: 800;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.project-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 24px;
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
}

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

.stat-num {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 700;
}

#project-saas .stat-num { color: var(--accent-cyan); }
#project-ecommerce .stat-num { color: #2dd4bf; }
#project-agency .stat-num { color: #f59e0b; }

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.project-actions {
  display: flex;
  gap: 16px;
}

/* ==========================================================================
   CAROUSEL NAVIGATION CONTROLS
   ========================================================================== */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.carousel-control:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.carousel-control.prev { left: -10px; }
.carousel-control.next { right: -10px; }

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.indicator-dot {
  width: 24px;
  height: 5px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 0;
  padding: 0;
}

.indicator-dot.active {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
  width: 48px;
}

.portfolio-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  text-align: center;
  font-family: var(--font-headings);
  border-top: 1px dashed var(--glass-border);
  padding-top: 24px;
}

.portfolio-cta span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.btn-build-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 166, 184, 0.08);
  border: 1px solid var(--accent-cyan);
  padding: 10px 22px;
  border-radius: 8px;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-medium);
  box-shadow: 0 4px 15px rgba(30, 166, 184, 0.05);
}

.btn-build-cta:hover {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-teal) 100%);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-cyan-glow);
}

/* ==========================================================================
   CSS DEVICE MOCKUPS (LAPTOP, IPAD, IPHONE)
   ========================================================================== */
.project-showcase {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.device-group {
  position: relative;
  width: 100%;
  height: 400px;
  perspective: 1000px;
}

/* Generic Device Mockup class */
.device-mockup {
  position: absolute;
  transition: var(--transition-smooth);
}

/* screen content logic */
.screen-content {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  border-radius: inherit;
  transition: background-position 4s ease-in-out;
}

/* Hover effect on project card scrolls screenshot */
.project-card:hover .screen-content {
  background-position: bottom center;
}

/* MACBOOK MOCKUP DESIGN */
.macbook-mockup {
  width: 76%;
  left: 12%;
  bottom: 30px;
  z-index: 2;
}

.macbook-screen {
  aspect-ratio: 16/10;
  width: 100%;
  background: #000;
  border: 12px solid #1e1e1e;
  border-bottom: 4px solid #1e1e1e;
  border-radius: 16px 16px 0 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.macbook-screen .screen-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 60%);
  z-index: 5;
  pointer-events: none;
}

.macbook-screen .screen-camera {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #111;
  z-index: 10;
}

.macbook-base {
  width: 114%;
  height: 14px;
  background: linear-gradient(to bottom, #d1d5db 0%, #9ca3af 50%, #4b5563 100%);
  border-radius: 0 0 10px 10px;
  position: relative;
  left: -7%;
  box-shadow: 0 8px 12px rgba(0,0,0,0.4);
}

.macbook-base .base-notch {
  width: 60px;
  height: 6px;
  background: #2e3035;
  border-radius: 0 0 6px 6px;
  margin: 0 auto;
}

/* IPAD MOCKUP DESIGN */
.ipad-mockup {
  width: 38%;
  left: -2%;
  bottom: 50px;
  z-index: 1;
  transform: rotateY(12deg) rotateX(2deg) rotateZ(1deg);
}

.ipad-screen {
  aspect-ratio: 3/4;
  width: 100%;
  background: #000;
  border: 14px solid #111;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: -10px 10px 25px rgba(0,0,0,0.4);
}

.ipad-screen .screen-camera {
  position: absolute;
  top: 50%;
  left: -9px;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #333;
}

.ipad-screen .home-indicator {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  opacity: 0.8;
}

/* IPHONE MOCKUP DESIGN */
.iphone-mockup {
  width: 22%;
  right: 2%;
  bottom: 10px;
  z-index: 3;
  transform: rotateY(-12deg) rotateX(1deg) rotateZ(-1deg);
}

.iphone-screen {
  aspect-ratio: 9/19.5;
  width: 100%;
  background: #000;
  border: 8px solid #222;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 10px 10px 25px rgba(0,0,0,0.5);
}

.iphone-screen .dynamic-island {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 12px;
  border-radius: 6px;
  background: #000;
  z-index: 10;
}

.iphone-screen .home-bar {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #fff;
  border-radius: 1.5px;
  opacity: 0.8;
  z-index: 10;
}

/* ==========================================================================
   CAROUSEL SNAP / HOVER FLOATING EFFECTS
   ========================================================================== */
.project-card:hover .macbook-mockup {
  transform: scale(1.02) translate3d(0, -10px, 15px);
  z-index: 5;
}

.project-card:hover .ipad-mockup {
  transform: translate3d(-20px, -15px, 0) scale(1.03) rotateY(18deg);
  z-index: 1;
}

.project-card:hover .iphone-mockup {
  transform: translate3d(20px, -20px, 40px) scale(1.06) rotateY(-18deg);
  z-index: 10;
}

/* Fallback class for browsers that do not support scroll-state queries (Safari, Firefox) */
.carousel-item.active .project-card {
  border-color: rgba(30, 166, 184, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

/* Scroll-state queries for snapped highlighting (Chrome/Edge 133+) */
@supports (container-type: scroll-state) {
  .carousel-item {
    container-type: scroll-state;
  }

  @container scroll-state(snapped: x) {
    .project-card {
      border-color: rgba(30, 166, 184, 0.4);
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    }
  }
}

/* ==========================================================================
   ENTERPRISE PARTNERS BAR
   ========================================================================== */
.trust-bar-section {
  padding: 32px 0;
  background: rgba(11, 41, 66, 0.25);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.trust-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-logo-item {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  opacity: 0.75;
  transition: var(--transition-fast);
}

.trust-logo-item:hover {
  opacity: 1;
  color: var(--text-primary);
  transform: translateY(-1px);
}

.concept-disclosure {
  flex-basis: 100%;
  max-width: 850px;
  border-left: 2px solid var(--accent-cyan);
  padding-left: 14px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ==========================================================================
   NEW GENERATION BENTO GRID LAYOUT
   ========================================================================== */
.services-section {
  padding: 100px 0;
  position: relative;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px auto;
}

.section-badge {
  color: var(--accent-cyan);
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: rgba(11, 41, 66, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-card-content {
  padding: 48px;
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Card hover glow edge */
.bento-card:hover {
  transform: translateY(-8px);
  border-color: rgba(30, 166, 184, 0.45);
  box-shadow: 0 20px 40px rgba(30, 166, 184, 0.12);
}

.service-num {
  font-family: var(--font-headings);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--color-deep-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.85;
  letter-spacing: -0.04em;
}

.bento-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ==========================================================================
   PRODUCTION PIPELINE / TECH CARD SECTION
   ========================================================================== */
.tech-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.tech-card-item {
  background: rgba(11, 41, 66, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.tech-card-item:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 30px rgba(30, 166, 184, 0.15);
}

.tech-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 16px;
  display: inline-block;
}

.tag-cyan { background: rgba(30, 166, 184, 0.1); color: var(--accent-cyan); }
.tag-teal { background: rgba(45, 212, 191, 0.1); color: #2dd4bf; }
.tag-gold { background: rgba(138, 91, 0, 0.15); color: #f59e0b; }

.tech-card-item h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.tech-card-item p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ==========================================================================
   INTERACTIVE WORKSPACE WIDGETS
   ========================================================================== */
.widget-container {
  margin-top: auto;
  width: 100%;
  padding-top: 10px;
}

/* 1. Timeline Widget */
.mini-timeline-ui {
  background: rgba(5, 16, 26, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.timeline-ui-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-play {
  color: var(--accent-cyan);
  font-size: 0.8rem;
  cursor: pointer;
  animation: pulsePlay 1.5s infinite alternate;
}

.timeline-ui-slider {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  position: relative;
}

.slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 65%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--color-deep-teal));
  border-radius: inherit;
}

.slider-handle {
  position: absolute;
  left: 65%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px var(--accent-cyan);
}

.timeline-ui-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* 2. Renderer scanline animation widget */
.mini-renderer-ui {
  background: rgba(5, 16, 26, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.render-viewport {
  aspect-ratio: 16/9;
  width: 100%;
  background: radial-gradient(circle at center, #0a2238 0%, #03080e 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.render-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  opacity: 0.7;
  animation: scan 2.5s linear infinite;
}

.render-overlay {
  font-family: var(--font-headings);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

/* 3. Audio / Waveform visual equalizer widget */
.mini-voice-ui {
  background: rgba(5, 16, 26, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.voice-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 0.75rem;
}

.voice-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  flex: 1;
}

.wave-bar {
  width: 3px;
  height: 40%;
  background: linear-gradient(to top, var(--accent-gold), #f59e0b);
  border-radius: 1.5px;
  animation: bounce 1s ease-in-out infinite alternate;
  transform-origin: bottom;
}

.wave-bar:nth-child(1) { height: 25%; animation-delay: 0.1s; }
.wave-bar:nth-child(2) { height: 60%; animation-delay: 0.3s; }
.wave-bar:nth-child(3) { height: 45%; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 85%; animation-delay: 0.5s; }
.wave-bar:nth-child(5) { height: 50%; animation-delay: 0.4s; }
.wave-bar:nth-child(6) { height: 75%; animation-delay: 0.1s; }
.wave-bar:nth-child(7) { height: 30%; animation-delay: 0.3s; }

/* 4. Canvas connection node widget */
.mini-figma-ui {
  background: rgba(5, 16, 26, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.figma-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan-glow);
  position: relative;
  z-index: 5;
}

.node-1 { background: var(--accent-cyan); }
.node-2 {
  border-color: var(--accent-teal);
  box-shadow: 0 0 6px var(--accent-teal-glow);
  animation: pulseNode 1.8s infinite alternate;
}
.node-3 { border-color: var(--accent-gold); box-shadow: 0 0 6px var(--accent-gold-glow); }

.figma-connector {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* 5. Database Widget */
.mini-database-ui {
  background: rgba(5, 16, 26, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  height: 52px;
  justify-content: center;
}

.db-search {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.62rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.db-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.db-item {
  flex: 1;
  height: 20px;
  background: rgba(12, 93, 102, 0.2);
  border: 1px solid var(--accent-teal);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 0.65rem;
  transition: var(--transition-fast);
}

.db-item:hover {
  background: var(--accent-teal);
  transform: scale(1.05);
}

/* 6. Sequence Compiler Widget */
.mini-compiler-ui {
  background: rgba(5, 16, 26, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  height: 52px;
}

.compiler-loader {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headings);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
}

.compiler-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(138, 91, 0, 0.2);
  border-top: 2px solid var(--accent-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes scan {
  0% { transform: translateY(0); }
  50% { transform: translateY(32px); }
  100% { transform: translateY(0); }
}

@keyframes bounce {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1.1); }
}

@keyframes pulsePlay {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 1; }
}

@keyframes pulseNode {
  0% { transform: scale(1); box-shadow: 0 0 4px var(--accent-teal-glow); }
  100% { transform: scale(1.3); box-shadow: 0 0 10px var(--accent-teal); }
}

/* ==========================================================================
   TECHNICAL INFRASTRUCTURE SECTION
   ========================================================================== */
.tech-stack-section {
  padding: 100px 0;
  position: relative;
  background: var(--bg-secondary);
}

.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.tech-stack-card {
  background: rgba(11, 41, 66, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  animation: bobUp 6s ease-in-out infinite alternate;
}

/* Asynchronous delays for bobbing effect */
.tech-stack-card:nth-child(1) { animation-delay: 0s; }
.tech-stack-card:nth-child(2) { animation-delay: 1.2s; }
.tech-stack-card:nth-child(3) { animation-delay: 2.4s; }
.tech-stack-card:nth-child(4) { animation-delay: 0.6s; }
.tech-stack-card:nth-child(5) { animation-delay: 1.8s; }
.tech-stack-card:nth-child(6) { animation-delay: 3s; }

@keyframes bobUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.tech-stack-card:hover {
  animation-play-state: paused;
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  z-index: 10;
}

.tech-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.tech-icon {
  font-size: 2.2rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.tech-stack-card:hover .tech-icon {
  transform: scale(1.15) rotate(8deg);
}

.tech-stack-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tech-stack-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Hover Accent Colors & Shadows for each tech */
.tech-docker:hover {
  border-color: #0db7ed;
  box-shadow: 0 15px 30px rgba(13, 183, 237, 0.15);
}
.tech-docker:hover .tech-icon { color: #0db7ed; }

.tech-github:hover {
  border-color: #f8fafc;
  box-shadow: 0 15px 30px rgba(248, 250, 252, 0.1);
}
.tech-github:hover .tech-icon { color: #f8fafc; }

.tech-sql:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 30px var(--accent-cyan-glow);
}
.tech-sql:hover .tech-icon { color: var(--accent-cyan); }

.tech-aws:hover {
  border-color: #ff9900;
  box-shadow: 0 15px 30px rgba(255, 153, 0, 0.15);
}
.tech-aws:hover .tech-icon { color: #ff9900; }

.tech-react:hover {
  border-color: #61dafb;
  box-shadow: 0 15px 30px rgba(97, 218, 251, 0.15);
}
.tech-react:hover .tech-icon { color: #61dafb; }

.tech-node:hover {
  border-color: #68a063;
  box-shadow: 0 15px 30px rgba(104, 160, 99, 0.15);
}
.tech-node:hover .tech-icon { color: #68a063; }

/* ==========================================================================
   CONTACT SECTION & GLOBAL OFFICES GRID
   ========================================================================== */
.contact-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.contact-info-panel {
  max-width: 500px;
}

.contact-info-panel .section-title {
  margin-bottom: 24px;
}

.contact-meta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
}

.meta-item i {
  font-size: 1.2rem;
  color: var(--accent-cyan);
  width: 24px;
}

/* Global Offices Grid */
.offices-grid {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.office-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition-fast);
}

.office-card:hover {
  background: rgba(30, 166, 184, 0.05);
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.office-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.office-badge-dot.colombo { background: #10b981; box-shadow: 0 0 8px #10b981; }
.office-badge-dot.singapore { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.office-badge-dot.london { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

.office-contact-link {
  color: var(--accent-cyan);
  text-decoration: underline;
  font-weight: 600;
  transition: var(--transition-fast);
}

.office-contact-link:hover {
  color: var(--accent-teal);
}

.office-details {
  display: flex;
  flex-direction: column;
}

.office-location-name {
  font-family: var(--font-headings);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.office-details p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.contact-form-panel {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.form-submit {
  align-self: flex-start;
}

/* ==========================================================================
   BUILDER CONFIGURATOR BANNER SECTION
   ========================================================================== */
.build-configurator-section {
  padding: 80px 0;
  position: relative;
  z-index: 10;
}

.build-grid-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  width: 100%;
}

@media (max-width: 968px) {
  .build-grid-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.build-form-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.build-step-title {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 10px;
}

.build-step-title span {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.3rem;
  font-weight: 800;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

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

.option-item {
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
}

.option-item:hover {
  background: rgba(30, 166, 184, 0.05);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.option-item.selected {
  background: rgba(30, 166, 184, 0.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(30, 166, 184, 0.15);
}

.option-item:focus-visible {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(30, 166, 184, 0.2);
}

.form-helper {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.form-status {
  min-height: 1.25rem;
  color: #7dd3c7;
  font-size: 0.78rem;
}

.option-item i {
  font-size: 1.4rem;
  color: var(--accent-cyan);
}

.option-item h5 {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-primary);
}

.option-item p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin: 0;
}

.build-preview-card {
  background: rgba(5, 16, 26, 0.75);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
  position: sticky;
  top: 100px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.blueprint-screen {
  border: 1px dashed var(--accent-teal);
  border-radius: 12px;
  padding: 24px;
  background: rgba(0,0,0,0.4);
  flex-grow: 1;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.blueprint-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(12, 93, 102, 0.15) 1px, transparent 1px);
  background-size: 15px 15px;
  pointer-events: none;
}

.blueprint-nodes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  position: relative;
  z-index: 5;
}

.blueprint-node-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(30, 166, 184, 0.15);
  background: rgba(5, 16, 26, 0.85);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-family: var(--font-headings);
  color: var(--text-primary);
}

.blueprint-node-row span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blueprint-node-row span i {
  color: var(--accent-cyan);
}

.blueprint-value {
  font-weight: 700;
  color: var(--accent-teal);
}

.btn-generate-bp {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-teal) 100%);
  border: none;
  border-radius: 10px;
  color: var(--bg-primary);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px var(--accent-cyan-glow);
}

.btn-generate-bp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-cyan-glow);
}

.btn-whatsapp-send-bp {
  width: 100%;
  padding: 14px;
  background: #25d366;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-send-bp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.blueprint-loader {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--accent-cyan);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.blueprint-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(30, 166, 184, 0.1);
  border-top: 3px solid var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.blueprint-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.blueprint-empty i {
  font-size: 2.2rem;
  opacity: 0.3;
}

/* Cloud Publisher Widget Styles */
.mini-publisher-ui {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.publish-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headings);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.publish-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse-glow-pub 1.5s infinite alternate;
}

.publish-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
  animation: progress-slide-pub 3s infinite linear;
}

@keyframes progress-slide-pub {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes pulse-glow-pub {
  0% { opacity: 0.3; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* Feedback Console Widget Styles */
.mini-feedback-ui {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: var(--font-headings);
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  animation: float-widget-fb 3s infinite ease-in-out;
}

.feedback-check {
  font-size: 0.8rem;
}

@keyframes float-widget-fb {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 40px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   FLOATING WHATSAPP CONCIERGE SUPPORT WIDGET
   ========================================================================== */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  font-family: var(--font-body);
}

.whatsapp-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  border: none;
  color: white;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  position: relative;
  transition: var(--transition-fast);
  animation: triggerPulse 2s infinite alternate;
}

.whatsapp-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.45);
}

.whatsapp-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid white;
}

.whatsapp-popup {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 1010;
}

.whatsapp-popup.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.popup-header {
  background: rgba(11, 41, 66, 0.8);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.popup-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(30, 166, 184, 0.1);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  position: relative;
  font-size: 1.1rem;
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--bg-secondary);
}

.popup-title-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.popup-title-info span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.popup-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.popup-close:hover {
  color: var(--text-primary);
}

.popup-body {
  padding: 20px;
  max-height: 250px;
  overflow-y: auto;
  background: rgba(5, 16, 26, 0.5);
}

.popup-message {
  background: rgba(11, 41, 66, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 0 16px 16px 16px;
  padding: 12px 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  position: relative;
  max-width: 90%;
}

.message-time {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 6px;
}

.popup-footer {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--glass-border);
}

.popup-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.btn-demo {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-demo:hover {
  background: rgba(30, 166, 184, 0.05);
  border-color: var(--accent-cyan);
}

@keyframes triggerPulse {
  0% { transform: scale(1); box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3); }
  100% { transform: scale(1.05); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5); }
}

/* ==========================================================================
   RESPONSIVE LAYOUT BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .project-card {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 36px;
  }

  .device-group {
    height: 340px;
  }

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

  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

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

  .nav-links.mobile-open {
    position: absolute;
    top: 80px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: rgba(5, 16, 26, 0.98);
    padding: 14px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
  }

  .nav-links.mobile-open .nav-link {
    display: block;
    padding: 10px 8px;
  }

  .nav-links.mobile-open .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 0 4px 12px;
  }

  .nav-cta {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .carousel-wrapper {
    padding: 0;
  }

  .carousel-control {
    display: none; /* Hide arrow controls on touch screens, rely on touch swipe */
  }

  .device-group {
    height: 280px;
  }

  .macbook-mockup {
    width: 80%;
    left: 10%;
  }

  .ipad-mockup {
    width: 42%;
    left: -5%;
  }

  .iphone-mockup {
    width: 25%;
    right: -2%;
  }

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

  .bento-card.span-2 {
    grid-column: span 1;
  }

  .form-row {
    flex-direction: column;
    gap: 24px;
  }

  .whatsapp-widget {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-popup {
    width: min(310px, calc(100vw - 40px));
  }
}

@media (max-width: 480px) {
  .project-card {
    padding: 24px 16px;
  }

  .bento-card-content {
    padding: 24px;
  }

  .device-group {
    height: 220px;
  }

  .project-actions {
    flex-direction: column;
    width: 100%;
  }

  .project-actions a {
    justify-content: center;
    width: 100%;
  }

  .contact-form-panel {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
