/* ====== Global Reset ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: #fafafa;
  color: #2c2c2c;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: #222;
}

p {
  color: #555;
  font-size: 1.05rem;
}


/* ====== Navbar ====== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  position: relative;
}

.navbar a.logo img {
  height: 40px;
}

/* Menu styling */
nav menu {
  display: flex;
  list-style: none;
  gap: 10px;
  margin: 0;
  padding-right: 2em;
}

nav menu li a {
  display: block;
  padding: 0.5em 1em;
  border-bottom: 0.25em solid transparent;
  color: #000000;
  font-size: 1.2em;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.5em;
  background-color: transparent;
  transition: all 0.3s ease;
}

nav menu li a:hover {
  border-bottom: 0.25em solid #f4d003;
  background-color: #a75d2a;
  color: #ffffff;
}


/* ====== Hamburger Menu Button ====== */
/* Hamburger menu hidden by default, shown on mobile */
#menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  /* consistent spacing between bars */
  width: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 1em;
  z-index: 1000;
}

#menu-toggle .bar {
  width: 100%;
  height: 2.5px;
  background-color: #000;
  /* or #333 depending on your theme */
  border-radius: 2px;
}

.hidden {
  display: none !important;
}

/* ====== Hero Section ====== */
.title_bg {
  position: relative;
  text-align: left;
  padding: 4rem 2rem;
  /* background: linear-gradient(135deg, #eae0f8 0%, #f4effb 100%); */
  /* background: linear-gradient(135deg, #c7d5f3 0%, #f1eafa 100%); */
  background: linear-gradient(135deg, #e2eeb7 0%, #e3e6f4 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.title_bg img {
  display: none;
  /* optional: hide busy background */
}

.title_bg .centered {
  max-width: 500px;
}

.title_bg h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.title_bg h2 {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 2rem;
}


.title_bg button {
  background-color: #076933;
  /* dark purple */
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 0.8rem 2rem;
}

.title_bg button:hover {
  background-color: #4b0082;
  /* lighter purple on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  background: #0769339a;
}



.centered {
  flex: 1;
  max-width: 600px;
  margin-left: 5rem;
}

.centered h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #222;
}

.centered h2 {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 2rem;
}

.pill {
  display: inline-block;
  background: #ffe8a3;
  color: #333;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  margin-bottom: 1rem;
}

button {
  background: #a75d2a;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #8a4d22;
}

.hero-photo {
  flex: 1;
  text-align: center;
}

.hero-photo img {
  width: 100%;
  max-width: 350px;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.hero-photo img:hover {
  transform: scale(1.05) rotate(2deg);
}


.photo {
  display: block;
  width: 100%;
  max-width: 500px;
  min-width: 300px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1em;
}

.about-photo {
  flex-shrink: 0;
  max-width: 40%;
  text-align: center;
}

.project-photo {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  flex-wrap: nowrap;
}

.about-photo,
.about-text {
  width: 100%;
  text-align: left;
}

.about-photo img {
  width: 80%;
  margin: 20px 0;
}

.project-photo img {
  flex-direction: column;
  width: 100%;
  margin: px 0;
}

/* ====== Sections ====== */
section {
  padding: 4rem 2rem;
}

.title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}



/* ====== Cards (Projects, Skills, Experience) ====== */
.projects-container,
.skills-container,
.courses-container,
.experience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-card,
.skill-category,
.course-card,
.experience {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  margin-top: 1.5rem;
}

.project-card:hover,
.skill-category:hover,
.course-card:hover,
.experience:hover {
  transform: translateY(-5px);
}



/* ====== Projects Section ====== */
.projects-overview {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
}

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

.project-card {
  background: #fafafa;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.project-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.75rem;
}

.project-content p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* ====== Skills Section ====== */
.skills-section {
  text-align: center;
  padding: 2rem 6rem;
  background: #fafafa;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 5rem;
  margin-top: 1rem;
}

.skill-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #6a1b9a;
  /* accent color */
}

.skill-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #222;
}

.skill-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-card ul li {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.skill-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #6a1b9a;
  /* accent bullet */
  font-weight: bold;
}

/* ====== Contact ====== */
.contact {
  background: #fdfdfd;
  border-top: 1px solid #eee;
  text-align: center;
  padding: 3rem 2rem;
}

.contact a {
  color: #a75d2a;
  text-decoration: none;
  font-weight: 600;
}

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

/* ====== Footer ====== */
footer {
  text-align: center;
  padding: 1rem;
  background: #fff;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #555;
}

