@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

/* VARIABLES */
:root {
  --primary-color: #007bff;
  --primary-color-dark: #0056b3;
  --secondary-color: #6c757d;
  --text-color-light: #f8f9fa;
  --text-color-dark: #343a40;
  --background-color-light: #ffffff;
  --background-color-dark: #121212;
  --card-bg-light: #f8f9fa;
  --card-bg-dark: #1e1e1e;
  --border-color-light: #dee2e6;
  --border-color-dark: #343a40;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-color-light);
  color: var(--text-color-dark);
  transition: background-color 0.3s, color 0.3s;
}

body.dark-theme {
  --background-color-light: var(--background-color-dark);
  --text-color-dark: var(--text-color-light);
  --card-bg-light: var(--card-bg-dark);
  --border-color-light: var(--border-color-dark);
}

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

body {
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}

p {
    color: 85, 85, 85;
}

/*transitions*/
a,
.btn {
    transition: all 300ms ease;
}

/* navigation */
.logo {
    font-size: 2rem;
}

.logo:hover {
    cursor: default;
    color: grey;
}

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

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

a {
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}

a:hover {
    color: grey;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181, 181, 181);
}

/* HMBURGER 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-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);
}

.hamburger-icon span:first-child {
    transform: none;
}

.hamburger-icon span:first-child {
    opacity: 1;
}

.hamburger-icon span:first-child {
    transform: none;
}

/* SECTIONS*/

section {
    padding-top: 4vh;
    padding-bottom: 10vh;
    min-height: fit-content;
    margin: 0 10rem;
    box-sizing: border-box;
  }
  
  .section-container {
    display: flex;
    /* position: middle; */
    justify-content: center;
    gap: 5rem;
  }

  /* About Section Structure */
.about-details-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.summary-container {
  background: var(--card-bg-light);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 0.1rem solid var(--border-color-light);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.details-card {
  display: flex;
  align-items: start;
  gap: 2rem;
  background: var(--card-bg-light);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 0.1rem solid var(--border-color-light);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.details-content {
  flex: 1;
}

.details-card h3 {
  color: var(--text-color-dark);
  margin-bottom: 1.5rem;
}

.experience-item, .education-item {
  margin-bottom: 2rem;
}

.experience-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.experience-item ul {
  padding-left: 1.5rem;
}

.experience-item li {
  margin-bottom: 0.5rem;
  color: var(--text-color-dark);
}

.education-item p {
  color: var(--text-color-dark);
  margin: 0.3rem 0;
}

@media (max-width: 768px) {
  .details-card {
    flex-direction: column;
    padding: 1.5rem;
  }
  
  .summary-container {
    padding: 1.5rem;
  }
}

  
  /* PROFILE SECTION */
  
  #profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
  }
  
  .section__pic-container {
    filter: grayscale(50%);
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
  }
  
  .section__text {
    align-self: center;
    text-align: center;
  }
  
  .section__text p {
    font-weight: 600;
  }
  
  .section__text__p1 {
    text-align: center;
  }
  
  .section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .title {
    font-size: 3rem;
    text-align: center;
    padding-bottom: 2%;
  }
  
  #socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
  }

  /* ICONS */

.icon {
    cursor: pointer;
    height: 2rem;
  }
  
  /* BUTTONS */
  
  .btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }
  
  .btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
  }
  
  .btn-color-1,
  .btn-color-2 {
    border: rgb(53, 53, 53) 0.1rem solid;
  }
  
  .btn-color-1:hover,
  .btn-color-2:hover {
    cursor: pointer;
  }
  
  .btn-color-1,
  .btn-color-2:hover {
    background: rgb(53, 53, 53);
    color: white;
  }
  
  .btn-color-1:hover {
    background: rgb(0, 0, 0);
  }
  
  .btn-color-2 {
    background: none;
    border: 0.1rem solid var(--text-color-dark);
    color: var(--text-color-dark);
  }
  
  body.dark-theme .btn-color-2 {
    border: 0.1rem solid var(--text-color-light);
    color: var(--text-color-light);
  }
  
  .btn-color-2:hover {
    border: rgb(255, 255, 255) 0.1rem solid;
  }
  
  .btn-container {
    gap: 1rem;
  } 

  /* ABOUT SECTION */

.about-section {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}
.about-section h5 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: -10px;
}
.service {
    flex: 0 0 calc(45% - 20px); 
    margin: 5px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.service img {
  margin-right: 10px; /* Space between icon and text */
}

.service-content {
  display: flex;
  flex-direction: column; /* Stack heading and paragraph vertically */
}
.service h3 {
    display: flex;
    align-items: center;
    font-size: 18px;
    margin: 0 0 10px 0;
}
.service h3 img {
    margin-right: 10px;
}
.service p {
    font-size: 14px;
    line-height: 1.6;
}

/* EXPERIENCE SECTION */

#experience {
    position: relative;
  }
  
  .experience-sub-title {
    color: rgb(85, 85, 85);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
  
  .experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
  }
  
  article {
    display: flex;
    width: 10rem;
    justify-content: space-around;
    gap: 0.5rem;
  }
  
  article .icon {
    cursor: default;
  }

/* Projects Section */
.projects-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  width: calc(50% - 1rem); /* Half width minus gap */
  border-radius: 1rem;
  border: 0.1rem solid rgb(163, 163, 163);
  background: white;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-content {
  padding: 1rem 0;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
  text-align: center;
}

.project-details {
  list-style-type: none;
  margin-bottom: 1.5rem;
}

.project-details li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-details li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tech span {
  background-color: #f0f0f0;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #333;
}

.btn-container {
  display: flex;
  justify-content: center;
}

.project-btn {
  width: 120px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .project-card {
    width: 100%; /* Full width on mobile */
  }
}
/* Project Box Styling */

.project-box-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.project-box {
  background: var(--card-bg-light);
  border-radius: 2rem;
  border: 0.1rem solid var(--border-color-light);
  padding: 1.5rem;
  flex: 1;
  min-width: 400px;
  max-width: 45%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 900px) {
  .project-box-container {
    flex-direction: column;
  }
  .project-box {
    max-width: 100%;
    min-width: auto;
  }
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tech-tag {
  background-color: var(--border-color-light);
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  color: var(--text-color-dark);
}

body.dark-theme .tech-tag {
  background-color: var(--border-color-dark);
  color: var(--text-color-light);
}

@media screen and (max-width: 768px) {
  .project-box {
    width: 100%;
  }
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
  color: var(--text-color-dark);
}

body.dark-theme .contact-info-container p {
  color: var(--text-color-light);
}

.contact-info-container a {
  color: var(--text-color-dark);
}

body.dark-theme .contact-info-container a {
  color: var(--text-color-light);
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
  color: var(--text-color-dark);
}

body.dark-theme footer p {
  color: var(--text-color-light);
}

/* Theme Switch */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

#mobile-theme-toggle {
  cursor: pointer;
  font-size: 1.2rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes wave-animation {
  0% { transform: rotate(0.0deg) }
  10% { transform: rotate(14.0deg) }
  20% { transform: rotate(-8.0deg) }
  30% { transform: rotate(14.0deg) }
  40% { transform: rotate(-4.0deg) }
  50% { transform: rotate(10.0deg) }
  60% { transform: rotate(0.0deg) }
  100% { transform: rotate(0.0deg) }
}

.wave {
  animation-name: wave-animation;
  animation-duration: 2.5s;
  animation-iteration-count: infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

#view-count {
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-color-dark);
}

.dark-theme #view-count {
  color: var(--text-color-light);
}