@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

body {
  font-family: "Poppins", sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

html {
  scroll-behavior: smooth;
}

a, .btn {
  transition: all 300ms ease;
  text-decoration: none;
}

a {
  color: black;
}

a:hover {
  color: grey !important;
}

/* ---------- DESKTOP NAV ---------- */

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

nav {
  margin-top: 2vh;
  height: 12vh;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.dark-mode nav {
  background-color: rgba(13, 17, 23, 0.8);
}


.layout-container,
.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5rem;
}

.logo img {
  height: 90px;
}

.nav-links-1, .nav-links-2 {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: 1rem;
  align-items: center;
}

/* ---------- TOGGLE BUTTON ---------- */

#theme-toggle, #theme-toggle-mobile {
  background: transparent;
  border: none;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

#theme-toggle:hover, #theme-toggle-mobile:hover {
  background: lightgrey;
}

#theme-icon, #theme-icon-mobile {
  width: 22px;
  height: 22px;
  color: #000;
}

/* ---------- RESUME BUTTON ---------- */

.resume-button {
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  background-color: black;
  color: white;
  text-decoration: none;
}

body.dark-mode .resume-button:hover, body.light-mode .resume-button:hover {
  color: white;
}

/* ---------- LIGHT/DARK MODES ---------- */

body.light-mode a {
  color: black;
}

body.light-mode .resume-button {
  background-color: black;
  color: white;
}

body.light-mode #theme-icon, body.light-mode #theme-icon-mobile {
  color: black;
}

body.dark-mode {
  background-color: #0d1117;
  color: white;
}

body.dark-mode a {
  color: white;
}

body.dark-mode .resume-button {
  background-color: white;
  color: black;
}

body.dark-mode #theme-icon, body.dark-mode #theme-icon-mobile {
  color: white;
}

/* Default - only show desktop nav */
#hamburger-nav {
  display: none;
}

/* ---------- MOBILE MENU ---------- */

.hamburger-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

#hamburger-nav .logo img {
  height: 80px;
  margin-bottom: 0.5rem;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  color: black;
  transition: all 0.3s ease-in-out;
}

body.light-mode .hamburger-icon span {
  background-color: black;
}

body.dark-mode .hamburger-icon span {
  background-color: white;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.menu-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.menu-links {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  max-width: 280px;
  background-color: white;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  z-index: 999;
}

.menu-links.open {
  transform: translateX(0);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2); /* full-width line */
  width: 100%;
  margin-bottom: 1rem;
}

body.dark-mode .menu-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.menu-header img {
  height: 60px;
}

.close-icon {
  background: #f2f2f2;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.menu-list {
  list-style: none;
  margin: 0.25rem 0 2rem 0; /* reduced top margin to 0.25rem */
  padding: 0 1.25rem;       /* keeps horizontal alignment */
}

.menu-list li {
  margin: 1.2rem 0;
}

.menu-list a {
  font-size: 1.1rem;
  color: #3b3b3b;
  text-decoration: none;
}

.menu-list a:hover {
  color: grey;
}

.menu-list .resume-button {
  background-color: #0d1117;
  color: white;
  padding: 12px;
  border-radius: 16px;
  display: inline-block;
  text-align: center;
  font-size: 0.95rem;
}

.theme-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  margin-top: 1rem;
}

.theme-toggle-row label {
  font-size: 0.9rem;
}

body.dark-mode .menu-links {
  background-color: #0d1117;
}

body.dark-mode .menu-list a,
body.dark-mode .theme-toggle-row label {
  color: white;
}

body.dark-mode .menu-list .resume-button {
  background-color: white;
  color: black;
}

body.dark-mode .menu-list .resume-button:hover {
  color: grey;
}

/* === SECTION === */

.section {
  padding-top: 4vh;
  padding-bottom: 4vh;
}


.profile-image {
  width: 30%;
  position: relative;
  margin-bottom: 1.5rem;
  margin-right: 1.5rem;
  padding: 0.5rem; /* Add padding so image doesn't touch border */
  border: 2px solid black;
  border-radius: 12px;
  background-color: white;
  transition: border-color 0.3s, background-color 0.3s;
}

/* Dark mode styling */
body.dark-mode .profile-image {
  border-color: white;
  background-color: #0d1117;
}

/* Image itself */
.profile-image img {
  width: 100%;           /* Use 100% to fill container, no fixed width */
  height: auto;
  border-radius: 10px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Offset gray shadow behind */
.profile-image::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  background: #bebbbb; /* Your chosen light gray */
  border-radius: 10px;
  z-index: 1;
}


.text-content {
  width: 70%;
}

