/* ==========================================================================
   GENERAL STYLES
   ========================================================================== */

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

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

/* Remove default list styling globally for navigation */
#desktop-nav .nav-links,
#hamburger-nav .menu-links {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}

#desktop-nav .nav-links li,
#hamburger-nav .menu-links li {
  list-style: none !important;
  list-style-type: none !important;
}

li::before {
  content: none !important;
  display: none !important;
}

li::marker {
  content: "" !important;
  display: none !important;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base font size for rem calculations */
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
}

p {
  color: rgb(85, 85, 85);
  margin-bottom: 1rem;
}

/* TRANSITION */

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

/* DESKTOP NAV */

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

#desktop-nav .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
}

#desktop-nav .nav-links li {
  list-style: none;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}

#desktop-nav .nav-links li::before {
  content: none !important;
  display: none !important;
}

#desktop-nav .nav-links li::marker {
  content: "" !important;
  display: none !important;
}

#desktop-nav .logo {
  font-size: 2rem;
}

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

a:hover {
  color: #555; /* Better contrast than grey */
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

#desktop-nav .logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none !important;
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem 2rem;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1001;
  gap: 1rem;
  width: 100%;
  margin: 0;
  text-align: center !important;
}

#hamburger-nav .logo {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  margin: 0 auto !important;
}

#hamburger-nav .nav-links {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1rem !important;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 400px !important;
}

#hamburger-nav .nav-links li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}

#hamburger-nav .nav-links li::before {
  content: none !important;
  display: none !important;
}

#hamburger-nav .nav-links li::after {
  content: none !important;
  display: none !important;
}

#hamburger-nav .nav-links li::marker {
  content: "" !important;
  display: none !important;
}

#hamburger-nav .nav-links a {
  display: block !important;
  padding: 0.75rem 1.25rem !important;
  font-size: 1.1rem;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 8px;
  font-weight: 500;
  text-align: center !important;
  margin: 0 auto !important;
  width: fit-content !important;
  min-width: 120px !important;
}

/* Show hamburger nav on tablet and smaller screens */
@media screen and (max-width: 1199px) {
  #desktop-nav {
    display: none !important;
  }

  #hamburger-nav {
    display: flex !important;
  }
}

/* SECTIONS */

section {
  padding-top: 4vh;
  min-height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
}

/* Mobile First Section Spacing */
@media screen and (max-width: 575px) {
  section {
    margin: 0 0.5rem;
    padding-top: 2vh;
    min-height: fit-content;
  }
}

@media screen and (max-width: 767px) and (min-width: 576px) {
  section {
    margin: 0 1rem;
    padding-top: 3vh;
    min-height: fit-content;
  }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
  section {
    margin: 0 2rem;
    padding-top: 3vh;
  }
}

@media screen and (max-width: 1199px) and (min-width: 992px) {
  section {
    margin: 0 3rem;
  }
}

.section-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .section-container {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .section-container {
    gap: 4rem;
  }
}

/* PROFILE SECTION */

/* Hero Section - Enhanced Design */
#profile {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .profile-container {
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .profile-container {
    gap: 4rem;
    padding: 0 3rem;
  }
}

.profile-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}


@media (min-width: 768px) {
  .profile-image {
    width: 300px;
    height: 300px;
  }
}

@media (min-width: 1024px) {
  .profile-image {
    width: 350px;
    height: 350px;
  }
}

.section__pic-container {
  display: flex;
  height: 200px;
  width: 200px;
  margin: 0 auto;
  flex-shrink: 0;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 375px) {
  .section__pic-container {
    height: 220px;
    width: 220px;
  }
}

@media (min-width: 480px) {
  .section__pic-container {
    height: 280px;
    width: 280px;
  }
}

@media (min-width: 576px) {
  .section__pic-container {
    height: 320px;
    width: 320px;
  }
}

@media (min-width: 768px) {
  .section__pic-container {
    height: 350px;
    width: 350px;
    margin: auto 0;
  }
}

@media (min-width: 992px) {
  .section__pic-container {
    height: 380px;
    width: 380px;
  }
}

@media (min-width: 1024px) {
  .section__pic-container {
  height: 400px;
  width: 400px;
  }
}

