/* 
Author: Joy
Project: Regency-Inspired Portfolio (Hackathon Submission)
Stylesheet: Layout, Typography, and Theme
*/


/* ------------------------------
   Base Layout & Typography
------------------------------ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background-color: #FAF8F5;
  color: #2F2F2F;
  margin: 0;
  padding: 0;
}

html, body {
  max-width: 100vw;
  /* overflow-x: hidden; */
}

* {
  box-sizing: border-box;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #6B4F4F;
  margin-bottom: 0.5rem;
}

h1.name {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

p, li, a, label {
  font-size: 1.125rem;
  color: #2F2F2F;
}

/* ------------------------------
   Calling Card Header
------------------------------ */

.intro-header {
  background: linear-gradient(to bottom, #f9f6f2, #fffaf5);
  padding: 5rem 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid #e5ddd0;
}

.intro-text .name {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: #5b4231;
  margin-bottom: 0.5rem;
}

.intro-text .role {
  font-size: 1.5rem;
  color: #8a6f5a;
  margin-bottom: 1rem;
}

/* .tagline {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #5A4E4E; 
  max-width: 700px;
  margin: 0.5rem auto 1.5rem auto;
  line-height: 1.5;
  text-align: center;
} */

.intro-text .tagline {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #3b3c40;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  border-radius: 0.3rem;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.btn.primary {
  background-color: #a67c52;
  color: white;
}

.btn.primary:hover {
  background-color: #8a6b44;
}

.btn.secondary {
  background-color: transparent;
  border: 2px solid #a67c52;
  color: #a67c52;
}

.btn.secondary:hover {
  background-color: #a67c52;
  color: white;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: #8B5E3C; /* soft brown */
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: #C49A6C; /* lighter accent brown */
  transform: scale(1.1);
}

.social-links svg {
  width: 28px;
  height: 28px;
}


/* ------------------------------
   Navigation
------------------------------ */
/* Navigation */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #FDF9F3;
  border-bottom: 1px solid #E6D5C0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  max-width: 1200px;
  margin: auto;
}
/* 
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #5B4636;
  text-decoration: none;
} */

.logo {
  display: block;
  width: 100px;      /* Fixed width */
  height: 40px;      /* Fixed height */
  /* background: url('assets/images/myicon-removebg.png') no-repeat center / contain; */
}

.logo-icon {
  height: 40px; 
  width: auto;
  display: block;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: #5B4636;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: #A26769;
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .nav-list {
    display: none;
    flex-direction: column;
    background: #FAF6F2; /* soft neutral background */
    position: absolute;
    top: 60px; /* adjust to match header height */
    right: 0;
    width: 220px;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 2px solid #E6D5C0;
    border-radius: 0 0 0 8px;
    z-index: 100;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
  }

  .nav-list.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    /* right: 0;  */
  }

  .nav-list li {
    text-align: right;
    padding: 0.5rem 1.25rem;
  }

  .nav-list a {
    color: #5A4032;
    font-weight: 500;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
  }

  .nav-list a:hover {
    color: #A26769;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    margin-left: auto;
  }

  .nav-toggle:hover,
  .nav-toggle:focus {
  background: none; /* Prevent default hover shading */
}

  .nav-toggle span {
    display: block;
    height: 3px;
    width: 26px;
    background: #8B5E3C; /* brown tone */
    margin: 4px 0;
    border-radius: 2px;
    transition: background 0.3s ease;
  }
}

/* Desktop menu */
@media (min-width: 769px) {
  .nav-list {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    box-shadow: none;
    width: auto;
  }

  .nav-toggle {
    display: none;
  }
}


/* .nav-list {
  list-style: none;
  padding: 1rem 0 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-list a {
  text-decoration: none;
  color: #2F2F2F;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease-in-out;
}

.nav-list a:hover {
  border-color: #6B4F4F;
  color: #6B4F4F;
} */

/* ------------------------------
   Hero Section
------------------------------ */
/* .hero {
  background-color: #F5EFE6;
  border-left: 8px solid #6B4F4F;
  padding: 2rem;
  margin-bottom: 3rem;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #6B4F4F;
}

.hero p {
  font-size: 1.25rem;
  line-height: 1.8;
} */

