/* GENERAL */

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

:root {
  --primary-color: #3a86ff;
  --primary-dark: #2667cc;
  --secondary-color: #8338ec;
  --accent-color: #ff006e;
  --dark-bg: #212529;
  --light-bg: #f8f9fa;
  --text-dark: #212529;
  --text-light: #6c757d;
  --white: #ffffff;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

p {
  color: var(--text-light);
}

/* TRANSITION */

a,
.btn,
.icon,
.details-container,
.skill-icons img,
.achievement-box {
  transition: all 300ms ease;
}

/* DESKTOP NAV - Enhanced Glassy Design */

nav {
  position: sticky;
  top: 0;
  background-color: rgba(
    255,
    255,
    255,
    0.75
  ); /* More transparent for glass effect */
  backdrop-filter: blur(15px); /* Increased blur for more glassy feel */
  -webkit-backdrop-filter: blur(15px); /* For Safari support */
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(255, 255, 255, 0.3) inset; /* Subtle inner highlight */
  border-bottom: 1px solid rgba(255, 255, 255, 0.5); /* Subtle border for glass effect */
}

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

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

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

a {
  color: var(--text-dark);
  text-decoration: none;
  text-decoration-color: white;
  position: relative;
}

.nav-links a {
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: width 0.4s ease;
  opacity: 0.8;
}

.nav-links a:hover {
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 10px rgba(58, 134, 255, 0.15);
  text-shadow: 0 0 1px rgba(58, 134, 255, 0.2);
}

.nav-links a:hover::after {
  width: 100%;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary-color);
  text-shadow: 0 0 20px rgba(58, 134, 255, 0.3);
  transition: all 0.3s ease;
}

.logo:hover {
  cursor: default;
  text-shadow: 0 0 25px rgba(58, 134, 255, 0.5);
  transform: scale(1.02);
}

/* HAMBURGER MENU - Enhanced Glassy Design */

#hamburger-nav {
  display: none;
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(255, 255, 255, 0.3) inset;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px;
  border-radius: 8px;
}

.hamburger-icon:hover {
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 10px rgba(58, 134, 255, 0.1);
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95); /* More transparent background */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Improved animation */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 10px;
}

.menu-links a {
  display: block;
  padding: 12px 24px;
  text-align: center;
  font-size: 1.3rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-links a:hover {
  background-color: rgba(58, 134, 255, 0.15);
  color: var(--primary-color);
  transform: translateX(5px);
}

.menu-links li {
  list-style: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  transition-delay: calc(0.1s * var(--i, 0));
}

.menu-links.open li {
  opacity: 1;
  transform: translateY(0);
}

.menu-links li:last-child a {
  border-bottom: none;
}

.menu-links.open {
  max-height: 300px;
  padding: 10px 0;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(8px, 6px);
  background-color: var(--primary-color);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(8px, -6px);
  background-color: var(--primary-color);
}

/* SECTIONS */

section {
  padding: 4vh 0;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
  margin-bottom: 3rem; /* Added consistent bottom margin for all sections */
}

/* Remove space between sections */
section + section {
  padding-top: 2vh; /* Further reduces spacing between consecutive sections */
}

.section-container {
  display: flex;
  gap: 4rem; /* Add gap between section container elements */
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
  position: relative;
  z-index: 1;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
  position: relative;
  animation: fadeInUp 1s ease-out;
}

.section__pic-container img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 4px solid transparent;
  background: linear-gradient(white, white) padding-box,
    linear-gradient(90deg, var(--primary-color), var(--secondary-color))
      border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  animation: profilePulse 4s infinite alternate;
}

.section__pic-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

@keyframes profilePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(58, 134, 255, 0.2);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(131, 56, 236, 0.3);
  }
}

.section__pic-container::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  opacity: 0.1;
  z-index: -1;
  animation: pulse 3s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.05);
    opacity: 0.2;
  }
}

.section__text {
  align-self: center;
  text-align: center;
  animation: fadeIn 1.2s ease-out;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var (--secondary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 2em; /* Keep a consistent height to avoid layout shifts */
}

.typing-text {
  display: inline-block;
  border-right: none;
}

.cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--secondary-color);
  animation: blink 0.7s infinite;
}

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

.title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.socials-icon {
  animation: float 3s ease-in-out infinite;
}