@media (min-width: 1200px) {
  .section__pic-container {
    height: 420px;
    width: 420px;
  }
}

.section__text {
  text-align: center;
  max-width: 100%;
  padding: 0 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .section__text {
    text-align: left;
    padding: 0;
    max-width: 500px;
    align-items: flex-start;
  }
}


.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #666;
  font-weight: 500;
}

@media (min-width: 480px) {
  .section__text__p1 {
    font-size: 1.1rem;
  }
}

@media (min-width: 768px) {
  .section__text__p1 {
    text-align: center;
    font-size: 1.2rem;
  }
}

.section__text__p2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #666;
}

@media (min-width: 480px) {
  .section__text__p2 {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
.section__text__p2 {
  font-size: 1.75rem;
    text-align: left;
  }
}

/* Responsive Typography System */
.title {
  font-size: 2rem;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #333;
  font-weight: 600;
}

@media (min-width: 480px) {
  .title {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .title {
    font-size: 3rem;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .title {
    font-size: 3.5rem;
  }
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

@media (min-width: 768px) {
  #socials-container {
    justify-content: flex-start;
  }
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .btn-container {
    justify-content: flex-start;
  }
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem 2rem;
  width: auto;
  min-width: 140px;
  border-radius: 2rem;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}


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


/* ABOUT SECTION */

#about {
  position: relative;
}


.about-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .about-details-container {
    max-width: 1000px;
  }
}

.about-containers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-top: 3rem;
  margin-bottom: 2rem;
  justify-content: center;
  align-items: stretch;
}

@media (min-width: 480px) {
  .about-containers {
    flex-direction: row;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }
}

@media (min-width: 768px) {
  .about-containers {
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 0;
    flex-wrap: nowrap;
  }
}