/* =========================
   Project Sections
   ========================= */
section {
  padding: 3rem 2rem;
  border-bottom: 1px solid #f1e4c3;
  background-color: #fffdf6;
}

section h2.title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #a75d2a;
}

section h3 {
  margin-bottom: 1rem;
  color: #444;
}

.project-text {
  margin: 0.7rem 0 0.7rem 0;
  max-width: 1000px;
}

/* project images */
.project-photo {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.project-photo .photo {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* =========================
   Intelligent Scissors Demo
   ========================= */
.hiddenmodal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background: #fffaf0;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 15px;
  max-width: 800px;
  width: 90%;
  color: #333;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.modal-content p {
  margin: 1rem 0;
}

.modal-content .scissors {
  display: block;
  width: 100%;
  max-width: 500px;
  /* keeps images from being too big */
  margin: 1rem auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* close button */
.close {
  color: #333;
  float: right;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
}

#show-demo-btn {
  margin: 1.5rem 0;
  padding: 0.8rem 1.6rem;
  border-radius: 25px;
  border: none;
  background-color: #ffe8a3;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#show-demo-btn:hover {
  background-color: #ffd56b;
}

/* ====== About Section ====== */
.about-section {
  background: #fdfdfd;
  padding: 4rem 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 3rem auto;
}


.about-photo img {
  flex: 0 0 35%;
  width: 100%;
  max-width: 350px;
  border-radius: 1rem;
  box-shadow: 0 6px 16px rgba(167, 93, 42, 0.25);
  transition: transform 0.3s ease;
}

.about-photo img:hover {
  transform: scale(1.03);
}

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

.about-text h2 {
  font-size: 2rem;
  color: #a75d2a;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-text ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}

.about-text ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #555;
}

.about-text ul li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  color: #f4d003;
  font-size: 1rem;
}

.about-text strong {
  color: #076933;
}

/* Slide up Section */
.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: 0.1s;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== Projects Page ====== */

/* Title banner section (already matches hero style) */
.title_bg h1 {
  color: #a75d2a;
}

.title_bg h2 {
  color: #333;
  font-weight: 500;
}

/* General project section styling */
main section {
  background-color: #fffef7;
  border-radius: 16px;
  padding: 3rem 2rem;
  margin: 2.5rem auto;
  max-width: 1000px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid #f4e2b4;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

main section:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

main section h2.title {
  font-size: 1.8rem;
  color: #a75d2a;
  text-align: center;
  margin-bottom: 1.5rem;
}

main section h3 {
  font-size: 1.2rem;
  color: #076933;
  margin-bottom: 0.8rem;
  text-align: center;
}

main section ul {
  margin: 1rem 0 1.5rem 1.2rem;
  color: #444;
}

main section ul li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
  font-size: 1rem;
  position: relative;
}

main section ul li::before {
  content: "➤";
  position: absolute;
  left: -1.2rem;
  color: #f4d003;
  font-weight: bold;
}

/* Paragraph text */
.project-text {
  color: #333;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-top: 1rem;
}

/* Photo gallery */
.project-photo {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.project-photo img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  border: 2px solid #f4d00350;
  transition: transform 0.3s ease;
}

.project-photo img:hover {
  transform: scale(1.03);
}

/* Modal styling for demo section */
.hiddenmodal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fffef7;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid #f4d00370;
  width: 85%;
  max-width: 800px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: #333;
}

.modal-content p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.modal-content strong {
  color: #a75d2a;
}

.modal-content img.scissors {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 1.2rem auto;
  border-radius: 10px;
  border: 2px solid #f4d00350;
}

.close {
  color: #a75d2a;
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #076933;
}

/* Button styling */
#show-demo-btn {
  background-color: #a75d2a;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  display: block;
  margin: 1.5rem auto;
  font-weight: 600;
  font-size: 1rem;
}

#show-demo-btn:hover {
  background-color: #8a4d22;
  transform: translateY(-2px);
}

/* work section */

.project-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  gap: 1.8rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  margin-top: 3rem;
}

.project-section ul {
  list-style-type: disc;
  margin-left: 1.5rem;
}

.project-text {
  max-width: 800px;
  line-height: 1.6;
  color: #333;
}

/* Carousel container */
.carousel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  /* make it large */
  aspect-ratio: 16 / 9;
  /* keeps large, consistent height */
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Slides wrapper: each child (image) will be full width of container */
.carousel .slides {
  display: flex;
  gap: 0;
  /* no gaps between slides */
  height: 100%;
  transition: transform 0.6s ease;
  will-change: transform;
}

