/* General Layout */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to right, #fff8dc, #ffecb3);
  color: #3b2f2f;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header */
header {
  background-color: #ffe082;
  padding: 1rem 2rem;
  box-shadow: 0 5px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
header .logo {
  position: absolute;
  left: 2rem;
}
header .logo img {
  height: 50px;
  border-radius: 50%;
}

/* Hamburger menu styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: auto;
  margin-right: 1rem;
  z-index: 20;
  border-radius: 2rem;
}
.hamburger span {
  height: 3px;
  width: 25px;
  background: #4d3b00;
  margin: 4px 0;
  border-radius: 2rem;
  transition: 0.3s;
}

/* Navigation */
nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  z-index: 10;
}
nav a {
  text-decoration: none;
  font-weight: bold;
  color: #3b2f2f;
  background: #fff59d;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: background 0.3s;
}
nav a:hover {
  background: #ffd54f;
}
.name-tag {
  position: absolute;
  left: 6rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #4d3b00;
  font-family: 'Segoe UI', sans-serif;
  top: 0.6rem;
}
.subname-tag {
  position: absolute;
  left: 6rem;
  font-size: 0.8rem;
  font-weight: bold;
  color: #4d3b00;
  font-family: 'Great Vibes', cursive;
  top: 2rem;
}

/* Section Layout */
section {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.section p.intro {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #4b3f2f;
}

/* About Page Specific */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.about img {
  max-width: 350px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.about-text {
  flex: 1;
  background: #fff3e0;
  margin-top: -5rem;
  padding: 1.0rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: left;
}

/* Projects Page Specific */
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.project {
  background: #fff3e0;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  text-align: center;
}
.project img {
  width: 96px;
  height: 96px;
  margin-bottom: 1rem;
}
.project h3 {
  margin: 0.5rem 0;
}
.project p {
  font-size: 0.95rem;
  color: #4b3f2f;
}
.project-list a {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
.project-list a:hover {
  transform: scale(1.03);
}

/* Carousel (Design Page Specific) */
.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-slide {
  flex: 0 0 33.333%;
  transform: scale(0.8);
  opacity: 0.6;
  transition: transform 0.3s, opacity 0.3s;
}
.carousel-slide img {
  width: 90%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.carousel-slide.active {
  transform: scale(1);
  opacity: 1;
}
.nav-buttons {
  margin-top: 1rem;
}
.nav-buttons button {
  background: #fff59d;
  border: none;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}
.nav-buttons button:hover {
  background: #ffd54f;
}

/* Numeric About section */
.stats {
  display: flex;
  justify-content: right;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 100rem;
  column-gap: 5rem;
  margin-top: -5rem;
  padding-left: 20rem;
}
.stat-box {
  text-align: center;
  color: #4d3b00;
  font-family: 'Segoe UI', sans-serif;
}
.stat-box h1 {
  font-size: 4rem;
  margin: 0;
}
.stat-box h1 span {
  font-size: 2rem;
  vertical-align: super;
}
.stat-box p {
  margin-bottom: -10rem;
  margin-top: -1rem;
  font-size: 1.2rem;
  font-weight: bold;
}
.stat-box p small {
  display: block;
  font-size: 0.9rem;
  font-weight: normal;
}

/* Footer */
.custom-footer {
  background-color: #ffecb3;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  border-radius: 20px;
  margin-top: 3rem;
}
.footer-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fef3c7;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.footer-icon {
  height: 24px;
  width: 24px;
}
.footer-item a {
  text-decoration: none;
  color: #3b2f2f;
  font-weight: bold;
}
.footer-item a:hover {
  text-decoration: underline;
}

/*Projects Page Specific */
.subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.subtitle img {
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.subtitle-text {
  flex: 1;
  background: #fff3e0;
  margin-top: -1rem;
  margin-bottom: -3rem;
  padding: 1.0rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: left;
}

/* Responsive Design */
@media (max-width: 1024px) {
  section {
    padding: 1.5rem 1rem;
  }
  .stats {
    padding-left: 5rem;
    column-gap: 2rem;
  }
}

@media (max-width: 768px) {
  body {
    padding: 0 1rem;
    font-size: 90%;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  header .logo {
    position: static;
    margin-bottom: 0.5rem;
    left: 0;
  }
  .name-tag, .subname-tag {
    position: static;
    text-align: left;
    margin-left: 0.5rem;
    left: 0;
    top: 0;
  }
  /* Hamburger menu visible */
  .hamburger {
    display: flex;
  }
  /* Hide nav by default, show when active */
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff8dc;
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1rem 0;
    gap: 0.5rem;
  }
  nav.active {
    display: flex;
  }
  section {
    padding: 1rem 0.5rem;
  }
  .about {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about img {
    max-width: 100%;
  }
  .about-text {
    margin-top: 0;
    padding: 1rem;
    text-align: center;
  }
  .project-list {
    grid-template-columns: 1fr;
  }
  .carousel-container {
    width: 100vw;
    max-width: 100vw;
    overflow-x: auto;
  }
  .carousel-track {
    width: 100vw;
    max-width: 100vw;
  }
  
  .carousel-slide {
    width: 932px;
    height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
  }
  .carousel-slide img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
  .nav-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
  .stats {
    flex-direction: column;
    align-items: center;
    padding-left: 0;
    row-gap: 2rem;
    margin-top: 2rem;
    column-gap: 0;
  }
  .stat-box p {
    margin: 0.5rem 0;
  }
  .custom-footer {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
  }
  .subtitle {
    flex-direction: column;
    text-align: center;
  }
  .subtitle img {
    max-width: 100%;
  }
  .subtitle-text {
    margin: 0;
    padding: 1rem;
    text-align: center;
  }
}
.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Already defined logo style works fine */
.logo img {
  height: 50px;
  width: 50px;
  border-radius: 50%;
}

.name-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.name-tag {
  font-size: 1.3rem;
  font-weight: bold;
  color: #4d3b00;
}

.subname-tag {
  font-size: 0.95rem;
  color: #4d3b00;
  font-family: 'Segoe UI', sans-serif;
}


@media (max-width: 480px) {
  header {
    padding: 0.5rem;
  }
  .header-left {
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
  }

  .name-tag {
    font-size: 1.1rem;
  }

  .subname-tag {
    font-size: 0.85rem;
  }
  .name-container {
  align-items: flex-start;
  margin-left: 0.5rem;
  }

  .name-tag {
    font-size: 1.2rem;
  }

  .subname-tag {
    font-size: 0.9rem;
  }

  .name-tag, .subname-tag {
    font-size: 1rem;
    margin-left: 0;
  }
  nav a {
    padding: 0.3rem 0.7rem;
    font-size: 0.95rem;
  }
  .about-text, .subtitle-text {
    padding: 0.5rem;
    font-size: 0.95rem;
  }
  .stats {
    row-gap: 1rem;
    column-gap: 1rem;
    padding-left: 0;
    margin-top: 1rem;
  }
  .stat-box h1 {
    font-size: 2.2rem;
  }
  .stat-box h1 span {
    font-size: 1.2rem;
  }
  .custom-footer {
    padding: 0.5rem;
    gap: 0.5rem;
  }
}

.name-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin-left: 1rem;
}

.name-tag {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4d3b00;
  font-family: 'Segoe UI', sans-serif;
}

.subname-tag {
  font-size: 1rem;
  font-weight: bold;
  color: #4d3b00;
  font-family: 'Segoe UI', sans-serif;
}


/* Utility for hiding */
.hide {
  display: none !important;
}