:root {
  --text-color: #1a1c20;
  --link-color: #4a76ee;
  --background-color: #eeeff1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  max-width: 1400px;
  margin: 0 auto;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 50px;
  height: 80px;
}

nav .left a {
  color: var(--text-color);
  font-size: 22px;
  font-weight: 600;
}

nav .right a {
  color: var(--text-color);
  margin: 0 10px;
}

nav .right a:last-child {
  color: var(--background-color);
  background-color: var(--text-color);
  padding: 5px 15px;
  border-radius: 5px;
}

nav .right a span {
  margin-left: 5px;
}

/* SECTION 1: Hero */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  margin: 50px 0;
  margin-bottom: 100px;
  gap: 40px;
}

.hero-section .text {
  flex: 5;
}

.hero-section .text h2 {
  font-size: 45px;
}

.hero-section .text .links {
  margin-top: 25px;
}

.hero-section .text .links a {
  display: inline-block;
  padding: 5px 10px;
  border: 2px solid var(--link-color);
  border-radius: 5px;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: .1s;
}

.hero-section .text .links a:hover {
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

.hero-section .headshot {
  flex: 2;
  display: flex;
  justify-content: right;
}

.hero-section .headshot img {
  width: 350px;
  border-radius: 50%;
}

/* SECTION 2: Skills */
.skills-section {
  padding: 40px 50px;
  margin-bottom: 50px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.skills-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: #2c3e50;
  position: relative;
  padding-bottom: 15px;
}

.skills-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4a76ee, #3a5fcd);
  border-radius: 2px;
}

.skills-section .text {
  text-align: left;
  margin-bottom: 40px;
  line-height: 1.7;
  color: #4a5568;
}

.skills-section h3 {
  color: #2d3748;
  margin: 30px 0 15px;
  font-size: 1.5rem;
  position: relative;
  padding-left: 15px;
  border-left: 4px solid #4a76ee;
}

.skills-section ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  margin: 20px 0 30px;
}

.skills-section ul li {
  background-color: #f8f9fa;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 1rem;
  color: #4a5568;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border-left: 3px solid #4a76ee;
}

.skills-section ul li:hover {
  transform: translateX(5px);
  background-color: #edf2f7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.skills-section ul li::before {
  content: '▹';
  color: #4a76ee;
  margin-right: 10px;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .skills-section {
    padding: 30px 20px;
  }
  
  .skills-section ul {
    grid-template-columns: 1fr;
  }
}

/* SECTION 3: Testimony */
.testimony-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.testimony-section h2 {
  font-size: 35px;
  margin-bottom: 30px;
}

.testimony-section .group {
  display: flex;
  align-items: center;
  gap: 50px;
}

.testimony-section .group .person-details {
  text-align: center;
  flex: 2;
}

.testimony-section .group .person-details img {
  width: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.testimony-section .group .person-details p {
  font-weight: 600;
}

.testimony-section .group .person-details p:last-child {
  font-weight: normal;
}

.testimony-section .group .text {
  flex: 8;
}

/* SECTION 4: Contact */
.contact-section {
  padding: 80px 50px;
  background-color: white;
  border-radius: 10px;
  margin: 50px auto;
  max-width: 1200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: #2c3e50;
  position: relative;
  padding-bottom: 15px;
}

.contact-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4a76ee, #3a5fcd);
  border-radius: 2px;
}

.contact-section .group {
  display: flex;
  gap: 50px;
  margin-top: 30px;
  align-items: flex-start;
}

.contact-section .text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a5568;
}

.contact-section form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-section .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-section label {
  font-weight: 500;
  color: #2d3748;
}

.contact-section input,
.contact-section textarea {
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f8fafc;
}

.contact-section input:focus,
.contact-section textarea:focus {
  outline: none;
  border-color: #4a76ee;
  box-shadow: 0 0 0 3px rgba(74, 118, 238, 0.2);
}

.contact-section textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-section button[type="submit"] {
  background: linear-gradient(90deg, #4a76ee, #3a5fcd);
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.contact-section button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 118, 238, 0.2);
}

