:root {
  /* Dynamic Palette - Cyber Emerald */
  --bg: #020617; /* Deepest Navy */
  --bg-darker: #000000;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(16, 185, 129, 0.1); /* Emerald Tinted */
  --border-hover: rgba(16, 185, 129, 0.3);
  --text: #ffffff;
  --muted: #94a3b8;
  --primary: #10b981; /* Emerald */
  --accent: #06b6d4; /* Electric Cyan */
  --glow-1: rgba(16, 185, 129, 0.2);
  --glow-2: rgba(6, 182, 212, 0.2);
  
  /* Layout */
  --wrapper: 1240px;
  --gap: 32px;
  --radius: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--primary);
  color: #fff;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  background-image: 
    radial-gradient(at 0% 0%, var(--glow-1) 0, transparent 50%), 
    radial-gradient(at 100% 0%, var(--glow-2) 0, transparent 50%);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .hero-badge {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

p {
  font-family: 'Poppins', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

ul { list-style: none; }

.wrapper {
  max-width: var(--wrapper);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 120px 0;
}

.section-title {
  color: #fff;
}

.section-desc {
  color: #fff !important;
}

.bg-darker { background-color: var(--bg-darker); }

/* --- Global Elements --- */

.noise-texture {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: overlay;
}

/* --- Background Glow Blobs --- */
.glow-blobs {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  filter: blur(120px);
}

.glow-blob {
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  opacity: 0.4;
  animation: blob-float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -20%;
  left: -10%;
  animation-duration: 25s;
}

.blob-2 {
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  bottom: -10%;
  right: -5%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.blob-3 {
  background: radial-gradient(circle, #34d399 0%, transparent 70%);
  top: 40%;
  left: 30%;
  width: 40vw;
  height: 40vw;
  opacity: 0.2;
  animation-duration: 35s;
  animation-delay: -10s;
}

@keyframes blob-float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5%, 5%) scale(1.1); }
  66% { transform: translate(-5%, 8%) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* --- Background Patterns --- */
.bg-pattern-grid {
  background-image: 
    linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.text-glow {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
}

/* --- Navigation --- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  padding: 24px 0;
  z-index: 100;
  transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: rgba(3, 3, 3, 0.85);
  backdrop-filter: none;
  border-bottom: none;
  padding: 16px 0;
}

.nav-container {
  max-width: var(--wrapper);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  height: 60px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  transition: height 0.3s ease;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
  user-select: none;
}

.duke-txt {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: #3b82f6; /* Electric Blue */
  letter-spacing: -0.04em;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.force-txt {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.brand-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #94a3b8;
  margin-top: 5px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.8;
}

.footer-info .brand-text {
  margin-bottom: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover { color: #fff; }

.nav-cta {
  background: #fff;
  color: #000 !important;
  padding: 8px 20px;
  border-radius: 99px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
}

.nav-cta:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
  background: var(--primary);
  color: #fff !important;
}

/* --- Hero Section --- */

.hero-section {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 100px;
  z-index: 1;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: grayscale(1) contrast(1.2);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 20%, var(--bg) 90%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--accent);
}

.hero-title {
  font-size: clamp(1.9rem, 5.8vw, 4rem);
  margin-bottom: 20px;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.hero-carousel-title {
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel-text {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.42s ease, transform 0.42s ease;
  will-change: opacity, transform;
}

.hero-carousel-main {
  color: #fff;
}

.hero-carousel-accent {
  white-space: nowrap;
}

.hero-carousel-text.is-exiting {
  opacity: 0;
  transform: translateY(14px);
}

.hero-carousel-text.is-entering {
  opacity: 0;
  transform: translateY(-14px);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto 48px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn {
  padding: 18px 40px;
  border-radius: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary {
  background: #fff;
  color: #000;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: #fff;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover { 
  background: rgba(255, 255, 255, 0.08); 
  border-color: #fff;
  transform: translateY(-5px);
}

.hero-footer {
  position: relative;
  margin-top: 80px;
  z-index: 1;
}

/* Smooth hero entrance on initial page load */
.hero-content .reveal,
.hero-footer.reveal {
  opacity: 0;
  transform: none;
}

.hero-content .reveal.visible,
.hero-footer.reveal.visible {
  animation: heroFadeIn 1s ease forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: 0.3s ease;
}

.metric-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
  border-color: var(--primary);
}

.metric-value {
  font-size: 40px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  color: #fff;
  text-shadow: 0 0 20px var(--glow-1);
}

.metric-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Showcase Grid --- */

.bento-section {
  position: relative;
  z-index: 10;
  background-color: #01040f;
  box-shadow: 0 -100px 100px #010412;
  overflow: hidden;
}

.bento-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: -1;
}

.bento-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(16, 185, 129, 0.1) 0%, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  animation: mesh-pulse 4s ease-in-out infinite;
  z-index: -1;
}

@keyframes mesh-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.section-header {
  margin-bottom: 56px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.section-header .section-desc {
  max-width: 760px;
  margin: 0 auto;
  margin-bottom: 120px;
}

.bento-section .section-title {
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.bento-section .section-desc {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
}

.services-wrapper {
  display: flex;
  flex-direction: column;
  gap: 124px;
}

.category-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 0;
}

.category-info {
  margin-bottom: 0;
  max-width: 760px;
  text-align: left;
  padding: 0;
}

.services-wrapper > .category-block:nth-child(even) .category-info {
  order: initial;
  padding: 0;
  text-align: left;
}

.services-wrapper > .category-block:nth-child(even) {
  grid-template-columns: none;
}

.services-wrapper > .category-block:nth-child(even) .zigzag-container {
  order: initial;
}


.category-number {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: var(--primary);
  display: block;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.category-number {
  display: none !important;
}

.category-name {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff !important;
  font-weight: 700;
}

.category-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  max-width: 760px;
}

.zigzag-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.showcase-card {
  --overlay-1: 16, 185, 129;
  --overlay-2: 6, 182, 212;
  --overlay-dark: 2, 6, 23;
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.showcase-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 30px 60px rgba(16, 185, 129, 0.15);
}

.showcase-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(0.5);
  transition: 0.8s ease;
}

.showcase-card:hover .showcase-video-bg {
  opacity: 0.78;
  filter: grayscale(0);
}

.showcase-content {
  position: relative;
  z-index: 10;
  padding: 28px;
  width: 100%;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.6) 50%, transparent 100%);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: 0.6s ease;
}

.showcase-card:hover .showcase-content {
  padding-bottom: 30px;
}

@media (max-width: 767px) {
  .showcase-card:nth-child(3n+2) {
    transform: none;
  }
}

.showcase-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(0.5);
  transition: transform 0.8s ease, opacity 0.6s ease;
}

.showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.08) 60%, transparent 100%);
  opacity: 1;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(var(--overlay-1), 0.24) 0%,
    rgba(var(--overlay-2), 0.18) 45%,
    rgba(var(--overlay-dark), 0.55) 100%
  );
  opacity: 0.62;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.showcase-card:hover::before {
  opacity: 0;
}

