html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
}

.hero {
  height: 100vh;
  background: #0093e9; /* Fallback for unsupported browsers */
  background: linear-gradient(135deg, #0093e9 0%, #80d0c7 100%);
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.loginPageHero,
.newRegistrationPageHero,
.forgotPasswordPageHero {
  height: 100vh;
  background: #0093e9; /* Fallback for unsupported browsers */
  background: linear-gradient(135deg, #0093e9 0%, #80d0c7 100%);
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  position: absolute;
  z-index: 1;
}

.navLogo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.navLogo img {
  height: 40px;
}

.navLogo .socialIcons i {
  margin-left: 10px;
  font-size: 24px;
  cursor: pointer;
}

.navbar {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding: 15px 0px;
  background: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.2);
}

.navbar a {
  color: white;
  text-decoration: none;
}

.navbarMenu a {
  margin-right: 30px;
}

/* Hamburger Icon (for mobile view) */
.hamburger-icon {
  display: none; /* Hidden by default, will be shown for mobile */
  cursor: pointer;
}

.drawer-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-left;
  align-items: flex-start;
}

.drawer-menu img {
  display: flex;
  height: 35px;
}

.drawer-menu a {
  display: flex;
  text-decoration: none;
  color: #111111;
  margin: 10px 0;
  font-size: 16px;
}

/* Social Icons in the drawer */
.drawer-menu i {
  margin-right: 15px;
}

/* Initially, hide the mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  transform: translateX(-100%); /* Off-screen initially */
  width: 70%;
  height: 100%;
  background-color: #f8f8f8;
  color: #111111;
  padding: 20px;
  z-index: 999;
  display: block; /* Visible by default */
  transition: transform 0.3s ease; /* Smooth transition for sliding effect */
}

/* When the drawer is visible, translate it into view */
.mobile-drawer.open {
  transform: translateX(0); /* Move the drawer to its normal position */
}

/* Smoothly show the menu items */
.drawer-content a {
  color: #111111;
  margin: 10px 0;
  text-decoration: none;
}

.drawer-content a:hover {
  text-decoration: underline;
}

.profileImage {
  /* position: absolute; */
  position: relative;
  bottom: 0;
  left: 0;
  max-width: 80%;
  height: 85vh;
  object-fit: cover;
  z-index: 0;
}

.heroInfoSection {
  position: absolute;
  top: 55%;
  left: 50%;
  right: 0;
  transform: translateY(-50%);
  color: white;
  text-align: left;
  max-width: 500px;
  z-index: 1;
}

.heroInfoSection p {
  text-align: justify;
}

.heroInfoSection #typedText {
  /* font-family: "Caveat", cursive; */
  font-family: "Shadows Into Light", cursive;
  font-size: 60px;
  font-weight: bold;
  color: white;
  margin: auto 0px;
}

.aboutSection {
  text-align: center;
  margin: 10px auto;
  padding: 10px;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  color: rgb(0, 0, 0);
}

.heroInfoSectionMobileView {
  display: none;
}

.roadmapSection {
  background-color: #ffffff;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.roadmapSection h1 {
  margin: 15px 0px;
  text-align: center;
}

.roadmapSteps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.roadmapCard {
  text-align: center;
  flex: 1 1 calc(25% - 20px);
  max-width: calc(25% - 20px);
  transition: transform 0.3s ease-in-out;
}

.roadmapCard:hover {
  transform: translateY(-10px);
}

/* .roadmapCard i {
      font-size: 50px;
      color: #0093E9;
  } */

.roadmapCard i {
  font-size: 50px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #0093e9, #80d0c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.roadmapCard h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.roadmapCard p {
  font-size: 14px;
  opacity: 0.8;
}

.aiToolsContainer {
  margin-top: 70px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

#aiPoweredTools {
  text-align: center;
  font-size: 24px;
  color: #111111;
}

#aiPoweredTools span {
  display: inline-block; /* Makes the span take up only the width of the text */
  position: relative; /* To position the line relative to the text */
  background: linear-gradient(135deg, #0093e9 0%, #80d0c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 18px;
}

#aiPoweredTools span::after {
  content: "";
  display: block;
  width: 100%; /* Line width equals the text width */
  height: 3px; /* Thickness of the line */
  background: linear-gradient(135deg, #0093e9 0%, #80d0c7 100%);
  position: absolute;
  bottom: -5px; /* Position the line directly under the text */
  left: 0;
}

.aiToolsContainer p {
  font-size: 16px;
  margin: 0;
}

.aiToolsContainer h1 {
  margin: 15px 0px;
  text-align: center;
}

.aiTools {
  width: 80%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px 0px;
  background: #eeeeee;
  color: #111111;
  flex-wrap: wrap;
  border-radius: 30px;
}

