@import url("https://fonts.googleapis.com/css2?family=Edu+AU+VIC+WA+NT+Arrows:wght@400..700&family=Pattaya&display=swap");

body {
  min-height: 100vh;
  background: linear-gradient(-45deg, #181818, #232526, #222, #181818);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: #f5f5f5;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24, 24, 24, 0.6);
  z-index: 1;
  pointer-events: none;
}

header {
  background: rgba(24, 24, 24, 0.95);
  position: fixed;
  width: 100vw;
  left: 0;
  right: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  display: block;
}
nav {
  background: rgba(24, 24, 24, 0.95);
  display: flex;
  position: fixed;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 1rem 2rem;
  width: 100vw;
  left: 0;
  right: 0;
  z-index: 200;
  box-sizing: border-box;
}
.logo {
  font-size: 1.7rem;
  font-weight: 700;
  color: #ff9800;
  letter-spacing: 2px;
  text-shadow: 0 0 8px #ff9800aa;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #ff9800;
}
.hero-section {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 0;
  top: 13vh;
}
.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.hero-content {
  width: 100%;
  max-width: none;
  padding: 0 2vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}
.accent {
  color: #ff9800;
  text-shadow: 0 0 12px #ff9800cc;
}
.cta-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  background: #ff9800;
  color: #181818;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 0 16px #ff9800aa;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.cta-btn:hover {
  background: #ffa726;
  color: #fff;
}
.section:not(.hero-section, .projects-section) {
  max-width: 75vw;
  margin: 5% auto;
}
h2 {
  color: #ff9800;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 8px #ff980055;
}
.about-section,
.skills-section,
.contact-section,
.projects-section,
.education-section,
.honors-section {
  z-index: 1;
  position: relative;
  background: #222;
  /* height: 75vh; */
  min-height: 300px;
  border-radius: 16px;
  margin-bottom: 2rem;
  padding: 4rem 0rem 2rem 0rem;
  box-shadow: 0 2px 16px #ff980022;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.project-card {
  background: #222;
  border-radius: 12px;
  padding: 2rem 1rem;
  box-shadow: 0 0 12px #ff980033;
  color: #fff;
  text-align: center;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0 24px #ff980088;
}
.skills-section {
  background: #181818;
  padding: 40px 0 30px 0;
  border-radius: 18px;
  margin: 40px 0;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.12);
  height: 520px;
  min-height: 420px;
  max-height: 600px;
  overflow-y: auto;
}
.skills-section h2 {
  color: #ff9800;
  font-family: "Montserrat", Arial, sans-serif;
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: 1px;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 32px;
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}
.skills-list li {
  background: #232323;
  color: #fff;
  border-radius: 12px;
  padding: 12px 22px 12px 16px;
  display: flex;
  align-items: center;
  font-size: 1.08rem;
  font-family: "Montserrat", Arial, sans-serif;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
}
.skills-list li:hover {
  background: #2d2117;
  color: #ff9800;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 4px 16px 0 rgba(255, 152, 0, 0.1);
}
.skills-list li i {
  margin-right: 12px;
  font-size: 1.5em;
  color: #ff9800;
  min-width: 28px;
  text-align: center;
  transition: color 0.15s;
}
.skills-list li:hover i {
  color: #fff;
}
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}
input,
textarea {
  padding: 0.8rem;
  border-radius: 8px;
  border: none;
  background: #181818;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 0 8px #ff980022;
}
button[type="submit"] {
  background: #ff9800;
  color: #181818;
  font-weight: 700;
  border: none;
  border-radius: 20px;
  padding: 0.8rem;
  cursor: pointer;
  box-shadow: 0 0 12px #ff980055;
  transition: background 0.2s, color 0.2s;
}
button[type="submit"]:hover {
  background: #ffa726;
  color: #fff;
}
footer {
  text-align: center;
  padding: 2rem 0 1rem 0;
  color: #ff9800;
  background: #181818;
  font-size: 1rem;
  letter-spacing: 1px;
  box-shadow: 0 -2px 8px #ff980022;
}

.home {
  background-image: linear-gradient(
    to bottom,
    rgba(255, 0, 0, 0.8),
    rgba(255, 0, 0, 0)
  );
  height: 100vh;
}

/* NAV BAR STYLES */

