/* ─────────────────────────────────────────────
   DLA Tech Solutions — Shared Stylesheet
   css/dla-style.css
────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #080b10;
  --deep: #0d1117;
  --surface: #131820;
  --border: rgba(255,255,255,0.07);
  --accent: #3B82F6;
  --accent2: #1D4ED8;
  --accent-glow: rgba(59,130,246,0.12);
  --cta: #F59E0B;
  --cta-hover: #D97706;
  --cta-glow: rgba(245,158,11,0.35);
  --white: #f0f4f8;
  --muted: #7a8899;
  --text: #c8d4e0;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: var(--accent2); border-radius: 2px; }

/* ─── NOISE TEXTURE ─── */
body::before {
  display: none;
}

/* ─── KEYFRAMES ─── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero geometric shapes — entrance + float per shape */
@keyframes shapeIn1  { from { opacity:0; transform:translateY(-120px) rotate(-3deg);  } to { opacity:1; transform:translateY(0) rotate(12deg);  } }
@keyframes shapeF1   { 0%,100%{transform:translateY(0) rotate(12deg);} 50%{transform:translateY(15px) rotate(12deg);} }
@keyframes shapeIn2  { from { opacity:0; transform:translateY(-120px) rotate(-30deg); } to { opacity:1; transform:translateY(0) rotate(-15deg); } }
@keyframes shapeF2   { 0%,100%{transform:translateY(0) rotate(-15deg);} 50%{transform:translateY(15px) rotate(-15deg);} }
@keyframes shapeIn3  { from { opacity:0; transform:translateY(-120px) rotate(-23deg); } to { opacity:1; transform:translateY(0) rotate(-8deg);  } }
@keyframes shapeF3   { 0%,100%{transform:translateY(0) rotate(-8deg);} 50%{transform:translateY(12px) rotate(-8deg);} }
@keyframes shapeIn4  { from { opacity:0; transform:translateY(-120px) rotate(5deg);   } to { opacity:1; transform:translateY(0) rotate(20deg);  } }
@keyframes shapeF4   { 0%,100%{transform:translateY(0) rotate(20deg);} 50%{transform:translateY(10px) rotate(20deg);} }
@keyframes shapeIn5  { from { opacity:0; transform:translateY(-120px) rotate(-40deg); } to { opacity:1; transform:translateY(0) rotate(-25deg); } }
@keyframes shapeF5   { 0%,100%{transform:translateY(0) rotate(-25deg);} 50%{transform:translateY(8px) rotate(-25deg);} }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,11,16,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  line-height: 1;
}

.nav-logo .dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-cta {
  background: var(--cta) !important;
  color: var(--black) !important;
  padding: 8px 20px !important;
  border-radius: 4px;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--cta-hover) !important;
  box-shadow: 0 4px 16px var(--cta-glow) !important;
  transform: translateY(-1px);
  color: var(--black) !important;
}

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

/* Hamburger → X on open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--cta);
  color: var(--black);
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--cta-hover);
  box-shadow: 0 8px 24px var(--cta-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  transition: all 0.2s;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

/* ─── SECTION BASE ─── */
section { padding: 100px 5%; position: relative; }

.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

/* ─── PAGE HEADER (about, contact pages) ─── */
.page-header {
  padding: 160px 5% 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-header-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-header-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  pointer-events: none;
}

.page-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
  font-weight: 300;
}

/* ─── TECH TAGS ─── */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2rem;
}

.tech-tag {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  color: #93b4fa;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.03em;
  transition: all 0.2s;
}

.tech-tag:hover {
  background: rgba(59,130,246,0.2);
  border-color: rgba(59,130,246,0.4);
  color: var(--white);
}

/* ─── FOOTER ─── */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 60px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.8;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ─── DIVIDER ─── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s, transform 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── HERO GEOMETRIC SHAPES ─── */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.shape {
  position: absolute;
  border-radius: 100px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px 0 rgba(255,255,255,0.05);
}

.shape::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.12), transparent 70%);
}

.shape-1 {
  width: 600px; height: 140px;
  background: linear-gradient(to right, rgba(59,130,246,0.16), transparent);
  top: 18%; left: -8%;
  opacity: 0;
  animation:
    shapeIn1 2.4s 0.3s cubic-bezier(0.23, 0.86, 0.39, 0.96) forwards,
    shapeF1  12s  2.8s ease-in-out infinite;
}

.shape-2 {
  width: 500px; height: 120px;
  background: linear-gradient(to right, rgba(29,78,216,0.18), transparent);
  top: 68%; right: -4%;
  opacity: 0;
  animation:
    shapeIn2 2.4s 0.5s cubic-bezier(0.23, 0.86, 0.39, 0.96) forwards,
    shapeF2  12s  3.0s ease-in-out infinite;
}

.shape-3 {
  width: 300px; height: 80px;
  background: linear-gradient(to right, rgba(59,130,246,0.11), transparent);
  bottom: 8%; left: 8%;
  opacity: 0;
  animation:
    shapeIn3 2.4s 0.4s cubic-bezier(0.23, 0.86, 0.39, 0.96) forwards,
    shapeF3  14s  2.9s ease-in-out infinite;
}

.shape-4 {
  width: 200px; height: 60px;
  background: linear-gradient(to right, rgba(29,78,216,0.14), transparent);
  top: 12%; right: 18%;
  opacity: 0;
  animation:
    shapeIn4 2.4s 0.6s cubic-bezier(0.23, 0.86, 0.39, 0.96) forwards,
    shapeF4  10s  3.1s ease-in-out infinite;
}

.shape-5 {
  width: 150px; height: 40px;
  background: linear-gradient(to right, rgba(59,130,246,0.09), transparent);
  top: 7%; left: 22%;
  opacity: 0;
  animation:
    shapeIn5 2.4s 0.7s cubic-bezier(0.23, 0.86, 0.39, 0.96) forwards,
    shapeF5  9s   3.2s ease-in-out infinite;
}

/* ─── WHATSAPP FLOATING BUTTON ─── */
.wa-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

.wa-btn svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* Pulse ring */
.wa-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.5);
  animation: waPulse 2.4s ease-out infinite;
}

@keyframes waPulse {
  0%   { transform: scale(0.95); opacity: 0.8; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* Tooltip */
.wa-btn::after {
  content: 'Chat on WhatsApp';
  position: absolute;
  right: 68px;
  background: rgba(8,11,16,0.92);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s, transform 0.2s;
}

.wa-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ─── MOBILE MENU OVERLAY ─── */
/* Lives outside <nav> to escape its stacking context */
.mobile-menu {
  display: none;
}

.mobile-menu.open {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 900;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--black);
  gap: 2.5rem;
  padding-top: 70px;
  padding-bottom: 2rem;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 0;
  width: 100%;
}

.mobile-menu li { width: 100%; text-align: center; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--accent); }

.mobile-menu .nav-cta {
  display: inline-block !important;
  background: var(--accent) !important;
  color: var(--black) !important;
  padding: 16px 48px !important;
  border-radius: 6px !important;
  font-size: 1rem !important;
  letter-spacing: 0.1em !important;
  font-weight: 700 !important;
  margin-top: 0.5rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

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

  .shape-1 { width: 380px; height: 100px; }
  .shape-2 { width: 300px; height: 85px; }
  .shape-3 { width: 200px; height: 60px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .shape-1, .shape-2 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .shape-1, .shape-2, .shape-3, .shape-4, .shape-5 {
    opacity: 0.6;
    animation: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
