@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz@9..144&family=Roboto:wght@400&display=swap');

/* Basic Css */

* {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  /* text-transform: capitalize; */
  transition: all 0.2s linear;
  /* color: #a1b2b1; */
  color: black;
  line-height: 1.6em;
  scroll-behavior: smooth;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 8px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #808080
}

::-webkit-scrollbar-thumb:hover {
  background:	#D3D3D3
}

/* The Main container  */

.main-container {
  height: 100vh;
  width: 100%;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: #eae4d7;
  margin: 0px;
}

body, html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
  margin: 0;
  padding: 0;
}

/* Styling the header : Navigation Bar */

header {
  margin: 0px;
}

a {
  text-decoration: none;
  color: #00ab46;
  font-weight: bold;
}

ul {
  list-style: none;
}

section {
  padding: 2rem 9%;
}

.logo {
  font-size: 2.5rem;
  font-weight: bolder;
  display: inline-block;
}

.logo i {
  padding-right: 2rem;
  color: black;
}

.logo {
  font-size: 35px;
  letter-spacing: 1px;
  cursor: pointer;
}

span {
  color: #00ab46;
}

.span2 {
  font-family: 'Fraunces', serif;
}

/* Styling the nav container */

.nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: #eae4d7;
  height: 65px;
  font-size: 20px;
  padding-left: 8%;
  padding-right: 8%;
}

.menu li:hover {
  cursor: pointer;
  transform: scale(1.2);
}

.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
}

.menu > li {
  margin: 0 1rem;
  overflow: hidden;
}

/*Container for menu button  */

.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#menu-toggle {
  display: none;
}

/*  Creating the menu button */

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  /* background-color: white; */
  background-color: #00ab46;
  position: absolute;
  height: 6px;
  width: 32px;
  border-radius: 3px;
  color: black;
}

.menu-button::before {
  content: '';
  margin-top: -8px;
}

.menu-button::after {
  content: '';
  margin-top: 8px;
}

/*  Adding Functionality to the Hamburger Menu with CSS  */

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(45deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  /*  transforms the hamburger icon into a cross  */
  transform: rotate(-45deg);
}

/* Styling the hero section */

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  height: calc(100% - 65px);
  align-items: center;
  background-color: #eae4d7;
}

/* Styling the hero image */

.hero .image {
  flex: 1 1 30rem;
}

.hero .image img {
  width: 100%;
  height: 100%;
  padding: 1rem;
  animation: floaty 3s linear infinite;
}

/* animating the main image   */

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0rem);
  }
  50% {
    transform: translateY(3rem);
  }
}

/* Styling the buttons for the hero and about section */

button {
  background-color: transparent;
  color: #00ab46;
  text-decoration: none;
  border: 2px solid black;
  font-weight: bold;
  font-size: 15px;
  padding: 13px 30px;
  border-radius: 30px;
  transition: 0.4s;
}

.btn1,
.btn2 {
  margin: 1rem;
}

.btn1 {
  background-color: #00ab46;
  color: white;
  border: none;
  padding: 15px 32px;
}



button:hover {
  cursor: pointer;
  
}

/* herocontent hero section */

.herocontent {
  margin: auto;
}

.hero .herocontent {
  flex: 1 1 40rem;
}

h1 {
  color: black;
  margin: 20px 0px 20px;
  font-size: 80px;
  font-family: 'Fraunces', serif;
  letter-spacing: 2px;
}

.surname {
  font-family: 'Fraunces', serif;
}

h2 {
  color: black;
  font-size: 50px;
  margin-bottom: 15px;
}

h4 {
  letter-spacing: 2px;
  font-size: 20px;
}

h3 {
  font-size: 30px;
  color: black;
  letter-spacing: 2px;
}

.tag2 {
  margin-top: 5px;
  margin-bottom: 30px;
}

.hero p {
  font-size: 25px;
}

/*Styling the About section*/