.home nav {
  height: 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.home nav p {
  margin-left: 4%;
  font-family: "Pattaya", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.25hrem;
  color: blue;
}

.nav-items {
  width: 40%;
  display: flex;
  margin-right: 3%;
  justify-content: right;
}

.nav-items a {
  margin: 2%;
}

/* HOME MAIN STYLES */

.home-main {
  display: flex;
  align-items: center;
  height: 90%;
}
.home-text {
  width: 50vw;
  margin-top: 25%;
  margin-left: 10%;
}

.home-text h3,
.home-text h2,
.home-text h1,
.home-text p {
  margin: 0;
  padding: 0;
}
.designation-content {
  display: flex;
}
.designation {
  padding: 1px;
}
/* HOME CONTENET STYLES */
.home-content {
  height: 100%;
  display: grid;
}

/* HOME LOGO STYLES */
.home-logo {
  height: 50%;
  margin-left: 10%;
  align-items: end;
  display: flex;
}

/* HOME PICTURE STYLES */

.home-pic {
  width: 50%;
}

.profile-pic {
  display: block;
  margin: 0 auto 1.2rem auto;
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ff9800;
  box-shadow: 0 4px 24px #ff980044, 0 0 0 8px #181818;
  background: #222;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
  transition: background 0.3s;
}
.menu-toggle span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 4px 0;
  background: #ff9800;
  border-radius: 2px;
  transition: 0.3s;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

#particles-js {
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  top: 0;
  left: 0;
  pointer-events: auto;
}

header,
main,
section,
footer {
  position: relative;
  z-index: 2;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #181818;
  border: 2px solid #ff9800;
  color: #ff9800;
  box-shadow: 0 2px 8px #ff980033;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  outline: none;
  cursor: pointer;
  text-decoration: none;
  margin: 0 0.5rem;
}
.linkedin-btn svg {
  width: 28px;
  height: 28px;
  display: block;
}
.linkedin-btn:hover,
.linkedin-btn:focus {
  background: #ff9800;
  color: #181818;
  box-shadow: 0 4px 16px #ff980066;
  transform: scale(1.08);
}

.github-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #181818;
  border: 2px solid #ff9800;
  color: #ff9800;
  box-shadow: 0 2px 8px #ff980033;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  outline: none;
  cursor: pointer;
  text-decoration: none;
  margin: 0 0.5rem;
}
.github-btn svg {
  width: 28px;
  height: 28px;
  display: block;
}
.github-btn:hover,
.github-btn:focus {
  background: #ff9800;
  color: #181818;
  box-shadow: 0 4px 16px #ff980066;
  transform: scale(1.08);
}

.about-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: #222;
  border-radius: 16px;
  box-shadow: 0 2px 16px #ff980022;
  padding: 3.5rem 3rem;
  max-width: 900px;
  margin: 0 auto 2rem auto;
}
.about-bio {
  color: #f5f5f5;
}
.about-title {
  color: #ff9800;
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  letter-spacing: 2px;
}
.about-bio p {
  line-height: 1.7;
  margin: 0;
}
.about-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ff9800;
  box-shadow: 0 4px 24px #ff980044;
  background: #181818;
}

.education-content-grid {
  display: flex;
  padding: 2rem 1rem;
  gap: 1.5rem;
  min-height: unset;
  height: unset;
  flex-direction: row;
  margin-top: 2rem;
}
.education-info {
  color: #f5f5f5;
  flex: 1;
}
.education-main-heading,
.about-main-heading,
.certifications-main-heading,
.skills-main-heading,
.projects-main-heading,
.contact-section h2 {
  color: #ff9800;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.2rem;
  letter-spacing: 2px;
  text-shadow: 0 0 8px #ff980055;
}
.education-info h3 {
  color: #ff9800;
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}
.education-info p {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.education-info span {
  font-size: 1rem;
  color: #ff9800;
}
.education-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex: 1;
}
.education-photo img {
  width: 100%;
  max-width: 420px;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  border: 4px solid #ff9800;
  box-shadow: 0 4px 24px #ff980044;
  background: #181818;
  display: block;
}
.certifications-content-grid {
  background: #222;
  border-radius: 16px;
  box-shadow: 0 2px 16px #ff980022;
  padding: 3.5rem 3rem;
  max-width: 75vw;
  margin: 0 auto 2rem auto;
}
.certification-info h3 {
  color: #ff9800;
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}
.cert-date {
  color: #f5f5f5;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: block;
}
.certification-info ul {
  color: #f5f5f5;
  font-size: 1.08rem;
  margin: 0 0 0 1.2rem;
  padding: 0;
  list-style: disc inside;
}