.showcase-card:hover::after {
  opacity: 0;
}


.showcase-card[data-category="Protection & Security"] {
  --overlay-1: 59, 130, 246;
  --overlay-2: 6, 182, 212;
}

.showcase-card[data-category="Infrastructure & Hosting"] {
  --overlay-1: 168, 85, 247;
  --overlay-2: 30, 64, 175;
}

.showcase-card[data-category="Development & Products"] {
  --overlay-1: 249, 115, 22;
  --overlay-2: 236, 72, 153;
}

.showcase-card[data-category="Specialized Technology & Intelligence"] {
  --overlay-1: 139, 92, 246;
  --overlay-2: 59, 130, 246;
}

.showcase-card[data-category="Business Operations"] {
  --overlay-1: 56, 189, 248;
  --overlay-2: 30, 58, 138;
}

.showcase-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.15);
}

.showcase-card:hover .showcase-video-bg {
  opacity: 0.78;
  filter: grayscale(0);
  transform: scale(1.1);
}

.showcase-content {
  position: relative;
  z-index: 3;
  transform: translateY(20px);
  transition: transform 0.5s ease;
}

.showcase-card:hover .showcase-content {
  transform: translateY(0);
}

/* Section 2 card content alignment fix */
.bento-section .showcase-card {
  align-items: stretch;
}

.bento-section .showcase-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  gap: 8px;
  transform: none;
}

.bento-section .showcase-card:hover .showcase-content {
  transform: none;
}

.showcase-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  margin-bottom: 12px;
}

.showcase-title {
  font-size: 28px;
  margin-bottom: 12px;
  color: #fff;
}

.showcase-desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 90%;
  opacity: 1;
}

.showcase-list {
  display: none; /* Managed by JS for Modal population */
}

