/* -------------------------------
   Base styles
---------------------------------- */

html {
  min-height: 100%;
  background: linear-gradient(to bottom, #f0f9ff, #ffffff);
  scroll-behavior: smooth;
}

body {
  color: #111827;
  animation: fadeIn 1s ease-in-out;
  min-height: 100dvh;
}

/* Accent colour */
.accent {
  color: #38bdf8; /* Tailwind sky-400 */
}

/* Coming soon text */
.coming-soon {
  color: #94a3b8; /* slate-400 */
  font-size: 0.9rem;
  margin-top: 1rem;
  animation: fadeIn 1.5s ease-in-out 0.5s both;
}

/* -------------------------------
   Hover effects
---------------------------------- */

h1:hover .accent {
  color: #0ea5e9; /* sky-500 */
  transition: color 0.3s ease;
}

nav a {
  position: relative;
  text-decoration: none;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: #38bdf8;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* -------------------------------
   Animations
---------------------------------- */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------
   CV Download Button
---------------------------------- */

.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid #38bdf8;
  color: #38bdf8;
  border-radius: 9999px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cv-btn:hover {
  background-color: #38bdf8;
  color: #fff;
}

/* -------------------------------
   Employment Page
---------------------------------- */

.employment-entry {
  border-left: 2px solid #38bdf8;
  padding-left: 1.25rem;
}

.entry-roles {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280; /* gray-500 */
}

.entry-meta {
  font-size: 0.75rem;
  color: #9ca3af; /* gray-400 */
}

.entry-date {
  font-size: 0.75rem;
  color: #9ca3af;
}

.entry-bullets {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #4b5563; /* gray-600 */
  list-style: disc;
  list-style-position: inside;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (prefers-color-scheme: dark) {
  .entry-roles,
  .entry-bullets {
    color: #d1d5db; /* gray-300 */
  }
}

/* -------------------------------
   Hamburger Menu Styles
---------------------------------- */
#menu-container.open #menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  background-color: #fff;
  color: #111;
  text-align: center;
  padding: 1rem 0;
}

/* -------------------------------
   Dark mode support
---------------------------------- */

@media (prefers-color-scheme: dark) {
  html {
    background: linear-gradient(to bottom, #0f172a, #1e293b);
  }

  #menu-container.open #menu {
    background-color: #111827;
    color: #e5e7eb;
  }
}