:root {
  --main-bg-color: #0f172a;
  --spotlight-color: #111f44;
  --spotlight-radius: 50vh;
  --text-pop: #cbd7ed;
  --text-description: #58698b;
  --text-paragraph: #899bbb;
  --text-highlight: #54eac4;
  --social-icons-color: #93a2b8;
  --button-text-color: #54eac4;
  --button-bg-color: #122b39;
  --card-bg-color: rgba(255, 255, 255, 0.05);
  --card-border-color: #1e293b;
  --card-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
  --header-bg-color: rgba(255, 255, 255, 0.05);
  --nav-link-padding: 10px;
  --nav-link-margin: 0 15px;
  --nav-link-border-radius: 5px;
  --nav-link-hover-bg: rgba(84, 234, 196, 0.1);
}

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

body {
  margin: 0;
  background-color: var(--main-bg-color);
  background-image: radial-gradient(
    circle,
    var(--spotlight-color) 0%,
    transparent var(--spotlight-radius)
  );
  background-repeat: no-repeat;
  background-position: center;
    background-attachment: fixed;
  color: var(--text-paragraph);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

/* Header */
header {
  background-color: var(--header-bg-color);
  padding: 20px;
  text-align: center;
}

header h1,
header h2 {
  color: var(--text-pop);
  margin: 10px 0;
}

header h1 a,
header h2 a {
  color: var(--text-pop);
  text-decoration: none;
  transition: color 0.3s ease;
}

header h1 a:hover,
header h2 a:hover {
  color: var(--text-highlight);
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  background-color: var(--header-bg-color);
  padding: 10px 0;
  margin-bottom: 0px;
  margin-top: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

nav ul li a {
  color: var(--text-pop);
  text-decoration: none;
  padding: var(--nav-link-padding);
  margin: var(--nav-link-margin);
  border-radius: var(--nav-link-border-radius);
  transition: background-color 0.3s ease;
  font-weight: bold;
}

nav ul li a:visited {
  text-decoration: none;
  color: var(--text-pop);
}

nav ul li a:hover {
  background-color: var(--nav-link-hover-bg);
  color: var(--text-highlight);
  height: 10px;
}

/* Content Layout */
main.content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  gap: 20px;
}

/* Main Content */
main {
  padding: 20px;
  flex: 1;
}

#name {
  color: var(--text-pop);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* About Section */
section#about {
  text-align: center;
  max-width: 800px;
  margin: auto;
}

.headshot {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  margin-top: 20px;
}

section#about p,
p {
  color: var(--text-paragraph);
}

section#about h2,
h2 {
  color: var(--text-pop);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

/* Portfolio Section */
section#portfolio {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: var(--qualification-bg);
  border-radius: 15px;
  box-shadow: var(--qualification-shadow);
  text-align: left;
  transition: transform 0.3s ease;
}

section#portfolio:hover {
  transform: translateY(-5px);
}

section#portfolio h2 {
  color: var(--text-pop);
  margin-bottom: 15px;
  font-size: 2rem;
}

section#portfolio p {
  color: var(--text-paragraph);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

section#portfolio ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

section#portfolio ul li {
  background-color: var(--card-bg-color);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section#portfolio ul li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.project-title {
  color: var(--text-pop);
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--text-highlight);
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.project-title:hover {
  color: var(--text-highlight);
}

.project-title:visited {
  color: var(--text-pop);
}

.project-description {
  color: var(--text-paragraph);
  font-size: 1rem;
  margin-bottom: 20px;
}

section#portfolio .tech-stack {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

section#portfolio .tech-stack li {
  background-color: var(--button-bg-color) !important;
  color: var(--button-text-color) !important;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-style: italic;
  display: inline-block;
}

#wordle-gui-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px var(--qualification-shadow);
}

/* Service Section */
section.service-project {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: var(--card-bg-color);
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

section.service-project img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

section.service-project:hover {
  transform: translateY(-5px);
}

/* Qualifications Section */
section.qualification {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: var(--card-bg-color);
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  text-align: left;
  transition: transform 0.3s ease;
}

section.qualification:hover {
  transform: translateY(-5px);
}

section.qualification h2 {
  color: var(--text-pop);
  margin-bottom: 15px;
  font-size: 1.8rem;
  border-bottom: 2px solid var(--text-highlight);
  padding-bottom: 5px;
}

section.qualification ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

section.qualification ul li {
  color: var(--text-paragraph);
  margin-bottom: 10px;
  font-size: 1rem;
  padding-left: 15px;
  position: relative;
}

section.qualification ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-highlight);
  font-size: 1.2rem;
}

/* Class Photo Section */
section#class-photo {
  max-width: 100%;
  margin: 40px auto;
  text-align: center;
}

section#class-photo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  object-fit: cover;
}

/* Resume Download Button */
section#resume {
  text-align: center;
  margin: 20px auto;
}

.download-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--button-bg-color);
  color: var(--button-text-color);
  text-decoration: none;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.download-button:hover {
  background-color: var(--text-highlight);
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3);
  color: var(--main-bg-color);
}

/* Footer */

footer.social-links a.linkedin {
  background-image: url('./resources/linkedin.svg');
}

footer.social-links a.github {
  background-image: url('./resources/github.svg');
}

footer.social-links a.email {
  background-image: url('./resources/email.svg');
}

footer.social-links {
  background-color: var(--header-bg-color);
  padding: 20px;
  text-align: center;
}

footer.social-links a {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin: 0 10px;
  transition: transform 0.3s ease color 0.3s ease;
  background-size: cover;
  background-position: center;
}

footer.social-links img {
  width: 24px;
  height: auto;
}

footer.social-links a:hover {
  transform: scale(1.1);
  color: var(--text-highlight);
}

button {
  color: var(--button-text-color);
  background-color: var(--button-bg-color);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

button:hover {
background-color: var(--text-highlight);
color: var(--main-bg-color);
}

a {
    text-decoration: none;
    color: inherit;
}

a:visited {
    color: inherit;
}

a:hover {
    color: var(--text-highlight);
}

a.word-link {
    color: var(--text-highlight);
    text-decoration: none;
    transition: color 0.3s ease;
}

a.word-link:visited {
    color: var(--text-highlight);
}

a.word-link:hover {
    color: var(--text-pop);
}

#StyleButton {
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 2px;
  border: none;
  border-radius: 50px;
  color: white;
  background: linear-gradient(90deg, #0f172a, #cbd7ed, #54eac4);
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.4);
  transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
  outline: none;
}

#StyleButton::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, #102C57, #EADBC8, #DAC0A3);
  z-index: -1;
  transition: opacity 0.6s ease, transform 0.6s ease;
  opacity: 0;
  border-radius: 50%;
  transform: scale(0.1);
}

#StyleButton:hover::before {
  opacity: 1;
  transform: scale(1.5);
}

#StyleButton:hover {
  background: linear-gradient(90deg, #102C57, #EADBC8, #DAC0A3);
  color: white;
  box-shadow: 0 8px 30px rgba(234, 219, 200, 0.8), 0 4px 15px rgba(16, 44, 87, 0.6);
}

#StyleButton::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #102C57, #EADBC8, #DAC0A3);
  z-index: -2;
  opacity: 0;
  border-radius: 50px;
  filter: blur(10px);
  transition: opacity 0.6s ease, filter 0.6s ease;
}

#StyleButton:hover::after {
  opacity: 0.8;
  filter: blur(20px);
}



