/* Base Styles */
html {
  scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh; /* Ensures body takes full viewport height */
  font-family: 'Roboto', sans-serif;
  background-color: #0b0c10;
  color: #c5c6c7;
  line-height: 1.6;
  font-size: 16px; /* Base font size */
}

body.light-theme {
  background-color: #f5f5f5;
  color: #222;
}

/* Container for consistent content width */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box; /* Include padding in element's total width */
}

/* ------------------------------------------ Header ------------------------------------------ */
header {
  background-color: #1f2833;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #45a29e;
}

.brand {
  font-size: 1.6rem;
  font-weight: bold;
  color: #66fcf1;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

nav a {
  color: #c5c6c7;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
  background-color: #45a29e;
  color: #0b0c10;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #66fcf1;
  transition: transform 0.2s ease;
  margin-left: 15px; /* Spacing between nav and toggle */
}

.theme-toggle:hover {
  transform: scale(1.2);
}

.nav-toggle { /* Hamburger icon for mobile */
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #66fcf1;
  cursor: pointer;
  margin-left: 15px;
}

/* Light Theme Header */
body.light-theme header {
  background-color: #ffffff;
  border-bottom-color: #007acc;
}

body.light-theme header .brand {
  color: #007acc;
}

body.light-theme header nav a {
  color: #111;
}

body.light-theme header nav a:hover {
  background-color: #007acc;
  color: #ffffff;
}

body.light-theme .theme-toggle,
body.light-theme .nav-toggle {
  color: #007acc;
}

/* --------------------------------------- Hero Section --------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - 70px); /* Account for header height */
  background: linear-gradient(135deg, #0b0c10, #1f2833);
  position: relative;
  padding: 40px 20px; /* Add some padding */
  box-sizing: border-box;
}

.hero h1 {
  font-size: 3.2rem;
  color: #66fcf1;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero h2 {
  font-size: 1.8rem;
  font-weight: 400;
  color: #c5c6c7;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1rem;
  color: #a9a9a9;
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* Space between buttons */
}

.hero .btn {
  background-color: #66fcf1;
  color: #0b0c10;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.hero .btn:hover {
  background-color: #45a29e;
}

#typed-role {
  color: #00bfff;
}

body.light-theme #typed-role {
  color: #0059b3;
}

.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #66fcf1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  animation: bounce 2s infinite; /* Added bounce animation */
}

.scroll-down::before {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 2px solid #66fcf1;
  border-bottom: 2px solid #66fcf1;
  transform: rotate(-45deg);
  margin-top: 4px;
}

.scroll-down:hover {
  background-color: #66fcf1;
}

.scroll-down:hover::before {
  border-color: #0b0c10;
}

@keyframes shake {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  20%, 60% { transform: translateX(-50%) translateY(-5px); }
  40%, 80% { transform: translateX(-50%) translateY(5px); }
}

