/* ===================== RESET ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ===================== VARIABLES ===================== */
:root {
  --bg-main: #050b16;
  --primary: #00eaff;
  --secondary: #7b61ff;
  --text-main: #ffffff;
  --text-muted: #9fb3c8;
}

/* ===================== BODY ===================== */
body {
  margin: 0;
  background: var(--bg-main);
  font-family: Inter, Poppins, system-ui, sans-serif;
  overflow-x: hidden;
}

/*=======================LOGO============================*/

.ddacode-logo {
  width: 320px;
  max-width: 100%;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.25));
}

.ddacode-logo:hover {
  transform: scale(1.03);
  transition: 0.3s ease;
}


/* Hide system cursor ONLY on desktop */
@media (pointer: fine) {
  body { cursor: none; }
}

/* ===================== SECTION HEADERS ===================== */
.section-title {
  font-size: 40px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 70px;
}

/* ===================== SOFTWARE MILESTONES ===================== */
.tech-stack-section {
  position: relative;
  padding: 100px 8%;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at top, rgba(0,234,255,0.08), transparent 40%),
    radial-gradient(circle at bottom, rgba(123,97,255,0.08), transparent 40%);
}

/* ===================== TIMELINE ===================== */
.milestone-timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
  display: grid;
  gap: 55px;
  z-index: 3;
}

.milestone-timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  inset: 0 auto 0 auto;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--primary),
    transparent
  );
  opacity: 0.4;
}

/* ===================== MILESTONE CARD ===================== */
.tech-card {
  position: relative;
  padding: 36px 26px 36px 70px;
  background: rgba(255,255,255,0.04);
  border-left: 2px solid rgba(0,234,255,0.4);
  border-radius: 14px;
  color: var(--text-main);

  /* animation safety */
  opacity: 1;
  transform: translateY(0);
  will-change: transform, opacity;

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* hidden until JS reveals */
.tech-card[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
}

.tech-card::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 38px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 14px var(--primary);
  animation: pulse 2s infinite;
}

.tech-card h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 16px;
}

.tech-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(0,234,255,0.4);
}

/* ===================== ANIMATIONS ===================== */
@keyframes pulse {
  0% { box-shadow: 0 0 8px var(--primary); }
  50% { box-shadow: 0 0 22px var(--primary); }
  100% { box-shadow: 0 0 8px var(--primary); }
}

/* ===================== GRID BACKGROUND ===================== */
.grid-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: moveGrid 20s linear infinite;
  will-change: background-position;
}

@keyframes moveGrid {
  to { background-position: 80px 80px; }
}

/* ===================== BLINKING GRID ===================== */
.grid-blink {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.blink-cell {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(0,234,255,0.18);
  opacity: 0;
  animation: blink 3s infinite ease-in-out;
  will-change: opacity;
}

@keyframes blink {
  0%,100% { opacity: 0; }
  50% { opacity: 0.7; }
}

/* ===================== CUSTOMERS ===================== */
.customers-section {
  padding: 90px 8%;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(5,11,22,0.95),
    rgba(10,18,35,0.95)
  );
}

.customers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 26px;
  margin-top: 50px;
  position: relative;
  z-index: 3;
}

.customer-card {
  padding: 30px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,234,255,0.15);
  color: var(--text-main);
  transition: transform .4s, box-shadow .4s;
  overflow: hidden;
  position: relative;
}

.customer-card::before {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg,transparent,rgba(0,234,255,.25),transparent);
  transform:translateX(-100%);
  transition:.6s;
  pointer-events:none;
}

.customer-card:hover::before {
  transform:translateX(100%);
}

.customer-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow:0 0 30px rgba(0,234,255,.35);
}

/* ===================== CURSOR ===================== */
.digital-cursor {
  position: fixed;
  width: 14px;
  height: 14px;
  background: var(--primary);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 14px var(--primary);
}

.cursor-pixel {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--primary);
  pointer-events: none;
  animation: pixelFade .6s forwards;
}

@keyframes pixelFade {
  to { opacity: 0; transform: scale(0); }
}

/* ===================== ABOUT ===================== */
.about-section {
  padding: 100px 8%;
  position: relative;
}

.about-inner {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
}

.about-content {
  will-change: transform, opacity;
}

.about-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.about-card {
  padding: 18px 22px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,234,255,0.15);
  color: var(--text-main);
}

/* ===================== POSITIONS ===================== */
.positions-section {
  padding: 100px 8%;
  text-align: center;
}

.positions-grid {
  max-width: 1100px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
}

.position-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,234,255,0.15);
  border-radius: 16px;
  padding: 36px 30px;
  color: var(--text-main);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section-title { font-size: 32px; }
  .milestone-timeline::before { left: 12px; }
  .tech-card { padding-left: 50px; }
  .tech-card::before { left: 6px; }
  .positions-section { padding: 80px 6%; }
}

/* ===================== ACCESSIBILITY ===================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===================== MILESTONE ANIMATION ===================== */
.milestone-timeline::before {
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.2s ease;
}

.milestone-timeline.active::before {
  transform: scaleY(1);
}

.tech-card {
  opacity: 0;
  transform: translateY(50px);
}

.tech-card.reveal {
  opacity: 1;
  transform: translateY(0);
}

.tech-card::before {
  animation-play-state: paused;
}

.tech-card.reveal::before {
  animation-play-state: running;
}

.tech-card.reveal {
  box-shadow: 0 0 25px rgba(0,234,255,0.35);
}

.tech-card {
  will-change: transform, opacity;
}

/* ===================== GLOBAL WEBGL BACKGROUND ===================== */
#webgl-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(0,234,255,0.06),
    rgba(5,11,22,1) 70%
  );
}