.about {
  width: 100%;
  height: 100%;
  padding: 150px 0px;
  background-color: #e8e9e3;
}

.about img {
  width: 100%; 
  max-width: 430px; 
  height: auto; 
  border-radius: 30px;
  box-shadow: rgba(26, 24, 24, 0.25) 0px 5px 10px 2px;
  animation: pulse 5s infinite ease-in-out;
}

.about-text {
  width: 100%; 
  max-width: 550px; 
  padding: 0 15px; 
}

@keyframes pulse {
  0%, 100% {
      transform: scale(0.95);
  }
  50% {
      transform: scale(1);
  }
}

/* about container */

.main {
  max-width: 1130px; 
  width: 100%; 
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
   background-color: #e8e9e3;
}

.about-text h2 {
  font-size: 50px;
  text-transform: capitalize;
  margin-bottom: 20px;
  font-weight: bold;
  color: #00ab46;
  font-family: 'Fraunces', serif;
}

.about-text h5 {
  letter-spacing: 2px;
  font-size: 22px;
  margin-bottom: 25px;
  text-transform: capitalize;
  font-weight: bold;
  color: black;
  font-family: 'Frances', serif;
}

.about-text p {
  letter-spacing: 1px;
  line-height: 28px;
  font-size: 18px;
  margin-bottom: 85px;
}


/*
Skills 

*/

/* skills section styling */

.skills {
  height: 100vh;
}

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

section .title {
  position: relative;
  text-align: center;
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 85px;
  padding-bottom: 20px;
  letter-spacing: 1px;
  font-family: 'Fraunces', serif;
  color: #00ab46;
}

.skills .title::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 180px;
  height: 3px;
  background: black;
  transform: translateX(-50%);
}

.skills .skills-content .column {
  width: calc(50% - 30px);
}

.skills .skills-content .left .text {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 10px;
}

.skills .skills-content .left p {
  text-align: justify;
  font-size: 18px;
}

.skills .skills-content .left a {
  display: inline-block;
  background: rgb(57, 95, 165);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  padding: 8px 16px;
  margin-top: 20px;
  border-radius: 6px;
  border: 2px solid rgb(57, 95, 165);
  transition: all 0.3s ease;
}

.skills .skills-content .left a:hover {
  color: rgb(57, 95, 165);
  background: none;
}

.skills .skills-content .right .bars {
  margin-bottom: 15px;
}

.skills .skills-content .right .info {
  display: flex;
  margin-bottom: 5px;
  align-items: center;
  justify-content: space-between;
}

.skills .skills-content .right span {
  font-weight: 500;
  font-size: 18px;
}

.skills .skills-content .right .line {
  position: relative;
  border: 1px solid #504f4f;
  padding: 5px;
  border-radius: 10px;
  height: 10px;
  background: #504f4f;
}

.skills .skills-content .right .progressBar {
  border: 1px solid #504f4f;
  padding: 5px;
  border-radius: 10px;
}