@media (min-width: 992px) {
  .about-containers {
    gap: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .about-containers {
    gap: 2rem;
  }
}

.about-pic {
  border-radius: 2rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.about-pic:hover {
  transform: scale(1.02);
}


.details-container {
  padding: 1.5rem;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  flex: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.details-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.details-container h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #333;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.details-container p {
  font-size: 0.9rem;
  color: rgb(85, 85, 85);
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
}

.details-container .icon {
  height: 1.5rem;
  width: 1.5rem;
  margin-bottom: 0.75rem;
  cursor: default;
}

/* Mobile First Responsive Design */
@media (max-width: 479px) {
  .details-container {
    padding: 1rem;
    min-height: 120px;
    border-radius: 1.5rem;
  }
  
  .details-container h3 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
  
  .details-container p {
    font-size: 0.8rem;
  }
  
  .details-container .icon {
    height: 1.25rem;
    width: 1.25rem;
    margin-bottom: 0.5rem;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .details-container {
    padding: 1.25rem;
    min-height: 130px;
    border-radius: 1.75rem;
  }
  
  .details-container h3 {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }
  
  .details-container p {
    font-size: 0.85rem;
  }
  
  .details-container .icon {
    height: 1.3rem;
    width: 1.3rem;
    margin-bottom: 0.6rem;
  }
}

@media (min-width: 768px) {
  .details-container {
    padding: 1.5rem;
    min-height: 140px;
    border-radius: 2rem;
  }
  
  .details-container h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .details-container p {
    font-size: 0.9rem;
  }
  
  .details-container .icon {
    height: 1.5rem;
    width: 1.5rem;
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 992px) {
  .details-container {
    padding: 1.75rem;
    min-height: 150px;
  }
  
  .details-container h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }
  
  .details-container p {
    font-size: 1rem;
  }
  
  .details-container .icon {
    height: 1.6rem;
    width: 1.6rem;
    margin-bottom: 0.8rem;
  }
}

@media (min-width: 1200px) {
  .details-container {
    padding: 2rem;
    min-height: 160px;
  }
  
  .details-container h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .details-container p {
    font-size: 1.1rem;
  }
  
  .details-container .icon {
    height: 1.8rem;
    width: 1.8rem;
    margin-bottom: 1rem;
  }
}

.text-container {
  margin-top: 1.5rem;
  padding: 1rem 1rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.text-container p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  text-align: left;
  margin: 0;
}

@media (min-width: 375px) {
  .text-container {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    max-width: 850px;
  }
  
  .text-container p {
    font-size: 1rem;
  }
}

@media (min-width: 480px) {
  .text-container {
    margin-top: 2.5rem;
    padding: 1rem 2rem;
    max-width: 900px;
  }
  
  .text-container p {
    font-size: 1.1rem;
    line-height: 1.7;
  }
}

@media (min-width: 576px) {
  .text-container {
    padding: 1rem 2.5rem;
    max-width: 950px;
  }
  
  .text-container p {
    font-size: 1.15rem;
  }
}

@media (min-width: 768px) {
  .text-container {
    margin-top: 3rem;
    padding: 1rem 3rem;
    max-width: 1000px;
  }
  
  .text-container p {
    font-size: 1.2rem;
    line-height: 1.8;
  }
}

@media (min-width: 992px) {
  .text-container {
    max-width: 1100px;
    padding: 1rem 3.5rem;
  }
  
  .text-container p {
    font-size: 1.3rem;
  }
}

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


/* EXPERIENCE SECTION */

#experience {
  position: relative;
  min-height: fit-content;
  height: auto;
  overflow: visible;
  padding-bottom: 4rem;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-align: center;
}

@media (min-width: 480px) {
  .experience-sub-title {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .experience-sub-title {
    font-size: 1.75rem;
    text-align: left;
    margin-bottom: 2.5rem;
  }
}

/* SKILLS TABS SECTION */
.skills-tabs-container {
  margin-top: 3rem;
  margin-bottom: 2rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  overflow: hidden;
}

.skills-tabs {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.5rem;
  background: white;
  border-radius: 1rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.skills-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: none;
  border-radius: 0.75rem;
  color: #666;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.tab-btn:hover {
  background: #f8f9fa;
  color: #333;
  transform: translateY(-2px);
}

.tab-btn.active {
  background: #333;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skills-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  max-width: 100%;
  padding: 0 1rem;
  overflow: visible;
}

/* All tabs now use the same container sizing as frontend/backend */

@media (min-width: 480px) {
  .skills-grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .skills-grid-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 992px) {
  .skills-grid-container {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: white;
  border-radius: 1.5rem;
  border: 1px solid rgb(163, 163, 163);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
  min-height: 120px;
}

.skill-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  border-color: rgb(53, 53, 53);
}

.skill-icon {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  width: 100%;
  max-width: 5rem;
}

.skill-icon img,
.skill-icon svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0);
  transition: all 0.3s ease;
}

.skill-item:hover .skill-icon img,
.skill-item:hover .skill-icon svg {
  filter: grayscale(0);
  transform: scale(1.05);
}

.skill-item span {
  font-size: 0.9rem;
  color: #333;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (min-width: 480px) {
  .skill-item span {
    font-size: 1rem;
  }

  .skill-icon {
    height: 4rem;
    max-width: 6rem;
  }
}

@media (min-width: 768px) {
  .skill-icon {
    height: 4.5rem;
    max-width: 7rem;
  }
}

/* Mobile Responsive Tabs */
@media (max-width: 1199px) {
  .tab-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 991px) {
  .tab-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 767px) {
  .skills-tabs {
    gap: 0.3rem;
    padding: 0.4rem;
  }

  .tab-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.65rem;
  }
}

@media (max-width: 575px) {
  .skills-tabs {
    gap: 0.25rem;
    padding: 0.3rem;
  }

  .tab-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.6rem;
  }
}

@media (max-width: 375px) {
  .skills-tabs {
    gap: 0.2rem;
    padding: 0.25rem;
  }

  .tab-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.55rem;
  }
}

/* PROJECTS SECTION */

#projects {
  position: relative;
  min-height: fit-content;
  height: auto;
}

/* Project Filter Buttons */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem 0 1.5rem 0;
  padding: 0 1rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid #ddd;
  border-radius: 2rem;
  background: white;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: #555;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background: #f5f5f5;
  border-color: #007bff;
  color: #007bff;
}

.filter-btn.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.filter-btn:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.filter-btn:focus:not(:focus-visible) {
  outline: none;
}

.filter-btn:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Project Count Display */
.project-count {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* No Results State */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
  grid-column: 1 / -1;
}