.text-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.text-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.location-availability {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #10B981;
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* ---------- ABOUT SECTION ---------- */

/* Optional background color utility */
.bg-light {
  background-color: #f5f5f5;
}

body.dark-mode .bg-light {
  background-color: #1f1f1f;
}

/* Section heading styles */
.centered-text {
  text-align: center;
  margin-bottom: 0.2rem;
}


.centered-text .section-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
}

body.dark-mode .centered-text .section-subtitle {
  color: #aaa;
}

.centered-text .section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-top: 0.2rem;
  color: #000;
}

body.dark-mode .centered-text .section-title {
  color: #fff;
}

/* Layout for image + text */
.about-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.about-image-styled {
  position: relative;
  width: 20rem;
  padding: 0.5rem;
  margin-left: 1.5rem;
  background-color: white;
  border: 2px solid black;
  border-radius: 12px;
  z-index: 2;
}

.about-image-styled img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Gray shadow box behind the image */
.about-image-styled::after {
  content: "";
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  background-color: #bebbbb;
  border-radius: 12px;
  z-index: 1;
}

body.dark-mode .about-image-styled {
  background-color: #0d1117;
  border-color: white;
}


/* Text next to image */
.about-text {
  flex: 1;
  min-width: 280px;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: #333;
}

body.dark-mode .about-text p {
  color: #ccc;
}

/* Education highlight boxes */
.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.highlight-box {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.25rem;
  border: 1px solid #ccc;
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  flex: 1 1 350px;
}

body.dark-mode .highlight-box {
  background-color: #3a3a3a;
  border-color: #444;
}

.highlight-icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.highlight-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.highlight-content h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111;
}

body.dark-mode .highlight-content h3 {
  color: #eee;
}

.highlight-content p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
}

body.dark-mode .highlight-content p {
  color: #ccc;
}

/* ---------- SKILLS SECTION ---------- */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  gap: 0.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.skill-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.skill-item p {
  font-size: 0.95rem;
  font-weight: 500;
}

.skill-item:hover {
  transform: scale(1.05);
}

/* ---------- EXPERIENCE SECTION ---------- */
.experience-card {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

.experience-logo img {
  width: 180px;
  height: auto;
  object-fit: contain;
}

.experience-content {
  flex: 1;
  min-width: 250px;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.experience-header span {
  font-size: 0.95rem;
  color: #555;
}

.experience-company {
  font-size: 1rem;
  margin: 0.5rem 0 1rem;
  color: #444;
}

.experience-details {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.experience-details li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #333;
}

.experience-skills {
  font-size: 0.9rem;
  color: #555;
}

body.dark-mode .experience-card {
  background-color: #3a3a3a;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #eaeaea;
}


body.dark-mode .experience-details li,
body.dark-mode .experience-company,
body.dark-mode .experience-skills,
body.dark-mode .experience-header span {
  color: #ccc;
}

/* Work Section Layout */
.work-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}

/* Project Box */
.project-box {
  flex: 1 1 300px;
  max-width: 350px;
  min-height: 830px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e1e1e1;
  background-color: white;
  position: relative;
  margin-top: 5rem;
}

/* Wrapper around thumbnail to position overlay */
.project-box .thumbnail-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Project Thumbnail */
.project-thumbnail {
  display: block;
  height: 180px;
  object-fit: contain;
  width: auto;
  max-width: 100%;
  border-radius: 8px;
}

/* Overlay text on image */
.project-box .thumbnail-wrapper .preview-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: rgba(255, 255, 255, 0.75);
  padding: 4px 8px;
  font-size: 0.75rem;
  font-style: italic;
  color: #333;
  border-radius: 6px;
  z-index: 2;
  pointer-events: none; /* Don't block image click */
}


/* Description and features */
.project-box p,
.project-box ul {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.project-box ul {
  padding-left: 1.2rem;
}

/* Skills Label with Lucide icon */
.project-box .experience-skills::before {
  content: '';
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: middle;
  margin-right: 0.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-layers'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'%3E%3C/polygon%3E%3Cpolyline points='2 17 12 22 22 17'%3E%3C/polyline%3E%3Cpolyline points='2 12 12 17 22 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center center;
  background-size: contain;
}

/* GitHub Icon styling */
.project-box a.github-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
  gap: 0.5rem;
  color: #000;
  text-decoration: none;
}

.project-box a.github-link:hover {
  color: #666;
}

.project-box a.github-link i {
  width: 1rem;
  height: 1rem;
}

/* Contact Section */
.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  flex-wrap: wrap;
}

.contact-logo  img{
  height: 230px;
  max-width: 100%;
}

.contact-info {
  flex: 1;
  min-width: 260px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
  font-size: 1rem;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.contact-socials {
  margin-top: 1rem;
  display: flex;
  gap: 1.2rem;
  font-size: 1.5rem;
}

.contact-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #777;
}


body.light-mode .contact-info p {
  color: #666;
}

body.dark-mode .contact-info p{
  color: #aaa;
}
