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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: rgb(255, 255, 255);
  font-family: "Times New Roman", serif;
}

/* NAVBAR */
.navbar {
  background-color: #212d36dc;
  font-family: 'Italianno', cursive;
  font-size: 1.5rem;
  min-height: 70px;
  padding: 10px 50px;
  align-items: center;
}

.navbar-nav {
  margin-left: auto;
  font-family: "Times New Roman", serif;
  font-size: 1rem;
}

.navbar-brand img {
  margin-right: 15px;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.content-center {
  position: absolute;
  top: 50%;
  right: 20%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 45%;
}

/* YOHAN LEE STYLING */
.content-center h1 {
  font-family: 'Italianno', cursive;
  font-size: 8rem;
  margin-bottom: 5px;
  color: yellow;
  line-height: 1.1;
}

.content-center h1::after {
  content: "";
  display: block;
  width: 50%;
  height: 3px;
  background-color: white;
  margin: 10px auto 0 auto;
}

.content-center p {
  font-size: 1.2rem;
  margin-top: 5px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Responsive p for mobile */
@media (max-width: 768px) {
  .content-center {
    right: 10%;
  }

  .content-center p {
    font-size: 0.85rem;
  }

  .btn-learn {
    padding: 7px 18px;     
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .content-center h1 {
    font-size: 3.5rem;
  }

  .hero-bg {
    object-position: -150px center;
  }

  .btn-learn {
    padding: 10px 20px;  
    font-size: 0.70rem;
    margin-top: 20px;
  }
}

/* BUTTON */
.btn-learn {
  margin-top: 0px;
  padding: 6px 15px;
  border-radius: 18px;
  background-color: #ffffff22;
  color: white;
  border: 1px solid white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-learn:hover {
  background-color: #ffffff44;
}

/* EDUCATION SECTION */
.education-section {
  background-color: #ffffff;
  color: #081a3a;
  padding: 6rem 0 4rem;
}

.education-title {
  font-family: 'Times New Roman', serif;
  font-size: 2.75rem;
  text-align: center;
  color: #081a3a;
  margin-bottom: 3.5rem;
  letter-spacing: 2px;
}

.education-list {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: block;
  padding: 0 1rem;
}

.edu-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  
  align-items: center;
  width: 100%;
  padding: 0;
}

/* Mobile: stack logo above text and increase gutters */
.media-mobile {
}
@media (max-width: 600px) {
  .education-list {
    padding: 0 1.25rem;
  }

  .edu-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem 0;
  }

  .edu-item-logo img {
    width: 90px;
    height: 90px;
    margin: 0 auto;
  }

  .edu-degree { font-size: 1.25rem; }
  .edu-school { font-size: 0.95rem; }
}

.edu-item-logo img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  display: block;
}

.edu-item-content {
  color: #081a3a;
}

.edu-degree {
  font-family: 'Times New Roman', serif;
  font-size: 1.6rem;
  margin: 0 0 8px 0;
  font-weight: 400;
}

.edu-school {
  margin: 0 0 6px 0;
  font-size: 1rem;
  color: #081a3a;
}

.edu-years {
  margin: 0;
  font-size: 0.95rem;
  color: #081a3a;
}

/* Subtle separator between entries (optional) */
.edu-item:not(:last-child) {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(8,26,58,0.06);
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
  .edu-item {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    text-align: left;
  }

  .edu-item-logo img {
    width: 80px;
    height: 80px;
  }

  .education-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .edu-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .edu-item-logo img {
    margin: 0 auto 0.5rem auto;
  }

  .edu-degree { font-size: 1.25rem; }
  .edu-school { font-size: 0.95rem; }
}

/* Certifications Section */
.certifications-section {
  padding: 40px 0;
  background-color: #a6a68718;
}

.certifications-title {
  text-align: center;
  font-family: 'Times New Roman', serif;
  margin-bottom: 40px;
  font-size: 2.5rem;
  font-weight: ;
  color: rgb(0, 0, 0);
}

.cert-item {
  text-align: center;
  padding: 15px;
  margin-bottom: 20px;
}

.cert-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: block;
}

.cert-thumb {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cert-thumb:hover,
.cert-item:hover .cert-thumb {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.cert-item p {
  margin-top: 10px;
  font-size: 1rem;
  color: black;
}

@media (max-width: 800px) {
  .cert-item img {
    height: 220px; 
  }
}

@media (max-width: 768px) {
  .cert-item img {
    height: 90px;
  }
  
  .cert-item p {
    font-size: 0.9rem;
  }
}

.education {
  border: 2px solid #ccc; 
  padding: 15px;
  margin: 10px 0;
}

.skills-section {
  background-color: #ffffff;
  color: #081a3a;
  padding: 4rem 0;
}

.skills-title {
  text-align: center;
  font-family: 'Times New Roman', serif;
  font-size: 2.5rem;
  font-weight:;
  color: #081a3a;
  margin-bottom: 3rem;
}

.skill-item {
  text-align: center;
  padding: 20px;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.skill-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

.skill-item p {
  font-size: 1.1rem;
  font-weight: 500;
  color: #081a3a;
  margin: 0;
}

@media (max-width: 768px) {
  .skill-item {
    height: 160px;
  }
  
  .skill-item img {
    width: 80px;
    height: 80px;
  }
}

/* FOOTER */
footer { 
  background-color: #a2c9e7dc; 
  color: rgb(0, 0, 0); 
  padding: 2rem 1rem; 
  font-family: "Times New Roman", serif;
}   
footer a { 
  color: rgb(255, 255, 255); 
  text-decoration: none; 
}
footer a:hover { 
  text-decoration: underline; 
}
footer .bi { 
  font-size: 1.2rem; 
}
footer .fw-bold { 
  margin-bottom: 1rem; 
}
/* PORTFOLIO SECTION */
.portfolio-section {
  background-color: #f9f9f9;
  color: #081a3a;
  padding: 4rem 0;
}
.portfolio-title {
  font-family: 'Times New Roman', serif;
  font-size: 2.5rem;
  text-align: center;
  color: #081a3a;
  margin-bottom: 3rem;
  letter-spacing: 2px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.portfolio-item {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}
.portfolio-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.portfolio-item-content {
  padding: 1rem;
}
.portfolio-item-content h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
}
.portfolio-item-content p {
  font-size: 1rem;
  color: #555;
  margin: 0;
}
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