/* ------------------------------
   About Section
------------------------------ */
.about-portrait {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  padding: 2rem 1rem;
}

.portrait {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #6B4F4F;
}

.about-text {
  flex: 1;
  max-width: 600px;
}

.about-list {
  list-style: none;
  padding: 0;
}

.about-list li strong {
  color: #6B4F4F;
}

.stats-cards {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stat-card {
  background-color: #fff;
  padding: 1rem;
  border: 1px solid #E6D5C0;
  border-radius: 0.5rem;
  text-align: center;
  flex: 1;
  /* min-width: 200px; */
  /* max-width: 300px; */
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.stat-card h3 {
  font-size: 2rem;
  color: #A26769;
  margin-bottom: 0.25rem;
}

.stat-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Responsive stacking for About section */
@media (max-width: 768px) {
  .about-portrait {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .portrait-container {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .about-text {
    order: 2;
    width: 100%;
    max-width: 100%;
  }
  .stats-cards {
    flex-direction: column;
    width: 100%;
    margin-top: 1.5rem;
  }
}


/* ------------------------------
   Languages & Tools
------------------------------ */
#languages {
  background-color: #F5EFE6;
  border-left: 5px solid #6B4F4F;
  padding: 1.5rem;
  border-radius: 0.5rem;
}
/* 
.tool-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.tool-columns ul {
  flex: 1 1 45%;
  list-style: none;
  padding: 0;
}

.tool-columns li strong {
  color: #6B4F4F;
} */

.skills-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.skill-card {
  background: #fff;
  border: 1px solid #E6D5C0;
  border-radius: 0.5rem;
  padding: 1.5rem;
  flex: 1 1 300px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.skill-card h3 {
  color: #A26769;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.skill-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skill-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
}

.skill-item p {
  font-size: 0.95rem;
  color: #555;
}

@media (max-width: 768px) {
  .skills-cards {
    flex-direction: column;
  }
  .skill-card{
    flex: 1 1 100%;
    margin-bottom: 1.5rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}


/* ------------------------------
   Education
------------------------------ */
/* #education {
  background-color: #FAF8F5;
  padding: 2.5rem;
  border-top: 5px double #CBB8A9;
  border-bottom: 5px double #CBB8A9;
}

.education-list li strong {
  color: #6B4F4F;
} */

/* .education-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.education-card {
  background: #fff;
  border: 1px solid #E6D5C0;
  border-radius: 0.5rem;
  padding: 1.5rem;
  flex: 1 1 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.education-card h3 {
  color: #A26769;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.education-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.cta-container {
  margin-top: 2rem;
  text-align: center;
}

.cta-button {
  background-color: #A26769;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.3rem;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.cta-button:hover {
  background-color: #8B4E54;
}

@media (max-width: 768px) {
  .education-cards {
    flex-direction: column;
  }
} */

#education {
  background-color: #FBF8F3;
  padding: 2.5rem;
  border-radius: 0.5rem;
  text-align: center;
}

#education h2 {
  color: #A26769;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.education-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Individual Cards */
.edu-card {
  background: #FFFFFF;
  border: 1px solid #E6D5C0;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Icons */
.edu-icon {
  font-size: 2rem;
  color: #A26769;
  margin-bottom: 0.75rem;
}

.edu-icon img {
  width: 2rem;
  height: 2rem;
  max-width: 100%;
  max-height: 100%;
  display: block;
  margin: 0 auto 0.5rem auto;
  object-fit: contain;
}



/* Texts inside the card */
.edu-card h3 {
  color: #3B3C40;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.edu-institution {
  display: block;
  font-size: 0.95rem;
  color: #5A4E4E;
  margin-bottom: 0.25rem;
}

.edu-date {
  display: block;
  font-size: 0.9rem;
  color: #A26769;
  margin-bottom: 0.75rem;
}

.edu-card p {
  font-size: 1rem;
  color: #3B3C40;
}

/* CV Download Block */
.cv-download {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #FFF8F2;
  border: 2px dashed #D8A7B1;
  border-radius: 0.5rem;
}

.cv-download p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #3B3C40;
}

.cv-btn {
  display: inline-block;
  background-color: #D8A7B1;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.3rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cv-btn:hover {
  background-color: #A26769;
}




/* ------------------------------
   Projects
------------------------------ */
/* #projects {
  background-color: #F5EFE6;
  padding: 2.5rem;
  border-left: 4px solid #6B4F4F;
}

.project-card {
  background-color: #FFFFFF;
  border: 1px solid #E6D5C0;
  border-left: 5px solid #6B4F4F;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.project-card a {
  color: #6B4F4F;
  text-decoration: none;
}

.project-card a:hover {
  color: #2F2F2F;
} */

#projects {
  background-color: #FDF9F3;
  padding: 2.5rem;
  border-radius: 0.5rem;
  /* margin: 0; */
}

/* .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
} */

.projects-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* .project-card {
  background: #fff;
  border: 1px solid #E6D5C0;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease; */
/* } */

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 300px;
  min-width: 280px;
  max-width: 1fr;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 2rem;
  margin-bottom: 2rem;
  /* margin-top: 0.5rem; */
}

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

.project-card h3 {
  margin-bottom: 0.75rem;
  color: #3B3C40;
}

.project-card p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #5A4E4E;
}

.tech-badges span {
  display: inline-block;
  background: #F4EFEA;
  color: #A26769;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  margin: 0.2rem;
  border-radius: 0.3rem;
}

.code-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: #A26769;
  color: #fff;
  border-radius: 0.3rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
  margin-top: 1rem;
  align-self: flex-start;
}

/* .code-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: #A26769;
  color: #fff;
  border-radius: 0.3rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
} */

.code-btn:hover {
  background: #7A4F51;
}

.projects-footer {
  text-align: center;
  margin-top: 2rem;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border: 2px solid #A26769;
  color: #A26769;
  border-radius: 0.3rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: #A26769;
  color: #fff;
}

/* ------------------------------
   Interests
------------------------------ */
.interests-grid {
  display: flex;
  /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-content: center;
}

/* .interest-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.5rem 1.5rem;
  min-width: 250px;
  max-width: 400px;
  flex: 1 1 300px;
} */

.interest-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 1rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.5rem 1.5rem;
  min-width: 250px;
  max-width: 400px;
  flex: 1 1 300px;
}