.scroll-down.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes bounce { /* New bounce animation for scroll-down */
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Light Theme Hero Section */
body.light-theme .hero {
  background: linear-gradient(135deg, #ffffff, #eaeaea);
}

body.light-theme .hero h1 {
  color: #007acc;
}

body.light-theme .hero h2 {
  color: #333;
}

body.light-theme .hero p {
  color: #555;
}

body.light-theme .hero .btn {
  background-color: #007acc;
  color: #fff;
}

body.light-theme .hero .btn:hover {
  background-color: #005f99;
}

body.light-theme .scroll-down {
  border-color: #007acc;
}

body.light-theme .scroll-down::before {
  border-color: #007acc;
}

body.light-theme .scroll-down:hover {
  background-color: #007acc;
}

body.light-theme .scroll-down:hover::before {
  border-color: #fff;
}

/* -------------------------------------- Welcome Section -------------------------------------- */
.welcome {
  background-color: #0d1117;
  padding: 80px 20px;
  text-align: center;
}

.welcome h2 {
  color: #66fcf1;
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.welcome p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: #c5c6c7;
}

.welcome-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.resume-btn, .contact-btn {
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.resume-btn {
  background-color: #1f2833;
  color: #66fcf1;
  border: 2px solid #66fcf1;
}

.resume-btn:hover {
  background-color: #66fcf1;
  color: #0b0c10;
}

.contact-btn {
  background-color: #66fcf1;
  color: #0b0c10;
  border: 2px solid transparent;
}

.contact-btn:hover {
  background-color: transparent;
  color: #66fcf1;
  border: 2px solid #66fcf1;
}

/* Light Theme Welcome Section */
body.light-theme .welcome {
  background-color: #f5f5f5;
  color: #1e1e1e;
}

body.light-theme .welcome h2 {
  color: #007acc;
}

body.light-theme .welcome p {
  color: #333;
}

body.light-theme .resume-btn {
  background-color: #ffffff;
  color: #007acc;
  border-color: #007acc;
}

body.light-theme .resume-btn:hover {
  background-color: #007acc;
  color: #ffffff;
}

body.light-theme .contact-btn {
  background-color: #007acc;
  color: #ffffff;
}

body.light-theme .contact-btn:hover {
  background-color: transparent;
  color: #007acc;
  border-color: #007acc;
}

/* --------------------------------------- About Section --------------------------------------- */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 80px 20px;
  background-color: #0c0c0c;
}

.about-content {
  display: flex; /* Ensure the content within the container also uses flex */
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%; /* Make sure it takes full width of container */
}

.profile-pic {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #45a29e;
  flex-shrink: 0; /* Prevent shrinking on smaller screens */
}

.about-text {
  max-width: 600px;
  font-size: 1rem;
  flex-grow: 1; /* Allow text to grow */
  text-align: center; /* Default to center for smaller screens */
}

.about-text h2 {
  font-size: 2.2rem;
  color: #66fcf1;
  margin-bottom: 15px;
}

.about-text p {
  color: #c5c6c7;
  line-height: 1.8;
  font-weight: 300;
}

/* Light Theme Support for About Section */
body.light-theme .about {
  background-color: #f5f5f5;
}

body.light-theme .about-text h2 {
  color: #007acc;
}

body.light-theme .about-text p {
  color: #333;
}

body.light-theme .profile-pic {
  border-color: #007acc;
}

/* ----------------------------------------- Education Section ----------------------------------------- */
.education {
  padding: 80px 20px;
  background-color: #0d1117;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: #66fcf1;
  margin-bottom: 60px;
  letter-spacing: 1px;
  text-align: center;
}

.education h2 {
  font-size: 2.2rem; /* Adjusted for consistency */
  color: #66fcf1;
  margin-bottom: 50px;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 40px;
  border-left: 3px solid #45a29e;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  padding-left: 30px;
}

.timeline-icon {
  position: absolute;
  left: -33px;
  top: 5px;
  background-color: #66fcf1;
  color: #0b0c10;
  font-size: 1.1rem;
  padding: 10px;
  border-radius: 50%;
  border: 2px solid #45a29e;
  box-shadow: 0 0 10px rgba(102, 252, 241, 0.2);
  z-index: 1;
}

.timeline-content {
  background-color: #1f2833;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: left;
  position: relative;
  z-index: 0;
}

.edu-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.edu-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.edu-text {
  flex-grow: 1;
}

.timeline-content h3 {
  color: #66fcf1;
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.institute, .university {
  color: #66fcf1;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.duration {
  color: #c5c6c7;
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.details {
  color: #b0b3b8;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Light Theme Overrides */
body.light-theme .education {
  background-color: #f5f5f5;
}

body.light-theme .education h2 {
  color: #007acc;
}

body.light-theme .timeline {
  border-left-color: #007acc;
}

body.light-theme .timeline-content {
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.light-theme .timeline-icon {
  background-color: #007acc;
  border-color: #005f99;
  color: #fff;
}

body.light-theme .institute,
body.light-theme .university {
  color: #007acc;
}

body.light-theme .duration {
  color: #444;
}

body.light-theme .details {
  color: #666;
}

body.light-theme .edu-logo {
  filter: grayscale(100%);
}

/*-------------------------------------------- SKILLS -------------------------------------------*/
.skills {
  background-color: #0d1117;
  padding: 80px 20px;
  text-align: center;
}

.skills-category h3 {
  font-size: 1.6rem;
  color: #45a29e;
  margin: 40px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.skills-glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto 60px;
}

.glass-card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(102, 252, 241, 0.2);
  border-radius: 12px;
  padding: 20px;
  color: #66fcf1;
  font-weight: 500;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(102, 252, 241, 0.3);
}

.skill-name {
  font-size: 1rem;
}

.skill-rating {
  width: 100%;
  height: 10px;
  background-color: #2d2f36;
  border-radius: 50px;
  overflow: hidden;
}

.rating-bar {
  height: 100%;
  background: linear-gradient(90deg, #66fcf1, #45a29e);
  border-radius: 50px;
  transition: width 0.6s ease-in-out;
}

.soft-skill-grid .glass-card.soft {
  align-items: center;
  justify-content: center;
  text-transform: none;
  font-size: 0.95rem;
  color: #66fcf1;
  letter-spacing: 0.5px;
  min-height: 80px; /* Ensure consistent height for soft skills */
  text-align: center;
}

body.light-theme .skills {
  background-color: #f5f5f5;
  color: #1e1e1e;
}

body.light-theme .section-title,
body.light-theme .skills-category h3 {
  color: #0b0c10;
}

body.light-theme .glass-card {
  background: #ffffff;
  color: #0b0c10;
  border-color: #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

body.light-theme .glass-card:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

body.light-theme .skill-rating {
  background-color: #ddd;
}

body.light-theme .rating-bar {
  background: linear-gradient(90deg, #00bcd4, #00796b);
}

body.light-theme .soft-skill-grid .glass-card.soft {
  background: #ffffff;
  color: #1e1e1e;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

body.light-theme .soft-skill-grid .glass-card.soft:hover {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

/*-------------------------------------- Projects Section --------------------------------------*/
.projects {
  background-color: #0b0c10;
  padding: 80px 20px;
  text-align: center;
}

.projects .section-title {
  font-size: 2.5rem;
  color: #66fcf1;
  margin-bottom: 50px;
}

.project-category {
  margin-bottom: 60px;
}

.project-category h3 {
  color: #45a29e;
  font-size: 1.6rem;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly larger min for projects */
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(102, 252, 241, 0.15);
  border-radius: 12px;
  padding: 25px;
  color: #c5c6c7;
  text-align: left;
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card h4 {
  font-size: 1.2rem;
  color: #66fcf1;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #a9a9a9;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(102, 252, 241, 0.2);
}

body.light-theme .projects {
  background-color: #ffffff;
  color: #1e1e1e;
}

body.light-theme .project-card {
  background: #f5f5f5;
  color: #1e1e1e;
  border-color: #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

body.light-theme .project-card:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

body.light-theme .project-card h4 {
  color: #007acc;
}

body.light-theme .project-card p {
  color: #333;
}

/* -------------------------------------- Certifications Section -------------------------------------- */
.certifications {
  background-color: #0d1117;
  padding: 80px 20px;
  text-align: center;
}

.certifications .section-title {
  font-size: 2.5rem;
  color: #66fcf1;
  margin-bottom: 50px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.cert-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(102, 252, 241, 0.15);
  border-radius: 12px;
  padding: 60px 25px 25px;
  color: #c5c6c7;
  text-align: center;
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(102, 252, 241, 0.2);
}

.cert-card h3 {
  font-size: 1.2rem;
  color: #66fcf1;
  margin-bottom: 10px;
}

.cert-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #a9a9a9;
}

.cert-icon {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #66fcf1;
  color: #0b0c10;
  padding: 12px;
  font-size: 1.5rem;
  border-radius: 50%;
  border: 2px solid #45a29e;
  box-shadow: 0 0 10px rgba(102, 252, 241, 0.25);
  z-index: 2;
}

/* Light Theme Support */
body.light-theme .certifications {
  background-color: #f5f5f5;
  color: #1e1e1e;
}

body.light-theme .cert-card {
  background: #ffffff;
  color: #1e1e1e;
  border-color: #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

body.light-theme .cert-card:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

body.light-theme .cert-card h3 {
  color: #007acc;
}

body.light-theme .cert-card p {
  color: #333;
}

body.light-theme .cert-icon {
  background-color: #0b0c10;
  color: #ffffff;
  border-color: #007acc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ----------------------------------- Experience Section ------------------------------------- */
.experience {
  background-color: #0d1117;
  padding: 80px 20px;
  text-align: center;
}

.experience .section-title {
  font-size: 2.5rem;
  color: #66fcf1;
  margin-bottom: 50px;
}

.experience-card {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(102, 252, 241, 0.15);
  border-radius: 12px;
  padding: 60px 30px 30px;
  color: #c5c6c7;
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.08);
  backdrop-filter: blur(10px);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(102, 252, 241, 0.25);
}

.experience-card h3 {
  font-size: 1.5rem;
  color: #66fcf1;
  margin-bottom: 10px;
}

.experience-card .company {
  font-size: 1rem;
  font-weight: 500;
  color: #45a29e;
  margin-bottom: 6px;
}

.experience-card .duration {
  font-size: 0.95rem;
  color: #a9a9a9;
  margin-bottom: 14px;
}

.experience-card .details {
  font-size: 1rem;
  line-height: 1.6;
  color: #c5c6c7;
}

.exp-icon {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #66fcf1;
  color: #0b0c10;
  padding: 12px;
  font-size: 1.4rem;
  border-radius: 50%;
  border: 2px solid #45a29e;
  box-shadow: 0 0 10px rgba(102, 252, 241, 0.2);
  z-index: 2;
}

/* Light Theme Overrides */
body.light-theme .experience {
  background-color: #f0f0f0;
  color: #1e1e1e;
}

body.light-theme .experience-card {
  background-color: #ffffff;
  color: #1e1e1e;
  border-color: #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

body.light-theme .experience-card:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

body.light-theme .experience-card h3 {
  color: #007acc;
}

body.light-theme .experience-card .company {
  color: #555;
}

body.light-theme .experience-card .duration {
  color: #888;
}

body.light-theme .experience-card .details {
  color: #333;
}

body.light-theme .exp-icon {
  background-color: #0b0c10;
  color: #ffffff;
  border-color: #007acc;
}

/*--------------------------------------- Contact Section ---------------------------------------*/
.contact {
  background: linear-gradient(135deg, #0b0c10, #0d1117);
  padding: 80px 20px;
  text-align: center;
  color: #c5c6c7;
}

.contact .section-title {
  font-size: 2.5rem;
  color: #66fcf1;
  margin-bottom: 20px;
}

.contact .section-quote {
  font-size: 1.2rem;
  color: #a9a9a9;
  margin-bottom: 40px;
  font-style: italic;
}

.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form {
  flex: 1;
  background: linear-gradient(145deg, rgba(102, 252, 241, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(102, 252, 241, 0.15);
  backdrop-filter: blur(14px);
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(102, 252, 241, 0.1);
  min-width: 320px;
  max-width: 500px; /* Limit form width on larger screens */
}

.form-title {
  font-size: 1.4rem;
  color: #66fcf1;
  margin-bottom: 20px;
  font-weight: bold;
}

.form-group {
  position: relative;
  margin-bottom: 30px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 10px;
  border: none;
  border-bottom: 2px solid #66fcf1;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.contact-form label {
  position: absolute;
  top: 14px;
  left: 10px;
  color: #a9a9a9;
  font-size: 1rem;
  pointer-events: none;
  transition: 0.3s;
}

.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
  top: -14px;
  left: 5px;
  font-size: 0.8rem;
  color: #66fcf1;
  background-color: #0d1117;
  padding: 0 4px;
}

.submit-btn {
  background-color: #66fcf1;
  color: #0b0c10;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
  background-color: #45a29e;
  color: #ffffff;
  transform: translateY(-2px);
}

.contact-info {
  flex: 1;
  color: #c5c6c7;
  min-width: 280px;
  max-width: 500px; /* Limit info width on larger screens */
  text-align: left;
}

.contact-info h3 {
  font-size: 1.8rem;
  color: #66fcf1;
  margin-bottom: 15px;
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.6;
  color: #a9a9a9;
}

.social-links {
  display: flex;
  gap: 25px;
}

.social-links a {
  color: #66fcf1;
  font-size: 1.6rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.2);
  color: #ffffff;
}

/* Light Theme Styles */
body.light-theme .contact {
  background: #f5f5f5;
  color: #1e1e1e;
}

body.light-theme .contact .section-title {
  color: #007acc;
}

body.light-theme .contact .section-quote {
  color: #555;
}

body.light-theme .contact-form {
  background: #ffffff;
  border-color: #ccc;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

body.light-theme .contact-form input,
body.light-theme .contact-form textarea {
  color: #000;
  border-color: #007acc;
  background: transparent;
}

body.light-theme .contact-form label {
  color: #555;
}

body.light-theme .contact-form input:focus + label,
body.light-theme .contact-form input:not(:placeholder-shown) + label,
body.light-theme .contact-form textarea:focus + label,
body.light-theme .contact-form textarea:not(:placeholder-shown) + label {
  color: #007acc;
  background-color: #fff;
}

body.light-theme .contact-info h3 {
  color: #007acc;
}

body.light-theme .contact-info p {
  color: #444;
}

body.light-theme .social-links a {
  color: #007acc;
}

body.light-theme .social-links a:hover {
  color: #333;
}

body.light-theme .submit-btn {
  background-color: #007acc;
  color: #fff;
}

body.light-theme .submit-btn:hover {
  background-color: #005f99;
  color: #fff;
}

/*------------------------------------------- Footer --------------------------------------------*/
.site-footer {
  background-color: #0d1117;
  color: #aab1b8;
  padding: 1.2rem 2rem;
  font-size: 0.9rem;
  border-top: 1px solid #2c2f36;
  text-align: center;
}

.site-footer .footer-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer a.footer-name {
  color: #58a6ff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a.footer-name:hover {
  color: #00ffc3;
  text-shadow: 0 0 5px #00ffc3;
}

.site-footer i {
  color: #00ffc3;
  animation: pulse 2s infinite ease-in-out;
  margin-right: 5px;
}

body.light-theme .site-footer {
  background-color: #f4f4f4;
  color: #222;
  border-top: 1px solid #ccc;
}

body.light-theme .site-footer a.footer-name {
  color: #007acc;
}

body.light-theme .site-footer a.footer-name:hover {
  color: #005f99;
  text-shadow: none;
}

body.light-theme .site-footer i {
  color: #007acc;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

/* ------------------------------------- Media Queries ------------------------------------- */

/* Mobile (<= 768px) */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 15px;
  }

  .brand {
    font-size: 1.4rem;
  }

  .nav-toggle {
    display: block; /* Show hamburger icon */
    order: 3; /* Move to the right */
  }

  #mainNav {
    display: none; /* Hide nav by default */
    flex-direction: column;
    width: 100%;
    background-color: #1f2833; /* Same as header background */
    position: absolute;
    top: 70px; /* Below the header */
    left: 0;
    padding: 10px 0;
    border-top: 1px solid #45a29e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  #mainNav.active {
    display: flex; /* Show nav when active */
  }

  #mainNav a {
    text-align: center;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  #mainNav a:last-child {
    border-bottom: none;
  }

  .theme-toggle {
    margin-left: auto; /* Push toggle to the left of hamburger */
    order: 2;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center; /* Ensure text is centered on mobile */
  }

  .about-text h2,
  .education h2,
  .skills .section-title,
  .projects .section-title,
  .certifications .section-title,
  .experience .section-title,
  .contact .section-title {
    font-size: 2rem;
  }

  .skills-category h3,
  .project-category h3 {
    font-size: 1.4rem;
  }

  .timeline {
    padding-left: 20px; /* Reduce padding for mobile timeline */
    border-left: 2px solid #45a29e;
  }

  .timeline-icon {
    left: -24px; /* Adjust icon position for narrower timeline */
    font-size: 1rem;
    padding: 8px;
  }

  .timeline-item {
    padding-left: 20px;
    margin-bottom: 40px;
  }

  .edu-header {
    flex-direction: column; /* Stack logo and text */
    align-items: flex-start;
    gap: 5px;
  }

  .project-grid, .cert-grid, .skills-glass-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .contact-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .contact-form, .contact-info {
    width: 100%;
    max-width: none; /* Remove max-width on mobile */
  }

  .site-footer .footer-content {
    flex-direction: column;
    gap: 5px;
  }
}

/* Tablet (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero h2 {
    font-size: 1.7rem;
  }

  nav {
    gap: 8px;
  }

  nav a {
    padding: 6px 12px;
  }

  .skills-glass-grid,
  .project-grid,
  .cert-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 2 or 3 columns */
  }

  .about-text {
    text-align: left; /* Align text left on tablets and larger */
  }
}

/* Desktop (>= 1025px) */
@media (min-width: 1025px) {
  nav {
    display: flex !important; /* Ensure nav is always visible on desktop */
  }

  .nav-toggle {
    display: none; /* Hide hamburger icon on desktop */
  }

  .about-content {
    flex-direction: row; /* Ensure row direction on desktop */
    text-align: left;
  }

  .about-text {
    text-align: left; /* Ensure text is left-aligned on desktop */
  }
}