.socials-icon:nth-child(odd) {
  animation-delay: 0.5s;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* New keyframe animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hidden {
  opacity: 0;
}

.fadeInUp {
  animation: fadeInUp 1s ease forwards;
}

.fadeInLeft {
  animation: fadeInLeft 1s ease forwards;
}

.fadeInRight {
  animation: fadeInRight 1s ease forwards;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.icon:hover {
  filter: none;
  transform: translateY(-5px) scale(1.1);
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
}

.btn-color-1 {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  box-shadow: 0 4px 10px rgba(58, 134, 255, 0.3);
}

.btn-color-1:hover {
  background: linear-gradient(
    90deg,
    var(--primary-dark),
    var(--secondary-color)
  );
  box-shadow: 0 6px 15px rgba(58, 134, 255, 0.4);
  transform: translateY(-3px);
}

.btn-color-2 {
  background: white;
  color: var(--text-dark);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-color-2:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* ABOUT SECTION */

#about {
  position: relative;
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--card-shadow);
  margin-top: 2rem;
  margin-bottom: 4rem; /* Added margin-bottom to create space */
}

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

/* Updated about section image container - Refined for better image display */
#about .section__pic-container {
  width: auto;
  height: auto;
  max-width: 400px;
  max-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  background: none;
  animation: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

#about .section__pic-container::after {
  display: none; /* Remove the after pseudo-element */
}

.about-pic {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.5s ease;
}

.about-pic:hover {
  transform: scale(1.03);
  box-shadow: var(--hover-shadow);
}

.text-container {
  padding: 1rem 0; /* Add padding to the text container */
}

/* RESPONSIVE MEDIA QUERIES FOR ABOUT SECTION */
@media screen and (max-width: 1200px) {
  #about .section__pic-container {
    max-width: 350px;
  }

  .section-container {
    gap: 3rem; /* Reduced gap on smaller screens */
  }
}

@media screen and (max-width: 900px) {
  #about .section__pic-container {
    max-width: 300px;
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 600px) {
  #about .section__pic-container {
    max-width: 250px;
  }

  #about {
    padding: 2rem;
  }
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.about-containers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.color-container {
  border: none;
  background: var(--white);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: calc(25% - 2rem);
  min-width: 280px;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 480px; /* Changed from fixed height to min-height */
}

.color-container:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.article-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 220px;
  overflow: hidden;
  margin-top: 1rem;
}

.project-img {
  border-radius: var(--border-radius);
  width: 90%;
  height: 200px;
  object-fit: cover;
}

.project-title {
  margin: 0.75rem 1rem; /* Reduced vertical margin */
  color: var(--text-dark);
  font-size: 1.5rem;
  text-align: center;
  min-height: 50px; /* Changed from fixed height to min-height */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Technology Stack Tags */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center; /* Added to ensure vertical alignment */
  gap: 0.5rem;
  margin: 0 1rem 1rem;
  padding: 0.5rem;
  flex: 0 1 auto; /* Changed from flex: 1 to prevent stretching */
}

.tech-tag {
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin-bottom: 0.25rem;
  display: inline-block;
  min-width: fit-content;
  text-align: center;
}

