/* icons */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  display: inline-block;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  vertical-align: middle;
}

/* animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* base */
html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, serif;
  line-height: 1.8;
  background-color: #faf6f0;
  background-image: radial-gradient(circle, #e8d9c4 1px, transparent 1px);
  background-size: 24px 24px;
}

/* image responsiveness */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* navigation */
nav {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #1a1a1a;
  padding: 14px 48px;
  display: flex;
  gap: 28px;
  box-sizing: border-box;
  flex-wrap: wrap;
  animation: fadeIn 0.6s ease both;
  z-index: 100;
}

nav a {
  color: #f0ede6;
  text-decoration: none;
  font-family: monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s, letter-spacing 0.2s;
}

nav a:hover {
  color: #c4824a;
  letter-spacing: 0.2em;
}

/* main */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 48px;
}

/* hero */
#home header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: 40vh;
  padding: 60px 0;
  animation: fadeUp 0.8s ease both;
}

#home h1 {
  font-size: 3.2rem;
  font-weight: bold;
  color: #1a1a1a;
  line-height: 1.2;
  margin: 0;
}

#home header p {
  font-size: 1rem;
  color: #6b5c4e;
  font-family: monospace;
  letter-spacing: 0.05em;
  border-left: 3px solid #c4824a;
  padding-left: 16px;
  animation: fadeUp 0.8s ease 0.2s both;
}

/* hero photo */
.hero-photo {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-photo img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 4px solid #c4824a;
  box-shadow: 0 8px 32px rgba(139, 69, 19, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  background-size: cover;
}

.hero-photo img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(139, 69, 19, 0.3);
}

/* section spacing & animations */
section {
  margin-bottom: 80px;
  animation: fadeUp 0.7s ease both;
}

#about   { animation-delay: 0.1s; }
#projects { animation-delay: 0.2s; }
#contact  { animation-delay: 0.3s; }

hr {
  border: none;
  border-top: 1px solid #ddd8ce;
  margin: 60px 0;
}

/* headings */
h2 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2c2c2c;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background-color: #c4824a;
  transition: width 0.4s ease;
  margin-top: 4px;
}

h2:hover::after {
  width: 100%;
}

h3 {
  font-size: 1rem;
  font-weight: bold;
  color: #8b4513;
  margin-top: 24px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p {
  font-size: 0.95rem;
  font-weight: normal;
  color: #333;
}

/* about */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

#about .about-grid .full-width {
  grid-column: 1 / -1;
}

/* education */
.edu-card {
  background-color: #f3ede4;
  border: 1px solid #ddd8ce;
  border-left: 4px solid #c4824a;
  border-radius: 6px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139, 69, 19, 0.12);
}

.edu-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.edu-degree {
  font-size: 1rem;
  font-weight: bold;
  color: #1a1a1a;
  line-height: 1.4;
}

.edu-badge {
  background-color: #8b4513;
  color: #fff;
  font-family: monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.edu-school {
  font-size: 0.88rem;
  color: #888;
  margin: 0 0 16px;
  font-style: italic;
}

.edu-gpa {
  display: inline-block;
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #c4824a;
  text-transform: uppercase;
  border: 1px solid #c4824a;
  padding: 3px 12px;
  border-radius: 20px;
}

/* skills */
.skills-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.skills-label {
  font-family: monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bbb;
  margin: 14px 0 6px;
}

.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background-color: #f3ede4;
  border: 1px solid #ddd8ce;
  color: #555;
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 20px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  cursor: default;
}

.pill:hover {
  background-color: #8b4513;
  border-color: #8b4513;
  color: #fff;
  transform: translateY(-2px);
}

.pill-special {
  background-color: #fdf0e6;
  border-color: #c4824a;
  color: #8b4513;
}

.pill-special:hover {
  background-color: #8b4513;
  color: #fff;
}

/* hobby */
.hobbies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hobby-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: #f3ede4;
  border: 1px solid #ddd8ce;
  border-radius: 6px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hobby-card:hover {
  background-color: #ede4d8;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139, 69, 19, 0.1);
}

.hobby-icon {
  font-size: 28px !important;
  color: #c4824a;
  flex-shrink: 0;
  margin-top: 2px;
}

.hobby-text strong {
  display: block;
  font-size: 0.88rem;
  color: #1a1a1a;
  margin-bottom: 4px;
  font-family: monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hobby-text p {
  margin: 0;
  font-size: 0.85rem;
  color: #888;
  line-height: 1.6;
}

/* table */
table {
  border-collapse: collapse;
  width: 100%;
}

thead {
  background-color: #1a1a1a;
  color: #f0ede6;
}

tbody tr {
  transition: background-color 0.2s, transform 0.2s;
}

tbody tr:hover {
  background-color: #faebd7;
  transform: translateX(4px);
}

th, td {
  padding: 10px 14px;
  text-align: left;
}

/* form */
input[type="checkbox"] {
  width: auto;
}

input, textarea, select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: Georgia, serif;
  font-size: 1rem;
  margin-top: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #8b4513;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

/* buttons */
button[type="submit"] {
  background-color: #8b4513;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s, transform 0.15s;
}

button[type="submit"]:hover {
  background-color: #6e3610;
  transform: translateY(-2px);
}

button[type="reset"] {
  background-color: white;
  color: #555;
  border: 1px solid #ccc;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 8px;
  transition: background-color 0.2s, transform 0.15s;
}

button[type="reset"]:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* footer */
footer {
  width: 100%;
  background-color: #1a1a1a;
  padding: 14px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  margin-top: 60px;
}

footer p {
  color: #f0ede6;
  font-family: monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

footer a {
  color: #f0ede6;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: #c4824a;
  text-decoration: underline;
}

/* responsive for tablet */
@media (max-width: 768px) {
  main {
    padding: 40px 32px;
  }

  #home header {
    grid-template-columns: 1fr;
    min-height: unset;
    padding: 40px 0;
  }

  .hero-photo {
    justify-content: center;
  }

  .hero-photo img {
    width: 200px;
    height: 200px;
  }

  #home h1 {
    font-size: 2.2rem;
  }

  #about .about-grid {
    grid-template-columns: 1fr;
  }

  nav {
    padding: 12px 24px;
    gap: 20px;
  }
}

/* responsive for mobile */
@media (max-width: 600px) {
  main {
    padding: 24px 16px;
  }

  nav {
    gap: 14px;
    padding: 10px 16px;
  }

  #home h1 {
    font-size: 1.8rem;
  }

  .hobbies-grid {
    grid-template-columns: 1fr;
  }

  table th:nth-child(3),
  table td:nth-child(3),
  table th:nth-child(4),
  table td:nth-child(4) {
    display: none;
  }

  button[type="submit"],
  button[type="reset"] {
    width: 100%;
    margin-left: 0;
    margin-bottom: 8px;
  }

  footer {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
}