/* --- Service Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(25px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: rgba(3, 3, 3, 0.82);
  backdrop-filter: blur(50px);
  border: 1px solid var(--border);
  border-radius: 40px;
  width: 100%;
  max-width: 620px;
  position: relative;
  transform: scale(0.9) translateY(40px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9), 0 0 80px var(--glow-1);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 48px 48px 24px;
}

.modal-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
  display: inline-block;
}

.modal-title {
  font-size: 36px;
  color: #fff;
  letter-spacing: -0.02em;
}

.modal-body {
  padding: 0 48px 48px;
}

.modal-list {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  display: grid;
  gap: 20px;
}

.modal-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.modal-list-item::before {
  content: "✦";
  color: var(--accent);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
  font-size: 14px;
  margin-top: 4px;
}

.close-modal-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-modal-btn:hover {
  background: #fff;
  color: #000;
  transform: rotate(90deg) scale(1.1);
}

.show-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #fff;
  padding: 8px 16px;
  border-radius: 99px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 16px;
  align-self: flex-start;
  position: relative;
  z-index: 5;
}

.show-details-btn:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about-section {
  position: relative;
  z-index: 10;
  background-color: #01040f;
  overflow: hidden;
  padding: 140px 0;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: -1;
}

.about-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(16, 185, 129, 0.08) 0%, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  animation: mesh-pulse 4s ease-in-out infinite;
  z-index: -1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 100px;
  align-items: center;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-copy .section-title,
.about-copy .section-desc {
  text-align: left;
}

.about-copy .section-desc {
  color: #fff !important;
}

.story-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

.about-visual {
  height: 600px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.about-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-item {
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
}

.story-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.1);
}

.story-item h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
  letter-spacing: -0.01em;
}

.story-item p {
  font-size: 16px;
  color: #a1a1aa;
  line-height: 1.7;
}


/* --- Contact Section --- */

.contact-section {
  position: relative;
  z-index: 10;
  background-color: #000;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 0% 100%, rgba(6, 182, 212, 0.08) 0, transparent 40%),
    linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
  pointer-events: none;
  opacity: 0.8;
}

.contact-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border-radius: 48px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(20px);
  min-height: 650px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.contact-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px;
  overflow: hidden;
}

.contact-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 20%, transparent 100%);
  z-index: 1;
}

.contact-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.contact-content .section-title {
  font-size: 48px;
  margin-bottom: 24px;
  text-align: left;
}

.contact-content .section-desc {
  text-align: left;
  max-width: 450px;
  margin-bottom: 40px;
  font-size: 18px;
}

.contact-info-pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info-pills span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  width: fit-content;
}

.contact-form-container {
  padding: 60px;
  background: rgba(20, 20, 20, 0.3);
  backdrop-filter: blur(40px);
  display: flex;
  align-items: center;
}

.contact-form {
  width: 100%;
  display: grid;
  gap: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: #111;
  color: #fff;
}

.btn-block {
  width: 100%;
}

@media (max-width: 991px) {
  .contact-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .contact-visual {
    padding: 60px 40px;
    height: 400px;
  }
  
  .contact-form-container {
    padding: 60px 40px;
  }
}

@media (max-width: 576px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-content .section-title {
    font-size: 32px;
  }
}

/* --- Footer --- */

.site-footer {
  position: relative;
  z-index: 10;
  padding: 120px 0 60px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 24px;
}

.footer-info p {
  max-width: 400px;
  color: var(--muted);
}

.footer-grid h4 {
  margin-bottom: 24px;
  font-size: 16px;
}

