/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #111;
  color: #eee;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  animation: fadeInBody 1s ease forwards;
}

@keyframes fadeInBody {
  from { opacity: 0; }
  to { opacity: 1; }
}

header {
  text-align: center;
  margin-bottom: 20rem;
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
  animation-delay: 0.2s;
}

h1 {
  font-size: 3rem;
  color: #77dd77;
  margin-bottom: 5px;
}

p {
  font-size: 1.2rem;
  color: #ccc;
}

nav ul.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

nav ul.nav-list li a:not(.site-logo) {
  color: #eee;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 12px;
  background-color: #222;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}


nav ul.nav-list li a:hover,
nav ul.nav-list li a.active {
  background-color: #77dd77;
  color: #111;
  transform: scale(1.05);
}

main {
  flex-grow: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 10px;
}

.section-summary {
  background-color: #222;
  border-radius: 15px;
  padding: 25px 20px;
  margin-bottom: 40px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
  animation-delay: 0.4s;
}

.section-summary:nth-child(2) {
  animation-delay: 0.5s;
}
.section-summary:nth-child(3) {
  animation-delay: 0.6s;
}
.section-summary:nth-child(4) {
  animation-delay: 0.7s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h2 {
  font-size: 2rem;
  color: #77dd77;
  margin-bottom: 15px;
}

.read-more-link {
  display: inline-block;
  margin-top: 10px;
  color: #77dd77;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  padding: 5px 12px;
  background-color: #111;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.read-more-link:hover {
  background-color: #55bb55;
  transform: scale(1.1);
}

form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 15px;
  font-weight: 600;
}

input, textarea {
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  background-color: #222;
  color: #eee;
  transition: box-shadow 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 8px 2px #77dd77;
}

button {
  margin-top: 20px;
  padding: 12px;
  background-color: #77dd77;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  color: #111;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
  background-color: #5cb85c;
  transform: scale(1.05);
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  padding: 15px 0;
  opacity: 0;
  animation: fadeInBody 1.2s ease forwards;
  animation-delay: 1.2s;
}

/* Base reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #111;
  color: #eee;
  line-height: 1.6;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(17, 17, 17, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  border: 2px solid transparent;
  border-radius: 12px;
  margin: 10px 20px;
  z-index: 999;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
}

/* Outline effect on scroll */
.site-header.scrolled {
  border-color: #77dd77;
  box-shadow: 0 4px 15px rgba(119, 221, 119, 0.6);
  background-color: rgba(20, 20, 20, 0.85);
}

/* Header container flex */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Logo */
/* .site-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #77dd77;
  text-decoration: none;
  user-select: none;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}
.site-logo:hover,
.site-logo:focus {
  background-color: #4ca94c;
  outline: none;
} */

/* Navigation */
.primary-nav {
  position: relative;
}

/* Nav list - desktop */
.nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-list li a:not(.site-logo) {
  color: #eee;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
  user-select: none;
}
.nav-list li a:hover,
.nav-list li a:focus,
.nav-list li a.active {
  background-color: #77dd77;
  color: #111;
  outline: none;
}


.nav-toggle {
/*  display: none; /* hide by default, show on mobile */
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 1000;
  padding: 0;
  user-select: none;
}

/* Hamburger lines */
.hamburger,
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  background-color: #77dd77;
  height: 3px;
  border-radius: 2px;
  position: absolute;
  width: 24px;
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
  left: 6px;
}

