/* ===== KEEP YOUR ORIGINAL STYLES ===== */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: lavender;
  color: #222;
  overflow-x: hidden;
}

/* --- Intro Section --- */
.intro-container {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.intro-text {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 5vw;
  background-color: #e6e6fa;
  box-sizing: border-box;
  height: 100%;
}

.intro-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.intro-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

.intro-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 600px;
}

.intro-buttons .button {
  background-color: black;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  text-align: center;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
  text-decoration: none;
}

.intro-buttons .button.default {
  background-color: white;
  color: black;
  border: 1px solid black;
}

.intro-buttons .button:hover {
  transform: scale(1.05);
}

.button.wide {
  grid-column: span 3;
  justify-self: center;
  color: black;
  background-color: white;
  border: 1px solid black;
  width: 60%;
}

.intro-image {
  flex: 0 0 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===== EDUCATION SECTION ===== */
#education {
  background: lavender;
  padding: 50px 0;
  text-align: center;
  font-family: 'Roboto', sans-serif;
}

#education h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

#education p {
  color: #333;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}


.underline {
  width: 80px;
  height: 4px;
  background-color: #111;
  margin: 0 auto 20px;
  border-radius: 2px;
}

.edu-container {
  position: relative;
  display: flex;
  align-items: center;
  background-color: lavender;
  justify-content: center;
}

.edu-content {
  display: flex;
  width: 100%;
  max-width: 1100px;
  overflow: hidden;
  position: relative;
}

.edu-item {
  display: none;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  background: lavender;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.5s ease;
}

.edu-item.active {
  display: flex;
}

.edu-image, .edu-text {
  flex: 1;
  width: 50%;
  box-sizing: border-box;
}

.edu-image img {
  width: 80%;
  height: 80%;
  object-fit: fill;
  padding: 10px
}

.edu-text {
  padding: 40px;
  text-align: left;
}

.edu-text h3 {
  font-size: 2.5rem;
  color: #111;
  margin-bottom: 20px;
}

.edu-text p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
}

.edu-text a {
  color: #0073e6;
  text-decoration: none;
  transition: color 0.3s;
}

.edu-text a:hover {
  color: #005bb5;
}

/* Navigation buttons */
.nav-btn {
  background: none;
  border: none;
  font-size: 3rem;
  cursor: pointer;
  color: #444;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: color 0.3s;
}

.nav-btn:hover {
  color: #000;
}

#prevBtn { left: 10px; }
#nextBtn { right: 10px; }

/* ===== RESPONSIVENESS ===== */
@media (max-width: 1024px) {
  .edu-text h3 {
    font-size: 2rem;
  }
  .edu-text p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .edu-item {
    flex-direction: column;
  }

  .edu-image, .edu-text {
    width: 100%;
  }

  .edu-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
  }

  .edu-text {
    padding: 20px;
    text-align: center;
  }

  .edu-text h3 {
    font-size: 1.8rem;
  }

  .edu-text p {
    font-size: 0.95rem;
  }

  .nav-btn {
    font-size: 2rem;
  }

  #prevBtn {
    left: 5px;
  }

  #nextBtn {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .edu-text h3 {
    font-size: 1.5rem;
  }

  .edu-text p {
    font-size: 0.9rem;
  }

  .edu-image img {
    height: 220px;
  }

  .nav-btn {
    font-size: 1.8rem;
  }
}




/* ===== CERTIFICATES SECTION ===== */
#certificates {
  background: lavender;
  text-align: center;
  padding: 60px 20px;
}

