/* General Styles */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #f4f4f4;
}

.container {
  width: 80%;
  margin: auto;
  overflow: hidden;
}

.container-project {
  width: 90%;
  margin: auto;
  overflow: hidden;
}

h1,
h2,
h3 {
  color: #333;
}

a {
  text-decoration: none;
  color: #d0cfcf;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #023a76;
  color: #fff;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #03468e;
}

/* Header */
header {
  background: #6198e5d2;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.jisan {
  font-size: 18px;

}

.jisan-title {
  font-size: 11px;
  margin: -12px;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
}

header p {
  margin: 10px 0 20px;
  font-size: 1.2em;
}

/* About Me */
#about {
  /* padding: 40px 0; */
  padding-top: 80px;
  text-align: center;
}

.aboutDetails {
  font-size: 0.9em;
  padding-bottom: 70px;
  text-align: justify;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  /* margin-bottom: 2px; */
}

/* Skills */
#skills {
  padding: 40px 0;
  background: #f9f9f9;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.skill {
  background: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Projects */
#projects {
  padding: 40px 0;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}



.project-card {
  background: #fff;
  padding: 25px;
  padding-top: 30px;
  padding-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}
/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
  
}

.project-card {
  background: var(--text-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* Image style for large devices */
.project-card img {
  width: 60%;
  height: auto;
  border-radius: 10px;
  margin: 0 auto 15px;
  object-fit: cover;
}

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


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

.project-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.project-icon {
  font-size: 4em;
  color: #ff4757;
  margin-bottom: 10px;
}

.project-card h3 {
  font-size: 1.6em;
  margin-bottom: 12px;
  color: #333;

}

.project-card p {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 15px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.tech-icon {
  background: #ff4757;
  color: #fff;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.85em;
}

.progress-bar {
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress {
  background: #ff4757;
  height: 12px;
  border-radius: 5px;
  text-align: center;
  font-size: 0.85em;
  color: #fff;
  line-height: 12px;
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.btn {
  background: #ff4757;
  color: white;
  padding: 5px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 1em;
  transition: background 0.3s;
  align-items: start;
  width: 200px;
}



.contact_btn {
  background: #ff4757;
  color: white;
  padding: 10px 15px;
  /* Ensure proper spacing */
  border-radius: 100px;
  text-decoration: none;
  font-size: 1em;
  transition: background 0.3s;
  display: inline-flex;
  /* Makes it behave more like a button */
  align-items: center;
  /* Centers the icon */
  justify-content: center;
  width: 200px;
  text-align: center;
}

.btn:hover {
  background: #7CA9E9;
  color: #010101;
}

.contact_btn:hover {
  background: #7CA9E9;
  color: #010101;
}

/* Blog Section Styling */
#blog {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h2 {
  font-size: 2.5em;
  color: #023a76;
  margin-bottom: 2px;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  display: block;
  width: 60%;
  height: 3px;
  background: #023a76;
  margin: 10px auto 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: auto;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

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

.blog-card:hover .blog-img {
  transform: scale(1.1);
}

.blog-content {
  padding: 25px;
}

.blog-content h3 {
  font-size: 1.1em;
  color: #023a76;
  margin-bottom: 15px;
  text-align: start;
}

.blog-content p {
  color: #666;
  font-size: 0.82em;
  margin-bottom: 20px;
  text-align: justify;
  /* justify-content: ; */
}

.blog-content .btn {
  display: inline-block;
  padding: 12px 20px;
  background: #cd8aea;
  color: #010101;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.blog-content .btn:hover {
  background: #85bbf5;
  transform: translateY(-3px);
}

/* Contact */
#contact {
  padding: 40px 0;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 20px auto;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  width: 100%;
  padding: 10px;
  background: #023a76;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #03468e;
}

.contact-links {
  margin-top: 20px;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  margin-top: 20px;
}


.research-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}


.project-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-align: center;
}

.highlight {
  color: #2c5f2d;
  font-weight: 600;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.tech-item {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
}

.impact-statement {
  background: #f0f7e6;
  padding: 1rem;
  border-left: 4px solid #8db596;
  margin: 1rem 0;
}


.badge {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 5px 10px;
  margin: 5px;
  border-radius: 5px;
  font-size: 0.875rem;
}

/* Research Card Styles */
.research-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
  font-family: 'Roboto', sans-serif;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.project-title {
  color: #2c5f2d;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.highlight {
  color: #2c5f2d;
  font-weight: 700;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tech-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-5px);
}

.impact-statement {
  background: #f0f7e6;
  padding: 1.5rem;
  border-left: 4px solid #8db596;
  margin: 2rem 0;
  border-radius: 4px;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #8db596;
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  margin: 0.5rem 0.5rem 0.5rem 0;
  font-weight: 500;
}

.collaboration-info {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.author {
  margin: 0.5rem 0;
  padding: 0.5rem;
  border-left: 3px solid #8db596;
}

.institution {
  display: block;
  color: #666;
  font-size: 0.9em;
  margin-top: 0.2rem;
}

/* Base Styles */
:root {
  --primary-color: #023a76;
  --secondary-color: #85bbf5;
  --text-dark: #333;
  --text-medium: #555;
  --text-light: #fff;
  --bg-light: #f8f9fa;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* About Section */
.about-container {
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: center;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-medium);
}



/* Skills Chart */
#skillsRadarChart {
  max-width: 600px;
  margin: 2rem auto;
}

.image-wrap {
  width: 100%;
  height: 250px;
  overflow: hidden;
  margin: 10px auto;
}

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

  object-position: top center;
  transition: all 10s ease-in-out;
  transition: all 20s ease-out-in;
}

.image-wrap:hover img {
  object-position: bottom center;
}


/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--text-medium);
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
  border-color: var(--primary-color);
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:not(:placeholder-shown)+label {
  top: -0.5rem;
  left: 0.8rem;
  font-size: 0.8rem;
  background: var(--text-light);
  padding: 0 0.2rem;
  color: var(--primary-color);
}