/* Different colors for tech tags */
.tech-tag:nth-child(1) {
  background: linear-gradient(90deg, #3a86ff, #0066cc);
}

.tech-tag:nth-child(2) {
  background: linear-gradient(90deg, #8338ec, #5e00e6);
}

.tech-tag:nth-child(3) {
  background: linear-gradient(90deg, #ff006e, #e6005c);
}

.tech-tag:nth-child(4) {
  background: linear-gradient(90deg, #fb5607, #e64a00);
}

.tech-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Make sure tech tags look good on all screen sizes */
@media screen and (max-width: 600px) {
  .tech-stack {
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    padding: 0.25rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .tech-tag {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    white-space: nowrap;
    min-width: auto;
    max-width: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: visible;
    margin: 0.15rem;
  }

  .color-container {
    height: auto;
    min-height: 420px; /* Reduced min-height for mobile */
    padding-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
  }

  .project-title {
    min-height: auto; /* Allow title to take natural height */
    font-size: 1.2rem;
    margin: 0.5rem 1rem;
    height: auto;
    padding: 0.25rem 0;
  }

  /* Project buttons container with auto margin-top to push to bottom */
  .btn-container {
    margin-top: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

@media screen and (max-width: 375px) {
  .tech-tag {
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    min-width: auto;
    margin: 0.15rem;
  }

  .tech-stack {
    gap: 0.25rem;
    padding: 0.15rem;
    margin: 0 0.5rem 0.75rem;
  }

  .color-container {
    min-height: 400px;
  }

  .project-title {
    font-size: 1.1rem;
    margin: 0.4rem 0.5rem;
  }

  .tech-stack {
    margin-bottom: 0.5rem;
  }
}

/* Project buttons container */
.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem; /* Reduced padding */
  margin-top: auto; /* Push buttons to bottom */
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: auto;
  padding: 5rem 0;
}

.contact-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  flex: 1;
}

.contact-info-upper-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  border-radius: var(--border-radius);
  border: none;
  background: var(--white);
  box-shadow: var(--card-shadow);
  margin: 2rem auto;
  padding: 1.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.5rem;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1rem;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.contact-info-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.contact-info-container p {
  font-size: larger;
  margin: 0;
}

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

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

.contact-fun-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fun-meme {
  max-width: 100%;
  height: 200px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

/* FOOTER SECTION - Updated */

footer {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(248, 249, 250, 0.9)
  );
  backdrop-filter: blur(10px);
  color: var(--text-dark);
  padding: 1rem 0; /* Reduced padding */
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  font-size: 1.5rem; /* Smaller than the header logo */
  margin-bottom: 0.5rem;
}

.footer-developer-note {
  margin-top: 0.3rem; /* Reduced margin */
  font-style: italic;
  color: var(--text-light);
}

/* Remove the old nav-links-footer styling that's no longer needed */
.nav-links-container,
.nav-links-footer {
  display: none;
}

/* EDUCATION SECTION */

#education {
  position: relative;
  padding-top: 4vh;
  height: auto;
  margin: 0 10rem;
  box-sizing: border-box;
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--card-shadow);
  margin-top: 2rem; /* Added explicit margin-top for consistency */
}

.education-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

.education-item {
  display: flex;
  gap: 2rem;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.education-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 150px;
}

.education-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  margin-bottom: 1rem;
}

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

.education-time {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  background-color: rgba(58, 134, 255, 0.1);
  border-radius: 20px;
  text-align: center;
}

.education-details {
  flex: 1;
}

.education-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.education-degree {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.education-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Committees and Clubs styling */
.committees-container {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.committees-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.committee-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.committee-item {
  flex: 1;
  min-width: 200px;
  background-color: rgba(248, 249, 250, 0.7);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.committee-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.committee-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.committee-role {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
  margin: 0.4rem 0;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background-color: rgba(58, 134, 255, 0.1);
}

.committee-description {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Hoverable link style */
.education-title a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
}

.education-title a:hover {
  color: var(--secondary-color);
}

.education-title a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.education-title a:hover::after {
  width: 100%;
}

/* Section Container */
#experience-skills {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

#experience,
#skills {
  width: 48%;
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

/* Experience Section */
.main-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.experience-item {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.experience-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--primary-color);
}

.experience-company a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.experience-company a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.experience-company a:hover::after {
  width: 100%;
}

.experience-time {
  font-size: 1.2rem;
  color: #666;
  margin-top: 0.5rem;
}

.experience-description {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.75rem;
}

/* Skills & Tools Section */
.sub-title {
  text-align: left;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 600;
  color: var (--primary-color);
}

.skills-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.skill-category {
  margin-bottom: 2rem;
}

.small-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var (--text-dark);
  position: relative;
  display: inline-block;
}

.small-title::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 3px;
  bottom: -8px;
  left: 0;
  background: linear-gradient(90deg, var(--primary-color), transparent);
}

.skill-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.skill-icons img {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease;
  border-radius: 8px;
  padding: 8px;
  background-color: white;
  box-shadow: var(--card-shadow);
}

.skill-icons img:hover {
  transform: scale(1.15);
  box-shadow: var(--hover-shadow);
}

/* Responsive Media Queries */
@media screen and (max-width: 1200px) {
  #experience-skills {
    flex-direction: column;
    margin: 3rem 5rem;
  }

  #experience,
  #skills {
    width: 100%;
  }

  .main-title,
  .sub-title {
    text-align: center;
  }

  .skill-icons {
    justify-content: center;
  }

  #about .section__pic-container {
    width: 300px;
    min-height: 300px;
    margin: 0 auto 2rem;
  }
}

@media screen and (max-width: 900px) {
  #experience-skills {
    margin: 2rem 2rem;
  }

  .skill-icons img {
    width: 50px;
    height: 50px;
  }

  .experience-title,
  .small-title {
    font-size: 1.4rem;
  }

  .experience-description {
    font-size: 1rem;
  }

  #about .section__pic-container {
    width: 280px;
    min-height: 280px;
  }
}

