/* ==================================================
   GENERAL & RESET
================================================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #EEEEEE;
  color: #31363F;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* Transitions */
a,
.btn {
  transition: all 300ms ease;
}

/* ==================================================
   NAVIGATION
================================================== */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
  background-color: #222831;
  color: #EEEEEE;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: #EEEEEE;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: #79A8AE;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: #79A8AE;
}

.logo {
  font-size: 2rem;
  color: #79A8AE;
}

.logo:hover {
  cursor: default;
}

/* ===== Hamburger Menu ===== */
#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

/* Hamburger open state */
.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}
.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}
.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

/* ==================================================
   GLOBAL SECTIONS
================================================== */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
  background-color: #EEEEEE;
}

.section-container {
  display: flex;
}

.title {
  font-size: 3rem;
  text-align: center;
  color: #222831;
}

/* ==================================================
   PROFILE SECTION
================================================== */

#profile {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  height: 80vh;
  text-align: left;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__pic-container img {
  transition: all 0.3s ease;
  border-radius: 12px;
}

.section__text {
  align-self: center;
  text-align: left;
  max-width: 600px;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1,
.section__text__p2 {
  color: #31363F;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ==================================================
   ABOUT SECTION
================================================== */

#about {
  position: relative;
  padding: 0rem 2rem;
}

.about-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

/* About Picture */
.about-pic img {
  width: 300px;
  height: auto;
  border-radius: 2rem;
  border: 3px solid #ccc;
  object-fit: cover;
  transition: all 0.3s ease;
}

/* About Content */
.about-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 600px;
}

/* Info Boxes */
.info-boxes {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.info-box {
  flex: 1;
  padding: 1.5rem;
  background: #fff;
  border-radius: 1.5rem;
  border: 2px solid rgb(163, 163, 163);
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.info-box img.icon {
  width: 40px;
  margin-bottom: 0rem;
}

.about-text {
  text-align: justify;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #333;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
  width: 40px;
  cursor: pointer;
}

/* ==================================================
   EXPERIENCE SECTION
================================================== */

#experience {
  position: relative;
  padding-top: 4vh;
  margin: 0 10rem;
  height: fit-content;
  min-height: 60vh;
}

.experience-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* text left, logo right */
.experience-item.normal {
  flex-direction: row;
  justify-content: flex-start;
}

/* logo left, text right */
.experience-item.reverse {
  flex-direction: row;
  justify-content: flex-start;
}

.experience-sub-title {
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

#experience .experience-item.normal .experience-sub-title {
  text-align: left;
}
#experience .experience-item.reverse .experience-sub-title {
  text-align: right;
}

#experience .experience-text {
  text-align: left;
}

.experience-list {
  text-align: left;
  margin: 1rem auto 0;
  padding-left: 1.5rem;
  max-width: 600px;
  color: rgb(85, 85, 85);
}

.experience-list li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.experience-logo img {
  max-width: 280px;
  max-height: 280px;
  object-fit: contain;
  border-radius: 15px;
  transition: all 0.3s ease;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .experience-item {
    flex-direction: column;
    text-align: center;
  }

  #experience .experience-sub-title { 
    text-align: center; 
  }

  #experience .experience-list { 
    text-align: left; 
    list-style-position: outside; 
    padding-left: 1.5rem; 
  }

  .experience-logo img { 
    margin-bottom: 1rem; 
  }
}

/* ==================================================
   SKILLS SECTION
================================================== */

#skills {
  position: relative;
  padding-top: 4vh;
  margin: 0 10rem;
  height: fit-content;
  min-height: 60vh;
}

.skills-section {
  padding: 20px;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.skills-card {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  text-align: center;
}

.skills-card:hover {
  transform: translateY(-4px);
}

.skills-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  text-align: left;
  color: #333;
}

.skills-logo-grid {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.skills-logo-grid.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.skills-logo-grid.four-cols {
  grid-template-columns: repeat(4, 1fr);
}

.skill-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  --skill-color: #555;
}

.skill-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  border: 3px solid var(--skill-color);
  border-radius: 12px;
  padding: 6px;
}

.skill-name {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--skill-color);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 999;
}

.skill-item:hover .skill-name {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.skill-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px var(--skill-color);
}

.skill-name::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #333 transparent;
}

/* ==================================================
   PROJECTS SECTION
================================================== */

#projects {
  position: relative;
}

.projects-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}

