/* styles.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}


body {
  font-family: 'Roboto', sans-serif;
  background-color: #0f172a;
  color: #e2e8f0;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

body.light-mode {
  background-color: #f9fafb;
  color: #1e293b;
}

/* header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background-color: #1e293b;
  position: relative;
} */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 16px;
  background-color: #1e293b;
  position: fixed; 
  top: 0; /* Ensures it stays at the top */
  width: 100%; /* Ensures the header spans the full width of the viewport */
  z-index: 1000; /* Keeps the header above other elements */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #38bdf8;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover{
  padding: 10px;
  /* color: #38bdf8; */
  font-size: 1rem;
  border: 1px solid #334155;
  border-radius: 20px;
  flex: 1;
  background-color: #38bdf8;
  color: #e2e8f0;
  transition: background-color 0.3s, color 0.3s;
}

header .actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dark-mode-toggle {
  cursor: pointer;
  font-size: 1.5rem;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background-color: #e2e8f0;
  border-radius: 5px;
  transition: background-color 0.3s;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #1e293b;
    width: 100%;
    display: none;
  }

  nav a {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #2d3748;
  }

  nav.show {
    display: flex;
  }

  .hamburger-menu {
    display: flex;
  }
}

.dark-mode-toggle {
  cursor: pointer;
  font-size: 1.5rem;
}

main.content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 80px); /* Subtract header height */
  text-align: center;
  padding-top: 100px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hero .left {
  max-width: 50%;
}

.hero .left h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #38bdf8;
}

.hero .left .changing-text {
  font-size: 2.5rem;
  font-weight: bold;
}

.hero .left p {
  margin: 20px 0;
  line-height: 1.8;
}

.hero .left .subscribe-input {
  display: flex;
  gap: 10px;
}

.hero .left input {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #334155;
  border-radius: 20px;
  flex: 1;
  background-color: #1e293b;
  color: #e2e8f0;
  transition: background-color 0.3s, color 0.3s;
}

body.light-mode .hero .left input {
  background-color: #fff;
  color: #1e293b;
}


.hero .right img {
  margin-top: 1rem;
  padding-top: 110px;
  padding-bottom: 40px;      /* Use relative units for better responsiveness */
  max-width: 100%;           /* Allow image to scale with container */
  width: 350px;              /* Set a fixed width if you want consistency */
  height: auto;              /* Maintain aspect ratio */
  border-radius: 12px;       /* Slightly more rounded for a modern look */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); /* Optional: adds depth */
}

/* New: make the hero image fit inside a circular frame */
.profile-circle {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  overflow: hidden; /* clip image to circle */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(2,6,23,0.6), 0 0 0 6px rgba(56,189,248,0.06);
  background: radial-gradient(circle at 30% 30%, rgba(56,189,248,0.04), transparent 40%);
}

.profile-circle .hero-profile {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensure image fills circle */
  display: block;
}

/* Zoom-in effect: increase visible crop and center face */
.profile-circle.zoomed .hero-profile {
  /* use object-position to nudge the image so face is centered in frame */
  object-position: 50% 32%; /* adjust this if the crop needs to move up/down */
  transform: scale(1.25); /* zoom level; increase/decrease as desired */
  transition: transform 0.45s ease, object-position 0.45s ease;
}



/* Contact section profile image (smaller circle) */
.contact-section .profile-image,
.contact-info .profile-image {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  overflow: hidden;
  border: 4px solid rgba(56,189,248,0.08);
  box-shadow: 0 6px 18px rgba(2,6,23,0.6);
  margin: 0 auto 12px auto;
}

@media screen and (max-width: 768px) {
  .hero {
    flex-direction: column;
    /* Reduce large top padding for mobile so content sits closer to header */
    padding-top: 250px;
    gap: 2px;
  }
  .hero .left,
  .hero .right {
    max-width: 100%;
    position: relative;
  }
  .profile-circle {
    width: 260px;
    height: 260px;
  }
  /* Remove extra top padding applied to the image on desktop */
  .hero .right img,
  .hero .right .profile-circle {
    padding-top: 5;
    padding-bottom: 20px;
    margin-top: 0;
  }

  /* Ensure the main content doesn't force a large vertical height on mobile (header is fixed) */
  main.content {
    height: auto; /* allow content to size naturally */
    padding-top: 70px; /* leave room for the fixed header */
  }
}

/* Social media icon styles */
.social-media {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  justify-content: center;
}

.social-media a {
  text-decoration: none;
  color: #38bdf8; /* Default color for dark mode */
  font-size: 1.8rem;
  transition: color 0.3s;
}

.social-media a:hover {
  color: #0284c7; /* Hover effect for dark mode */
}

/* Light mode styles for social media icons */
body.light-mode .social-media a {
  color: #0f172a; /* Light mode color */
}

