/* GENERAL */

@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;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

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

/* DESKTOP NAV */

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);
}

.logo {
  font-size: 2rem;
}

.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-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;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.section__pic-container {
  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;
}

#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;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

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

.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;
}


/* CONTACT SECTION STYLES */
.section__text__p1 {
  font-size: 1.2rem;
  color: #555; /* Slightly lighter color for the subtitle */
}

.title {
  font-size: 2.5rem;
  margin: 1rem 0;
}

.socials-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 2rem 0;
}

.social-icon {
  position: relative; /* Position relative for tooltips */
}

.social-icon img {
  width: 50px; /* Set a uniform size for social icons */
  height: 50px;
  transition: transform 0.3s ease; /* Smooth hover effect */
}

.social-icon:hover img {
  transform: scale(1.1); /* Slightly increase icon size on hover */
}

/* Tooltip styling */
.social-icon[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%; /* Position tooltip above the icon */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icon:hover[data-tooltip]:after {
  opacity: 1; /* Show tooltip on hover */
}

.contact-form-container {
  margin-top: 2rem;
  max-width: 600px; /* Limit width for better readability */
  margin: auto; /* Center the form container */
  background-color: #f9f9f9; /* Light background for the form */
  border-radius: 8px; /* Rounded corners */
  padding: 2rem; /* Inner padding */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.contact-form-container h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ddd; /* Light border */
  transition: border-color 0.3s ease; /* Smooth border color transition */
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #4CAF50; /* Green border on focus */
  outline: none; /* Remove outline */
}

.btn-color-1 {
  width: 100%;
  text-align: center;
  padding: 10px;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  .socials-row {
    flex-direction: column; /* Stack icons vertically on smaller screens */
    align-items: center; /* Center align the icons */
    gap: 15px; /* Reduce gap between icons */
  }

  .title {
    font-size: 2rem; /* Adjust title size for mobile */
  }

  .contact-form-container {
    padding: 1.5rem; /* Reduce padding for mobile */
  }
}

@media (max-width: 480px) {
  .social-icon img {
    width: 40px; /* Smaller icons for mobile */
    height: 40px;
  }

  .contact-form-container h2 {
    font-size: 1.5rem; /* Smaller header size for mobile */
  }
}

/* FOOTER SECTION */

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

footer p {
  text-align: center;
}
#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
}

.toggle-track {
  position: relative;
  display: flex;
  align-items: center;
  width: 56px;
  height: 28px;
  background: #161b22;
  border-radius: 999px;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.3s;
}

.toggle-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.75;
  pointer-events: none;
}

.toggle-icon.sun {
  left: 8px;
}

.toggle-icon.moon {
  right: 8px;
}

.toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #444;
  border-radius: 50%;
  transition: left 0.3s, background 0.3s;
  box-shadow: 0 1px 4px #0005;
}

body.dark-mode .toggle-thumb {
  left: 32px;
  background: #fff;
}
body.dark-mode .toggle-track {
  background: #24292f;
}
/* =============================
   DARK MODE GLOBAL STYLES
   ============================= */

/* Background + text */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

/* Links */
body.dark-mode a {
  color: #bb86fc;
}

body.dark-mode a:hover {
  color: #ffffff;
  text-decoration-color: #bb86fc;
}

/* Navbar */
body.dark-mode nav {
  background-color: #1e1e1e;
}

body.dark-mode .nav-links a {
  color: #e0e0e0;
}

/* Cards and containers */
body.dark-mode .details-container {
  background-color: #1e1e1e;
  border-color: #333;
}

/* Contact form */
body.dark-mode .contact-form-container {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
  background-color: #2c2c2c;
  color: #e0e0e0;
  border-color: #444;
}
/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Flexbox Container */
.certifications-container,
.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Cards */
.cert-card,
.project-card {
  background-color: #f4f4f4;
  border-radius: 10px;
  overflow: hidden;
  width: 250px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cert-card img,
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.cert-card p,
.project-card p {
  padding: 10px;
  font-size: 1rem;
  font-weight: 500;
}

/* Dark Mode Support */
body.dark-mode .cert-card,
body.dark-mode .project-card {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

body.dark-mode .cert-card p,
body.dark-mode .project-card p {
  color: #e0e0e0;
}



/* Project Image Wrapper */
/* Project Card */

#projects .project-card {
  background-color: #ffffff;
  border-radius: 12px;
  width: 450px; /* Slightly smaller than before */
  padding: 18px;
  text-align: center;
  transition: transform 0.3s ease, 
              box-shadow 0.3s ease, 
              background-color 0.3s ease, 
              color 0.3s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Project Title (Light Mode Default) */
.project-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 12px;
  color: #000000; /* Dark text in light mode */
  transition: color 0.3s ease;
  text-shadow: 0px 1px 2px rgba(255, 255, 255, 0.4);
}

/* Dark Mode Project Title */
.dark-mode .project-title {
  color: #000000;
  text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8); /* White text in dark mode */
}

/* Project Image Wrapper */
.project-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

/* Project Image */
.project-image img {
  width: 100%;
  height: 260px; /* Slightly smaller */
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

/* Hover Image Zoom */
.project-image:hover img {
  transform: scale(1.05);
}

/* Project Description at Bottom */
.project-desc {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85); /* Light Mode */
  color: #000; /* Black text for light mode */
  padding: 15px;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.4s ease, opacity 0.4s ease;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Show description on hover */
.project-image:hover .project-desc {
  opacity: 1;
  transform: translateY(0);
}

/* Dark Mode Description */
.dark-mode .project-desc {
  background: rgba(0, 0, 0, 0.85);
  color: #000000; /* White text for dark mode */
}

/* Hover Effect on Project Card */
#projects .project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}




/* ===== Certifications Section Styling ===== */
/* Base Styles */
/* Default: Light Mode */
#certifications {
  background-color: white;
  padding: 60px 20px;
  border-radius: 12px;
  max-width: 1600px;
  margin: 40px auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Section Title */
#certifications h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 40px;
  color: inherit;
  position: relative;
}

#certifications h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 10px;
  background: #4CAF50;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Flexbox Layout */
#certifications .cert-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Certificate Card */
#certifications .cert-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  width: 400px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#certifications .cert-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

#certifications .cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

#certifications .cert-card h3 {
  font-size: 1.2rem;
  color: inherit;
  margin-top: 15px;
}

/* 🌙 Dark Mode */
.dark-mode #certifications {
  background-color: #1e1e1e;
  color: #f1f1f1;
}

.dark-mode #certifications .cert-card {
  background-color: #2c2c2c;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

.dark-mode #certifications .cert-card:hover {
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.15);
}
#contact {
  margin-top: 200px; /* increase space above contact */
}

#certifications {
  margin-top: 200px; /* increase space above projects */
}