@media screen and (max-width: 600px) {
  section + section {
    padding-top: 1vh; /* Even smaller spacing on mobile */
  }

  .footer-logo {
    font-size: 1.2rem;
  }

  .footer-developer-note p {
    font-size: 0.9rem;
  }

  #about .section__pic-container {
    width: 250px;
    min-height: 250px;
  }
}

#achievements {
  padding: 4rem 0;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin: 2rem 10rem;
}

.achievements-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 3rem;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Achievements Container */
.achievements-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Individual Achievement Box */
.achievement-box {
  width: 100%;
  max-width: 280px;
  background-color: #fff;
  box-shadow: var(--card-shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.achievement-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.achievement-box:hover .achievement-image img {
  transform: scale(1.05);
}

.achievement-content {
  padding: 1.5rem;
  text-align: left;
}

.achievement-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.achievement-date {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  display: block;
}

.achievement-content p {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
}

/* Responsive Design */
@media screen and (max-width: 1400px) {
  .achievements-container {
    gap: 1.5rem;
    justify-content: space-around;
  }

  .achievement-box {
    width: calc(25% - 1.5rem);
    min-width: 250px;
  }
}

@media screen and (max-width: 1200px) {
  .achievement-box {
    width: calc(33.33% - 1.5rem);
    min-width: 220px;
  }
}

@media screen and (max-width: 900px) {
  .achievement-box {
    width: calc(50% - 1.5rem);
  }
}

@media screen and (max-width: 600px) {
  .achievements-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .achievement-box {
    width: 90%;
    max-width: 350px;
  }
}

@media screen and (max-width: 1024px) {
  .achievements-container {
    gap: 1.5rem;
  }

  .achievement-box {
    width: 45%;
  }
}

@media screen and (max-width: 768px) {
  .achievements-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .achievement-box {
    width: 90%;
  }
}

@media screen and (max-width: 480px) {
  #achievements {
    padding: 4rem 0;
  }
  .achievements-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .achievement-box {
    max-width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .achievement-image img {
    height: 150px;
  }

  .achievement-content h3 {
    font-size: 1.1rem;
  }

  .achievement-content p {
    font-size: 0.9rem;
  }

  .achievement-date {
    font-size: 0.8rem;
  }
}

/* Contact Me Section */
#contact {
  padding: 4rem 2rem;
}

.contact-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.contact-info {
  flex: 1;
}

.contact-info-upper-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.contact-info-container:hover {
  transform: translateY(-5px);
}

.contact-icon {
  width: 30px;
  height: 30px;
}

.contact-fun-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fun-meme {
  max-width: 100%;
  height: 200px;
}

/* Footer */
footer {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(248, 249, 250, 0.9)
  );
  backdrop-filter: blur(10px);
  color: var(--text-dark);
  padding: 1rem 0; /* Reduced padding */
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-links-container {
  margin-bottom: 0.5rem;
}

.nav-links-footer {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-links-footer li {
  display: inline;
}

.nav-links-footer a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links-footer a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links-footer a:hover::after {
  width: 100%;
}

.footer-developer-note {
  margin-top: 0.3rem; /* Reduced margin */
  font-style: italic;
  color: var(--text-light);
}

/* Additional responsive fixes */
@media screen and (max-width: 1200px) {
  section,
  #education,
  #achievements {
    margin: 0 5%;
    padding: 3vh 0; /* Reduced padding */
  }
}

@media screen and (max-width: 768px) {
  .nav-links-footer {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  section,
  #education,
  #achievements {
    margin: 0 3%;
    padding: 2vh 1rem; /* Reduced padding */
  }

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

@media screen and (max-width: 768px) {
  .nav-links {
    flex-direction: column;
  }

  .nav-links li {
    margin: 0.5rem 0;
  }
}

@media screen and (max-width: 768px) {
  .contact-content {
    flex-direction: column;
    align-items: center;
  }

  .contact-info-upper-container {
    align-items: center;
  }

  .contact-info-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
  }

  .contact-fun-section {
    margin-top: 2rem;
    width: 100%;
  }

  .fun-meme {
    max-width: 80%;
    height: 150px;
  }
}

@media screen and (max-width: 600px) {
  section + section {
    padding-top: 1vh; /* Even smaller spacing on mobile */
  }

  .footer-logo {
    font-size: 1.2rem;
  }

  .footer-developer-note p {
    font-size: 0.9rem;
  }
}