body.light-mode .social-media a:hover {
  color: #1e293b; /* Light mode hover effect */
}

/* About me */
/* .about{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 1.5rem;
} */

/* .about-text h2{
  font-size: 60px;
}

.about-text h2 span{
  color: #0ef;
}

.about-text h4{
  font-size: 29px;
  font-weight: 600;
  color: #fff;
  line-height: 1.7;
  margin: 15px 0 30px;
}

.about-text p{
  color: aliceblue;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 4rem;
}

.light-mode .about-text h4 {
  color: black;
}

.light-mode .about-text p {
  color: black;
}

.btn-box{
  display: inline-block;
  padding: 12px 28px;
  background: #0ef;
  border-radius: 40px;
  font-size: 16px;
  color: #081b29;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 600;
}

.btn-box:hover{
  box-shadow: 0 0 5px cyan,
  0 0 25px cyan, 0 0 50px cyan;
}

.about-img {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.about-img img {
  width: 300; 
  height: 500px;
  border-radius: 50%;
  border: 1px solid transparent;
  padding: 5px; 
  box-shadow: 1px 1px 20px #0ef,
              1px 1px 40px #0053b8f7;
}

.about-img img:hover {
  transform: scale(1.05); 
  transition: all 0.3s ease-in-out;
} */

.about {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding: 50px 5%; /* Added padding for better spacing */
}

.about-text h2 {
  font-size: 60px;
}

.about-text h2 span {
  color: #0ef;
}

.about-text h4 {
  font-size: 29px;
  font-weight: 600;
  color: #fff;
  line-height: 1.7;
  margin: 15px 0 30px;
}

.about-text p {
  color: aliceblue;
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.light-mode .about-text h4 {
  color: black;
}

.light-mode .about-text p {
  color: black;
}

.btn-box {
  display: inline-block;
  padding: 12px 28px;
  background: #0ef;
  border-radius: 40px;
  font-size: 16px;
  color: #081b29;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 600;
}

.btn-box:hover {
  box-shadow: 0 0 5px cyan, 0 0 25px cyan, 0 0 50px cyan;
}

.about-img {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.about-img img {
  /*width: 500px; /* Adjusted size */
  /*height: 500px; /* Set to square for better responsiveness */
  width: 100%;
  max-width: 300px;
  border-radius: 50%;
  border: 1px solid transparent;
  padding: 5px;
  box-shadow: 1px 1px 20px #0ef, 1px 1px 40px #0053b8f7;
  transition: transform 0.3s ease-in-out;
}

.about-img img:hover {
  transform: scale(1.05);
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
  .about {
    grid-template-columns: 1fr; /* Stack items vertically */
    text-align: center; /* Center text */
  }

  .about-text h2 {
    font-size: 48px;
  }

  .about-text h4 {
    font-size: 24px;
  }

  .about-text p {
    font-size: 18px;
  }

  .about-img img {
    width: 250px; /* Reduce size on smaller screens */
    height: 250px;
  }
}

@media screen and (max-width: 768px) {
  .about-text h2 {
    font-size: 40px;
  }

  .about-text h4 {
    font-size: 20px;
  }

  .about-text p {
    font-size: 16px;
  }

  .about-img img {
    width: 200px;
    height: 200px;
  }
}

@media screen and (max-width: 480px) {
  .about-text h2 {
    font-size: 32px;
  }

  .about-text h4 {
    font-size: 18px;
  }

  .about-text p {
    font-size: 14px;
  }

  .about-img img {
    width: 150px;
    height: 150px;
    /* Remove huge margin that pushed the image far down on small screens */
    margin-top: 150px;
    margin-bottom: 5px;
  }
}



/* Services Section */

#services {
  color: aliceblue;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 2rem;
}

.sub-title{
  text-align: center;
  font-size: 60;
  padding-bottom: 20px;
}

.sub-title span{
  color: #0ef;
}

.light-mode .sub-title{
  color: rgb(7, 7, 7);
}

.light-mode .sub-title span{
  color: #0ef;
}

 .container{
  padding: 90px;
 }

.services-list{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(259px, 1fr));
  grid-gap: 40px;
  margin-top: 5;
}

.services-list div{
  background-color: transparent;
  padding: 20px;
  font-size: 13px;
  font-weight: 13px;
  border-right: 10px;
  border-radius: 20px;
  transition: background 0.5s, transform 0.5s;
  box-shadow: 1px 1px 20px #012290f7,
  1px 1px 40px #0053b8f7;
}

.services-list div i{
  font-size: 50px;
  margin-bottom: 30px;
}

.services-list div h2{
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 15px;
}

.services-list div p{
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 15px;
}

.services-list div a{
  text-decoration: none;
  color: #000;
  font-size: 12px;
  margin-top: 20px;
  display: inline-block;
}

