/* ===== DigitMarkT - Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800&family=Rajdhani:wght@300;400;500;600&display=swap');

:root {
  --bg-deep: #020c14;
  --bg-mid: #041a2e;
  --bg-card: rgba(4, 30, 55, 0.75);
  --accent-green: #00e676;
  --accent-teal: #00bcd4;
  --accent-glow: rgba(0, 230, 118, 0.15);
  --text-primary: #e0f7e9;
  --text-muted: #7fa99a;
  --border: rgba(0, 230, 118, 0.2);
  --border-hover: rgba(0, 230, 118, 0.6);
  --nav-bg: rgba(2, 12, 20, 0.95);
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ─── Animated Background Grid ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 230, 118, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 118, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridShift 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(0, 188, 212, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(0, 230, 118, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

@keyframes gridShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(48px, 48px); }
}

/* ─── Header ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: var(--header-height);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.logo {
  font-family: 'Orbitron', monospace;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent-green);
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(0, 230, 118, 0.6);
  text-decoration: none;
}

.logo span {
  color: var(--accent-teal);
}

/* ─── Navigation ─── */
nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent-green);
  transition: width 0.3s;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--accent-green);
}

nav a:hover::after,
nav a[aria-current="page"]::after {
  width: 100%;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-green);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── Main Content ─── */
main {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── Section Titles ─── */
.section-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--accent-teal);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

h2.section-title {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  line-height: 1.2;
}

h2.section-title span {
  color: var(--accent-green);
}

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.1), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background: var(--accent-green);
  color: var(--bg-deep);
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}

.btn-outline:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.3);
  transform: translateY(-2px);
}

/* ─── Footer ─── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--nav-bg);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

footer strong {
  color: var(--accent-green);
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
}

/* ─── Inputs / Form ─── */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: 'Orbitron', monospace;
}

.field input,
.field textarea,
.field select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.15);
}

.field textarea {
  height: 140px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(127, 169, 154, 0.5);
}

/* ─── Tag Chip ─── */
.tag {
  display: inline-block;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.25);
  color: var(--accent-green);
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 0.2rem 0.65rem;
  border-radius: 30px;
  font-family: 'Orbitron', monospace;
}

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  margin: 3rem 0;
}

/* ─── Fade-in Animation ─── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

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

/* ─── Responsive ─── */
@media (max-width: 768px) {
  header {
    padding: 0 1.2rem;
  }

  .hamburger {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 1rem 1.5rem;
    width: 100%;
    border-top: 1px solid var(--border);
  }

  nav a::after {
    display: none;
  }

  main {
    padding: 2.5rem 1.2rem;
  }

  h2.section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }

  main {
    padding: 2rem 1rem;
  }
}
