/* Global Styles */
body {
  font-family: "Roboto", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f7f7;
  color: #000000;
}

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

/* Header Styles */
header {
  background-color: #000000;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 36px;
  font-weight: bold;
}

nav {
  margin-top: 20px;
}

nav ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin-right: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ff7f50;
}

/* Hero Section */
#hero {
  background-color: #f7f7f7;
  padding: 80px 0;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.hero-text {
  flex: 1 1 50%;
  text-align: left;
}

.hero-text h2 {
  font-size: 36px;
  color: #000000;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 20px;
  color: #555;
  margin-bottom: 40px;
}

.hero-image {
  flex: 1 1 50%;
}

.hero-image img {
  max-width: 100%;
  max-height: 100%;
  /* Add this line */
  width: 90%;
  /* Add this line */
  height: 40%;
  /* Add this line */
  border-radius: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.1);
}

/* About Section */
#about {
  padding: 60px 0;
  text-align: center;
}

#about h2 {
  font-size: 36px;
  color: #000000;
  margin-bottom: 30px;
}

#about p {
  font-size: 20px;
  line-height: 1.6;
  color: #555;
}
/* Education Section */
#education {
  padding: 60px 0;
  font-size: 26px;
}


.cards-container {
  display: flex;
  justify-content: center;
  gap: 15px; /* To ensure spacing between the cards */
}

.card {
  perspective: 500px;
  width: 200px;
  height: 300px;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d; 
  transition: transform 0.6s;
}

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

.card-front, .card-back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  
}

.card-front img {
  width: 100px;
  height: 100px;
  margin-bottom: 10px;
}

.card.flipped .card-back {
  background-color: red;
  color: white; /* For the text */
}



.card.flipped {
  transform: rotateY(180deg);
}

.card-back {
  transform: rotateY(180deg);
  background-color: #fff;
}

.card-back h3 {
  padding: 10px; /* Adjust this value to your liking */
}

/* Portfolio Section */
/* Portfolio Section */
#portfolio {
  padding: 60px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#portfolio h2 {
  font-size: 36px;
  color: #000000;
  margin-bottom: 30px;
  text-align: center;
  width: 100%;
}

.project {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin: 0 20px 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  flex: 1;
  max-width: 300px;
  min-width: 280px;
  text-align: center;
}

.project:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project h3 {
  font-size: 24px;
  color: #333;
  margin-top: 0;
  margin-bottom: 10px;
}

.project p {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
}

.project a {
  text-decoration: none;
  color: #333;
  display: block;
}

.project a:hover {
  color: #ff7f50;
}


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

#contact h2 {
  font-size: 36px;
  color: #000000;
  margin-bottom: 30px;
}

#contact p {
  font-size: 20px;
  line-height: 1.6;
  color: #555;
}

.contact-link {
  color: #ff7f50;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #ff5a36;
}

/* Footer Styles */
footer {
  background-color: #000000;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 14px;
}

/* Media Queries */
@media (max-width: 768px) {
  header h1 {
      font-size: 30px;
  }

  nav ul li a {
      font-size: 16px;
  }

  #about h2,
  #portfolio h2,
  #contact h2 {
      font-size: 24px;
  }

  .project h3 {
      font-size: 20px;
  }

  .project p {
      font-size: 14px;
  }

  footer p {
      font-size: 12px;
  }
}