.no-results h3 {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.no-results p {
  color: #888;
  font-size: 0.95rem;
}

/* Project Section Styles */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.project-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  position: relative;
  transition: all 0.3s ease;
  height: 400px;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #007bff;
}

.project-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.project-title {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.25rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.project-title svg {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.project-actions {
  margin-top: auto;
}

.project-tags {
  color: #555;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1rem;
}

.project-tags strong {
  font-weight: 600;
}

.project-tags span {
  font-weight: normal;
}

.project-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.project-btn {
  background: transparent;
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  color: #333;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  font-weight: 600;
}

.project-btn:hover:not(:disabled) {
  background: #f5f5f5;
}

.project-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
  color: transparent;
  min-height: 2.5rem;
  padding: 0.5rem 1.25rem;
}

.project-btn:disabled::after {
  content: "Coming Soon";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  color: #666;
  font-weight: 600;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.pagination-btn {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  color: #495057;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: #007bff;
  border-color: #007bff;
  color: white;
  transform: translateY(-2px);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.pagination-btn.active {
  background: #007bff;
  border-color: #007bff;
  color: white;
}

.pagination-info {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0 1rem;
}

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.project-image-container {
  width: 100%;
  height: 200px;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image-placeholder {
  color: #555;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
  font-style: normal;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 2rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: #333;
}

.modal-close:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

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

.modal-image-container {
  width: 100%;
  height: 250px;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.modal-details {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.modal-details p {
  margin: 0.5rem 0;
}

.modal-details strong {
  font-weight: 600;
}

.modal-details .tags span {
  font-weight: normal;
}

.experience-details-container {
  margin: 0.5rem 0;
}

/* CONTACT - Modern Redesign */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: 70vh;
  padding: 2rem 0;
}

/* Contact Card */
.contact-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 1.5rem;
  border: 1px solid rgb(220, 220, 220);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 2rem auto;
  padding: 0;
  width: 90%;
  overflow: hidden;
  transition: all 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Contact Methods */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: white;
}

@media (min-width: 768px) {
  .contact-methods {
    flex-direction: row;
    padding: 2.5rem 3rem;
  }
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #f8f9fa;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.contact-method-item:hover {
  background: #ffffff;
  border-color: rgb(220, 220, 220);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  text-decoration: none;
}

@media (min-width: 768px) {
  .contact-method-item {
    flex: 1;
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

@media (min-width: 768px) {
  .contact-icon {
    width: 3.5rem;
    height: 3.5rem;
  }
}

.email-icon {
  width: 4.5rem;
  height: 4.5rem;
}

.contact-method-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .contact-method-info {
    margin-top: 1rem;
  }
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
}

@media (min-width: 768px) {
  .contact-label {
    font-size: 0.8rem;
  }
}

.contact-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: #353535;
  word-break: break-word;
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  .contact-value {
    font-size: 0.95rem;
  }
}

.contact-method-item:hover .contact-value {
  color: #353535;
}

/* Card Footer */
.contact-card-footer {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
  border-top: 0.1rem solid rgb(230, 230, 230);
  text-align: center;
}

.contact-card-footer p {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 1rem 0;
}

.availability-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #e8f5e9;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #2e7d32;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  min-height: 100px;
  margin: 0 1rem;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

footer nav {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 50px !important;
}

footer .nav-links-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

footer .nav-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
  width: 100%;
  max-width: 600px;
}

footer .nav-links li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
  text-align: center;
}

footer .nav-links li::before {
  content: none !important;
  display: none !important;
}

footer .nav-links li::after {
  content: none !important;
  display: none !important;
}

footer .nav-links li::marker {
  content: "" !important;
  display: none !important;
}

footer .nav-links a {
  text-align: center;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.2rem;
}

footer p {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  width: 100%;
}

@media screen and (max-width: 575px) {
  footer {
    height: auto;
    min-height: 120px;
    margin: 0 0.5rem;
    padding: 1.5rem 0;
  }

  footer nav {
    margin-bottom: 1rem;
  }

  footer .nav-links {
    flex-direction: column;
    gap: 0.75rem !important;
  }

  footer .nav-links a {
    padding: 0.5rem;
  }

  footer p {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 767px) and (min-width: 576px) {
  footer {
    height: auto;
    min-height: 130px;
    margin: 0 1rem;
    padding: 1.75rem 0;
  }

  footer nav {
    margin-bottom: 1rem;
  }

  footer .nav-links {
    flex-direction: column;
    gap: 1rem !important;
  }

  footer p {
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   WORK EXPERIENCE TIMELINE SECTION
   ========================================================================== */

#work-experience {
  padding: 5rem 10rem;
  background-color: #fff; /* White background to alternate with sections */
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media screen and (max-width: 575px) {
  #work-experience {
    padding: 3rem 0.5rem;
  }
}

@media screen and (max-width: 767px) and (min-width: 576px) {
  #work-experience {
    padding: 3rem 1rem;
  }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
  #work-experience {
    padding: 4rem 2rem;
  }
}

@media screen and (max-width: 1199px) and (min-width: 992px) {
  #work-experience {
    padding: 4.5rem 3rem;
  }
}

.timeline-container {
  max-width: 1000px;
  margin: 3rem auto 0 auto;
  padding: 0 2rem;
}

.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #353535, #1a1a1a);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 1.25rem;
  height: 1.25rem;
  background: linear-gradient(135deg, #353535, #1a1a1a);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(53, 53, 53, 0.2);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-content {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #fff;
}

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

.timeline-header h3 {
  font-size: 1.25rem;
  color: #1a1a1a;
  font-weight: 600;
  margin: 0;
}

.timeline-date {
  font-size: 0.875rem;
  color: #6c757d;
  background: #f1f3f4;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  white-space: nowrap;
}

.timeline-role {
  display: block;
  font-size: 1rem;
  color: #353535;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-responsibilities {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.timeline-responsibilities li::before {
  content: '•' !important;
  position: absolute !important;
  left: 0 !important;
  color: #353535 !important;
  font-weight: 600 !important;
  font-size: 1.2rem !important;
  line-height: 1.4 !important;
  display: block !important;
}

.timeline-responsibilities li:last-child {
  margin-bottom: 0;
}

/* Override global list reset for timeline */
.timeline-responsibilities,
.timeline-responsibilities li {
  list-style: none !important;
}

/* ==========================================================================
   LEADERSHIP & INVOLVEMENT SECTION
   ========================================================================== */

#leadership {
  padding: 5rem 10rem;
  background-color: #f5f5f5; /* Alternating section background */
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media screen and (max-width: 575px) {
  #leadership {
    padding: 3rem 0.5rem;
  }
}