.contact-section button[type="submit"]:active {
  transform: translateY(0);
}

.form-status {
  padding: 12px;
  border-radius: 6px;
  margin-top: 10px;
  display: none;
}

.form-status.success {
  background-color: #d1fae5;
  color: #065f46;
  display: block;
}

.form-status.error {
  background-color: #fee2e2;
  color: #b91c1c;
  display: block;
}

@media (max-width: 768px) {
  .contact-section .group {
    flex-direction: column;
    gap: 30px;
  }
  
  .contact-section {
    padding: 40px 20px;
  }
}

.contact-section .group form input,
.contact-section .group form textarea {
  font-family: 'Poppins', sans-serif;
  border: 2px solid var(--link-color);
  background-color: transparent;
  padding: 10px;
  margin-bottom: 15px;
  outline: none;
  resize: none;
}

.contact-section .group form button {
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background-color: var(--link-color);
  border: none;
  height: 50px;
  cursor: pointer;
  transition: .1s;
}

.contact-section .group form button:hover {
  filter: brightness(.9);
}

@media (max-width: 850px) {
  /* SECTION 1: Hero */
  .hero-section .text h2 {
    font-size: 35px;
  }
}

@media (max-width: 740px) {
  /* SECTION 1: Hero */
  .hero-section {
    flex-direction: column-reverse;
  }

  .hero-section .headshot img {
    width: 300px;
  }

  /* SECTION 3: Testimony */
  .testimony-section {
    text-align: center;
  }

  .testimony-section .group {
    flex-direction: column;
  }

  /* SECTION 4: Contact */
  .contact-section .group {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  /* NAVBAR */
  nav {
    padding: 0 20px;
  }

  nav .right a {
    font-size: 22px;
  }

  nav .right a:last-child {
    color: var(--text-color);
    background-color: transparent;
    padding: 0;
  }

  nav .right a span {
    display: none;
  }

  /* SECTION 1: Hero */
  .hero-section {
    padding: 0 20px;
  }

  .hero-section .text h2 {
    font-size: 30px;
  }

  /* SECTION 2: Skills */
  .skills-section {
    padding: 0 20px;
  }

  .skills-section .cells .cell span {
    font-size: 16px;
  }

  /* SECTION 3: Testimony/fav quotes */
  .testimony-section {
    padding: 0 20px;
  }


  /* SECTION 6: Contact */
  .contact-section {
    padding: 0 20px;
  }
}


/* Projects Section Styling */
.projects-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.projects-section h2 {
  font-size: 35px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-color);
}

.projects-table-wrapper {
  overflow-x: auto;
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  border: 1px solid #ccc; 
  table-layout: auto;
  word-wrap: break-word;
  min-width: 600px; 
}

.projects-table th,
.projects-table td {
  padding: 20px 20px;
  border: 1px solid #ccc;
  text-align: left;
}

.projects-table th {
  background-color: #e6e9f0; 
  font-weight: 600;
  color: var(--text-color);
}


.projects-table a:hover {
  color: #2a49c5; 
  text-decoration: underline;
}


  /* Section 4: Fav movies and animes */

  .favorites-section {
  padding: 0 50px;
  }

  .favorites-section h2 {
  font-size: 35px;
  text-align: center;
  margin-bottom: 30px;
}

  .favorites-section .category {
    margin-bottom: 40px;
  }

  .favorites-section .category h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--link-color);
  border-left: 4px solid var(--link-color);
  padding-left: 10px;
}

  .favorites-section ol {
  margin-left: 20px;
  font-size: 16px;
  line-height: 2;
  list-style: decimal;
  }

  .favorites-section ol li {
  padding-left: 10px;
  margin-bottom: 8px;
}

.favorites-section ol li:hover {
  color: var(--link-color);
}


/*footer css */
.footer {
  text-align: center;
  padding: 30px 20px;
  background-color: #dfe3ea;
  color: #333;
  font-size: 14px;
  margin-top: 50px;
}