/* Each image is one slide and fills the container */
.carousel .slides img {
  flex: 0 0 100%;
  /* occupy 100% of carousel width */
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* crops cleanly while preserving aspect */
  display: block;
  /* removes inline spacing problems */
  border-radius: 1.25rem;
}

/* Navigation buttons — more visible */
.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  font-size: 2.6rem;
  cursor: pointer;
  padding: 0.45rem 0.95rem;
  border-radius: 50%;
  transition: transform 0.18s, background 0.18s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  z-index: 10;
}

.carousel button:hover {
  transform: translateY(-50%) scale(1.12);
  background: rgba(0, 0, 0, 0.78);
}

.carousel .prev {
  left: 18px;
}

.carousel .next {
  right: 18px;
}



/* Contact section consistency */
.contact {
  background: linear-gradient(135deg, #fffbe6 0%, #f7f4e0 100%);
  border-top: 2px solid #f4d00360;
}

.contact .pill {
  background-color: #ffe8a3;
  color: #333;
}

.contact a {
  color: #a75d2a;
  font-weight: 600;
}




/* Mobile responsiveness */
@media (max-width: 768px) {

  .centered {
    flex: 1;
    max-width: 600px;
    margin-left: 0rem;
  }

  .centered h1,
  .centered h2 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    text-align: center;
  }

  h1,
  h2 {
    text-align: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
  }

  .projects-overview,
  .skills-section,
  .contact,
  .about-section,
  .courses-section,
  .acutal-project,
  .project-section {
    max-width: 95vw;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1em;
    padding-right: 1em;
  }

  #menu-toggle {
    display: flex;
    margin-left: auto;
  }

  nav menu {
    display: none;
  }

  nav menu.show {
    display: block;
  }

  nav menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 2rem;
    background-color: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }



  nav menu:not(.hidden) {
    display: flex;
  }


  #nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(1em + 32px);
    /* 1em from top + height of #menu-toggle */
    right: 1em;
    background: #fff;
    padding: 1em 1.5em;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    z-index: 99;
    min-width: 160px;
  }


  #nav-menu.show {
    display: flex;
  }

  #nav-menu li {
    margin-bottom: 0.5em;
    text-align: center;
  }

  #nav-menu li a {
    font-size: 1.1em;
    padding: 0.7em 1em;
    border-radius: 6px;
    color: #222;
    background: none;
    transition: background 0.2s, color 0.2s;
  }

  #nav-menu li a:hover {
    background: #f4d003;
    color: #a75d2a;
  }

  .title_bg {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1rem;
  }

  .about-me {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 95vw;
    margin: 2rem auto;
  }

  .about-photo,
  .about-text {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .about-photo {
    /* Center the image when it stacks above the text */
    text-align: center;
  }

  .hero-photo {
    margin-bottom: 1.5rem;
  }

  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5em 0;
  }


  .navbar {
    flex-direction: row;
    align-items: center;
    width: 100%;
    text-align: center;
    padding: 0.5em 0.5em;
  }

  .flexbox {
    flex-direction: column;
  }

  .logo {
    width: 100%;
    text-align: left;
    margin-bottom: 0.5em;
  }

  #nav-menu {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    position: absolute;
    top: 100px;
    right: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
    padding: 1em;
    border-radius: 8px;
    width: 200px;
  }

  #nav-menu:not(.hidden) {
    display: flex;
  }

  #nav-menu li {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  #nav-menu li a {
    color: #110101;
    padding: 0.5em 1em;
    display: block;
  }

  #nav-menu li a:hover {
    background-color: #076933;
    color: white;
  }


  #menu-toggle {
    display: flex;
    position: absolute;
    top: 1em;
    right: 1em;
    margin: 0;
  }


  .logo img {
    height: 48px;
    padding-left: 0.5em;
  }


  .carousel {
    height: auto;
  }

  .carousel img {
    width: 100%;
    height: auto;
  }

  .carousel button {
    font-size: 2rem;
    padding: 0.3rem 0.7rem;
  }

}


@media (max-width: 500px) {

  .centered {
    flex: 1;
    max-width: 600px;
    margin-left: 0rem;
  }

  .centered h1,
  .centered h2 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    text-align: center;
  }

  h1,
  h2 {
    text-align: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
  }
    
  .carousel {
    height: 220px;
  }

  .carousel button {
    font-size: 1.8rem;
    padding: 0.25rem 0.6rem;
  }
}