@media screen and (max-width: 767px) and (min-width: 576px) {
  #leadership {
    padding: 3rem 1rem;
  }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
  #leadership {
    padding: 4rem 2rem;
  }
}

@media screen and (max-width: 1199px) and (min-width: 992px) {
  #leadership {
    padding: 4.5rem 3rem;
  }
}

.leadership-container {
  max-width: 1200px;
  margin: 3rem auto 0 auto;
  padding: 0 2rem;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.leadership-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.leadership-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.leadership-card h3 {
  font-size: 1.15rem;
  color: #1a1a1a;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.leadership-company {
  display: block;
  font-size: 0.9rem;
  color: #007bff;
  font-weight: 500;
  margin-bottom: 1rem;
}

.leadership-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE STYLES FOR TIMELINE & LEADERSHIP
   ========================================================================== */

@media screen and (max-width: 991px) {
  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  #work-experience {
    padding: 3rem 0;
  }

  .timeline-container,
  .leadership-container {
    padding: 0 1rem;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline::before {
    left: 0;
  }

  .timeline-dot {
    left: -2rem;
    width: 1rem;
    height: 1rem;
  }

  .timeline-content {
    padding: 1.25rem;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-header h3 {
    font-size: 1.1rem;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .leadership-card {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 575px) {
  .timeline-content::before {
    display: none;
  }

  .timeline-role,
  .timeline-date {
    font-size: 0.85rem;
  }

  .timeline-responsibilities li {
    font-size: 0.875rem;
  }

  .leadership-card h3 {
    font-size: 1rem;
  }

  .leadership-company {
    font-size: 0.85rem;
  }

  .leadership-card p {
    font-size: 0.85rem;
  }
}