:root {
  --main-color: #3498db;
  --secondary-color: #2ecc71;
  --background-color: #ecf0f1;
  --text-color: #2c3e50;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
img {
  width: 100%;
  display: block;
}

.square_circle {
  width: 100px;
  height: 100px;
  background-color: var(--main-color);
  transition: ease-in-out 800ms;
}
.square_circle:hover {
  border-radius: 50%;
  background-color: aqua;
}

/*zoom effect*/
.zoomcontainer,
.slidecontainer {
  width: 500px;
  position: relative;
}

.zoomcontent,
.slidecontent {
  width: 500px;
  position: absolute;
  top: 0%;
  bottom: 0%;
  left: 0%;
  right: 0%;
  background-color: rgba(50, 50, 50, 0.7);
  text-align: center;
  padding-top: 30%;
  color: white;
  font-size: 3em;
  transform: scale(0);
  transition: ease-in-out 1s;
}
.zoomcontainer:hover .zoomcontent {
  transform: scale(1);
}
.slidecontent {
  transform: translateX(500px);
}
.slidecontainer {
  overflow: hidden;
}
.slidecontainer:hover .slidecontent {
  transform: translateX(0px);
}
.card1,
.cardslide {
  width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 2px 2px 5px black;
  transition: ease-in-out 500ms;
  margin: 30px;
}
.card1:hover {
  transform: scale(0.95);
  box-shadow: none;
}
.cardslide:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0px 10px 5px black;
}

/*flex container*/
.flexcontainer {
  background-color: var(--main-color);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  align-content: center;
}

/*grid layout*/
.gridcontainer {
  display: grid;
  grid-template-columns: 2fr 1fr 5fr;
  grid-template-rows: 3fr 1fr 4fr;
  gap: 10px;
  background-color: var(--main-color);
  height: 500px;
}
.item {
  background-color: var(--background-color);
  text-align: center;
  padding: 20px;
  border: solid black 1px;
}
.gridsection {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

/*more grid properties*/
.sectioncontainer {
  display: grid;
  grid-template-areas:
    "header header header"
    "sidebar content content"
    "footer footer footer";
}
.header,
.sidebar,
.content,
.footer {
  padding: 2rem;
  text-align: center;
}
.header {
  background-color: var(--background-color);
  grid-area: header;
}
.sidebar {
  background-color: var(--background-color);
}
.content {
  background-color: var(--background-color);
  grid-area: content;
}
.footer {
  background-color: pink;
  grid-area: footer;
}

/*navigation tabs*/
.navcontainer {
  position: fixed;
  top: 0%;
  background-color: rgba(50, 50, 50, 0.7);
  width: 100%;
  display: flex;
  justify-content: center;
}
.navlink {
  text-align: center;
  padding: 1rem;
  display: inline-block;
  color: white;
}
.collapsenavbars {
  display: none;
  padding: 1rem;
  color: aliceblue;
}

/*media query*/
@media only screen and (max-width: 1150px) {
  .flexcontainer {
    background-color: aqua;
  }
  .cardslide {
    width: 500px;
  }
  .gridcontainer {
    grid-template-columns: 3fr 2fr;
  }
}
@media only screen and (max-width: 800px) {
  .flexcontainer {
    background-color: purple;
  }
  .cardslide {
    width: 90%;
    margin: 5%;
  }
  .gridcontainer {
    grid-template-columns: 1fr;
  }
  .collapsenavbars {
    display: inline-block;
  }
}

/* General Styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header Styling */
.header2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  border-radius: 10px;
  background-color: rgb(244, 244, 244);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* header */
.logo {
  width: 20%;
}

.logo img {
  max-width: 100%;
  height: auto;
  border-radius: 100px;
}

.title {
  width: 60%;
  text-align: left;
  padding: 10px;
}

.title h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(2rem, 6vw, 80px);
  color: var(--text-color);
}

/* Navigation Styling */
.nav2 {
  width: 100%;
  background-color: #3a3a3a;
  border-radius: 10px;
  margin: 15px 0;
}

.nav2 ul {
  display: flex;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.nav2 ul li {
  padding: 15px 0;
  display: inline-block;
}

.nav2 ul li a {
  display: block;
  color: var(--secondary-color);
  text-align: center;
  padding: 0 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: bold;
}

.nav2 ul li a:hover {
  color: #006400;
  transform: scale(1.1);
}

/* Introduction Section */
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 0;
  margin-bottom: 30px;
}

.intro_image {
  width: 45%;
  max-width: 500px;
}

.intro_image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.intro_text {
  width: 50%;
  max-width: 600px;
  padding: 20px;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

/* Section & Card Styling */
.section {
  margin: 30px 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.card-link {
  flex: 1 1 250px;
  max-width: 30%;
  min-width: 250px;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}

.card {
  width: 100%;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  box-sizing: border-box;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  background-color: #eef5ee;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.card p {
  font-size: 16px;
  color: var(--text-color);
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .intro {
    flex-direction: column;
  }

  .intro_image,
  .intro_text {
    width: 100%;
    text-align: center;
  }

  .card-link {
    max-width: 100%;
  }
}