.mern-logo-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2.2rem;
  margin-bottom: 2.2rem;
}
.mern-logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mern-logo-label {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.3rem;
  letter-spacing: 2px;
  font-family: "Montserrat", Arial, sans-serif;
}

.projects-grid-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
}
.project-card-modern {
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  background: #222;
  border-radius: 12px;
  box-shadow: 0 0 12px #ff980033;
  color: #fff;
  text-align: left;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 0;
  overflow: hidden;
  height: 100%;
}
.project-image {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  background: #222;
  border-radius: 0 12px 12px 0;
  overflow: hidden;
}
.project-image img {
  width: 100%;

  object-fit: cover;
  border-radius: 0 12px 12px 0;
}

.project-content {
  flex: 1;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-content h3 {
  color: #ff9800;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}
.project-date {
  color: #ffa726;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}
.project-stack {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.project-stack span {
  color: #ff9800;
  font-weight: 600;
}
.project-content p {
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
}
.project-content ul {
  font-size: 0.93rem;
  margin: 0 0 0 1.1rem;
  padding: 0;
  list-style: disc inside;
}

.skills-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 32px 24px;
  justify-items: center;
  align-items: center;
  margin: 32px 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  padding-left: 24px;
  padding-right: 24px;
}

.skill-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #232323;
  border-radius: 16px;
  padding: 24px 12px 16px 12px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.15s, box-shadow 0.15s;
  max-width: 140px;
  max-height: 210px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.skill-icon-card i,
.skill-icon-card img,
.skill-icon-card svg {
  font-size: 2.2em;
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  margin-bottom: 10px;
  display: block;
}

.skill-icon-card span {
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.93em;
  letter-spacing: 1px;
  margin-top: 8px;
  text-transform: uppercase;
  display: block;
  text-align: center;
}

.skill-icon-card span[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #ff9800;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.95em;
  white-space: pre;
  z-index: 10;
  margin-top: 6px;
  box-shadow: 0 2px 8px #0005;
}

.skill-icon-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 6px 24px 0 rgba(255, 152, 0, 0.15);
}

.skills-frames-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 420px;
  min-height: 420px;
  max-height: 600px;
}

.skills-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  z-index: 1;
}

.skills-frame.active,
.skills-frame.fading {
  pointer-events: auto;
}

.skills-frame.active {
  opacity: 1;
  z-index: 2;
}

.skills-frame.fading {
  opacity: 0;
  z-index: 1;
}

.skills-frames-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  width: 100%;
}

.nav-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #444;
  cursor: pointer;
  transition: background 0.2s;
  border: 2px solid #ff9800;
}

.nav-dot.active,
.nav-dot:hover {
  background: #ff9800;
}

.contact-section {
  margin-top: 8%;
  background: #232323;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.12);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: #181818;
  padding: 28px 20px;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 0 auto 32px auto;
}

.contact-section input,
.contact-section textarea {
  padding: 0.9rem;
  border-radius: 8px;
  border: none;
  background: #232323;
  color: #fff;
  font-size: 1.05em;
  font-family: "Montserrat", Arial, sans-serif;
  box-shadow: 0 1px 4px #0002;
  transition: box-shadow 0.2s, background 0.2s;
}

.contact-section input:focus,
.contact-section textarea:focus {
  outline: none;
  background: #181818;
  box-shadow: 0 2px 8px #ff980044;
}

.contact-section button[type="submit"] {
  background: #ff9800;
  color: #181818;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 0;
  font-size: 1.1em;
  font-weight: 700;
  font-family: "Montserrat", Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 8px #ff980044;
  transition: background 0.2s, color 0.2s;
}

.contact-section button[type="submit"]:hover {
  background: #ffa726;
  color: #fff;
}

.contact-info {
  margin-top: 18px;
  color: #fff;
  font-size: 1.08em;
  background: #181818;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 8px #0002;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.contact-info a {
  color: #ff9800;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-info a:hover {
  color: #ffa726;
  text-decoration: underline;
}

