* {
  margin: 0;
  padding: 0 0 0 0;
}
body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  background-color: #f8f9fa;
  color: #1b1b2f;
  justify-content: center; /* centers horizontally */
  align-items: center;
}
main {
  justify-content: center; /* centers horizontally */
  align-items: center;
}
header {
  background-color: #1b1b2f;
  color: black;
  padding: 0 20px;
  text-align: center;
  align-items: center;
  justify-content: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 9999;
  flex-wrap: wrap; /* allows items to move to next line */
  height: auto; /* adjust height so it grows if wrapped */
}
nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 80px;
  color: rgb(255, 255, 255);
}
nav ul {
  display: flex;
  justify-content: center;
}
nav ul li {
  list-style: none;
  margin: 0 23px;
}
nav ul li a {
  text-decoration: none;
  color: white;
}
nav ul li a:hover {
  font-size: 1.05 rem;
  color: rgb(185, 65, 105);
}

main hr {
  border: 0;
  background-color: rgb(251, 250, 253);
  height: 1.02px;
}
.left {
  font-size: 2rem;
  
}
.right {
  font-size: 1.25rem;
}
.main {
  content: center;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  padding: 200px 20px 20px 20px; /* top padding to avoid menu overlap */
  z-index: 0; /* ensures pseudo-element stays behind text */
}
.myself::before {
  content: "";
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("./img/img1.png") center/cover no-repeat;
  opacity: 0.2; /* 50% opacity */
  z-index: -1; /* behind the content */
}
/* Keep your text fully visible */
.leftSection,
.rightSection {
  position: relative;
  z-index: 1; /* above the overlay */
}
.leftSection {
  font-size: 3rem;
  text-align: center;
}
.leftSection .buttons {
  padding: 50px 0;
}
.leftSection .btn {
  padding: 12px;
  background-color: rgb(29, 6, 67);
  color: white;
  border: 2px solid white;
  border-radius: 12px;
  cursor: pointer;
}
.rightSection img {
  width: 80%;
}

.hero-header {
  background: url("./img/bannar.jpg") center/cover no-repeat;
  color: black;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  opacity: 2;
}

.hero-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* translucent black */
  backdrop-filter: blur(3px); /* frosted glass blur */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
}

/* Bring text above overlay */
.hero-header h1,
.hero-header p,
.hero-header a {
  position: relative;
  z-index: 1;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
}
header p {
  margin: 10px 0 0;
  font-size: 1.2em;
}
section {
  padding: 20px 0 0 0;
  max-width: 80%;
  margin: 5rem auto;
  align-items: center;
  justify-content: center;
}
h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #1b1b2f;
}
.skills,
.projects,
.education,
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;

  transform: translateY(-10px); /* pop-up effect */
}

.contact-card p {
  margin-bottom: 10px !important;
}
.skill-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex: 1 1 250px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* smooth effect */
  cursor: pointer; /* indicates it’s interactive */
}
.skill-card:hover {
  transform: translateY(-10px); /* pop-up effect */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* deeper shadow on hover */
}
.project-card:hover {
  transform: translateY(-10px); /* pop-up effect */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* deeper shadow on hover */
}
.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* keeps view-project at bottom */
  width: 300px;
  align-content: center;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* smooth effect */
  cursor: pointer; /* indicates it’s interactive */
}
.live-project:hover {
  transform: translateY(-10px); /* pop-up effect */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* deeper shadow on hover */
}
.live-project {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* keeps view-project at bottom */

  padding: 30px 20px;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* smooth effect */
  cursor: pointer; /* indicates it’s interactive */
}
.purple {
  color: rgb(185, 65, 105);
}
#element {
  color: rgb(185, 65, 105);
  font-size: 2rem;
}
#active-project {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}
#section {
  padding-bottom: 0;
}
.edu-card,
.contact-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex: 1 1 250px;
  text-align: center;
}

.img-container {
  justify-content: center; /* horizontal center */
  align-items: center; /* vertical center */
  width: 280px;
  height: 280px;
  display: flex;
}
.projects-container {
  display: flex;
  gap: 20px;
  align-items: stretch;
}
.content {
  flex-grow: 1; /* makes text area flexible */
  margin-top: 10px;
  text-align: center;
}
.view-project {
  text-align: center;
  margin: 0;
}
.view-project a {
  display: inline-block;
  padding: 5px 10px;
  color: rgb(7, 7, 7);
  text-decoration: none;
  border-radius: 4px;
}

.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
  justify-content: space-between; /* pushes "View Project" to the bottom */
}
a {
  color: #1b1b2f;
  text-decoration: none;
  font-weight: bold;
}
a:hover {
  text-decoration: underline;
}
footer {
  text-align: center;
  padding: 30px 20px;
  background-color: #1b1b2f;
  color: #fff;
}
a {
  margin-right: 15px; /* adds space between links */
  text-decoration: none;
  color: black;
  font-weight: bold;
}
/* Hero Section Styling */
#about {
  position: relative;
  height: 40vh;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  overflow: hidden;
}

.about-overlay {
  position: absolute;
  inset: 0;
  background: rgb(250, 247, 247);
  display: flex;
  align-items: left;
  justify-content: left;
  padding: 10px;
}

.about-content {
  text-align: left;
  max-width: 800px;
  padding: 40px;
  animation: fadeIn 1.5s ease;
}

.about-content h1 {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
  color: black;
}

.about-content h1 span {
  color: black;
}

.about-content p {
  font-size: 1.2em;
  line-height: 1.8;
  color: black;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  background: #e63946;
  color: #fff;
  padding: 14px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #c62f3e;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

/* Fade animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.5s ease forwards;
  font-size: large;
}

.delay {
  animation-delay: 0.4s;
}

.delay2 {
  animation-delay: 0.8s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-content h1 {
    font-size: 2.2em;
  }
  .about-content p {
    font-size: 1em;
  }
}
@media (max-width: 768px) {
  .myself {
    flex-direction: column;
    align-items: center;
  }
}