.skills .skills-content .right .line::before {
  content: '';
  position: absolute;
  height: 100%;
  left: 0;
  top: 0;
  /* background: rgb(57, 95, 165); */
  transition: width 0.6s ease;
  height: 10px;
  border-radius: 5px;
  vertical-align: middle;
  align-self: center;
  background-image: -moz-linear-gradient(0deg, #3a6dc1 0%, #00ab46 100%);
  background-image: -webkit-linear-gradient(0deg, #3a6dc1 0%, #00ab46 100%);
  color: #00ab46;
}

.skills-content .right .mern::before {
  width: 92%;
}

.skills-content .right .js::before {
  width: 70%;
}

.skills-content .right .react::before {
  width: 60%;
}

.skills-content .right .python::before {
  width: 89%;
}

.skills-content .right .java::before {
  width: 35%;
}

.skills-content .right .git::before {
  width: 95%;
}

.max-width {
  max-width: 1300px;
  padding: 0 80px;
  margin: auto;
}

.headbar {
  background: none;
  color: black;
}

/* experience */

/* experience container */

.CV-page {
  max-width: 800px;
  min-height: 100vh;
  overflow: auto;
  margin: 0 auto;
  padding: 0 2em;
  color: #222222;
  font-size: 1em;
  font-family: 'Lato', sans-serif;
  margin-top: 13%;
}

.CV-secondaryHeading {
  position: relative;
  margin: 1em 0 0;
  margin-bottom: 40px;
  padding-bottom: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 50px;
  color: #00ab46;
  font-family: 'Fraunces', serif;
}

.CV-secondaryHeading::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 180px;
  height: 3px;
  background-color: #111;
  transform: translateX(-50%);
  margin-top: 10px;
}

.CV-grid {
  display: table;
}

.CV-grid-column {
  display: table-cell;
}

.CV-timeline {
  position: relative;
  margin: 0 0 0 0.5em;
  padding-left: 1.5em;
  border-left: solid 1px #a1b2b1;
}

.CV-timeline:first-of-type {
  margin-top: 1em;
}

.CV-timeline:last-of-type {
  border-left-color: transparent;
}

.CV-timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: -0.5em;
  display: block;
  width: 1em;
  height: 1em;
  border: solid 1px #222222;
  background-color: #ffffff;
  border-radius: 50%;
}

.CV-timeline-heading {
  margin: 0;
  padding-bottom: 0.5em;
  line-height: 1em;
  font-weight: normal;
  -webkit-transform: translateY(-0.1em);
  -ms-transform: translateY(-0.1em);
  transform: translateY(-0.1em);
}

.CV-timeline-heading-title {
  line-height: 1;
  font-style: italic;
  text-transform: uppercase;
  /* background: none;
    -webkit-text-fill-color: #249f9f;
    -webkit-background-clip: text; */
}

.CV-timeline-heading-location {
  font-size: 0.8em;
  background: none;
  /* -webkit-text-fill-color: #a1b2b1;
    -webkit-background-clip: text; */
  color: #111;
}

.CV-timeline-heading-duration {
  display: block;
  font-size: 0.7em;
  background: none;
  -webkit-text-fill-color: #6f6f6f;
  -webkit-background-clip: text;
}

.CV-timeline-details {
  display: block;
  margin: 0;
  padding-bottom: 2em;
  padding: 0 0 1em 1em;
  list-style-type: disc;
  font-size: 15px;
}

.CV-timeline-details-item,
.CV-job-timeline-item {
  margin-bottom: 0.3em;
}

/* service */

.service {
  background-color: rgb(232, 233, 227);
  width: 100%;
  padding: 100px 0px;
  height: 110%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px; /* Adjusts spacing between cards */
}

@media (max-width: 1000px) {
  .service {
    height: 140%;
  }
}




.service .card {
  flex-basis: calc(33.333% - 20px); /* Three cards per row by default, minus gap */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s; /* Smooth scaling on hover */
}

.service .card:hover {
  transform: scale(1.05); /* Slightly enlarge card on hover */
}

/* Responsive adjustments */

/* For tablets */
@media (max-width: 768px) {
  .service .card {
    flex-basis: calc(50% - 20px); /* Two cards per row */
    height: 180%;
  }
}

/* For mobile phones */
@media (max-width: 480px) {
  .service .card {
    flex-basis: 100%; /* One card per row */
  }
}

.title h2 {
  font-size: 50px;
  margin: 30px auto;
  text-align: center;
  font-weight: 500;
  color: #00ab46;
  font-family: 'Fraunces', serif;
}

.title h2 ::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 180px;
  height: 3px;
  background: rgb(161, 178, 177);
  transform: translateX(-50%);
  margin-top: 10px;
}

.box {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  margin: auto;
}

.owl-carousel{
  margin-left: 50px;
}