.skills-frame h4 {
  color: #ff9800;
  font-size: 1.45rem;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  text-align: center;
  letter-spacing: 1.2px;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 12px #ff980055, 0 1px 0 #fff1;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.skills-frame h4::after {
  content: "";
  display: block;
  margin: 10px auto 0 auto;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff9800 60%, #fff 100%);
  opacity: 0.7;
}

.contact-info.contact-info-icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 32px;
  background: #181818;
  border-radius: 12px;
  padding: 18px 0;
  box-shadow: 0 1px 8px #0002;
  max-width: 400px;
  margin: 24px auto 0 auto;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #232323;
  border-radius: 50%;
  box-shadow: 0 2px 8px #0002;
  font-size: 2rem;
  color: #ff9800;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
  cursor: pointer;
}

.contact-icon:hover {
  background: #ff9800;
  color: #232323;
  transform: translateY(-4px) scale(1.08);
}

.contact-icon:hover i {
  color: #232323 !important;
}

.contact-icon i {
  font-size: 2rem;
  transition: color 0.2s;
}

.footer-icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-bottom: 10px;
}

.footer-icons a,
.footer-icons span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #232323;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #ff9800;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
  cursor: pointer;
}

.footer-icons a:hover,
.footer-icons span:hover {
  background: #ff9800;
  color: #232323;
  transform: translateY(-2px) scale(1.08);
}

.footer-icons i {
  font-size: 1.5rem;
  transition: color 0.2s;
}

footer p {
  text-align: center;
  color: #fff;
  margin: 0 0 10px 0;
}

.projects-frames-container {
  position: relative;
  height: 480px;
  min-height: 420px;
  max-width: 70%;
  margin: 0 auto;
}

.project-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  height: 90%;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  z-index: 1;
}

.project-frame.active,
.project-frame.fading {
  pointer-events: auto;
}

.project-frame.active {
  opacity: 1;
  z-index: 2;
}

.project-frame.fading {
  opacity: 0;
  z-index: 1;
}

.projects-frames-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 10;
}

.project-nav-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #444;
  cursor: pointer;
  transition: background 0.2s;
  border: 2px solid #ff9800;
}

.project-nav-dot.active,
.project-nav-dot:hover {
  background: #ff9800;
}

/* --- Responsive Styles --- */

@media (min-width: 900px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 0 2vw;
  }
  .hero-details {
    text-align: left;
    padding-right: 2vw;
  }
  .hero-image {
    margin-left: 2vw;
  }
  .project-image img {
    padding-right: 16%;
  }
}

@media (max-width: 900px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .logo {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    padding: 0;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.7rem 0;
    font-size: 1.1rem;
  }
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    padding: 2rem 0.5rem;
  }
  .hero-details {
    padding-right: 0;
  }
  .hero-image {
    margin-top: 0.5rem;
  }
  .profile-pic {
    height: 250px;
    width: 250px;
  }
  .about-content-grid,
  .education-content-grid {
    display: flex;
    flex-direction: column-reverse;
    padding: 2rem 1rem;
    gap: 1.5rem;
    min-height: unset;
    height: unset;
    margin-top: 2rem;
  }
  .about-photo img {
    width: 160px;
    height: 160px;
    max-width: 100%;
  }

  .education-photo img {
    height: 38vw;
    width: 85%;
  }
  .project-card-modern {
    flex-direction: column;
    align-items: center;
    padding: 0;
    min-height: 220px;
  }
  .project-image {
    flex: none;
    width: 100%;
    border-radius: 12px 12px 0 0;
  }
  .project-image img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 12px 12px 0 0;
  }
  .project-content {
    padding: 22px 14px;
    justify-content: flex-start;
  }
  .projects-frames-container {
    height: 100vh;
  }
  .section:not(.hero-section, .projects-section) {
    margin: 15% auto;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #222;
    flex-direction: column;
    width: 100vw;
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 24px #00000044;
    border-radius: 0 0 16px 16px;
    gap: 1.2rem;
    display: none;
    z-index: 150;
    transform: translateY(-30px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-links.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }
  .skills-frames-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .profile-pic {
    width: 240px;
    height: 240px;
  }
  .mern-logo-row {
    gap: 1.1rem;
    margin-bottom: 1.2rem;
  }
  .mern-logo-label {
    font-size: 1.1rem;
  }
  .skills-icon-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 18px 10px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .skill-icon-card {
    padding: 16px 4px 12px 4px;
    max-width: 110px;
    max-height: 160px;
  }
  .skill-icon-card i,
  .skill-icon-card img,
  .skill-icon-card svg {
    font-size: 1.5em !important;
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    margin-bottom: 8px;
  }
  .skills-frames-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    width: 100%;
  }
}

