:root {
  --primary: #00d4ff;
  --secondary: #ff4c4c;
  --bg-dark: #0a0a1a;
  --bg-light: #1a1a2e;
  --glow: rgba(0,212,255,0.5);
  --radius: 10px;
  --transition: 0.4s;
}

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

html {
  scroll-behavior: smooth;
  font-size: clamp(16px, 2vw, 18px);
}

body {
  font-family: 'Roboto', sans-serif;
  background: url('./assets/general.png') center/cover fixed;
  color: #eee;
  line-height: 1.6;
  opacity: 0;
  animation: fadeInBody 0.8s ease-out forwards;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

/* NAVIGATION */
#mainnavigation {
  background: linear-gradient(45deg, var(--bg-dark), var(--bg-light));
  box-shadow: 0 0 20px var(--glow);
  position: sticky;
  top: 0;
  z-index: 100;
}

#mainnavigation ul {
  list-style: none;               /* remove bullets */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;                    /* keeps this on mobile */
  padding: 1rem;
}

#mainnavigation a {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  transition: color var(--transition);
}

#mainnavigation a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width var(--transition);
}

#mainnavigation a:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--glow);
}

#mainnavigation a:hover::after {
  width: 100%;
}

/* HEADER */
header {
  text-align: center;
  padding: clamp(1.5rem, 5vw, 3rem) 1rem;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.4s;
}

header img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--primary);
}

header p {
 font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 500;
  /* subtle glow to pop on the dark bg */
  text-shadow: 0 0 6px var(--glow);
  /* a touch tighter letter spacing for premium feel */
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}

/* MAIN & CARDS */
main {
   max-width: 1600px;  /* ↓ down from 900px */
  margin: 2rem auto; /* keep it centered */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: rgba(0,0,0,0.6);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  line-height: 1.5;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.6s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px var(--glow);
}

.card h2 {
  font-family: 'Orbitron', sans-serif;
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: 0.05em;
}

/* PROFILE */
.profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.profile img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
}

.profile p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 1rem;
}

/* LIST ITEMS */
.card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.card ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  margin-bottom: 0.5rem;
}

.card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-size: 1.2em;
  line-height: 1;
}

/* CARD LINKS */
.links {
  margin-top: 1rem;
  text-align: center;
  font-size: clamp(1rem, 3vw, 1.125rem);
}

/* FOOTER */
footer {
  text-align: center;
  padding: clamp(1rem, 3vw, 2rem) 1rem;
  background: rgba(0,0,0,0.7);
  margin-top: 2rem;
}

footer img {
  height: 40px;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.8s;
}

footer p {
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: #ccc;
}

/* DESKTOP-ONLY NAV GAP INCREASE */
@media (min-width: 768px) {
  #mainnavigation ul {
    gap: 3rem;  /* wider spacing on tablets/desktops */
  }
}

/* GRID LAYOUT AT TABLET+ */
@media (min-width: 600px) {
  main {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ANIMATIONS */
@keyframes fadeInBody {
  to { opacity: 1; }
}

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

/* Center the “Site Links” card under the two-column grid */
@media (min-width: 600px) {
  #site-links {
    grid-column: 1 / -1;      /* span both tracks */
    justify-self: center;     /* center it */
    max-width: 800px;         /* don’t let it grow too wide */
    width: 100%;              /* but fill its max-width */
  }
}
