/* === GLOBAL COLORS === */
:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #00bcd4;
}

/* === RESET === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

/* === BODY & BASE LAYOUT === */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  /* Fade transition between pages */
  opacity: 0;
  transition: opacity 0.25s ease;
}
body.page-ready {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  body { transition: none; opacity: 1; }
}

/* === HEADER / NAVIGATION === */
header {
  background: var(--bg-card);
  border-bottom: 1px solid #21262d;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
  text-shadow: 0 0 6px rgba(0,188,212,0.5);
}

/* === MAIN LAYOUT === */
main.container {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}
h1, h2, h3 {
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 600;
}
p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1rem;
}
ul { margin-left: 20px; margin-bottom: 10px; }

/* === CARDS === */
.card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #21262d;
  margin-bottom: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(0,188,212,0.4);
}
.btn:hover {
  background: #08e0ff;
  box-shadow: 0 0 16px rgba(0,188,212,0.6);
  transform: translateY(-2px);
  color: #fff; /* stays white on hover */
  text-decoration: none; /* ensures underline never returns */
}

/* === FADE-IN ELEMENTS === */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeInUp .6s ease-out forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === FOOTER === */
footer {
  border-top: 1px solid #21262d;
  background: var(--bg-card);
  text-align: right;      /* ← moved to the right */
  /* padding: 18px; */
  padding: 24px 28px 32px;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
}

/* === CLOCK (center above footer) === */
.clock {
  position: fixed;
  bottom: 70px;              /* slightly higher above footer */
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;        /* ensures exact width around text */
  font-family: 'Inter', monospace;
  font-size: 1.2rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 14px;
  border-radius: 8px;
  z-index: 1000;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}


/* === PROGRESS BAR + FISH === */
.progress-container {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: #1c2128;
  overflow: hidden;
  z-index: 999;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #00eaff);
  transition: width 0.1s linear;
}

.fish {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  color: var(--accent);
  z-index: 9999;
  pointer-events: none;
  transition: transform 0.3s ease;
  will-change: transform;

 /* --- Company links on Experience page --- */
/* Force company links to look like normal text */
main.container .card h2 a,
main.container .card h2 a:visited,
main.container .card h2 a:hover,
main.container .card h2 a:active {
  color: #e6edf3 !important;          /* exact white text color */
  text-decoration: none !important;   /* remove underline */
  font-weight: 600 !important;
}


.card h2 a:hover {
  opacity: 0.7;
}

/* Plain, non-underlined, white link (for company names) */
.link-plain,
.link-plain:visited,
.link-plain:hover,
.link-plain:active {
  color: var(--text) !important;        /* white/off-white */
  text-decoration: none !important;      /* no underline */
  font-weight: 600;                      /* keep the h2 weight look */
  opacity: 1;                            /* avoid dim visited color */


}

