/* ================================================================
   TAP TAP TEC — Global Stylesheet
   ================================================================
   TABLE OF CONTENTS
   1. CSS Variables (colours, typography, spacing)
   2. Reset & Base
   3. Navigation
   4. Footer
   5. Shared Section Utilities
   6. Buttons
   7. Marquee Strip
   8. Scroll Reveal Animation
   9. Responsive Breakpoints
   ================================================================ */


/* ════════════════════════════════════════════════════════════════
   1. CSS VARIABLES
   ════════════════════════════════════════════════════════════════ */
:root {
  /* — Logo-matched purple palette — */
  --purple-deep:    #1E0A3C;   /* page background */
  --purple-mid:     #2D1260;   /* card / section background */
  --purple-light:   #3D1F7A;   /* hover surfaces */
  --purple-border:  #4A2890;   /* borders */
  --purple-muted:   #6B47B8;   /* faint UI elements */

  /* — Logo accent colours — */
  --pink:           #E8197A;
  --pink-light:     #F04D99;
  --orange:         #F47B20;
  --orange-light:   #F79540;

  /* — Gradients — */
  --grad:           linear-gradient(135deg, #E8197A, #F47B20);
  --grad-text:      linear-gradient(135deg, #F04D99, #F79540);
  --grad-subtle:    linear-gradient(135deg, rgba(232,25,122,0.15), rgba(244,123,32,0.15));

  /* — Text — */
  --text:           #F2EEFF;
  --muted:          #B09DD8;
  --faint:          #7A6BA8;

  /* — Spacing — */
  --section-pad: 100px 6%;
  --radius-card: 20px;
  --radius-btn:  50px;
}


/* ════════════════════════════════════════════════════════════════
   2. RESET & BASE
   ════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--purple-deep);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(232,25,122,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(244,123,32,0.05) 0%, transparent 45%),
    radial-gradient(circle at 60% 80%, rgba(123,31,162,0.10) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a  { color: inherit; }


/* ════════════════════════════════════════════════════════════════
   3. NAVIGATION
   ════════════════════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 6%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30,10,60,0.88);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--purple-border);
}

/* — Logo — */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img       { height: 38px; width: auto; }
.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.3px;
}

/* — Links — */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* — CTA button in nav — */
.nav-cta {
  background: var(--grad) !important;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(232,25,122,0.35);
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* — Mobile hamburger (hidden on desktop) — */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(30,10,60,0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--purple-border);
  padding: 24px 6%;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-drawer a:hover { color: var(--text); }


/* ════════════════════════════════════════════════════════════════
   4. FOOTER
   ════════════════════════════════════════════════════════════════ */
footer {
  position: relative;
  z-index: 1;
  padding: 64px 6% 40px;
  border-top: 1px solid var(--purple-border);
  background: var(--purple-deep);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* — Brand column — */
.footer-brand img {
  height: 42px;
  margin-bottom: 16px;
}
.footer-brand-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 10px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 20px;
}

/* — Link columns — */
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--pink-light); }

/* — LinkedIn pill — */
.linkedin-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  background: var(--purple-mid);
  border: 1px solid var(--purple-border);
  padding: 7px 16px;
  border-radius: var(--radius-btn);
  transition: border-color 0.2s, color 0.2s;
}
.linkedin-pill:hover { border-color: #0A66C2; color: #5BA3D4; }

/* — Bottom bar — */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--purple-border);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p        { color: var(--faint); font-size: 13px; }
.footer-bottom .tagline { color: var(--faint); font-size: 12px; font-style: italic; }


/* ════════════════════════════════════════════════════════════════
   5. SHARED SECTION UTILITIES
   ════════════════════════════════════════════════════════════════ */
section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  display: inline-block;
}

.section-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 18px;
  color: var(--text);
}

.section-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
  font-weight: 300;
  line-height: 1.7;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-mid  { background: var(--purple-mid); }
.bg-deep { background: var(--purple-deep); }

/* Page hero top padding (below fixed nav) */
.page-hero { padding-top: 140px; }


/* ════════════════════════════════════════════════════════════════
   6. BUTTONS
   ════════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  padding: 14px 30px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 28px rgba(232,25,122,0.4);
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(232,25,122,0.55);
}

.btn-ghost {
  display: inline-block;
  color: var(--text);
  padding: 13px 30px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--purple-border);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--pink);
  color: var(--pink-light);
  background: rgba(232,25,122,0.07);
}


/* ════════════════════════════════════════════════════════════════
   7. MARQUEE STRIP
   ════════════════════════════════════════════════════════════════ */
.marquee-strip {
  background: var(--grad);
  padding: 13px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.marquee-inner {
  display: inline-flex;
  gap: 48px;
  animation: marquee 22s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  color: rgba(255,255,255,0.88);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 16px;
}
.marquee-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  flex-shrink: 0;
}


/* ════════════════════════════════════════════════════════════════
   8. SCROLL REVEAL ANIMATION
   ════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible        { opacity: 1; transform: none; }
.reveal-d1             { transition-delay: 0.1s; }
.reveal-d2             { transition-delay: 0.2s; }
.reveal-d3             { transition-delay: 0.3s; }


/* ════════════════════════════════════════════════════════════════
   9. RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  nav { padding: 0 4%; }
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 70px 4%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