/* Ensure content stays above WebGL */
main,
.tech-stack-section,
.about-section,
.positions-section,
.customers-section {
  position: relative;
  z-index: 2;
}

/* ===================== ADVANCED CARD HOVER EFFECT ===================== */
.tech-card,
.customer-card,
.position-card,
.about-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.tech-card::after,
.customer-card::after,
.position-card::after,
.about-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(0,234,255,0.35),
    rgba(123,97,255,0.35),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tech-card:hover,
.customer-card:hover,
.position-card:hover,
.about-card:hover {
  transform: translateY(-8px) rotateX(3deg) rotateY(-3deg);
  box-shadow:
    0 0 18px rgba(0,234,255,0.35),
    0 0 40px rgba(123,97,255,0.25),
    inset 0 0 18px rgba(0,234,255,0.15);
}

.tech-card:hover::after,
.customer-card:hover::after,
.position-card:hover::after,
.about-card:hover::after {
  opacity: 1;
}

/* ===================== SAFE FIX PATCH (ADD-ONLY) ===================== */
.customer-card {
  transform-style: flat !important;
}

.customer-card::after {
  content: none !important;
}

.customer-card:hover {
  transform: translateY(-6px) scale(1.04) !important;
}

.customer-card::before {
  z-index: 1;
}

.customer-card > * {
  position: relative;
  z-index: 2;
}

/* ===================== FLOATING CONTACT BUTTONS ===================== */

.contact-fab {
  position: fixed;
  right: 22px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9998;
}

/* Base button */
.fab-btn {
  position: relative;
  padding: 14px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}

/* Glow sweep */
.fab-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,.35),
    transparent
  );
  transform: translateX(-100%);
  transition: .6s;
}

/* WhatsApp */
.fab-btn.whatsapp {
  background: linear-gradient(135deg, #00c853, #00e676);
  box-shadow: 0 0 18px rgba(0,200,83,.45);
}

/* Contact */
.fab-btn.contact {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 18px rgba(0,234,255,.45);
}

/* Hover */
.fab-btn:hover {
  transform: translateY(-4px);
}

.fab-btn:hover::before {
  transform: translateX(100%);
}

/* Mobile tweak */
@media (max-width: 768px) {
  .fab-btn {
    padding: 12px 16px;
    font-size: 12px;
  }
}


/* ===================== WELCOME SECTION ===================== */

.welcome-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  z-index: 2;
}

/* Animated digital background */
.welcome-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(0,234,255,.12), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(123,97,255,.12), transparent 40%);
  animation: bgFloat 10s ease-in-out infinite alternate;
  z-index: 0;
}

/* Content */
.welcome-content {
  position: relative;
  max-width: 900px;
  padding: 0 20px;
  z-index: 2;
  animation: welcomeFade 1.2s ease forwards;
}

.welcome-title {
  font-size: 54px;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 20px;
}

.welcome-title span {
  display: block;
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.welcome-title strong {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGlow 3s infinite alternate;
}

.welcome-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Buttons */
.welcome-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.welcome-btn {
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .4px;
  transition: transform .4s ease, box-shadow .4s ease;
}

.welcome-btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
  box-shadow: 0 0 22px rgba(0,234,255,.45);
}

.welcome-btn.secondary {
  border: 1px solid rgba(0,234,255,.4);
  color: var(--text-main);
}

.welcome-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(0,234,255,.6);
}

/* Animations */
@keyframes welcomeFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bgFloat {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.05) translateY(-20px); }
}

@keyframes textGlow {
  from { filter: drop-shadow(0 0 8px rgba(0,234,255,.4)); }
  to { filter: drop-shadow(0 0 18px rgba(123,97,255,.6)); }
}

/* Responsive */
@media (max-width: 768px) {
  .welcome-title {
    font-size: 38px;
  }
}

/* ===================== CONTACT ICON STYLE ===================== */

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  filter: drop-shadow(0 0 6px rgba(0,234,255,.5));
}

/* ===================== CUSTOMER LOGOS ===================== */

.customer-logos {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: center;
}

.customer-logo-card {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,234,255,0.12);
  border-radius: 14px;
  transition: transform .4s ease, box-shadow .4s ease;
}

.customer-logo-card img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.2);
  opacity: .85;
  transition: filter .4s ease, opacity .4s ease, transform .4s ease;
}

/* Hover effect */
.customer-logo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 26px rgba(0,234,255,.35);
}

.customer-logo-card:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.05);
}

/* Mobile optimization */
@media (max-width: 768px) {
  .customer-logo-card {
    height: 90px;
  }

  .customer-logo-card img {
    max-width: 100px;
  }
}


*{margin:0;padding:0;box-sizing:border-box}
body{font-family:Segoe UI;background:#05070d;color:#e6f1ff}
.container{width:90%;max-width:1200px;margin:auto}
.glass{background:rgba(255,255,255,.06);backdrop-filter:blur(18px);border-radius:18px}
header{position:sticky;top:0}
.nav{display:flex;justify-content:space-between;align-items:center;padding:15px}
.logo{height:42px}
.hero{height:100vh;display:flex;justify-content:center;align-items:center;position:relative;text-align:center;}
#webgl{position:absolute;width:100%;height:100%}
.hero-content{position:relative}
/* .services,.customers,.about,.contact{padding:100px;text-align:center} */
/* .service-grid,.customer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:30px} */
.card{padding:40px}
/* .logo-card img{max-width:120px} */
/* .whatsapp{position:fixed;bottom:20px;right:20px;background:#25d366;color:#fff;width:55px;height:55px;border-radius:50%;text-align:center;line-height:55px;font-size:28px} */
