/* 0xamrtarek.com | dark landing (refined, responsive) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #000;
  --muted: #9aa6b2;
  /* neon green */
  --accent: #00ff99;
  /* cyan */
  --code-bg: #0b0b0b;
  --code-top: #0e0e0f;
  --code-border: rgba(255, 255, 255, 0.06);
  --code-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.text-neon{
  color: var(--accent) !important;
}

/* Base typography | fluid */
html,
body {
  height: 100%;
  background: var(--bg);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.scroll-container {
  scroll-behavior: smooth;
}

.md h1 { margin-left: 0; }
.md h2 { margin-left: 1rem; }
.md h3 { margin-left: 2rem; }
.md h4 { margin-left: 3rem; }
.md h5 { margin-left: 4rem; }
.md h6 { margin-left: 5rem; }

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
}

h2, h3, h4, h5, h6 {
  scroll-margin-top: 4rem !important;
}

hr {
  border: 0;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(to right, transparent, #00ffc6, transparent);
  opacity: .6;
}

section a {
  color: #00ff99;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,255,153,.45);
    border-bottom-color: rgba(0, 255, 153, 0.45);
  transition: border-color .2s ease, opacity .2s ease, text-shadow .2s ease;
}

.no-border {
  border: none !important;
}


.hero-logo {
  width: 30vw;
  max-width: 240px;
  filter: drop-shadow(0 0 20px rgba(0,255,140,0.4));
  cursor: pointer;
  transition: transform .2s ease-in-out;
}

.main-logo {
  width: 30vw;
  max-width: 300px;
  cursor: pointer;
  transition: transform .2s ease-in-out;
}

.hero-logo:hover .main-logo:hover{ transform: scale(1.05); }

/* Fancy green gradient button */
.fancy-green-btn {
  border-radius: 50px;
  font-weight: 600;
  background: linear-gradient(135deg, #00ff9d, #00c26e);
  color: #000;
  transition: all .25s ease-in-out;
  box-shadow: 0 0 25px rgba(0, 255, 140, 0.4);
  text-decoration: none;
}

/* Button hover */
.fancy-green-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(0, 255, 140, 0.65);
  color: #000;
}

/* Circular arrow */
.circle-arrow {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  font-size: 20px;
  font-weight: bold;
  transition: .2s ease;
  color: #FFF;
  margin-left: 15px;
}

/* Hover effect for arrow */
.fancy-green-btn:hover .circle-arrow {
  background: rgba(0,0,0,0.35);
  transform: translateX(4px);
}




/* Contact footer */
.contact {
  text-align: center;
  padding: clamp(1rem, 3vw, 1.25rem) 1rem calc(2rem + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: clamp(.9rem, 1.9vw, .95rem);
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  max-width: 980px;
  margin: 0 auto;
}

.contact a {
  color: #e7faff;
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in oklab, var(--accent) 60%, transparent);
  padding: .1rem .05rem;
}

.contact a:hover {
  opacity: .95;
  border-bottom-color: color-mix(in oklab, var(--accent) 70%, transparent);
}

/* Focus visibility for keyboard users */
a:focus-visible,
button:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent) 70%, white 10%);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Selection tint */
::selection {
  background: color-mix(in oklab, var(--accent) 30%, black);
  color: #fff;
}



/* Tables styling *//* Base table styling (responsive, no extra classes) */
table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: system-ui, sans-serif;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(16,24,40,0.06);
  table-layout: auto;            /* allow columns to size and wrap naturally */
  box-sizing: border-box;
  color: #0f172a;                /* default text color (adjust if your page is dark) */
}

/* Header */
th {
  text-align: left;
  color: #ffffff;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(180deg, rgba(11,118,239,0.08), transparent);
  border-bottom: 1px solid #e6eef9;
  position: sticky;
  top: 0;
  backdrop-filter: blur(2px);
  z-index: 2;
  white-space: normal;           /* allow header to wrap on narrow screens */
  word-break: break-word;
}

/* Cells */
td {
  padding: 12px 16px;
  color: #ffffff;
  font-size: 0.95rem;
  border-bottom: 1px solid #f1f5f9;
  white-space: normal;           /* crucial: allow wrapping instead of forcing horizontal scroll */
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Monospace/code inside cells (keeps code readable while allowing wrap) */
td code, td pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  background: transparent;
  padding: 0;
  margin: 0;
}

/* Zebra rows (dark) — keep the dark style you used earlier.
   Ensure text is readable against the dark background. */
tbody tr:nth-child(odd) {
  background: #1a1a1a;
}
tbody tr:nth-child(odd) td,
tbody tr:nth-child(odd) th {
  color: #e6eef3; /* light text for contrast on dark zebra rows */
}

/* Hover effect (subtle) */
tbody tr:hover {
  background: rgba(11,118,239,0.05);
  transition: background 0.15s ease;
}

/* Numeric columns (optional if you sometimes use <td class="num">) */
td.num, th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Responsive adjustments: reduce paddings & font sizes on narrower screens */
@media (max-width: 880px) {
  th, td {
    padding: 10px 12px;
    font-size: 0.92rem;
  }
}

/* Phone screens: tighten spacing further but keep wrapping (no forced horizontal scroll) */
@media (max-width: 520px) {
  th, td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  /* Make first column visually stronger (acts like a mini label) */
  tbody td:first-child {
    font-weight: 600;
  }
}

/* Print-friendly */
@media print {
  table {
    box-shadow: none;
    border-radius: 0;
  }
  thead th {
    position: static;
  }
  tbody tr:hover {
    background: transparent;
  }
}
