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

body {
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  display: block;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 20px;
}

/* Enter Button */
.btn-enter {
  display: inline-block;
  padding: 0.5rem 3rem;
  background: transparent;
  border: 2px solid #ffcc00;
  color: #ffcc00;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}

.btn-enter:hover {
  background: #ffcc00;
  color: #1e1e1e;
  box-shadow: 0 0 15px #ffcc00;
}

.btn-group {
  display: flex;
  margin-left: 6rem;
  gap: 1rem; /* adjust the value (e.g., 0.5rem, 2rem) */
}

.icons > a:last-child {
  padding-bottom: 3%;
}

p {
  font-size: 1.2rem;
  margin-left: 1%;
}

/* NAVIGATION  */
.nav-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #121212;
  border-radius: 0;
  padding: 1rem 2rem;
  margin: 0;
  box-shadow: 0 0.1rem 0.25rem rgb(180, 180, 180);
  z-index: 1000;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
  flex: 1;
}

.top-nav h1 {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.top-nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s;
  cursor: pointer;
  font-size: 1rem;
  white-space: nowrap;
}

.top-nav a:hover {
  color: #bbb;
  transform: scale(1.15);
}

.top-nav a.active {
  color: #ffcc00;
}

/*  LANDING SECTION */

.landing-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  height: 100vh;
  background-color: #121212;
}

#home > img:first-child {
  width: 350px;
  height: 350px;
  border-radius: 20%;
  object-fit: cover;
  border: 3px solid #ffcc00;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
  animation: fadeIn 1.5s ease-in-out;
  object-position: top;
}

.landing-container {
  text-align: center;
  padding: 2rem;
  border-left: 0.3rem solid #ffcc00;
  max-width: 700px;
  animation: fadeIn 1.5s ease-in-out;
}

.landing-container h1 {
  font-size: 4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffcc00;
}

.landing-container h2 {
  font-size: 2rem;
  color: #ce8f13;
}

.landing-container p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #e6e6e6;
}

.floating-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.icons a {
  display: inline-block;
  text-decoration: none;
}

.icons img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  object-position: center;
  background-color: transparent;
  margin: 0 5px;
  padding: 5px;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.icons img:hover {
  transform: scale(1.2);
}

.right-toggle {
  position: fixed;
  bottom: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 9999;
  border-radius: 8px 0 0 8px;
  padding-right: 1%;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* MAIN CONTENT */

.main {
  margin: 0;
  padding: 0;
  max-width: 100%;
  width: 100%;
}

#about,
#resume,
#achievements,
#gallery,
#contact {
  margin-bottom: 2%;
}

#about h2,
#portfolio h2,
#blog h2,
#contact h2,
#achievements h2,
#gallery h2,
#resume h2,
#projects h2 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  margin-top: 2%;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 0.25rem solid #ffcc00;
  padding-left: 0.6rem;
}

#description {
  margin: 1% 0 1% 0.5%;
  text-align: justify;
  font-size: 1.2rem;
  padding-left: 1%;
}

.content-section {
  margin-top: 3rem;
  animation: fadeIn 0.5s ease;
}

.content-section {
  margin-top: 0rem;
  padding-left: 6rem;
  padding-right: 6rem;
  animation: fadeIn 0.5s ease;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.card-two,
.card-two-achievement {
  background-color: #1e1e1e;
  padding: 1rem;
  border-radius: 0.6rem;
  box-shadow: 0 0.25rem 0.6rem rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: left;
  min-height: 320px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#gallery .card-two:hover,
#projects .card-two:hover,
#achievements .card-two-achievement:hover {
  transform: translateY(-0.9rem);
  cursor: pointer; 
}

.card-two img,
.card-two-achievement img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 0.4rem;
  border: solid 1px white;
}

.card-two h3,
.card-two-achievement h3 {
  margin-left: 1rem;
  margin-bottom: 1%;
}

.card-two p,
.card-two-achievement p {
  margin-left: 1.5rem;
  text-align: justify;
  font-size: 1rem;
}

#modalDesc,
#modalTech {
  font-size: 1rem;
}

#modalRole {
  font-size: 1.2rem;
}

/* Achievements Modal (background) */
.achievement-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.achievement-modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
}

.achievement-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.achievement-close:hover {
  color: #ffcc00;
}

