/* ============================================
   MOAAZ AHMAD — DARK FORGE DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@400;500&family=Inter:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --bg:          #0A0C0F;
  --surface:     #111418;
  --surface2:    #161B22;
  --border:      #1E2530;
  --border2:     #2A3441;
  --cyan:        #00E5FF;
  --cyan-dim:    rgba(0,229,255,0.12);
  --cyan-glow:   rgba(0,229,255,0.35);
  --orange:      #FF6B35;
  --orange-dim:  rgba(255,107,53,0.12);
  --violet:      #A855F7;
  --violet-dim:  rgba(168,85,247,0.12);
  --green:       #22C55E;
  --text:        #E8ECF0;
  --text-muted:  #5A6478;
  --text-dim:    #8892A4;
  --font-display: 'Syne', sans-serif;
  --font-heading: 'DM Mono', monospace;
  --font-body:    'Inter', sans-serif;
  --font-code:    'JetBrains Mono', monospace;
  --radius:       6px;
  --radius-lg:    12px;
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cyan-dim); color: var(--cyan); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ── Grid ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Noise Texture Overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999;
  opacity: 0.4;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10,12,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.1rem;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo span {
  width: 32px; height: 32px;
  background: var(--cyan);
  color: var(--bg);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800;
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.78rem; letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--cyan);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  font-family: var(--font-heading);
  font-size: 0.78rem; letter-spacing: 0.08em;
  padding: 8px 18px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-cta:hover {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: 0 0 20px var(--cyan-glow);
}
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 6px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}
.nav-mobile {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(10,12,15,0.97);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--cyan); }
.nav-mobile-close {
  position: absolute; top: 24px; right: 24px;
  font-size: 1.5rem; color: var(--text-muted);
  background: none; border: none;
  cursor: pointer; font-family: var(--font-heading);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem; letter-spacing: 0.08em;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: var(--transition);
  text-transform: uppercase;
}
.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  font-weight: 600;
}
.btn-primary:hover {
  background: #33EAFF;
  box-shadow: 0 0 30px var(--cyan-glow);
  transform: translateY(-1px);
}
.btn-outline {
  border: 1px solid var(--border2);
  color: var(--text-dim);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-dim);
  transform: translateY(-1px);
}

/* ── TAGS ── */
.tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem; letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}
.tag-ai     { background: var(--violet-dim); color: var(--violet); border: 1px solid rgba(168,85,247,0.25); }
.tag-iot    { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(255,107,53,0.25); }
.tag-mech   { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.tag-web    { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(0,229,255,0.2); }
.tag-acad   { background: rgba(90,100,120,0.15); color: var(--text-dim); border: 1px solid var(--border); }

/* ── SECTION HEADERS ── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.7rem; letter-spacing: 0.15em;
  color: var(--cyan); text-transform: uppercase;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block; width: 24px; height: 1px;
  background: var(--cyan);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1rem; color: var(--text-muted);
  max-width: 520px; line-height: 1.75;
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(0,229,255,0.3);
  box-shadow: 0 0 30px rgba(0,229,255,0.06), 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ── GLITCH EFFECT ── */
@keyframes glitch1 {
  0%,100% { clip-path: inset(0 0 98% 0); transform: translate(-3px,0); }
  25% { clip-path: inset(40% 0 50% 0); transform: translate(3px,0); }
  50% { clip-path: inset(80% 0 5% 0); transform: translate(-2px,0); }
  75% { clip-path: inset(20% 0 70% 0); transform: translate(2px,0); }
}
@keyframes glitch2 {
  0%,100% { clip-path: inset(50% 0 40% 0); transform: translate(3px,0); opacity:0.5; }
  33% { clip-path: inset(10% 0 80% 0); transform: translate(-3px,0); opacity:0.7; }
  66% { clip-path: inset(70% 0 20% 0); transform: translate(2px,0); opacity:0.4; }
}
.glitch {
  position: relative; display: inline-block;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.glitch::before {
  color: var(--cyan);
  animation: glitch1 4s infinite linear;
  opacity: 0.7;
}
.glitch::after {
  color: var(--orange);
  animation: glitch2 4s infinite linear 0.5s;
  opacity: 0.5;
}

/* ── TYPEWRITER ── */
.typewriter-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--cyan);
  margin-left: 2px;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* ── FADE IN SCROLL ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: start;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 0.85rem; color: var(--text-muted);
}
.footer-links {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: flex-end;
}
.footer-links a {
  font-family: var(--font-heading);
  font-size: 0.75rem; letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color var(--transition);
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1160px; margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }
.footer-bottom .cyan { color: var(--cyan); }

/* ── AVAILABILITY BADGE ── */
.availability-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.72rem; letter-spacing: 0.08em;
  padding: 6px 14px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 100px;
  color: var(--green);
}
.availability-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform: scale(1); }
  50% { opacity:0.6; transform: scale(0.85); }
}

/* ── PAGE HERO BANNER ── */
.page-hero {
  padding: 140px 24px 80px;
  border-bottom: 1px solid var(--border);
}
.page-hero .container { max-width: 1160px; margin: 0 auto; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