.footer-grid a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-grid a:hover { color: #fff; }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* --- Animations --- */

.reveal {
  opacity: 0;
  transition: 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left { transform: translateX(-120px); }
.reveal-right { transform: translateX(120px); }

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Integrated Services card entrance: smooth left/right */
.services-wrapper .showcase-card.reveal {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.services-wrapper .showcase-card.reveal.reveal-left {
  transform: translateX(-56px);
}

.services-wrapper .showcase-card.reveal.reveal-right {
  transform: translateX(56px);
}

.services-wrapper .showcase-card.reveal.visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 1024px) {
  .zigzag-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .zigzag-container {
    grid-template-columns: 1fr;
  }
  
  .category-block { margin-bottom: 0; }
}

/* Mobile Adjustments for Categories */
@media (max-width: 1024px) {
  .category-block {
    gap: 24px;
  }
  
  .category-info {
    position: static;
    padding: 0;
    text-align: left;
  }

  .services-wrapper > .category-block:nth-child(even) .category-desc {
    margin-left: 0;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-featured, .bento-wide { grid-column: span 2; }
}

@media (max-width: 767px) {
  .bento-section {
    box-shadow: none !important;
  }
  .bento-section::after {
    display: none !important;
  }

  .hero-section {
    position: relative;
    min-height: auto;
    padding-top: 88px;
    padding-bottom: 36px;
  }
  .hero-content {
    padding: 0 2px;
  }
  .hero-badge {
    font-size: 11px;
    padding: 6px 14px;
    margin-bottom: 12px;
  }
  .hero-title {
    font-size: clamp(1.7rem, 7.2vw, 2.3rem);
    line-height: 1.06;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
  }
  .hero-carousel-title {
    min-height: 3.4em;
  }
  .hero-subtitle {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 auto 16px;
    max-width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
  }
  .hero-footer {
    margin-top: 36px;
  }
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 18px;
  }
  .metric-item {
    padding: 14px;
    gap: 4px;
  }
  .metric-value {
    font-size: 28px;
  }
  .metric-label {
    font-size: 10px;
  }

  .section-padding { padding: 80px 0; }
  .service-hero { 
    height: auto; 
    min-height: 60vh; 
    padding: 120px 24px 60px; 
  }
  .service-hero h1 { 
    font-size: clamp(36px, 12vw, 56px); 
    line-height: 1;
    margin-bottom: 24px;
  }
  .details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }
  .detail-card {
    padding: 30px 24px;
    border-radius: 24px;
  }
  .service-back-btn {
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    font-size: 12px;
  }
  .navbar { padding: 15px 0; }
  
  .menu-toggle { 
    display: flex; 
    margin-right: 10px;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(25px) saturate(1.8);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 80px 24px;
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
    visibility: visible;
  }

  .nav-links a {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
  }
  
  .nav-links .nav-cta {
    background: var(--primary);
    color: #fff !important;
    padding: 14px 40px;
    font-size: 18px;
  }
  
  .hero-title { font-size: 2.8rem; }
  .hero-actions { flex-direction: column; }

  .section-header { margin-bottom: 36px; }
  .section-header .section-desc { margin-bottom: 48px; }
  .services-wrapper { gap: 72px; }
  .category-info { max-width: 100%; }
  .category-name { font-size: 26px; margin-bottom: 12px; }
  .category-desc { max-width: 100%; font-size: 15px; line-height: 1.5; }
  
  .about-grid { 
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-visual { height: 350px; }
  
  .zigzag-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .showcase-card {
    min-height: auto;
    flex-direction: column !important;
    align-items: flex-start;
  }
  .showcase-content {
    width: 100%;
    padding: 22px;
    background: none !important;
    text-align: left !important;
    align-items: flex-start !important;
  }
  .showcase-card::before,
  .showcase-card::after {
    content: none !important;
    display: none !important;
    background: none !important;
    opacity: 0 !important;
  }
  .showcase-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
  }
  .showcase-card:hover .showcase-video-bg {
    transform: none !important;
    opacity: 0.32 !important;
    filter: grayscale(0.45) !important;
  }
  .showcase-card:hover .showcase-content {
    transform: none !important;
    padding-bottom: 22px !important;
  }

  .form-grid { 
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .contact-container { 
    border-radius: 20px;
    min-height: auto;
  }
  .contact-visual { 
    padding: 32px 20px;
    min-height: 280px;
    height: auto;
  }
  .contact-content .section-title {
    font-size: clamp(2rem, 8vw, 2.4rem);
    line-height: 1.05;
    margin-bottom: 14px;
  }
  .contact-content .section-desc {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 22px;
    max-width: 100%;
  }
  .contact-info-pills span {
    width: 100%;
    font-size: 13px;
    padding: 10px 14px;
  }
  .contact-form-container { 
    padding: 28px 20px;
  }
  .contact-form {
    gap: 16px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 14px;
    padding: 11px 14px;
  }
  .contact-form .btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 18px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-glass { padding: 30px; }
  .contact-actions { flex-direction: column; }
}

/* Narrow tablet / large phone button width tuning */
@media (min-width: 577px) and (max-width: 767px) {
  .hero-actions .btn {
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .contact-form .btn,
  .btn-block {
    width: auto;
    min-width: 200px;
    max-width: 240px;
    justify-self: end;
    align-self: flex-end;
  }
}

/* Tablet button sizing */
@media (min-width: 768px) and (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .about-visual {
    order: 2;
    width: 100%;
    height: 420px;
  }

  .metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding-top: 20px;
  }

  .metric-item {
    padding: 12px;
    gap: 4px;
  }

  .metric-value {
    font-size: 28px;
  }

  .metric-label {
    font-size: 10px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .contact-visual {
    height: 360px;
    padding: 48px 32px;
  }

  .contact-form-container {
    padding: 36px 32px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
    gap: 14px;
  }

  .hero-actions .btn {
    width: auto;
    min-width: 180px;
    padding: 14px 24px;
    font-size: 15px;
  }

  .contact-form .btn,
  .btn-block {
    width: auto;
    min-width: 200px;
    max-width: 240px;
    justify-self: end;
    align-self: flex-end;
  }
}

/* --- Service Detail Page Styling --- */
.service-hero {
  height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 0 24px;
}

.service-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: brightness(0.7);
}

.service-hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
}

.service-hero .service-tag {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 24px;
  display: block;
  animation: fadeInDown 0.8s ease;
}

.service-hero h1 {
  font-size: clamp(48px, 9vw, 92px);
  color: #fff;
  letter-spacing: -0.05em;
  line-height: 0.85;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.service-back-btn {
  position: fixed;
  top: 40px;
  left: 40px;
  z-index: 1000;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(20px);
  padding: 12px 24px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-back-btn:hover {
  background: #fff;
  color: #000;
  transform: translateX(-8px);
}

.service-details-section {
  padding: 140px 0;
  background: #000;
  position: relative;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 80px;
}

.detail-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 48px;
  border-radius: 32px;
  transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.detail-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent);
  transform: translateY(-12px);
}

.detail-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, var(--glow-2), transparent 70%);
  opacity: 0;
  transition: 0.5s;
}