.owl-nav{
  width: 500%;
}

.owl-carousel .owl-item {
  margin-right: 0 !important;
}

.card {
  padding: 20px 35px;
  background-color: rgb(232, 233, 227);
  border-radius: 20px;
  margin: 10px;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: rgb(26 24 24 / 25%) 0px 5px 10px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: inherit;
  height: 100%;
}


.card i {
  font-size: 50px;
  display: block;
  text-align: center;
  margin: 25px 0px;
  color: #f9004d;
}

h5 {
  flex: 2;
  color: #00ab46;
  font-size: 23px;
  margin-bottom: 15px;
}

.pra p {
  font-size: 18px;
  line-height: 27px;
  margin-bottom: 25px;
  margin-top: 25px;
}

.card .button {
  background-color: transparent;
  color: #00ab46;
  text-decoration: none;
  border: 2px solid black;
  font-weight: bold;
  padding: 9px 22px;
  border-radius: 30px;
  transition: 0.4s; 
}

.card .button:hover {
  background-color: transparent;
  border: 2px solid #249f9f;
  cursor: pointer;
}






/* contact me  */

.contact {
  height: 100vh;
}

.contactUs {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4%;
  margin-bottom: 5%;
}

.contact-box {
  max-width: 850px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #fff;
  box-shadow: 0px 0px 19px 5px rgb(124, 122, 122);
}

.contactLeft {
  background-color: rgba(230, 230, 230, 0.6);
  height: 100%;
}

.contactRight {
  padding: 25px 40px;
  /* background: #191919; */
}

.contact-content {
  font-size: 17px;
  margin: 1rem;
}

.contacth2 {
  position: relative;
  padding: 0 0 10px;
  margin-bottom: 10px;
  font-weight: 500;
  color: black;
}

.contact-img {
  margin: 1rem;
  border-radius: 100%;
  width: 244px;
  height: 200px;
}

.contactField {
  width: 100%;
  border: 2px solid rgba(0, 0, 0, 0);
  outline: none;
  background-color: rgba(230, 230, 230, 0.6);
  padding: 1rem 1rem;
  font-size: 1.5rem;
  margin-bottom: 22px;
  transition: 0.3s;
}

.contactField:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.contactTextarea {
  min-height: 150px;
}


.contactBtn {
  width: 100%;
  padding: 0.5rem 1rem;
  background-color: transparent;
  border: 2px solid black;
  font-size: 1.5rem;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
  color: black;
}

.contact-info {
  font-size: 20px;
  text-align: center;
  padding: 1rem;
  text-align: justify;
  margin-left: 20%;
}

.contact-info p {
  color: black;
  margin: 1rem;
}

.contactField:focus {
  border: 2px solid rgb(33, 31, 47);
  background-color: white;
}

.contactTitle {
  text-align: center;
  font-size: 50px;
  font-weight: 500;
  color: #00ab46;
  font-family: 'Fraunces', serif;
}

/* footer */

#social_icon_footer {
  background-color: #dedede;
  text-align: center;
  margin-top:5%;
}

#social_icon_footer .social {
  color: #00ab46;
  font-size: 30px;
  padding: 1rem;
}

#social_icon_footer .social:hover {
  transform: scale(1.2);
}

.footertext {
  font-size: 15px;
  color: #444;
  font-weight: bold;
}

/* media queries  */


@media (max-width: 991px) {
  html {
    font-size: 55%;
  }
  header {
    padding: 2rem;
  }
  section {
    padding: 2rem;
  }
}

@media screen and (max-width: 880px) {
  .contact-box {
    grid-template-columns: 1fr;
  }
  .contactLeft {
    height: 100%;
  }
  html {
    font-size: 50%;
    overflow-x: hidden;
    overflow-y: scroll;
  }
  .main {
    width: 100%;
  }
  .box {
    display: block;
  }
  .card {
    margin: 15px auto;
  }
  .service {
    height: fit-content;
  }
  .contact {
    height: fit-content;
  }
}