.hamburger {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Hamburger active state (X shape) */
.nav-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Responsive styles */
@media (max-width: 768px) {
  .nav-list {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: rgba(17,17,17,0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    flex-direction: column;
    width: 200px;
    padding: 15px 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  /* Show menu when expanded */
  .nav-toggle[aria-expanded="true"] + .nav-list {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list li {
    padding: 0 20px;
    margin-bottom: 10px;
  }

  .nav-list li:last-child {
    margin-bottom: 0;
  }

  .nav-list li a:not(.site-logo) {
    display: block;
    padding: 10px 0;
    font-size: 1.1rem;
  }

  /* Show hamburger button */
  .nav-toggle {
  }
}

.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(17, 17, 17, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  border: 2px solid transparent;
  border-radius: 12px;
  margin: 10px auto; /* center horizontally */
  padding: 0 20px; /* keep inner spacing */
  width: calc(100% - 40px); /* keep 20px margin on each side */
  max-width: 1400px; /* optional, matches PC width */
  z-index: 999;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  box-shadow:
    0 -2px 6px rgba(119, 221, 119, 0.12),
    0 0 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  height: 7rem;
  justify-content: center;
  font-size: 3rem;
}


/* When scrolled, strengthen outline and keep top highlight */
.site-header.scrolled {
  border-color: #77dd77;
  box-shadow:
    0 -3px 8px rgba(119, 221, 119, 0.25), /* stronger faint green top shadow */
    0 4px 15px rgba(119, 221, 119, 0.6);
  background-color: rgba(20, 20, 20, 0.85);
}

.section-summary {
  background: #1e1e1e;
  padding: 30px 25px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  max-width: 800px;
  margin: 40px auto;
  color: #ddd;
  font-size: 1.1rem;
  line-height: 1.6;
  transition: background-color 0.3s ease;
}

/* .section-summary:hover {
  background: #2a2a2a;
} */

.section-title {
  font-size: 2.4rem;
  color: #77dd77;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-align: center;
  text-shadow: 0 0 6px #77dd77aa;
}

.about-content p {
  margin-bottom: 18px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.about-content strong {
  color: #a0e68c;
}

em {
  font-style: normal;
  color: #9fdfd3;
  font-weight: 600;
}

a:not(.site-logo) {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 26px;
  background: transparent;
  border: 2px solid #77dd77;
  border-radius: 30px;
  color: #77dd77;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 0 12px #77dd77aa;
}

a:hover:not(.site-logo),
a:focus:not(.site-logo) {
  background-color: #77dd77;
  color: #111;
  box-shadow: 0 0 24px #77dd77cc;
  outline: none;
}

button:not(.site-logo) {
  display: inline-block;
  margin-top: 15px;
/*  padding: 12px 26px; */
  background: transparent;
  border: 2px solid #77dd77;
  border-radius: 30px;
  color: #77dd77;
  font-weight: 700;
  font-size: 2rem;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 0 12px #77dd77aa;
  width: 4rem;
  height: 4rem;
}

button:hover:not(.site-logo),
button:focus:not(.site-logo) {
/*  background-color: #77dd77; */
  color: #111;
  box-shadow: 0 0 24px #77dd77cc;
  outline: none;
}

/* Show hamburger only on small screens */
@media (max-width: 768px) {
  .nav-toggle {
  }
}

/* img {
	box-shadow: 0 4px 10px rgba(0,0,0,0.5);
	border-radius: 10rem;
} */

.nav-toggle {
  display: flex;
  align-items: center;       /* Vertical center */
  justify-content: flex-end; /* Align to right */
  padding-right: 8px;        /* Optional right padding */
  height: 36px;
  width: 100px;              /* wider width to allow space for right alignment */
  /* other styles */
}

.profile-pic {
  display: block;          /* make image a block element */
  margin: 0 auto;          /* horizontally center */
  width: 250px;            /* bigger size */
  height: 250px;
  border-radius: 50%;
  border: 5px solid #77dd77;
  box-shadow:
    0 0 12px #77dd77,
    inset 0 0 20px rgba(119, 221, 119, 0.6);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.profile-pic:hover {
  transform: scale(1.1);
  box-shadow:
    0 0 20px #a0f2a0,
    inset 0 0 25px rgba(170, 255, 170, 0.8);
}

.profile-pic.scrolled {
	animation: shrinkImage 2s ease-in-out forwards; 
}

@keyframes shrinkImage {
  from {
    transform: scale(1); /* full size */
  }
  to {
    transform: scale(0.1); /* very small */
  }
}

.profile-pic {
  transition: transform 0.3s ease;
}

.profile-pic.small {
  transform: scale(0.5); /* Shrinks to 50% size */
}

@keyframes shrinkImage {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0.1);
  }
}
.bounce-btn {
  position: fixed;      /* stays visible on screen */
  bottom: 20px;         /* 20px from bottom */
  left: 50%;            /* horizontally centered */
  transform: translateX(-50%);
  background-color: #007BFF; /* blue background */
  color: white;
  border: none;
  border-radius: 50%;   /* round */
  width: 50px;
  height: 50px;
  font-size: 2rem;
  cursor: pointer;
  outline: none;

  animation: bounce 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
    opacity: 1;                   /* fully visible by default */
    transition: opacity 0.5s ease; /* smooth fade */
}

.bounce-btn:hover {
  background-color: #77dd77;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(15px);
  }
}

  .bounce-btn.hidden {
    opacity: 0;                    /* fully transparent */
    pointer-events: none;          /* so it’s not clickable when hidden */
  }
  
@media (max-width: 768px) {
  /* Show hamburger button on small screens */
  .nav-toggle {
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
    position: static;  /* restore normal position */
    clip: auto;        /* reset clip */
    border: initial;
    padding: initial;
  }

  /* Hide the nav list by default on mobile */
  .nav-list {
    display: none;
    flex-direction: column;
    gap: 10px;
    background-color: #222;
    position: absolute;
    top: 60px; /* adjust as needed */
    right: 20px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 999;
  }

  /* Show nav list when active (you toggle a class with JS) */
  .nav-list.active {
    display: flex;
  }
}


.nav-toggle {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
/*  border: 0;
  padding: 0; */
}

@media (max-width: 768px) {
  /* Show hamburger button */
  .nav-toggle {
    display: block;  /* make sure it's not overridden */
    position: relative; /* default position if static causes problems */
    width: auto;
    height: auto;
    overflow: visible;
    cursor: pointer;
  }

  /* Hide nav list by default on mobile */
  .nav-list {
    display: none;
    flex-direction: column;
    gap: 10px;
    background-color: #222;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 999;
  }

  /* Show nav list when active */
  .nav-list.active {
    display: flex;
  }
}

.download-link {
  display: inline-block;
  padding: 8px 14px;
  background: #77dd77;
  color: #111;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.25s ease, transform 0.25s ease;
}
.download-link:hover {
  background: #66cc66;
  transform: scale(1.05);
}

select {
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  background-color: #222;
  color: #eee;
  transition: box-shadow 0.3s ease;
}

select:focus {
  outline: none;
  box-shadow: 0 0 8px 2px #77dd77;
}

.projectsSection {
  background-color: #1e1e1e;
  border-radius: 15px;
  padding: 25px 20px;
  max-width: 75rem;
  margin: 40px auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  text-align: center;
  color: #eee;
  animation: fadeInUp 0.7s ease forwards;
  padding: 5rem;
}

@media (max-width: 768px) {
	.projectsSection {
		padding: 1rem;
	}
	
	.site-header h1 {
		font-size: 1rem;
	}
}

@media (max-width: 768px) {
  .site-header h1 {
    font-size: 2rem; /* smaller for tablets/mobiles */
	white-space: nowrap;
	  display: flex;
  align-items: center;
  justify-content: flex-start; /* align items to the left */
  }
  .site-header {
  height: 6rem;
  }

}

@media (max-width: 480px) {
  .site-header h1 {
    font-size: 1.5rem; /* even smaller for small phones */
	white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* align items to the left */
  }
  .site-header {
	  height: 6rem;
  }
}

.projectsSection > h1 {
  margin: 0;
  padding: 14px 24px;
  font-weight: bold;
  text-align: center;
  background-color: #222; /* matches your dark input bg */
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(119, 221, 119, 0.3); /* soft green glow */
  border: none;
  transition: box-shadow 0.3s ease;
  margin-bottom: 2rem;
}

.projectsSection > h1:hover {
  box-shadow: 0 0 12px rgba(119, 221, 119, 0.5);
}


.projectsSection .controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.projectsSection input[type="text"],
.projectsSection select {
  padding: 10px;
  border-radius: 10px;
  border: none;
  background-color: #222;
  color: #eee;
  font-size: 1rem;
  transition: box-shadow 0.3s ease;
}

.projectsSection input[type="text"]:focus,
.projectsSection select:focus {
  outline: none;
  box-shadow: 0 0 8px 2px #77dd77;
}

.project-image {
  width: 100%;
  max-height: 220px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 12px;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project:hover .project-image img {
  transform: scale(1.05);
}