.read{
  display: inline-block;
  padding: 12px 28px;
  background: #0ef;
  border-radius: 40px;
  font-size: 16px;
  color: #081b29;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 600;
  /* opacity: 0; */
  animation: slideTop is ease forwards;
  animation-delay: 2s;
  box-shadow: 0 0 5px #0ef;
}

.read:hover{
  box-shadow: 0 0 5px cyan,
  0 0 25px cyan;
}

.services-list div:hover{
  transform: translateY(-10px);
}

.light-mode .services-list div h2{
  color: #000000;
}

.light-mode .services-list div p{
  color: #000000;
}

/* Skills Section */
#skill {
  padding: 50px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
}


.container1, .container2 {
  width: 90%;
  max-width: 700px; /* Reduced from 1000px */
  margin: auto;
  padding: 30px;
}



.container2 {
  width: 90%;
  max-width: 1000px;
  margin: auto;
  padding: 30px;
}

.heading1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
  text-decoration: underline;
  text-underline-offset: 8px;
}

/* Technical Skills */
.bar {
  margin: 20px 0;
}

.bar span {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.progress-line {
  position: relative;
  background-color: #e0e0e0;
  height: 25px;  /* <- Increased thickness */
  border-radius: 15px;
  overflow: hidden;
  width: 100%;
}

.progress-line span {
  display: block;
  height: 100%;
  background-color: #4caf50;
  width: 0%;
  animation: fillBar 2s ease-out forwards;
}

.progress-line .percentage {
  position: absolute;
  top: 0;
  right: 10px;
  font-size: 14px;
  color: #0e090997;
  font-weight: bold;
  animation: fadeIn 2.5s forwards;
  opacity: 0;
}

.Technical-bars .bar .info{
  margin-bottom: 5px;
}


@keyframes fillBar {
  to {
    width: var(--width);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.sub-t1{
  text-align: center;
  font-size: 40px;
  padding-bottom: 20px;
  color: white;
}

.sub-t1 span{
  color: #0ef;
}

.light-mode .sub-t1{
  color: #000;
}

.light-mode .sub-t1 span{
  color: #0ef;
}

/* Professional Skills */
.radial-chart {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.circle {
  position: relative;
  width: 120px;
  height: 120px;
}

.circle svg {
  transform: rotate(-90deg);
}

.circle circle {
  fill: none;
  stroke-width: 10;
}

.circle .bg {
  stroke: #e0e0e0;
}

.circle .progress {
  stroke: #4caf50;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  animation: drawCircle 2s ease-out forwards;
}

.text{
  width: 100%;
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  animation: showText 0.5s 1s linear forwards;
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: var(--offset);
  }
}

.circle .percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-weight: bold;
}

.exp {
  padding-top: 100px;
  margin: 0 auto 20px auto;
  text-align: center;
  width: 100%;
}


.publication{
  padding-top: 100px;
  margin-left: 700px;
  margin-bottom: 20px;
}

.more-proj{
  padding-top: 100px;
  margin-left: 50px;
  margin-bottom: 20px;
}




.read1{
  display: inline-block;
  padding: 12px 28px;
  background: #0ef;
  border-radius: 40px;
  font-size: 16px;
  color: #081b29;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 600;
  animation: slideTop is ease forwards;
  animation-delay: 2s;
  box-shadow: 0 0 5px #0ef,
  0 0 25px #0ef;
}

.read1:hover{
  box-shadow: 0 0 5px rgb(80, 205, 145),
  0 0 25px rgb(144, 212, 61); 
}

/* Responsive Styles */
@media (max-width: 768px) {
  .container1 {
    width: 90%;
    margin: 20px auto;
  }

  .bar span,
  .progress-line .percentage {
    font-size: 12px;
  }

  .radial-chart .circle {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .heading1 {
    font-size: 20px;
  }

  .bar span {
    font-size: 10px;
  }

  .progress-line .percentage {
    font-size: 10px;
  }

  .circle {
    width: 80px;
    height: 80px;
  }

  .circle .percentage {
    font-size: 14px;
  }
}

/* Projects Section */
#projects {
  padding: 60px 20px;
  /* background: #f8fafc */
  color: #1e293b;
  text-align: center;
}

.section-heading h2 {
  font-size: 3rem;
  color: #facc15;
  margin-bottom: 10px;
  margin-top: 20px;
  animation: slideIn 1s ease-in-out;
}

.projects-wrapper {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.project-card {
  background: #1e293b; /* Dark card background */
  color: #f1f5f9;
  border-radius: 12px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  padding: 20px;
  width: 30%; /* Larger cards */
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.project-card h3 {
  font-size: 1.8rem;
  color: #facc15; /* Yellow title */
  margin-bottom: 10px;
}


.project-card p {
  font-size: 1rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 15px;
}

.tech-stack span {
  display: inline-block;
  background: #2563eb; /* Blue tags */
  color: #f1f5f9;
  padding: 5px 10px;
  margin-right: 5px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.more-projects button {
  background: #1d4ed8; /* Blue button */
  color: #f1f5f9;
  padding: 10px 20px;
  font-size: 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.tech-stack span {
  display: inline-block;
  background-color: #facc15; /* Yellow background */
  color: #1e293b; /* Dark text for readability */
  padding: 5px 10px;
  margin-right: 5px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}

.tech-stack span:hover {
  background-color: #fde68a;
  color: #1e293b;
  cursor: pointer;
}

.more-projects button:hover {
  background: #2563eb;
}

/* Animation */
@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-card {
    width: 80%; /* Adjust for smaller screens */
  }
}


/* Contact section */
.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  display: flex;
  flex-wrap: wrap;
  background-color: transparent;
  padding: 40px;
  font-size: 13px;
  font-weight: 13px;
  border-right: 10px;
  border-radius: 20px;
  transition: background 0.5s, transform 0.5s;
  box-shadow: 1px 1px 20px #163cc3f7,
  1px 1px 40px #00b8b2f7;
  margin-bottom: 100px;
}

/* Left side with image and email */
.contact-info {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.profile-image {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.info-label {
  font-size: 14px;
  color: #8892b0;
  margin-bottom: 5px;
}

.email {
  font-size: 18px;
  margin-bottom: 30px;
  color: #ccd6f6;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
}

.facebook {
  background-color: #3b5998;
}

.github {
  background-color: #060606;
}

.linkedin {
  background-color: #0077b5;
}

/* Right side with form */
.contact-form .con{
  font-size: 60px;
}

.contact-form h2 span{
  color: #0ef;
}

.contact-form {
  flex: 2;
  min-width: 350px;
  padding: 20px;
}

.section-title {
  font-size: 32px;
  margin-bottom: 10px;
  color: #e6f1ff;
}

.light-mode .section-title{
  color: #101010;
}

.section-description {
  color: #8892b0;
  margin-bottom: 30px;
  line-height: 1.5;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
}

.form-label {
  display: block;
  font-size: 14px;
  color: #8892b0;
  margin-bottom: 8px;
}

.light-mode .form-label{
  color: #000;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border-radius: 5px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
}

.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 2px #0077b5;
}

.light-mode .form-control{
  width: 100%;
  padding: 12px 15px;
  border-radius: 5px;
  border: none;
  background-color: rgba(6, 3, 3, 0.1);
  color: #0e0d0d;
  font-size: 16px;
}

.light-mode .form-control:focus{
  outline: none;
  box-shadow: 0 0 0 2px #0077b5;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  border: none;
  border-radius: 30px;
  background-color: #1e88e5;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #1565c0;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
      flex-direction: column;
      gap: 15px;
  }
  
  .contact-info, .contact-form {
      flex: 100%;
  }
}




/* Footer Styles */
footer {
  background-color: #1e293b;
  color: #e2e8f0;
  text-align: center;
  padding: 20px;
  font-size: 1.2rem;
}

footer .footer-content p {
  margin: 0;
  font-size: 1.2rem;
}

footer .heart {
  color: #ff4e00; /* Heart color */
  font-size: 1.5rem;
  animation: heart-beat 1s infinite;
}

@keyframes heart-beat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

body.light-mode footer {
  background-color: #f3f4f6;
  color: #1e293b;
}

.testimonial-container {
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  padding: 30px 0;
}

.testimonial-track {
  display: flex;
  width: max-content; 
  animation: scroll-left 20s linear infinite;
}

.testimonial {
  flex: 0 0 auto;
  width: 280px;
  margin: 0 15px;
  text-align: center;
}

.testimonial img {
  width: 100%;
  height: auto;
  max-height: 280px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive for small screens */
@media (max-width: 768px) {
  .testimonial {
    width: 220px;
    margin: 0 10px;
  }

  .testimonial img {
    max-height: 220px;
  }
}


.project-card a {
  color: #007bff; /* or any visible color */
  text-decoration: underline;
  font-weight: 500;
}

.project-card a:hover {
  color: #0056b3; /* darker on hover */
}

/* Research project images */
.research-img {
  width: 100%;           /* Make image fill the card width */
  max-width: 380px;      /* Limit max width for consistency */
  height: 240px;         /* Fixed height for uniformity */
  object-fit: cover;     /* Crop to fit nicely */
  border-radius: 10px;   /* Rounded corners */
  display: block;
  margin: 0 auto 16px auto; /* Center and add space below */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
  .research-img {
    max-width: 100%;
    height: 100px;
  }
}

.github-link {
  display: inline-block;
  margin: 1rem auto 0;
  text-align: center;
}
.project-card {
  text-align: center; /* This centers inline-block children */
}