@media (max-width: 768px) {
  .menu-button-container {
    display: flex;
  }
  a {
    color: black;
  }
  .menu {
    position: absolute;
    top: 0;
    margin-top: 50px;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 200;
  }
  .menu li:hover {
    transform: scale(1);
  }
  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }
  #menu-toggle:checked ~ .menu li {
    border: 1px solid #9f9a9a;
    height: 2.5em;
    padding: 0.5em;
  }
  .menu > li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em 0;
    width: 100%;
    color: black;
    background-color: #e8e8e8;
  }
  .menu > li:not(:last-child) {
    border-bottom: 1px solid #444;
  }
  .logo i {
    color: white;
  }
  
  .main {
    width: 100%;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
    overflow-x: hidden;
    overflow-y: scroll;
    text-align: center;
  }
  h1 {
    font-size: 60px;
  }
  h2 {
    font-size: 40px;
  }
  h3 {
    font-size: 17px;
  }
  .service {
    height: fit-content;
  }
  .box {
    display: block;
  }
  .card {
    margin: 15px auto;
  }
  .CV-page {
    height: fit-content;
  }
  .contact {
    height: fit-content;
    margin: 1rem;
    padding: 0;
  }
  section .title {
    font-size: 60px;
  }
  .max-width {
    padding: 0;
    max-width: fit-content;
  }
  .CV-page {
    padding: 0 1em;
  }
}



/* Add Responsive Media Queries */
@media (max-width: 768px) {
  body {
    font-size: 14px; /* Smaller font size on small devices */
  }
  
  .container, .header, .footer {
    padding: 20px; /* Adjust padding for smaller screens */
  }
  
  .main-content {
    flex-direction: column; /* Stack content vertically in smaller viewports */
  }

  /* Profile Image Adjustment */
  .aboutimg {
    display: block; /* Ensure the image is displayed */
    max-width: 50%; /* Adjust width to be 50% of its container */
    height: auto; /* Maintain aspect ratio */
    margin: 0 auto; /* Center the image */
  }
  
  /* University Courses Cards Adjustment */
  .course-card {
    width: 100%; /* Allow each card to take full width of its container */
    margin-bottom: 20px; /* Add some space between the cards */
  }

  .course-card .card-content {
    font-size: 14px; /* Adjust font size for readability */
  }

  .image{
    max-width: 30%;
    max-height: 30%;
    margin-left: 30%;
  }

}

@media (max-width: 480px) {
  body {
    font-size: 12px; /* Even smaller font size for very small devices */
  }
  
  h1, h2, h3 {
    font-size: 3rem; /* Adjust heading sizes for small screens */
  }
  /* Further adjustments for very small devices */
  .aboutimg {
    max-width: 70%; /* Increase width to take more space for better visibility */
  }
  
  .course-card .card-content {
    font-size: 12px; /* Slightly reduce font size for very small devices */
  }

  .image{
    max-width: 30%;
    max-height: 30%;
    margin-left: 30%;
  }
}




/* Removing old media queries specific to cards and adding new adjustments */

/* General card style adjustments */
.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  width: auto; /* Adjust card width to be more responsive */
}

.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

/* Responsive adjustments for project cards */
@media screen and (max-width: 880px) {
  .service .card .proj{
    margin: 10px;
    flex-basis: calc(50% - 20px); /* Adjust the card size and spacing for better fit */
  }
}

@media screen and (max-width: 768px) {
  .service .card {
    flex-basis: calc(100% - 20px); /* Make cards take full width minus margin */
    margin: 10px;
  }
}

@media screen and (max-width: 700px) {
  .service .box, .service .card {
    height: auto; /* Allows the box to grow with the content */
    margin-bottom: 20px; /* Adds some space between cards when they stack */
  }
}

