body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: url("images//background.webp") no-repeat center center/cover;
  color: #222;
  line-height: 1.6;
}



section {
  padding: 50px 20px;
  max-width: 1000px;
  margin: auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #111;
}

/* BACKGROUND HERO */
#hero {
  position: relative;
  background: url("images//About.webp") no-repeat center center/cover;
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 50px 20px;
  overflow: hidden;
  margin: 0 auto 30px;
}

/* Fix for overlapping media query and main rule */
/* This ensures mobile rules are applied correctly */
@media (max-width: 600px) {
  #hero {
    padding: 40px 15px;
  }
}

/* Blur effect with overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1000px;
  height: 100%;
  background: inherit;
  background-size: cover;
  filter: blur(8px) brightness(0.7); /* blur + dark overlay */
  z-index: 0;
  padding: 50px 20px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-container {
  position: relative;
  z-index: 1;
}

/* Default style with transparent borders */
#about,
.edu-item,
.education-card {
  background: #fff;
  padding: 50px 0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* Transparent borders (so text never shifts) */
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  /* Smooth transition */
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* About Section */
.about-section {
  max-width: 1000px;
  margin: 0 auto 40px; /* Reduced bottom margin */
  padding: 40px 20px; /* Reduced padding */
  text-align: center;
}

.about-section .section-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: #222;
}

/* Container for cards */
.about-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

/* Individual cards */
.about-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Icons */
.about-icon {
  font-size: 2rem;
  color: #009688; /* matches your buttons */
  margin-bottom: 12px;
}

/* Text inside cards */
.about-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}


/* Education Section */
.education-section {
  padding: 40px 20px;
  background: #fff; /* white background */
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: 700;
  color: #222;
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
}

.education-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-bottom: 2px solid #eee;
  padding-bottom: 15px;
}

.education-card:last-child {
  border-bottom: none;
}

.edu-left {
  flex-shrink: 0;
}

.education-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.edu-right {
  flex: 1;
}

.edu-right h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #333;
}

.university {
  font-weight: 500;
  color: #555;
  margin-bottom: 5px;
}

.duration {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
}

.cgpa {
  font-weight: 600;
  margin-bottom: 8px;
  color: #444;
}

/* Mobile friendly */
@media (max-width: 600px) {
  .education-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .education-logo {
    margin-bottom: 10px;
  }
}


/* PROJECTS */
.projects-section {
  max-width: 900px;
  margin: 0 auto 40px; /* Reduced bottom margin */
  padding: 40px 0; /* Reduced padding */
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 0;
  margin-bottom: 10px;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px; /* keeps equal height for all cards */
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.project-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
  height: 160px; /* consistent image height */
  object-fit: cover;
}

.project-card h3 {
  margin: 10px 0;
  font-size: 18px;
}

.project-desc {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* show only 3 lines */
  -webkit-box-orient: vertical;
  transition: all 0.3s ease;
  font-size: 15px;
  line-height: 1.5;
}

.project-card.expanded .project-desc {
  -webkit-line-clamp: unset; /* show all when expanded */
}

.read-more {
  color: #00bfa6;
  cursor: pointer;
  font-size: 14px;
  margin-top: 6px;
  font-weight: 500;
  transition: color 0.2s;
}

.read-more:hover {
  color: #008f7a;
}

.project-card .btn {
  display: inline-block;
  margin-top: auto; /* pushes button to bottom */
  padding: 8px 16px;
  background: #00bfa6;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  border-left: 5px solid #00bfa6;
  border-right: 5px solid #00bfa6;
  transition: background 0.3s ease, transform 0.2s ease;
}

.project-card .btn:hover {
  background: #008f7a;
  transform: scale(1.05);
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.skill-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.skill-card:hover {
  transform: scale(1.05);
  background: #f0fffc;
}

.skill-card2:hover {
  transform: scale(1.05);
  background: #f0fffc;
}

.skill-card h4 {
  margin-bottom: 10px;
  color: #00bfa6;
}

.skill-card2 h4 {
  margin-bottom: 10px;
  color: #00bfa6;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.skill-card2 {
  background: white;
  border-radius: 12px;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.skill-card2:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.skill-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* CERTIFICATES */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 40px; /* Reduced bottom margin */
}

.certificate-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px;
}

.certificate-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}


/* CONTACT */
/* Contact Section */
#contact {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Contact Buttons Styling */
/* Contact Buttons */
.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px; /* spacing between buttons */
  align-items: center;
  margin: 20px 0;
}

.contact-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: #1abc9c;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 6px;
  width: 80%;       /* take 80% of screen on mobile */
  max-width: 250px; /* limit button width */
  transition: all 0.3s ease;
}

.contact-buttons a:hover {
  background-color: #16a085;
  transform: scale(1.03);
}

/* Tablet & Desktop */
@media (min-width: 768px) {
  .contact-buttons {
    flex-direction: row;
    justify-content: center;
  }
  .contact-buttons a {
    width: auto;
    min-width: 140px;
  }
}