.card-container-interest {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.card-container-interest h3 {
  font-size: 1.3rem;
}

/* Resume + Skills */
.about-item h3 {
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  color: #fff;
  margin-top: 0.5%;
}

.about-item .date {
  color: #ffcc00;
}

.school-address {
  font-size: 1rem;
  font-style: italic;
  color: #bbb;
}

.experience {
  margin-top: 0.5%;
  margin-right: 30%;
  text-align: justify;
}

.about-item p {
  font-size: 1rem;
}

.skill {
  margin-bottom: 1.2rem;
}

.skill img {
  width: 30px;
  height: 30px;
  margin-right: 1%;
}

.skill:nth-of-type(3) .skill-title img {
  object-position: center;
}

.skill h4 {
  font-size: 1.2rem;
}

.skill-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  padding-left: 2%;
}

.skill-percent {
  float: right;
  font-size: 1.1rem;
  color: #ffcc00;
}

.skill-bar {
  width: 98%;
  height: 0.5rem;
  background: #333;
  border-radius: 0.25rem;
  margin-top: 0.4rem;
  overflow: hidden;
  margin-left: 2%;
}

.skill-progress {
  height: 100%;
  background: #ce8f13;
  border-radius: 0.25rem;
  transition: width 1s ease;
}

#portfolio p {
  margin-top: 2%;
  margin-left: 0;
}

/* Modal background */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 40px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

/* Modal content */
.modal-content {
  background: #222;
  margin: auto;
  padding: 30px;
  border-radius: 12px;
  width: 70%;
  max-width: 800px;
  color: #fff;
  text-align: left;
  position: relative;
}

.modal-content h2 {
  text-align: center;
  color: #ffcc00;
}

.modal-content h3 {
  margin-bottom: 1%;
}

.modal-content p {
  text-align: justify;
  margin-bottom: 1%;
}

/* Close button */
.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: white;
}

.close:hover {
  color: #ffcc00;
}

/* Carousel */
.carousel {
  position: relative;
  margin: 20px auto;
  max-width: 90%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.carousel-images {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
}

.carousel img {
  max-height: 100%;
  max-width: 100%;
  display: none;
  border-radius: 10px;
  margin: 0 auto;
}
.carousel img.active {
  display: block;
  margin: 0 auto;
}

/* Prev & Next Buttons */
.carousel .prev,
.carousel .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  font-weight: bold;
  background: none;
  color: white;
  border: none;
  padding: 0;
  z-index: 10;
  transition: color 0.3s;
}

.carousel .prev:hover,
.carousel .next:hover {
  color: #ffcc00;
}

.carousel .prev {
  left: 20px;
}
.carousel .next {
  right: 20px;
}

/* --- Inline Tech Section --- */
.tech-section-inline {
  display: flex;
  align-items: left;
  justify-content: left;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tech-title {
  font-size: 1.1em;
  color: #f0f0f0;
  margin: 0;
  margin-top: 10px;
}

.tech-icons-inline {
  display: flex;
  align-items: left;
  gap: 10px;
}

.tech-icons-inline img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.4s ease, filter 0.4s;
  animation: float 3s ease-in-out infinite;
}

/* Floating effect */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.tech-icons-inline img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px #ffcc00);
}

.contact-wrapper {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Left Side Info ===== */
.contact-left {
  flex: 1;
  max-width: 500px;
  background: #1e1e1e;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-heading {
  background: #ffcc00;
  color: black;
  padding: 12px;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
  border-radius: 6px;
}

.contact-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  margin-left: 5%;
  margin-top: 5%;
}

.contact-box-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-box-text h3 {
  margin: 0;
  font-size: 2rem;
  color: white;
}

.contact-box-text p {
  margin: 0;
  font-size: 1.2rem;
  color: white;
}

/* Social Icons */
.contact-social {
  margin-top: 30px;
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.contact-social img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s;
}

.contact-social img:hover {
  transform: scale(2);
}

/* ===== Right Side Form ===== */
.contact-right {
  flex: 1;
  max-width: 500px;
  background: #1e1e1e;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-form-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form-box input,
.contact-form-box textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
}

.contact-form-box textarea {
  resize: none;
  min-height: 120px;
}