.interest-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.interest-card .icon {
  margin-bottom: 0.1rem;
}

.interest-card .icon img {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  /* margin: 0 auto; */
}

.interest-header h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #3B3C40;
  font-weight: bold;
}

/* ------------------------------
   Contact
------------------------------ */
/* #contact {
  background-color: #FAF8F5;
  padding: 2.5rem;
  border: 2px dashed #6B4F4F;
}

button {
  background-color: #6B4F4F;
  color: #fff;
}

button:hover {
  background-color: #5A3E3E;
} */

.contact-section {
  padding: 4rem 2rem;
  background: #fffdfb; /* soft neutral */
  border-top: 1px solid #e5d7ce;
  text-align: center;
}

.contact-section h2 {
  color: #5a3e36; /* rich brown accent */
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-intro {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #4a3c3a;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fdfaf7;
  padding: 2rem;
  border: 1px solid #e5d7ce;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #5a3e36;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d5c7bd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #8c6b5c; /* deeper brown focus */
}

.btn-primary {
  display: inline-block;
  background: #8c6b5c;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #6f5145;
}


/* ------------------------------
   Footer
------------------------------ */
/* .site-footer {
  background-color: #D8C3A5;
  color: #2F2F2F;
  text-align: center;
  padding: 2rem 1rem;
}

.site-footer a {
  color: #6B4F4F;
} */

.site-footer {
  background: #fdfaf7; /* soft neutral tone */
  color: #4a3c3a;
  padding: 3rem 2rem;
  border-top: 1px solid #e5d7ce;
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: #5a3e36;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-contact li {
  margin: 0.5rem 0;
}

.footer-contact a {
  color: #5a3e36;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-contact .footer-icon {
  width: 1.2rem;
  height: 1.2rem;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid #e5d7ce;
  padding-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
}

/* .social-icons a {
  margin-left: 1rem;
  color: #8c6b5c;
  font-size: 1.3rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #5a3e36;
} */


