:root {
  /* Color Palette from Abstract Image */
  --sage-light: #a8b896;
  --sage-medium: #8fa67e;
  --sage-dark: #748066;
  --coral-light: #f4b5a0;
  --coral-medium: #e8967a;
  --coral-dark: #d67b5c;
  --cream-light: #fdf8f0;
  --cream-warm: #f5e8d3;
  --cream-medium: #e8d5b7;
  --golden-light: #f2d492;
  --golden-medium: #e6c373;
  --golden-dark: #d4a853;
  --warm-grey: #483e37;

  /* Usage Variables */
  --bg-primary: var(--cream-light);
  --bg-secondary: var(--cream-warm);
  --text-primary: var(--sage-dark);
  --accent: var(--coral-medium);
  --highlight: var(--golden-medium);
}

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

/* Remove watermark background */
body {
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Header */
header {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--warm-grey);
}

.header-content h1 {
  font-size: 3.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-content p {
  font-size: 1.3rem;
  font-weight: 600;
  opacity: 0.95;
  margin: 0 auto;
}

/* Navigation */
nav {
  background: var(--cream-warm);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(116, 128, 102, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
}

nav ul a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}
nav svg {
    vertical-align: middle;
}

.flags {
    float: right;
    font-size: 14px;
}
.flags a {
    text-decoration: none;
}

nav ul a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

/* Main Content */
main {
  padding: 4rem 0;
}

.section {
  margin-bottom: 5rem;
  padding: 3rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--sage-dark);
  position: relative;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--sage-medium);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  margin: 1rem auto;
  border-radius: 2px;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(116, 128, 102, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(116, 128, 102, 0.2);
}

.project-image {
  height: 160px;
  background: linear-gradient(135deg, var(--sage-light), var(--coral-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 1.5rem;
  flex-direction: column;
}

.project-image h4 {
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.project-image p {
  font-size: 0.9rem;
  opacity: 0.95;
  line-height: 1.3;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.project-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.research-bg {
  background: linear-gradient(135deg, var(--sage-medium), var(--sage-light));
}
.design-bg {
  background: linear-gradient(135deg, var(--sage-medium), var(--sage-light));
}

/* Game Design - Coral medium to sage light */
.game-bg {
  background: linear-gradient(135deg, var(--sage-medium), var(--sage-light));
}

/* ESL - Coral light to golden light */
.esl-bg {
  background: linear-gradient(135deg, var(--sage-light), var(--sage-light));
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--sage-dark);
}

.project-meta {
  font-size: 0.9rem;
  color: var(--sage-medium);
  margin-bottom: 1rem;
  font-style: italic;
}

.project-content p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: var(--cream-warm);
  color: var(--text-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}
/*
.tag:hover {
    background: var(--accent);
    color: white;
}
*/

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-link {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.link-primary {
  background: var(--accent);
  color: white;
}

.link-secondary {
  background: var(--highlight);
  color: var(--sage-dark);
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(116, 128, 102, 0.1);
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.contact-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
}

.contact-btn.primary {
  background: var(--accent);
  color: white;
}

.contact-btn.secondary {
  background: var(--highlight);
  color: var(--sage-dark);
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--warm-grey);
  padding: 2rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content h1 {
    font-size: 2.5rem;
  }
  .header-content p {
    font-size: 1.1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 2rem 0;
  }

  .project-links {
    justify-content: center;
  }
}

/* Loading Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.flex {
    display: flex;
}

.flex-grow {
    flex-shrink: 0;
}