.contact-btn {
  background: white;
  color: black;
  border: none;
  padding: 12px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-btn:hover {
  background: #ffcc00;
}

.contact-box img {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.map-container {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

/* Contact Modal Content */
.contact-modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20% 10% 10% 27%
}

/* Modal content */
.contact-modal-content {
  background: #222;
  padding: 30px;
  border-radius: 12px;
  width: 70%;
  max-width: 600px;
  color: #fff;
  text-align: center;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.contact-modal-content h2 {
  color: #ffcc00;
  margin-bottom: 1%;
  font-family: Arial, sans-serif;
}

.contact-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #ffcc00;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  color: #777;
  font-size: 0.7rem;
  border-top: 1px solid #333;
  margin-top: 2rem;
}

/* Media queries */
/* ===================== Responsive Fixes ===================== */

/* Tablet view (<=1024px) */
@media (max-width: 1024px) {
  #home > img:first-child {
    width: 220px;
    height: 220px;
  }

  .landing-wrapper {
    gap: 1rem;
    flex-direction: column;
  }

  #home > img:first-child {
    margin-bottom: 0.8rem;
  }

  .landing-container {
    padding: 0 0;
    border-left: none;
    text-align: center;
  }

  .landing-container h1 {
    margin-top: 0.5rem;
    font-size: 2.2rem;
  }

  .landing-container h2 {
    font-size: 1.4rem;
  }

  .landing-container p {
    font-size: 1rem;
  }

  .content-section {
    padding-left: 4rem;
    padding-right: 4rem;
  }
  .card-container {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    justify-content: center;
  }

  .card-container-interest {
    grid-template-columns: 1fr 1fr;
  }

  .modal-content {
    width: 80%;
    padding: 20px;
  }

  .carousel {
    height: 260px;
  }

  .carousel .prev,
  .carousel .next {
    font-size: 26px;
  }
}

/* Large Mobile / Small Tablet (<=768px) */
@media (max-width: 768px) {
  body {
    padding-top: 0;
  }

  #home {
    padding-top: 80px;
  }

  .top-nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
    gap: 0.8rem;
  }

  .top-nav h1 {
    font-size: 1.3rem;
  }
  .top-nav a {
    font-size: 0.9rem;
  }

  .nav-box {
    top: 0;
    right: 0;
    width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 0.8rem;
    text-align: center;
  }

  .landing-wrapper {
    flex-direction: column;
    gap: 0.5rem;
  }

  #home > img:first-child {
    width: 250px;
    height: 250px;
    margin-bottom: 0.5rem;
  }

  .landing-container {
    padding: 1rem 0;
    border-left: none;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
    margin: 1rem auto 0 auto;
    gap: 0.8rem;
  }

  .btn-enter {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .landing-container h1 {
    font-size: 2rem;
    margin-top: 0.5rem;
  }

  .landing-container h2 {
    font-size: 1.3rem;
  }
  .landing-container p {
    font-size: 1rem;
  }

  .content-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .card-container {
    grid-template-columns: 1fr;
  }
  .card-container-interest {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 85%;
    padding: 18px;
  }

  .modal-content h2 {
    font-size: 1.6rem;
  }

  .modal-content h3 {
    font-size: 1.2rem;
  }

  .modal-content p {
    font-size: 0.95rem;
  }

  .carousel {
    height: 220px;
  }

  .carousel .prev,
  .carousel .next {
    font-size: 24px;
    left: 10px;
    right: 10px;
  }
}

/* Small Mobile (<=480px) */
@media (max-width: 480px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .top-nav h1 {
    font-size: 1.2rem;
  }

  .top-nav a {
    font-size: 0.9rem;
  }

  #home > img:first-child {
    width: 200px;
    height: 200px;
    margin-bottom: 0.8rem;
  }

  .landing-container h1 {
    font-size: 1.8rem;
  }

  .landing-container h2 {
    font-size: 1.1rem;
  }

  .landing-container p {
    font-size: 0.95rem;
  }

  .btn-group {
    margin-top: 1rem;
  }

  .content-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .card-two h3 {
    font-size: 1rem;
  }
  .card-two p {
    font-size: 0.9rem;
  }
  footer {
    font-size: 0.6rem;
  }
  .modal-content {
    width: 92%;
    padding: 15px;
  }

  .modal-content h2 {
    font-size: 1.4rem;
  }

  .modal-content h3 {
    font-size: 1.1rem;
  }

  .modal-content p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .carousel {
    height: 180px;
  }

  .carousel img {
    max-height: 100%;
    border-radius: 8px;
  }

  .carousel .prev,
  .carousel .next {
    font-size: 22px;
    left: 5px;
    right: 5px;
  }
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

/* Mobile styles */
@media (max-width: 48em) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: #222;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    padding: 1rem 0;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }
}