@media (max-width: 500px) {
  body {
    font-size: 0.97em;
  }
  header {
    padding: 0;
  }
  nav {
    padding: 0.5rem 0.5rem;
  }
  .logo {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }
  .nav-links {
    gap: 1rem;
    font-size: 0.95em;
  }
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 0 0.5rem;
    top: 10vh;
  }
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .skills-section,
  .about-section,
  .contact-section,
  .projects-section,
  .education-section,
  .honors-section {
    padding: 1.2rem 0.3rem 1.2rem 0.3rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    min-width: 0;
    max-width: 99vw;
  }
  .skills-main-heading,
  .projects-main-heading,
  .education-main-heading,
  .certifications-main-heading {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
  }
  .skills-frame h4 {
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
  }
  .skills-frame h4::after {
    width: 28px;
    height: 2px;
  }
  .project-card-modern {
    min-height: 120px;
    font-size: 0.97em;
  }
  .project-content {
    padding: 10px 6px;
  }
  .project-image {
    min-width: 0;
    max-width: 100%;
  }
  .project-image img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 12px 12px 0 0;
  }
  .skills-icon-grid {
    gap: 10px 6px;
    padding-left: 2px;
    padding-right: 2px;
  }
  .skill-icon-card {
    max-width: 80px;
    max-height: 90px;
    padding: 8px 2px 8px 2px;
  }
  .skill-icon-card i,
  .skill-icon-card img,
  .skill-icon-card svg {
    font-size: 1.1em !important;
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    margin-bottom: 4px;
  }
  .skill-icon-card span {
    font-size: 0.7em;
    margin-top: 2px;
  }
  .contact-info.contact-info-icons {
    gap: 12px;
    padding: 8px 0;
    max-width: 98vw;
  }
  .contact-icon {
    width: 32px;
    height: 32px;
    font-size: 1em;
  }
  .contact-icon i {
    font-size: 1em;
  }
  .footer-icons {
    gap: 10px;
    margin-bottom: 4px;
  }
  .footer-icons a,
  .footer-icons span {
    width: 28px;
    height: 28px;
    font-size: 1em;
  }
  .footer-icons i {
    font-size: 1em;
  }
  .projects-frames-container {
    height: 100vh;
    margin-top: 40px;
  }
  .project-frame {
    height: 90%;
  }
  .contact-section h2,
  .skills-main-heading,
  .projects-main-heading,
  .education-main-heading,
  .certifications-main-heading,
  .about-main-heading {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
  }
  h3,
  .skills-sub-heading,
  .project-content h3 {
    font-size: 0.98rem;
    margin-bottom: 0.4rem;
  }
  h4,
  .skills-frame h4 {
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
  }
  h5,
  .tech-stack-subframe h5 {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
  }
  p,
  li,
  .project-content p,
  .project-content li {
    font-size: 0.89em;
    line-height: 1.4;
  }
  .certification-info,
  .education-info {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .skills-frames-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    width: 100%;
  }
}

@media (max-width: 410px) {
  h1 {
    font-size: 0.98rem;
  }
  h2,
  .skills-main-heading,
  .projects-main-heading,
  .education-main-heading,
  .certifications-main-heading,
  .contact-section h2,
  .about-main-heading {
    font-size: 1.5rem;
  }
  h3,
  .skills-sub-heading,
  .project-content h3 {
    font-size: 0.82rem;
  }
  h4,
  .skills-frame h4 {
    font-size: 0.75rem;
  }
  h5,
  .tech-stack-subframe h5 {
    font-size: 0.7rem;
  }
  p,
  li,
  .project-content p,
  .project-content li,
  .certification-info ul li,
  footer p {
    font-size: 0.75em;
  }
  .certification-info,
  .education-info {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .skills-frames-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    width: 100%;
  }
}