.cert-card {
  position: relative;
  width: 350px;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: lavender;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.cert-card:hover {
  transform: translateY(-5px);
}

.cert-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  display: block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  color: black;
  transition: transform 0.4s ease;
  transform: translateY(100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  box-sizing: border-box;
}

.cert-card:hover .overlay {
  transform: translateY(0);
}

.overlay h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.overlay p {
  font-size: 15px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.overlay span {
  background: black;
  color: white;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  padding: 6px 12px;
  transition: background 0.3s ease;
}

.overlay span:hover {
  background: #0077ff;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
  background-color: #e8e6f9;
  text-align: center;
  padding: 60px 20px;
  font-family: 'Roboto', sans-serif;
}

.skills-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.underline {
  width: 90px;
  height: 4px;
  background-color: #0077ff;
  border-radius: 2px;
  margin: 0 auto 30px auto;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-card {
  background: #dcd9f7;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.icon {
  font-size: 50px;
  display: block;
  font-style: normal;
  margin-bottom: 10px;
}

.skill-card h3 {
  font-size: 20px;
  color: #111;
  margin-bottom: 15px;
}

.skill-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.skill-buttons a {
  background: black;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.skill-buttons a:hover {
  background: #0077ff;
  transform: scale(1.05);
}

/* ===== UPDATED PROJECTS SECTION - SLIDING CAROUSEL ===== */
.projects-section {
  text-align: center;
  padding: 40px 0;
  font-family: 'Roboto', sans-serif;
  background-color: lavender;
  position: relative;
}

.projects-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.projects-carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 0 40px;
}

.projects-carousel {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.project-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.project-track::-webkit-scrollbar {
  display: none;
}

/* ===== Project Card ===== */
.project-card {
  position: relative;
  flex: 0 0 auto;
  width: 350px;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  background-size: cover;
  background-position: center;
  scroll-snap-align: start;
  transition: transform 0.9ms;
}

.project-card:hover {
  transform: scale(1.02);
}

/* ===== Main View ===== */
.project-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: black;
  background: rgba(255, 255, 255, 0.507);
  text-align: center;
  transition: opacity 0.9s;
  box-sizing: border-box;   /* ensures padding fits inside the box */
  overflow-y: auto;         /* keeps long content scrollable within card */
}


.project-main h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.project-main p {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ===== Hover Content ===== */
.project-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  background: rgba(10, 10, 10, 0.96);
  color: #fff;
  border-radius: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}
.project-hover h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.project-hover p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.project-card:hover .project-hover {
  opacity: 1;
  pointer-events: auto;
}

.project-card:hover .project-main {
  opacity: 0;
}

/* ===== Links ===== */
.project-links a {
  display: inline-block;
  margin: 8px;
  padding: 8px 14px;
  background: #007acc;
  color: white;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.project-links a:hover {
  background: #005fa3;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .project-card {
    width: 300px;
    height: 420px;
  }

  .project-main h3 {
    font-size: 1.1rem;
  }

  .project-main p {
    font-size: 0.9rem;
  }

  .project-links a {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .projects-carousel-container {
    padding: 0 20px;
  }

  .project-card {
    width: 260px;
    height: 380px;
  }

  .project-main h3 {
    font-size: 1rem;
  }

  .project-main p {
    font-size: 0.85rem;
  }

  .project-links a {
    padding: 5px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .project-card {
    width: 220px;
    height: 340px;
  }

  .project-main h3 {
    font-size: 0.9rem;
  }

  .project-main p {
    font-size: 0.8rem;
  }

  .project-links a {
    padding: 4px 8px;
    font-size: 0.8rem;
  }
}



/* ===== PAPERS SECTION ===== */
.papers-section {
  text-align: center;
  padding: 60px 0;
  margin-top: -40px;
  font-family: 'Roboto', sans-serif;
  background-color: lavender;
}

.papers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  width: 90%;
  margin: 0 auto;
}

.paper-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  overflow: hidden;
  height: 350px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
  cursor: pointer;
}

.paper-card:hover {
  transform: scale(1.05);
}

.paper-main {
  width: 100%;
  height: 100%;
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  box-sizing: border-box;
  transition: opacity 0.3s;
  overflow: hidden;
}

.paper-main h3 {
  font-size: 25px;
  margin: 0;
  word-wrap: break-word;
  max-width: 100%;
  line-height: 1.3;
}

.paper-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.95);
  color: white;
  padding: 25px;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease-in-out;
  box-sizing: border-box;
}

.paper-card:hover .paper-hover {
  opacity: 1;
}

.paper-card:hover .paper-main {
  opacity: 0;
}

.paper-card.active .paper-hover {
  opacity: 1;
}

.paper-card.active .paper-main {
  opacity: 0;
}

.paper-btn {
  margin-top: 10px;
  display: inline-block;
  padding: 8px 14px;
  background: #007acc;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.paper-btn:hover {
  background: #005fa3;
}

/* ===== Responsive text for paper cards ===== */
@media (max-width: 1024px) {
  .paper-main h3 {
    font-size: 20px;
    padding: 0 10px;
  }

  .paper-hover p {
    font-size: 13px !important;
    line-height: 1.4;
  }

  .paper-hover h5 {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .paper-main h3 {
    font-size: 18px;
    padding: 0 8px;
  }

  .paper-hover p {
    font-size: 12px !important;
    line-height: 1.4;
  }

  .paper-hover h5 {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .paper-main h3 {
    font-size: 16px;
    padding: 0 6px;
  }

  .paper-hover p {
    font-size: 11px !important;
    line-height: 1.3;
  }

  .paper-hover h5 {
    font-size: 14px;
  }
}


/* ===== EXPERIENCE SECTIONS ===== */
/* Common base layout */
.internship, .experience {
  display: flex;
  flex-direction: column; /* mobile: stack vertically */
  align-items: center;
  background-color: lavender;
  gap: 20px;
  /* margin: 40px 0; */
}

/* Image + text base settings */
.internship-image, .experience-image {
  width: 100%;
  max-width: 450px;
  order: 0; /* image first on mobile */
}

.internship-content, .experience-content {
  width: 100%;
  text-align: left;
  order: 1; /* text below image */
  padding: 0 16px;
}

/* Typography */
.internship-content h2, .experience-content h2 {
  margin-top: 0;
  color: #222;
  font-size: 1.8rem;
}

.internship-content h4, .experience-content h4 {
  margin: 10px 0 20px;
  font-weight: 500;
  color: #333;
}

.internship-content p, .experience-content p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.internship-content ul, .experience-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
  text-align: left;
}

.internship-content li, .experience-content li {
  margin: 8px 0;
}

/* Consistent image size */
.internship-image img, .experience-image img {
  width: 100%;
  height: 360px;
  object-fit: fill;
  border-radius: 8px;
  display: block;
}

/* ---------- LAPTOP & DESKTOP VIEW ---------- */

/* Internship: image LEFT, text RIGHT */
@media (min-width: 721px) {
  .internship {
    flex-direction: row; /* image left, text right */
    align-items: center;
  }
  .internship-image {
    width: 40%;
    order: 0;
  }
  .internship-content {
    width: 60%;
    text-align: left;
    padding-left: 24px;
    order: 1;
  }
}
/* Mobile: square images using container */
@media (max-width: 720px) {
  .internship-image,
  .experience-image {
    width: 100%;
    max-width: 100%;
    align-items: center;
    height: 250px;         /* fixed square height */
    overflow: hidden;      /* crop excess */
    border-radius: 8px;
  }

  .internship-image img,
  .experience-image img {
    width: 100%;
    height: 100%;
    align-items: center;
    object-fit: fill;     /* fill container without distortion */
    display: block;
  }
}


/* Experience: image RIGHT, text LEFT */
@media (min-width: 721px) {
  .experience {
    flex-direction: row; /* keep normal direction */
    align-items: center;
  }
  .experience-image {
    width: 40%;
    order: 1; /* ensure image comes after text */
  }
  .experience-content {
    width: 60%;
    text-align: left;
    padding-right: 24px;
    order: 0; /* text first, image second (right side) */
  }
}

/* ---------- LARGE SCREENS ---------- */
@media (min-width: 1024px) {
  .internship-content, .experience-content { width: 62%; }
  .internship-image, .experience-image { width: 38%; }
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: lavender;
  color: #222;
  padding: 40px 20px;
  font-family: 'Roboto', sans-serif;
}

.contact-header {
  text-align: center;
  margin-bottom: 25px;
}

.contact-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.contact-underline {
  width: 80px;
  height: 4px;
  background: #0077ff;
  margin: 10px auto;
  border-radius: 2px;
}

.contact-social {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.contact-icons {
  display: flex;
  gap: 15px;
  font-size: 40px;
}

.contact-container {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.contact-card {
  background: #fff;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 900px;
  text-align: center;
  background-color: lavender;
}

.contact-card h3 {
  font-size: 1.8rem;
  margin-bottom: 35px;
  color: #222;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  background-color: lavender;
}

.form-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  text-align: left;
  padding-right: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  font-family: 'Roboto', sans-serif;
  border-radius: 20px;
  font-size: 1rem;
  resize: none;
}

.full-width textarea {
  height: 140px;
}

.send-btn {
  background: linear-gradient(135deg, #4A90E2, #007BFF);
  color: white;
  padding: 12px 40px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  align-self: center;
  transition: 0.3s;
}

.send-btn:hover {
  transform: scale(1.05);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .papers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .project-card {
    flex: 0 0 350px;
    height: 450px;
  }
}

@media (max-width: 992px) {
  .intro-container {
    flex-direction: column-reverse;
    height: auto;
  }
  
  .intro-text, .intro-image {
    flex: 0 0 100%;
    height: auto;
  }
  
  .intro-text {
    padding: 40px 20px;
    text-align: center;
    align-items: center;
  }
  
  .intro-buttons {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
  }
  
  .button.wide {
    grid-column: span 2;
  }
  
  .edu-item {
    flex-direction: column;
    text-align: center;
  }
  
  .edu-image img {
    width: 250px;
    height: 250px;
  }
  
}

@media (max-width: 768px) {
  .intro-text h1 {
    font-size: 2.2rem;
  }
  
  .intro-text p {
    font-size: 1.1rem;
  }
  
  .intro-buttons {
    grid-template-columns: 1fr;
  }
  
  .button.wide {
    grid-column: span 1;
  }
  
  #education h2, .skills-section h2, .projects-section h2, .papers-section h2, .contact-section h2 {
    font-size: 2rem;
  }
  
  .papers-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .paper-card {
    height: 300px;
  }
  
  .projects-carousel-container {
    padding: 0 40px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .project-card {
    flex: 0 0 300px;
    height: 400px;
    margin: 10px;
  }
  
  .project-main, .project-hover {
    padding: 20px;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cert-card {
    width: 100%;
    max-width: 300px;
    height: 300px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 20px;
  }
  
  .form-group {
    padding-right: 0;
  }
}

@media (max-width: 576px) {
  section {
    padding: 40px 15px;
  }
  
  .intro-text {
    padding: 30px 15px;
  }
  
  .intro-text h1 {
    font-size: 1.8rem;
  }
  
  .intro-buttons .button {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .projects-carousel-container {
    padding: 0 30px;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .project-card {
    flex: 0 0 280px;
    height: 380px;
  }
  
  .project-main h1, .project-main h3 {
    font-size: 1.2rem;
  }
  
  .project-main p, .project-hover p {
    font-size: 0.9rem;
  }
  
  .contact-card {
    padding: 25px 20px;
  }
  
  .contact-card h3 {
    font-size: 1.4rem;
  }
  
  .send-btn {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .intro-text h1 {
    font-size: 1.6rem;
  }
  
  .project-card {
    flex: 0 0 260px;
    height: 360px;
  }
  
  .projects-carousel-container {
    padding: 0 20px;
  }
  
  .carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .form-group {
  flex: 1;
  text-align: left;
  padding-right: 20px;
}
}



/* 🌍 UNIVERSAL RESPONSIVE TWEAKS */
html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base scaling for laptops/desktops */
}

/* 🧩 Laptop Optimization (Large screens 992px–1200px) */
@media (max-width: 1200px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.4rem; }
  p  { font-size: 1.05rem; line-height: 1.6; }
  .intro-text { padding: 50px 40px; }
}

/* 📱 Tablet Landscape / Small Laptop (768px–991px) */
@media (max-width: 991px) {
  html { font-size: 15px; }
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.9rem; }
  h3 { font-size: 1.3rem; }
  p  { font-size: 1rem; }
  .intro-container { flex-direction: column-reverse; height: auto; }
  .intro-text { text-align: center; align-items: center; }
  .skills-container, .papers-grid { grid-template-columns: 1fr 1fr; }
}

/* 📲 Tablet Portrait (601px–767px) */
@media (max-width: 767px) {
  html { font-size: 14px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.2rem; }
  p  { font-size: 0.95rem; line-height: 1.5; }
  .intro-buttons { grid-template-columns: 1fr; }
  .edu-item, .internship, .experience-section { flex-direction: column; text-align: center; }
  .edu-image img, .internship-image img { width: 250px; height: 250px; }
  .project-card { flex: 0 0 300px; height: 400px; }
}

/* 📞 Mobile Devices (481px–600px) */
@media (max-width: 600px) {
  html { font-size: 13px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
  p  { font-size: 0.9rem; }
  .intro-text { padding: 30px 15px; }
  .skills-container, .papers-grid { grid-template-columns: 1fr; }
  .project-card { flex: 0 0 280px; height: 360px; }
  .contact-card { padding: 25px 20px; }
}

/* 🪶 Small Mobile (<=400px) */
@media (max-width: 400px) {
  html { font-size: 12px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1rem; }
  p  { font-size: 0.85rem; }
  .intro-text, .contact-card { padding: 20px 15px; }
  .project-card { flex: 0 0 260px; height: 340px; }
  .button { padding: 10px 15px; font-size: 0.9rem; }
}


.resume-btn {
  background-color: rgb(244, 244, 124);
  color: black;
  padding: 10px 10px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 300;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 0.5px solid black;
}
.resume-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.resume-btn:hover {
  background-color: rgb(211, 208, 208);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .resume-btn {
    font-size: 16px;
    padding: 12px 26px;
  }
}

@media (max-width: 480px) {
  .resume-btn {
    font-size: 14px;
    padding: 10px 20px;
  }
}