.success-message {
  color: #4CAF50;
  padding: 15px;
  margin-top: 20px;
  border-radius: 4px;
  background: #e8f5e9;
}

.error-message {
  color: #f44336;
  padding: 15px;
  margin-top: 20px;
  border-radius: 4px;
  background: #ffebee;
}

.form-error {
  color: #f44336;
  margin-bottom: 15px;
}

#submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}



/* For tablets and smaller devices (max-width: 1024px) */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    /* padding-bottom: 4px; */
    /* padding-top: 10; */
  }

  .profile-img {
    margin: 0 auto 2rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .contact-form {
    padding: 0 15px;
  }

  .contact-links {
    text-align: center;
  }
}

.research-links {
  display: flex;
  flex-wrap: wrap;
  /* Allows items to wrap on smaller screens */
  gap: 10px;
  /* Adds spacing between buttons */
  justify-content: space-between;
  /* Aligns items appropriately */
}

.research-links .btn {
  flex: 1;
  /* Ensures buttons take equal width */
  text-align: center;
  /* Centers the button text */
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  text-decoration: none;
  /* background: #f5f5f5; */
  /* color: #333; */
  transition: all 0.3s ease-in-out;
}

.research-links .btn:hover {
  background: #ddd;
  color: #000;
}

/* For mobile devices (max-width: 768px) */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.2em;
  }
 
  .contact_btn {
    background: #ff4757;
    color: white;
    /* padding: 10px 15px; */
    /* Ensure proper spacing */
    border-radius: 100px;
    text-decoration: none;
    font-size: 1em;
    transition: background 0.3s;
    display: inline-flex;
    /* Makes it behave more like a button */
    align-items: center;
    /* Centers the icon */
    justify-content: center;
    width: 200px;
    text-align: center;
    margin: 2px 0;
  }

 

  .badge {
    /* display: inline-block; */
    /* padding: 0.5rem 1rem; */
    background: #8db596;
    color: white;
    border-radius: 10px;
    font-size: 0.6rem;
    /* margin: 0.5rem 0.5rem 0.5rem 0; */
    font-weight: 500;
  }

  .aboutDetails {
    font-size: 0.9em;
    padding-bottom: 0px;
    margin: 3px;
    text-align: justify;
  }

  .project-title {
    font-size: 1rem;
    margin-bottom: 10px;
    text-align: start;
  }

  header p {
    font-size: 1.1em;
  }



  .profile-img {
    margin: 0 auto 2rem;
    width: 120px;
    height: 120px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px;
  }

  .btn {
    font-size: 0.9em;
  }

  .blog-card {
    font-size: 0.9em;
  }

  .research-links {
    flex-direction: column;
    /* Stacks buttons vertically */
    align-items: stretch;
    /* Makes buttons full width */
  }

  .research-links .btn {
    font-size: 14px;
    /* Adjusts font size for smaller screens */
    padding: 8px 12px;
    /* Reduces padding */
  }



  .jisan-title {
    font-size: 11px;
    margin: -12px;
  }


}

/* For small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.8em;
  }

  header p {
    font-size: 1em;
  }

  .about-text {
    font-size: 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .project-card img {
    width: 60%;
    height: auto;
    border-radius: 10px;
    margin: 0 auto 15px;
    object-fit: cover;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    font-size: 0.85em;
    padding: 8px 15px;
  }

  .contact-form {
    padding: 0 10px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 10px;
  }

  .research-links .btn {
    font-size: 12px;
    /* Further adjusts font size */
    padding: 6px 10px;
    /* Further reduces padding */
  }
}


/* Base Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.header,
.footer {
  padding: 2rem;
  text-align: center;
}

h1,
h2,
h3 {
  margin: 1rem 0;
}

p {
  margin: 0.5rem 0;
  line-height: 1.5;
}



.button {
  padding: 0.75rem 1.5rem;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.button:hover {
  background-color: #45a049;
}

/* For screens 768px or smaller */
@media (max-width: 768px) {
  body {
    font-size: 1rem;
    /* Adjust font size for medium screens */
  }

  .container {
    padding: 1.5rem;
    /* Adjust container padding */
  }

  .aboutDetails {
    font-size: 0.9em;
    /* padding-bottom: 150px; */
    text-align: justify;
  }

  .header,
  .footer {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
    /* Smaller header */
  }

  h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
  }

  .button {
    padding: 0.5rem 1rem;
    /* Adjust button size */
  }

  img {
    margin: 0.5rem 0;
  }

}

/* For screens 480px or smaller */
@media (max-width: 480px) {
  body {
    font-size: 0.875rem;
    /* Adjust font size for small screens */
  }

  .container {
    padding: 1rem;
    /* Reduce container padding */
  }
.skills-grid {
  grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile screens */
}
  .header,
  .footer {
    padding: 1rem;
  }

  h1 {
    font-size: 1.75rem;
    /* Smaller header */
  }

  h2 {
    font-size: 1.25rem;
  }

  p {
    font-size: 0.875rem;
    /* Smaller text */
  }

  .button {
    padding: 0.5rem 0.75rem;
    /* Even smaller buttons */
  }

  img {
    margin: 0.25rem 0;
    /* Adjust image margin */
  }
}