:root {
  /* HEX COLORS */
  --platinum: #eef0f2ff;
  --coral-glow: #ff8b64ff;
  --mustard: #ffd864ff;
  --lavender-purple: #b264ffff;
  --electric-sapphire: #6464ffff;
  --cyan-glow: #64ffffff;
  --card-text-grey: #4b5563;
}

/* GLOBAL STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
  background: var(--platinum);
  color: #1f2937;
  padding-bottom: 60px; /* prevent content hidden behind sticky footer */
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: var(--electric-sapphire);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--platinum);
}

.nav-links a {
  text-decoration: none;
  color: var(--platinum);
  font-size: 14px;
  margin: 0 12px;
}

.nav-links a.active {
  background: var(--cyan-glow);
  color: #1f2937;
  padding: 6px 12px;
  border-radius: 8px;
}

.separator {
  color: var(--platinum);
}

/* HERO */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
  padding: 40px;
  align-items: center;
}

.hero .image-card {
  position: relative;
  flex: 1 1 400px;
}

.hero-backing {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  z-index: 0;
}

.hero .image-card img {
  width: 100%;
  border-radius: 12px;
  display: block;
  position: relative;
  z-index: 1;
}

.hero .content {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 4px solid var(--coral-glow);
}

h1 {
  font-size: 36px;
  margin-bottom: 15px;
  background: linear-gradient(90deg, var(--coral-glow), var(--lavender-purple));
  -webkit-background-clip: text;
  color: transparent;
}

.subtitle {
  color: #374151;
  margin-bottom: 20px;
}

.description {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 20px;
}

/* PROJECTS */
.section {
  max-width: 1100px;
  margin: auto;
  padding: 40px;
}

.section-header {
  font-size: 28px;
  margin-bottom: 25px;
  text-align: center;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center the cards */
  gap: 20px;
}

.card {
  background: var(--platinum);
  border-radius: 16px;
  padding: 20px;
  width: 250px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-decoration: none;
  color: var(--card-text-grey);
  transition: 0.3s;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: 2px solid;
  border-image-slice: 1;
  border-image-source: linear-gradient(90deg, var(--coral-glow), var(--lavender-purple));
  border-radius: 16px; /* rounded edges for hover outline */
}

.card h3 {
  margin-bottom: 8px;
}

.caption {
  font-size: 12px;
  color: var(--card-text-grey);
}

/* FOOTER */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--electric-sapphire);
  color: var(--platinum);
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  z-index: 1000;
}

.footer a {
  color: var(--platinum);
  text-decoration: none;
  margin: 0 8px;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .separator {
  color: var(--platinum);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
  }
  .project-grid {
    justify-content: center;
  }
}