.aiToolsCardContainer {
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 20px;
  padding: 20px 50px 0px 50px;
}

.aiToolsCard {
  background: #ffffff;
  backdrop-filter: blur(10px);
  overflow: hidden;
  text-align: center;
  width: auto;
  padding: 15px;
  max-width: 450px;
  border-radius: 30px;
}

.aiToolsCard img {
  width: 100%;
  height: 400px;
  object-fit: contain;
}

.aiToolsCardContent {
  color: black;
}

.aiToolsCardContent h3 {
  margin-top: 10px;
  margin-bottom: 5px;
}

.workshopContainer {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#workshops {
  background: linear-gradient(135deg, #0093e9 0%, #80d0c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block; /* Important to show gradient properly */
  font-size: 18px;
}

#workshops::after {
  content: "";
  display: block;
  width: 100%; /* Full width of the text */
  height: 3px; /* Thickness of the line */
  background: linear-gradient(135deg, #0093e9 0%, #80d0c7 100%);
  margin-top: 5px; /* Space between text and line */
  border-radius: 10px; /* Smooth edges */
}

.workshopContainer p {
  font-size: 16px;
  margin: 0;
}

.workshopContainer h1 {
  margin: 15px 0px;
  text-align: center;
}

.cardsContainer {
  width: 80%;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}
.card {
  background: #ffffff;
  backdrop-filter: blur(10px);
  overflow: hidden;
  text-align: center;
  width: 330px;
  padding: 15px;
  border-radius: 30px;
}

.card img {
  width: 100%;
  height: 400px;
  object-fit: contain;
}

.cardContent {
  color: black;
}

.cardContent h3 {
  margin-top: 10px;
  margin-bottom: 5px;
}

#notes {
  background: linear-gradient(135deg, #0093e9 0%, #80d0c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block; /* Important to show gradient properly */
  font-size: 18px;
}

.notesContainer {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#notes::after {
  content: "";
  display: block;
  width: 100%; /* Full width of the text */
  height: 3px; /* Thickness of the line */
  background: linear-gradient(135deg, #0093e9 0%, #80d0c7 100%);
  margin-top: 5px; /* Space between text and line */
  border-radius: 10px; /* Smooth edges */
}

.notesContainer p {
  font-size: 16px;
  margin: 0;
}

.notesContainer h1 {
  margin: 15px 0px;
}

.footerContainer {
  background-color: #eeeeee;
  display: flex;
  justify-content: center;
  margin-top: 70px;
}

.footer {
  width: 80%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  padding: 50px 0px;
  background: #eeeeee;
  color: #111111;
  flex-wrap: wrap;
}

.footerLogo img {
  width: 250px;
  margin-bottom: 20px;
}

.explore a {
  display: block;
  color: #303030;
  margin-bottom: 10px;
  text-decoration: none;
}

.explore a:hover {
  color: #0093e9;
}

.quickLinks a {
  display: block;
  color: #303030;
  margin-bottom: 10px;
  text-decoration: none;
}

.quickLinks a:hover {
  color: #0093e9;
}

.footerSocialIcons {
  text-align: center;
  background-color: #eeeeee;
}

.footerSocialIcons i {
  font-size: 24px;
  margin: 10px;
  cursor: pointer;
  transition: color 0.3s;
  margin-bottom: 50px;
}

.footerSocialIcons i:hover {
  color: #0093e9;
}

.copyright {
  text-align: center;
  margin: 20px 0;
  font-size: 14px;
  color: #111111;
}

.loginPage,
.forgotPasswordPage,
.newRegistrationPage {
  /* height: 100vh; */
  height: calc(100vh - 70px); /* 100% viewport height minus navLogo height */
  display: flex;
  justify-content: center;
  align-items: center;
}

.loginCard,
.forgotPasswordCard,
.newRegistrationCard {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.8s ease-in-out;
  will-change: opacity, transform; /* To optimize animation performance */
}

.loginCard h2,
.forgotPasswordCard h2,
.newRegistrationCard h2 {
  margin-bottom: 20px;
  color: #111111;
  font-size: 24px;
  text-align: center;
}

.forgotPasswordCard p {
  text-align: justify;
  word-wrap: break-word; /* Wrap long words */
  max-width: 350px; /* Fixed card width */
  text-align: center; /* Center text inside the card */
  margin: 0 auto; /* Optional: to center the whole paragraph block */
  margin-bottom: 30px;
}

.inputContainer {
  position: relative;
  margin-bottom: 15px;
}

.inputContainer i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #e1e1e1;
}

.inputContainer input {
  width: 350px;
  padding: 15px 15px 15px 40px;
  border: none;
  border-bottom: 2px solid #ccc;
  font-size: 16px;
  outline: none;
  transition: 0.3s;
  background: transparent;
}

.inputContainer input::placeholder {
  color: #e1e1e1;
}

.inputContainer input:focus {
  border-bottom: 2px solid #2980b9;
  /* box-shadow: 0 2px 10px rgba(41, 128, 185, 0.5); */
}

.forgotPassword {
  margin: 0;
  font-size: 14px;
  text-align: end;
  text-decoration: none;
}

.forgotPassword a {
  color: #707070;
}

.register {
  margin: 15px;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
}

.register a {
  color: #0093e9;
}

.backToLogin {
  margin: 15px;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  color: #0093e9;
}

.primaryButton {
  margin-top: 30px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0093e9 0%, #80d0c7 100%);
  background-size: 150% 150%; /* Initially scale the background */
  font-size: 18px;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 15px;
  width: 100%;
  transition: background-position 0.6s ease; /* Transition for background position */
}

.primaryButton:hover {
  background-position: 100% 100%; /* Move the background position on hover */
}

.primaryButton:focus {
  outline: 2px solid #2980b9;
  box-shadow: 0 0 5px rgba(41, 128, 185, 0.5);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Kaabil Engineer */

/* Add space at the top for navLogo and navbar */

.aboutKaabilEngineer {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#theStoryBehind {
  background: linear-gradient(135deg, #0093e9 0%, #80d0c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block; /* Important to show gradient properly */
  font-size: 18px;
}

#theStoryBehind::after {
  content: "";
  display: block;
  width: 100%; /* Full width of the text */
  height: 3px; /* Thickness of the line */
  background: linear-gradient(135deg, #0093e9 0%, #80d0c7 100%);
  margin-top: 5px; /* Space between text and line */
  border-radius: 10px; /* Smooth edges */
}

.aboutKaabilEngineer p {
  font-size: 16px;
  margin: 0;
  max-width: 1200px;
  text-align: justify;
}

.aboutKaabilEngineer h1 {
  margin: 15px 0px;
  text-align: center;
}

.myMissionAndVision {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#myMissionAndVisionText {
  background: linear-gradient(135deg, #0093e9 0%, #80d0c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block; /* Important to show gradient properly */
  font-size: 18px;
}

#myMissionAndVisionText::after {
  content: "";
  display: block;
  width: 100%; /* Full width of the text */
  height: 3px; /* Thickness of the line */
  background: linear-gradient(135deg, #0093e9 0%, #80d0c7 100%);
  margin-top: 5px; /* Space between text and line */
  border-radius: 10px; /* Smooth edges */
}

.myMissionAndVision p {
  font-size: 16px;
  margin: 0;
  max-width: 1200px;
  text-align: justify;
}

.myMissionAndVision h1 {
  margin: 15px 0px;
  text-align: center;
}

/*  */
/*  */
/*  */
/* */
/* #comments-container {
  position: absolute;
  top: 250px; 
  width: 100%;
  height: calc(
    100vh - 250px
  ); 
} */

#comments-container {
  position: relative;
  width: 100%;
  top: 200px;
  height: calc(100vh - 200px);
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Stack comments vertically if needed */
  justify-content: flex-end; /* Stack comments at the bottom */
}

.comment {
  position: absolute;
  background-color: white;
  color: #333;
  padding: 12px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 1s forwards;
  pointer-events: auto;
  animation-timing-function: ease-out;
  box-sizing: border-box;
  /* max-width: 300px; */
  max-width: 80%;
  line-height: 1.4;
}

.comment .username {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 5px;
  text-align: left;
}

.comment .comment-text {
  font-size: 1rem;
  color: #333;
  text-align: left;
  margin-bottom: 5px;
}

.comment .heart-icon {
  color: #ff0000;
  font-size: 0.9rem;
  cursor: pointer;
  align-self: flex-start; /* Position like icon to the bottom-right */
  transition: transform 0.3s ease;
}

.comment .heart-icon:hover {
  transform: scale(1.2);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mission Section Styling */

.myMissionCard,
.myVisionCard,
.coreValuesCard {
  background: none;
  display: flex;
  align-items: center;
  /* justify-content: center; */
  flex-direction: column;
}

.myMissionCard i,
.myVisionCard i,
.coreValuesCard i {
  font-size: 100px;
  background: linear-gradient(135deg, #0093e9, #80d0c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.myMissionCard h3,
.myVisionCard h3,
.coreValuesCard h3 {
  font-size: 24px; /* Font size for the heading */
  color: #333; /* Dark color for the heading */
  margin: 20px 0px 10px 0px;
  font-weight: bold; /* Make heading bold */
}

.instagramFeed {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#stayConnectedText {
  background: linear-gradient(135deg, #0093e9 0%, #80d0c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block; /* Important to show gradient properly */
  font-size: 18px;
  margin: 0;
}

#stayConnectedText::after {
  content: "";
  display: block;
  width: 100%; /* Full width of the text */
  height: 3px; /* Thickness of the line */
  background: linear-gradient(135deg, #0093e9 0%, #80d0c7 100%);
  margin-top: 5px; /* Space between text and line */
  border-radius: 10px; /* Smooth edges */
}

.instagramFeed h1 {
  max-width: 1200px;
  margin: 15px 0px;
  text-align: center;
}

.instagramFeedFrame {
  margin-top: 20px;
  width: 100%;
  max-width: 1200px;
  height: 1020px;
  border: none;
}

/* Mobile first approach */
@media (max-width: 767px) {
  .hero {
    margin: 0;
    padding: 0;
  }

  .container {
    width: 100%;
  }

  .navLogo {
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }

  .navLogo img {
    height: 35px; /* Decrease logo size for mobile */
  }

  /* Optionally, you can also hide any navMenu or navbar items if they exist */
  .navbar,
  .socialIcons {
    display: none;
  }

  .hamburger-icon {
    display: block; /* Show hamburger icon on mobile */
    position: absolute;
    top: 30px;
    left: 30px;
  }

  .drawer-close {
    position: absolute;
    right: 15px;
    top: 30px;
  }

  .loginCard,
  .forgotPasswordCard,
  .newRegistrationCard {
    width: 100%; /* Ensure the card takes full width */
    box-sizing: border-box;
    margin: 20px;
  }

  .loginCard h2 {
    font-size: 24px;
  }

  .inputContainer input {
    width: 100%; /* Make inputs take full width */
    box-sizing: border-box;
  }

  .primaryButton {
    width: 100%; /* Button should be full-width */
  }

  .register a {
    font-size: 14px;
  }

  .forgotPassword a {
    font-size: 12px;
  }

  /* Hero Image adjustments */
  /* .profileImage {
    max-width: 100%; 
    display: block; 
    margin-left: auto; 
    margin-right: auto; 
    height: 90vh;
  } */

  /* .heroInfoSection {
    display: none;
  } */

  .hero {
    height: 80px;
    background: #333333;
  }
  .hero-content {
    display: none;
  }

  .heroInfoSectionMobileView {
    display: flex;
    flex-direction: column;
    text-align: center;
    max-width: 1000px;
    margin: 20px;
    align-items: center;
  }

  .profileImageContainerMobileView {
    width: 150px; /* Size of the circular image */
    height: 150px;
    border-radius: 50%; /* Make the image circular */
    overflow: hidden; /* Ensure the image stays within the circle */
    margin: 30px auto 0px; /* Center the image and add space below */
  }

  .profileImageMobileView {
    width: 100%; /* Make the image fill the container */
    height: 100%;
    object-fit: cover; /* Ensure the image covers the circular container */
    object-position: top; /* Ensure the center of the image (the face) is shown */
  }

  .heroInfoSectionMobileView #typedTextMobileView {
    font-family: "Shadows Into Light", cursive;
    font-size: 40px;
    font-weight: bold;
    color: black;
    margin: auto 0px;
  }

  .heroInfoSection #typedText {
    font-size: 40px; /* Adjust the font size for smaller screens */
  }

  .roadmapSteps {
    flex-direction: column; /* Stack the cards vertically */
  }

  .roadmapCard {
    flex: 1 1 100%; /* Take up full width of the container */
    max-width: 100%; /* Ensure the card takes full width */
    margin-bottom: 20px;
  }

  .roadmapCard h3 {
    margin: 0px;
  }

  .aiTools {
    width: 100%;
  }

  .aiToolsCardContainer {
    padding: 30px;
  }

  .aboutKaabilEngineer p {
    padding: 0px 15px;
    font-size: 16px;
  }

  .sectionMission,
  .sectionVision {
    flex-direction: column; /* Stack icon and text vertically on smaller screens */
    text-align: center; /* Center align text on mobile */
  }

  /* Center the icon horizontally within its parent container */
  .myMissionAndVisionIcon {
    margin: 0 auto; /* Horizontally center the icon */
    display: block; /* Change from flex to block for easier centering */
  }

  .sectionMissionText h2,
  .sectionVisionText h2 {
    font-size: 20px; /* Smaller heading on mobile */
    margin-bottom: 20px;
  }

  #comments-container {
    top: 100px;
    height: calc(100vh - 100px);
  }

  .instagramFeedFrame {
    margin: 20px;
    height: 450px;
  }
}