.detail-card:hover::before {
  opacity: 1;
}

.detail-icon-box {
  width: 56px;
  height: 56px;
  background: var(--glow-2);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 32px;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.1);
}

.detail-card h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.detail-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  line-height: 1.7;
}

.tech-spec-section {
  padding: 100px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.spec-item {
  padding: 24px;
  background: rgba(255, 255, 255, 0.01);
  border-left: 2px solid var(--accent);
}

.spec-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.spec-value {
  font-size: 18px;
  color: #fff;
  font-weight: 600;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Brand Text Logo Styles */
.brand-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-transform: none; /* User specified 'Duke Force' */
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.footer-brand {
    font-size: 1.8rem;
    margin-bottom: 20px;
}


/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float-wa 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
    background: #20ba59;
    color: white;
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    stroke-width: 2px;
}

@keyframes float-wa {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-icon {
        width: 24px;
        height: 24px;
    }
}


/* Custom Cursor Styles */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Final phone-safe contact overrides */
@media (max-width: 576px) {
  .wrapper {
    padding: 0 16px;
  }

  .hero-footer {
    margin-top: 24px;
  }

  .metrics-grid.wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }

  .metrics-grid {
    gap: 10px;
    padding-top: 14px;
  }

  .metric-item {
    padding: 12px 10px;
    border-radius: 14px;
  }

  .metric-value {
    font-size: 26px;
  }

  .metric-label {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .contact-section .wrapper {
    padding: 0 12px;
  }

  .contact-container {
    display: block !important;
    border-radius: 16px !important;
    min-height: 0 !important;
    overflow: hidden;
  }

  .contact-visual {
    min-height: 230px !important;
    height: auto !important;
    padding: 24px 16px !important;
  }

  .contact-form-container {
    display: block !important;
    padding: 20px 16px 22px !important;
  }

  .contact-content .section-title {
    font-size: 30px !important;
    line-height: 1.05 !important;
    margin-bottom: 10px !important;
  }

  .contact-content .section-desc {
    font-size: 15px !important;
    line-height: 1.45 !important;
    margin-bottom: 16px !important;
    max-width: 100% !important;
  }

  .contact-info-pills {
    gap: 8px;
  }

  .contact-info-pills span {
    width: 100% !important;
    padding: 9px 12px !important;
    font-size: 12px !important;
    white-space: normal;
    word-break: break-word;
  }

  .contact-form {
    gap: 12px !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .form-group label {
    font-size: 12px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100% !important;
    min-width: 0 !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
  }

  .form-group textarea {
    min-height: 110px;
  }

  .contact-form .btn,
  .btn-block {
    width: 100% !important;
    padding: 13px 16px !important;
    font-size: 16px !important;
  }
}

@media (max-width: 1024px) {
    .cursor-dot, .cursor-outline {
        display: none;
    }
}

a:hover ~ .cursor-outline,
button:hover ~ .cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}







/* Mobile Branding Adjustment */
@media (max-width: 768px) {
  .duke-txt, .force-txt {
    font-size: 24px;
  }
  .brand-tagline {
    font-size: 7px;
    letter-spacing: 0.12em;
  }
}