.details-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 550px;
  padding: 1.5rem;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.article-container.double-img {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.article-container.double-img img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  background: #00000000;
  padding: 5px;
  border: 2px solid #cccccc;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.article-container.double-img img.zoomed {
  transform: scale(1.5);
  z-index: 10;
  position: relative;
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
  transition: all 0.3s ease;
}

.project-title {
  margin: 1rem;
  flex-grow: 1;
  text-align: center;
  color: #31363F;
}

.color-container {
  background: #FFFFFF;
  border: 1px solid #79A8AE;
}

.project-btn {
  border: 2px solid #79A8AE;
  color: #31363F;
}

.project-btn:hover {
  background: #79A8AE;
  color: #EEEEEE;
}

/* ==================================================
   CONTACT SECTION
================================================== */

#contacts {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contacts-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: 1px solid #31363F;
  background: #79A8AE;
  margin: 2rem auto;
  padding: 0.5rem;
  color: #EEEEEE;
}

.contacts-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contacts-info-container p {
  font-size: larger;
}

.contacts-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

.contacts-info-container a {
  color: #222831;
}

.contacts-info-container a:hover {
  color: #EEEEEE;
}

/* ==================================================
   FOOTER
================================================== */

footer {
  height: 26vh;
  margin: 0 1rem;
  background: #222831;
  color: #EEEEEE;
}

footer p {
  text-align: center;
}

footer a {
  color: #79A8AE;
}

footer a:hover {
  color: #EEEEEE;
}

/* ==================================================
   ICONS, BUTTONS, HOVERS
================================================== */

.icon {
  cursor: pointer;
  height: 2.5rem;
  transition: all 0.3s ease;
  border-radius: 50%;
  padding: 6px;
}

.icon:hover {
  background-color: rgba(108, 117, 125, 0.2);
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
  transform: scale(1.1);
}

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1 {
  background: #79A8AE;
  border: none;
  color: #EEEEEE;
}

.btn-color-1:hover {
  background: #31363F;
}

.btn-color-2 {
  border: 2px solid #79A8AE;
  color: #31363F;
  background: transparent;
}

.btn-color-2:hover {
  background: #79A8AE;
  color: #EEEEEE;
}

/* Profile pic hover */
#profile .section__pic-container img {
  transition: all 0.3s ease;
}
#profile .section__pic-container img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px #79A8AE;
}

/* About pic hover */
#about .about-pic img {
  transition: all 0.3s ease;
}
#about .about-pic img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px #79A8AE;
}

/* Experience logos hover */
.experience-logo img {
  transition: all 0.3s ease;
}
.experience-logo img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px #79A8AE;
}

/* Projects images hover */
.projects-container img {
  transition: all 0.3s ease;
}
.projects-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px #79A8AE;
}



/* Reveal Animations */
.reveal-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.reveal-show {
  opacity: 1;
  transform: translateY(0);
}

/* Dark Mode */
body.dark-theme {
  background-color: #222831;
  color: #eeeeee;
}
body.dark-theme nav {
  background-color: #111418;
}
body.dark-theme .skills-card,
body.dark-theme .details-container,
body.dark-theme .info-box {
  background: #2c2f36;
  color: #eeeeee;
}
#theme-toggle {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #79a8ae;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  padding: 10px;
  cursor: pointer;
}

/* Scroll to top */
#scroll-top-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #79a8ae;
  border: none;
  border-radius: 50%;
  padding: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #fff;
}

/* Modal Preview */
#img-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#img-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}
#close-modal {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}



/* ==================================================
   DARK MODE FIXES FOR SKILLS, PROJECTS, ABOUT & EXPERIENCE
================================================== */

/* Skills section headings */
body.dark-theme .skills-card h3 {
  color: #f5f5f5;
}

/* Skills section skill labels */
body.dark-theme .skill-name {
  background: var(--skill-color);
  color: #fff;
}

/* Project section titles */
body.dark-theme .project-title {
  color: #f5f5f5;
}

/* Project card buttons (contrast tweak) */
body.dark-theme .project-btn {
  border-color: #79a8ae;
  color: #f5f5f5;
}
body.dark-theme .project-btn:hover {
  background: #79a8ae;
  color: #1e1e1e;
}

/* About section headings */
body.dark-theme .about-details-container h3 {
  color: #f5f5f5;
}

/* Experience section headings */
body.dark-theme .experience-details-container h3 {
  color: #f5f5f5;
}




/* Skills section skill labels (keep original colors in dark mode) */
body.dark-theme .skill-name {
  background: var(--skill-color);
  color: #fff;
}