@media screen and (max-width: 480px) {
  .service .card {
    flex-basis: calc(100% - 300px); /* Ensure cards are full width for very small devices */
  }

  main, .about {
    box-sizing: content-box;
  }
}

@media screen and (max-width: 800px) {
  .owl-carousel > * { /* Targets all direct children of .owl-carousel */
    height: auto; /* Allows each item to grow with the content */
    margin-bottom: 20px; /* Adds some space between items when they stack */
  }

  .owl-carousel .card {
    height: auto; /* Ensures cards can grow based on their content */
  }
}

/* Adjustments for the hero section on screens smaller than 1351px */
@media screen and (max-width: 1350px) {
  #hero .herocontent h1 {
    font-size: 28px; /* Example fixed font size for h1 */
  }

  #hero .herocontent h2 {
    font-size: 24px; /* Example fixed font size for h2 */
  }

  #hero .herocontent h4 {
    font-size: 20px; /* Example fixed font size for h4 */
  }

  #hero .herocontent {
    padding: 20px; /* Adjust padding for smaller screens */
    text-align: center; /* Center align the content for a better visual appeal on smaller screens */
  }

  /* Adjust other elements in the hero section as needed for consistency */
  #hero .button-container {
    margin-top: 20px; /* Add space above the button container */
  }
}

@media (max-width: 600px) {
  .container {
    padding-bottom: calc(env(safe-area-inset-bottom) + 70px);
    font-size: 14px;
  }
}

@media screen and (max-width: 1351px) {
  #about .main {
    display: flex;
    flex-direction: column; /* Ensures the image appears above the text */
    align-items: center; /* Center the contents */
    height: auto;
  }

  #about .aboutimg {
    max-width: 40%; /* Limit the image width to prevent enlargement */
    margin-bottom: 20px; /* Add space between the image and the text */
  }

  #about .about-text {
    max-width: 80%; /* Optionally restrict the text width for readability */
    text-align: center; /* Center the text if it fits the design */
    max-width: 50%; /* Limit the width of the paragraph */
    margin: 0 auto; /* Center the paragraph */
  }
}

.parallax {
  height: 500px; /* Adjust based on desired section height */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

/* Adjustments for smaller screens to maintain performance and compatibility */
@media screen and (max-width: 768px) {
  .parallax {
    background-attachment: scroll;  /*Change to scroll to prevent potential performance issues on mobile */
    max-width: 90%;
    margin-left: 5%;
  }
  #webbu {
    display: none;
  }

  #blogs{
    display: none;
  }

  .contact-info {
    margin-left: 10%;
    font-size: 18px;
  }

}





/* Styling the hero image */

.unibild {
  flex: 1 1 30rem;
}

.unibild {
  width: 8%;
  height: 8%;
  animation: floatx 4s linear infinite;
  margin-left: 45%;
}

/* animating the main image   */

@keyframes floatx {
  0%,
  100% {
    transform: translatex(0rem);
  }
  50% {
    transform: translatex(5rem);
  }
}

@media screen and (max-width: 768px) {
  .unibild {
    width: 15%;
    height: 15%;
    margin-left: 40%;
  }
}

@media screen and (max-width: 480) {
  .unibild {
    width: 55%;
    height: 55%;
    margin-left: 35%;
  }

  

}
/* Fade-in animation */
.fade-in {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.25, 0.05, 0.25, 1);
}
.fade-in.visible {
    opacity: 1;
}

/* Staggered fade-in for experience entries */
.experience-entry:nth-child(1) {
  transition-delay: 10s;
}
.experience-entry:nth-child(2) {
  transition-delay: 0s;
}
.experience-entry:nth-child(3) {
  transition-delay: 0.5s;
}

/* Button hover effects */
.btn1:hover, .btn2:hover {
    background-color: #333;
    color: #fff;
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Image zoom effect */
.image img:hover {
    transform: scale(1.1);
    transition: transform 0.5s ease-in-out;
}


