html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Quicksand", sans-serif;
  background-color: #ACAAF0;
}

h2 {
  font-family: "Chewy", system-ui;
  font-size: 3rem;
  margin: 2rem 0;
  color: #ffffff;
}

h4 {
  font-family: "Chewy", system-ui;
  font-size: 3rem;
  padding: 0 2rem;
  margin: 2rem 0;
  color: #000000;
  margin-top: 100px;
}

.reveal {
  position: relative;
  transform: translateY(100px);
  transition: all 1s ease;
}

.reveal.active {
  transform: translateY(0px);
  opacity: 1;
}

/*header*/

header {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  width: 100%;
  padding-top: 1rem;
}

header img {
  max-width: 350px;
  transform: scaleX(1);
}


header nav ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  margin: 0;
}

header nav ul li a {
  position: relative;
  font-weight: 700;
  display: block;
  margin: 1rem;
  /* padding: 1rem; */
  color: #ffffff;
  text-decoration: none;
}

header a::before {
  content: "";
  position: absolute;
  top: 140%;
  /* top: 90%; */
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: 0.3s;
}

header a:hover::before {
  width: 100%;
}

/* Projects Section */
.projects {
  background-color: #5b4fbf; /* Purple background */
  color: #fff;
  text-align: center;
  padding: 20px;
  border-radius: 100px;
}

.projects h2 {
  font-family: "Chewy", system-ui;
  font-size: 28px;
  margin-bottom: 10px;
}

.projects p {
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  margin-bottom: 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 0 auto;
  max-width: 1200px;
}

.project-item {
  background-color: #724edb; /* Lighter purple for cards */
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.project-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s;
}

.project-item img:hover {
  transform: scale(1.05);
}

.project-item h3 {
  font-size: 16px;
  color: #fff;
  margin-top: 10px;
}

.project-item a {
  text-decoration: none;
  color: inherit;
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ACAAF0;
  color: #4A3DA8;
}

header {
  background-color: #CABFF5;
  padding: 10px 0;
  text-align: center;
}

.navbar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.navbar li {
  display: inline;
}

.navbar a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
}

h1, h2, h3 {
  margin: 0;
}

h1 {
  font-size: 36px;
  color: #ffffff;
}

h2 {
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 10px;
}

h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

p {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 15px;
  margin-bottom: 15px;
  color: #ffffff;
}

.project-section {
  background-color: #d3c4f3;
  padding: 40px 20px;
}

.project-content {
  max-width: 800px;
  margin: 0 auto;
}

.details {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.details div {
  flex: 1;
}

.details h3 {
  color: #ffffff;
}

.illustration-section {
  padding: 40px 20px;
  background-color: #6d57d3;
  border: 10px solid rgb(255, 255, 255);
  border-radius: 10px;
}

.illustration {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
}

.illustration img {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  margin-top: 15px;
}

.illustration p {
  font-size: 16px;
  color: #ffffff;
}

/* Section Styling */
.project-section {
  background-color: #6D57D3;
  color: #ffffff;
  padding: 30px 15px;
  text-align: center;
  border-radius: 10px;
  margin: 20px auto;
  width: 90%;
  max-width: 900px;
}

.project-section h1 {
  font-size: 32px;
}

.project-description {
  text-align: left;
  margin-top: 20px;
}

img {
  max-width: 180px;
  width: 100%;
  animation: bounce 2s ease infinite, fade 2s ease;
}

 /* Video Container */
 .video-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Challenge Container */
.challenge-container {
  width: 90%;
  max-width: 800px;
  margin: 20px auto;
  padding: 10px;
}

/* Challenge Box */
.challenge-box {
  background-color: #5b4fbf;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 5px solid #ffffff
}

.challenge-box h2 {
  background-color: #CABFF5;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 20px;
  color: white;
  display: inline-block;
  margin: 0;
}

.challenge-box p {
  margin-top: 15px;
  text-align: justify;
  color: white;
}


/* Video Box Styling */
.video-box {
  background-color: #DBD2FF;
  border-radius: 15px;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-box video {
  width: 100%;
  border-radius: 10px;
  outline: none;
}

/* Responsive Design */
@media screen and (min-width: 768px) {
  .video-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .video-box {
    width: 100%;
  }
}

.video-section {
  background-color: #CABFF5;
  border-radius: 15px;
  padding: 20px;
  margin: 20px auto;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #4A3DA8;
}

.video-section h2 {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 20px;
}

/* Video Container */
.video-container2 {
  position: relative;
  overflow: hidden;
  
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #b7a1f4;
  padding: 20px;
  border-radius: 10px;
}

.download-button {
  display: inline-block;
  margin-top: 20px;
  padding: 20px 40px;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  color: rgb(255, 255, 255);
  background-color: #e31f8e;
  border-radius: 50px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.download-button:hover {
  transform: scale(1.05);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

  /* Footer Section */
footer {
background-color: #4A3DA8;
color: white;
text-align: center;
padding: 10px 0;
font-size: 14px;
margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 600px) {
.skills {
  flex-direction: column;
  text-align: center;
}}