* {
    margin: 0px 0px;
    padding: 0;
    box-sizing: border-box;
    font-family: "Gill Sans Extrabold", sans-serif;
    /* font-family: "Goudy Bookletter 1911", sans-serif; */
    font-family: Arial, sans-serif;

}

html {
    scroll-behavior: smooth;
}
*, *::before, *::after {
    box-sizing: inherit;
}
/* BODY */
body {
    background-image: linear-gradient(to right, #535457, #000);
    padding: 0;
    margin: 0;
    font-size: 16px;
    display: block;
}


#header {
    background-size: cover;
    background-position: center;
}
.header:before {
    position: absolute;
    content: "";
    height: 13vh;
    background-color: #FFD166;
    width: 100%;
    margin-top:0;
    opacity: 0.4;
}
.header img {
    height: 100%;
    width: 35vw;
    max-width: 35vw;
    display: block;
    margin-left: 8vw;
    margin-top: 3.5vh;
}

.container {
    padding: 1.5vw 8vh;
    position: relative;
}

.row {
    display: flex;
    align-items: center;
    position: relative;
}

/* Default styles for larger screens */
nav {
    display: inline-flexbox;
    /* align-items: flex-start; */
    margin-left: 40vw;
    /* margin-top: 0.7vh; */
    max-width: 40vw;
    position: relative;
    display: flex;

}

nav ul {
    list-style: none;
    margin: 0 0;
    padding: 0;
    position: relative;
}

nav ul li {
    display: inline-block;
    position: relative;
    margin: 0 2vw;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.6vw;
    max-block-size: 1.6vw;
    position: relative;
    display: inline-block;
}

/* nav ul li a::after {
    content: '';
    width: 0;
    height: 0.3vh;
    background: #FFD166;
    position: absolute;
    left: 0;
    bottom: -0.5vw;
    transition: 0.5s;
} */

nav ul li a:hover {
    width: 100%;
    color: #fff;
    transform: scale(1.1);
}
.row.row1 {
    margin-top: 0vh;
    position: relative;
}
.logo{
    font-size: 8vw;
    /* max-block-size: 8vw; */
    /* max-height: fit-content; */
    margin-left: 5vw;
    position: relative;
}
.logo:hover {
    width: 100%;
    color: #fff;
    transform: scale(1.2);
}
.row.row1 img{
    height: 100%;
    max-width: 3.5vw;
    margin-top: 1%;
    display: block;
    margin-left: 5vw;
}
/* icon row

/* Common styles for the header section */
.row.row2{
    margin-top: 4%;
}
.head-row2-col1 {
    max-width: 50%;
    height: auto;
    display: block;
}

.head-row2-col2 {
    color: white;
    text-align: left;
    display: block;
}

.head-row2-col2 h1 {
    font-size: 2vw;
    max-width: fit-content;
}

.header-text {
    position: relative;
    font-size: 7vw;
    margin-left: -4vw;
    margin-top: 10%;
}

.sub-text {
    position: relative;
    font-size: 3vw;
    max-block-size: 3vw;
    color: #FFD166;
    text-align: center;
    font-family: 'cursive';
}
.icons{
    display: flex;
    position: relative;
    justify-content: center;
    text-align: justify;
}
.social-icons{
    margin: 5vh 0;
    gap: 2.7vw;
    margin-top: -2vh;
    display: flex;
    justify-content: flex-start;
}
.social-icons a{
    text-decoration: none;
    font-size: 2.5vw; /* Adjust the font size for the social icons as needed */
    max-block-size: 2.5vw;
    color: white;
    transition: transform 0.5s;
}
.social-icons a:hover{
    color: #FFD166;
    transform: scale(1.3);
}

/* <!-------------------------------------HEADER END--------------------------------------> */
/* <!---------------------------------------ABOUT-----------------------------------------> */
.about {
    margin-top: 10vh; /* Set the top margin using viewport height (vh) units */
    position: relative;
    display: block;
    align-items: center;
    margin-left: 8vw;
    margin-right: 8vw;

}
.about-big{
    font-size: 45px; /* Use a percentage of viewport width (vw) for font size */
    max-block-size: 3vw;
    max-height: 10%;
    text-align: center;
    color: #FFD166;
    position: relative;
    letter-spacing: 8px; /* Use vw for letter spacing */
    text-shadow: 2px 2px 4px rgba(43, 41, 41, 0.8); /* Add a shadow effect */
}
.about-big::after {
    content: ""; /* Add an empty content for the pseudo-element */
    position: absolute; /* Position the pseudo-element */
    bottom: -5px; /* Adjust the position of the pseudo-element */
    left: 43%; /* Adjust the starting position of the underline */
    width: 14%; /* Set the width of the underline */
    border-bottom: 3px solid; /* Add the underline style */
}
  
.about-big::before {
    margin-left: 5vw; /* Use vw for margin */
    position: absolute;
    width: 10vw;
    /* max-width: 15%; */
    height: 5px; /* Use vh for height */
    max-height: 5px;
    bottom: -1vh; /* Use vh for margin */
}

.about-small{
    margin-top: 5vh; /* Adjust the top padding as needed */
    text-align: center;
    color: white;
    font-size: 20px; /* Use vw for font size */
    max-block-size: 1.3vw;
}
  

/* <!-------------------------------------ABOUT END---------------------------------------> */

/* <!-------------------------------------EDUCATION & SKILLS---------------------------------------> */

.es {
    display: inline-flexbox;
    column-gap: 0px;
    flex: 1;
}
.ess {
    margin-top: 25%;
}

#about-section{
    margin-bottom: 10%;
}
/* .education-skills{
    margin-top: 5vh;
} */

  /* title effect */
  .underline{
    position: relative;
    cursor: pointer;
  }
  .underline::after {
    content: '';
    display: block;
    width: 100%;
    height: 0.5px;
    background-color: #FFD166;
    position: absolute;
    bottom: -15px;
    left: 0;
    transform: scaleX(1); /* Show the line by default */
    transition: transform 0.3s ease-in-out;
  }

/* effect for skill column */
  
  /* done title effect */
  .education-column,
  .skills-column {
    width: calc(50% - 8%); /* the gap between 2 columns*/
    padding: 10px;
    position: relative;
    padding-top: 30px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.3));
    border-radius: 10px;
    overflow: hidden; /* Ensure the background doesn't overflow */
    color: #FFD166;
    box-shadow: 10px 5px 4px rgba(0, 0, 0, 0.4);
    margin-left: 4vw;
    margin-bottom: 3vh;

  }
  .education-column {
    /* margin-left: 6vw; */
    padding-bottom: 50px;

  }
  .skills-column {
    /* margin-right: 6vw; */
    margin-top: 0vh;
  }
  /* education row for schools */
  .education-row {
    display: flex;
    /* margin-bottom: 20px; */
    flex: 0 0 calc(50% - 10px); /* Setting column width with gap */
    padding: 20px;
    padding-left: 30px;
    
  }

  .skill-row {
    display: flex;
    flex: 0 0 calc(50%); /* Setting column width with gap */
    padding-top: 20px;
    padding-left: 40px;
  }
  .skills-column > .skill-row > .column {
    flex: 0 0 60%; /* First column width */
    
  }

  #bullet{
    margin-top: 30px;
    list-style: none; /* Remove default list styles */
    margin-left: 30px;
  }

#bullet li {
    padding-bottom: 17px; /* Adjust vertical padding */
    font-size: 18px;
  }
#school-col{
    margin-left: 4vw;
}

  .education-column::before,
  .skills-column::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    background: black;
    opacity: 0.5;
    z-index: -1;
    border-radius: 10px;
    top: -10px; /* Adjusting position to create a gap */
    left: -10px; /* Adjusting position to create a gap */
    width: calc(100% + 20px); /* Adding extra width for the gap */
    height: calc(100% + 20px); /* Adding extra height for the gap */
    
  }
  .education-column h2,
  .skills-column h2 {
    text-align: center;
    z-index: 1;
  }
  .education-list,
  .skills-list {
    list-style: none;
    padding: 5vh 0;
    z-index: 1;
  }
  .education-list li,
  .skills-list li {
    margin-bottom: 17px;
  }
  .big-text {
    font-size: 20px; /* Larger font size */
    color: white; /* White color */
  }
  .small-text {
    font-size: 14px; /* Smaller font size */
    color: #FFD166; /* Yellow color */
    font-style: italic; /* Italic style */

  }
  /* the year of school */
  #year-col {
    font-weight: 700;
    font-size: medium;
    position: relative;
    text-decoration: none;
    color: white;
    transition: color 0.3s, border-bottom-color 0.3s;
  }
  #year-col:hover {
    color: #FFD166; /* Change color on hover */
    transform: scale(1.1); /* Scale the text to 1.5 times on hover */
  }
/* skill list  */
.skills-list {
    cursor: pointer;
    color: white;
    font-size: 17px;
    cursor: pointer;
}

.additional-column {
    border-radius: 5px;
    margin-top: 10px; /* Adjust spacing between items */
    display: none; /* Initially hide the additional column */
    padding: 5px;
    position: relative;
    z-index: 1; /* Ensure text is on top of the background */
    position: relative;
    text-decoration: none;
  }
  .skills-list li {
    transition: transform 0.3s; /* Add transition for smooth scaling */
    transform-origin: center left; /* Set the transform origin to the center */

  }
  .skills-list li:hover {
    transform: scale(1.2); /* Scale up the item on hover */
    color: #FFD166;
  }
  .skills-list li:hover, .additional-column {
    display: block; /* Show column when li is hovered */
  }
  /* <!-------------------------------------EDUCATION & SKILLS END---------------------------------------> */

/* <!---------------------------------------PROJECT---------------------------------------> */
.projects {
    margin-top: 20vh; /* Set the top margin using viewport height (vh) units */
    align-items: center;
}
.project-header {
    margin-top: 0;
    margin-left: 7vw;
    /* margin-right: 15vw; */
    font-size: 45px;
    /* max-block-size: 3.5VW; */
    text-align: left;
    color: #FFD166;
    padding-bottom: 1vh;
    position: relative;
    letter-spacing: 1vw;
}


.project-header:after {
    content: '';
    display: block;
    width: 93%;
    height: 2px;
    background-color: #FFD166;
    position: absolute;
    bottom: -10px;
    left: 0;
}

/* see more button */
.see-more{
    align-items: center;
    position: relative;
    text-align: center;
}
/* .work-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
    margin-top: 30px;
    margin-left: 7vw;
    margin-right: 7vw;
    height: 40vh;

} */

.work-list.list1 {
    position: relative;
    display: grid;
    margin-top: 8vh;
    margin-left: 6vw;
    margin-right: 6vw;
    height: 50%;

}
.work-list.list2 {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 30px;
    margin-top: 0px;
    margin-left: 6vw;
    margin-right: 6vw;

}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.work.top {
    margin-top: 10vh;
    margin-left: 6vw;
    margin-right: 6vw;
    height: 50%;
}
.work img {
    width: 100%;
    border-radius:10px;
    display: block;
    transition: transform 0.5s;
    position: relative;
}

.layer {
    weight: 100%;
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 1, 2, 0.7), #FFD166);
    border-radius: 10px;
    position: absolute;
    margin-left: 0;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 1vh;
    text-align: center;
    font-size: 20px;
    color: #fff;
    transition: height 0.5s;
}

.layer h3 {
    font-weight: 500;
    margin-bottom: 1vw;
}

.layer a {
    margin-top: 1vw;
    color: white;
    text-decoration: none;
    font-size: 1.5vw;
    line-height: 3.6vw;
    background: black;
    opacity: 0.7;
    width: 3.5vw;
    height: 3.5vw;
    border-radius: 10px;
    text-align: center;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}


/* <!------------------------------------PROJECT END--------------------------------------> */
/* <!---------------------------------------CONTACT---------------------------------------> */
.contact {
    margin-top: 15vh;
    margin-left: 10vw;
    margin-bottom: 3vh;
}

.contact-left {
    flex-basis: 35%;
    margin-top: -10vh;
    text-align: left;
}
.row.bee{
    flex: auto;
}
.bee1{
    height: auto; /* Maintain aspect ratio */
    animation: moveUpDown 0.8s ease-in-out infinite alternate; /* Faster animation: 0.5 seconds */
}
.row.bee img {
    height: 100%;
    max-width: 8vw;
    display: block;
    margin-top: 3.5vh;
    margin-bottom: 3vh;
    margin-right: 0.5vw;
}
.row.bee h1{
    font-size: 25px;
    font-weight: 600;
    padding-bottom: 5vh;
    text-align: left;
    color: #FFD166;
    margin-left: 1.3vw;
    margin-top: 10vh;
    position: relative;
}
/* CONTACT LEFT */
.contact-left p {
    margin-left: 0vw;
    color: white;
    font-size: 16px;
}

.contact-left p i {
    color: white;
    padding: 1vh 1vw;
    margin-right: 1vw;
    font-size: 1vw;
}

/* CONTACT title */
.sub-title {
    font-size: 30px;
    font-weight: 600;
    padding-bottom: 3vh;
    color: #FFD166;
}

.btn.btn2 {
    margin-top: 3vh;
    display: inline-block;
    text-align: center;
    padding: 10px 15px;
    background: #FFD166;
    border-radius: 10px;
    text-decoration: none;
    margin-left: 4vw;
}

.btn.btn2 p {
    color: black;
    font-size: 15px;
}

.contact-right {
    margin-left: 7vw;
    flex-basis: 35%;
    margin-right: 16vw;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 2vh 2vw;
    margin: 1vh 0;
    color: white;
    font-size: 1vw;
    border-radius: 10px;
    resize: none;
}
.btn {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3); /* Apply a shadow */
    transition: transform 0.3s, box-shadow 0.3s; /* Add transition for smoothness */
  }
  
.btn:hover {
    transform: translateY(-2px); /* Move button upwards on hover */
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.4); /* Adjust shadow on hover */
}

.btn.btn3 {
    margin-top: 2vh;
    display: inline-block;
    text-align: center;
    padding: 10px 40px;
    background: #FFD166;
    border-radius: 10px;
    text-decoration: none;
    margin-left: 85%;
}

form .btn3 {
    padding: 1vw 4vw;
    font-size: 15px;
    cursor: pointer;

}

.copyright {
    text-align: center;
    padding: 0.5vh 0;
    background-color: transparent;
    background-size: cover;
    width: 100%;
    font-weight: 100;
    color: white;
    opacity: 0.7;
    margin-bottom: -2%;
}

.copyright p {
    font-size: 12px; /* Adjust the font size using viewport width (vw) units */;
}

/* <!------------------------------------CONTACT END--------------------------------------> */

/* <!------------------------------------JAVASCRIPT---------------------------------------> */
/* <!--------------------------------JAVASCRIPT END---------------------------------------> */
/* ------------------------------------SMALL SCREEN------------------------------------------ */
/* Add a media query for smaller screens (adjust the max-width value as needed) */
@media (max-width: 768px) {
    #header {
        height: auto; /* Allow the header to adapt its height on smaller screens */
    }
    .header:before {
        height: 8vh;
        /* Add any other adjustments you need for smaller screens */
    }
    .container {
        padding: 1% 1%;
    }

    .row {
        flex-direction: column;
    }

    .header img {
        max-width: 75%; /* Adjust the image size for smaller screens */
    }
    .logo {

        max-width: 4vw;
        max-block-size: 4vw;
        height: auto;
        margin-left: 5vw;
        position: relative;
        margin-top: 3.5vh;
        display: block;
        animation: moveUpDown 2s ease-in-out infinite alternate; /* Use the defined animation */

    }

    .header-text,
    .sub-text {
        text-align: center;
        margin-left: 0;
        /* font-size: 0.9rem;  */
    }
    nav {
        flex-direction: row;
        align-items: center;
        margin: 0 0; /* Adjust margins for smaller screens */
        display: flex;
    }

    nav ul li {
        margin: 1rem 0; /* Adjust margins for smaller screens */
    }

    nav ul li a {
        font-size: 15px; /* Adjust font size for smaller screens */
    }
    .header-text {
        padding-top: 1rem;
        font-size: 2rem;
        letter-spacing: 0.2rem;
    }
    .sub-text {
        font-size: 1.2rem;
        letter-spacing: 0.2rem;
    }
    .icons {
        align-items: center;
        text-align: center;
    }
    .social-icons {
        margin: 1rem 0;
        align-items: center;
    }

    .social-icons a {
        font-size: 1.5rem;
        margin-right: 0.2rem;
    }
    .row.row1 img {
        max-width: 10vw;
        margin-left: 2vw;
    }
    .about h1 {
        font-size: 3rem;
        letter-spacing: 2px;
    }
    .projects {
        padding: 0 1rem;
    }

    .contact {
        margin-top: 5vh;
        margin-left: 2vw;
        margin-bottom: 3vh;
    }

    .contact-left {
        flex-basis: 100%;
        margin-top: 0;
        margin-left: 0;
        text-align: center;
    }

    .row.bee img {
        height: 10vh;
        max-width: 30vw;
        display: block;
        margin: 3vh auto;
    }

    .row.bee h1 {
        font-size: 2vh;
        font-weight: 600;
        padding-bottom: 3vh;
        text-align: center;
        color: #FFD166;
        margin: 0;
    }

    /* CONTACT LEFT */
    .contact-left p {
        margin-left: 0;
        color: white;
        font-size: 2vh;
    }
    /* Adjust styles for smaller screens here */
    .contact {
        margin: 5vh 2vw 3vh;
    }

    .contact-left {
        flex-basis: 100%;
        margin: 0;
        text-align: center;
    }

    .sub-title {
        font-size: 4vw;
        padding-bottom: 2vh;
    }

    .btn.btn2 {
        margin-top: 3vh;
        margin-left: 0;
        width: 50%; /* Adjust the button width */
    }

    .btn.btn2 p {
        font-size: 2.5vw;
    }

    .contact-right {
        margin-left: 7vw;
        margin-right: 7vw;
        flex-basis: 100%;
    }
    /* Adjust styles for smaller screens here */
    form input,
    form textarea {
        padding: 4vh 4vw;
        font-size: 2vw;
        border-radius: 10px;
    }

    .btn.btn3 {
        margin-top: 4vh;
        padding: 2vh 2vw;
        font-size: 2vw;
        margin-left: 0;
    }

    form .btn3 {
        padding: 2vw 2vw;
        font-size: 2vw;
    }

    .copyright {
        padding: 1vh 0;
        font-size: 1.2vh;
    }
    .education-column,
    .skills-column {
        display: inline-block;
        width: 80%;
    }

    .column {
        width: 100%;
        margin-bottom: 30px;
    }
}
#msg{
    color: #61b752;
    margin-top: 10px;
    display: block;
}

@keyframes moveUpDown {
    0% {
      transform: translateY(0); /* Start position */
    }
    100% {
      transform: translateY(-10px); /* End position */
    }
}

@keyframes rotateBackAndForth {
    0% {
        transform: perspective(500px) rotateY(-5deg); /* Rotate slightly to the left */
    }
    100% {
        transform: perspective(500px) rotateY(5deg); /* Rotate slightly to the right */
    }
    }

@keyframes rotateScale {
    0% {
        transform: perspective(500px) rotateY(-5deg) scale(0.9); /* Initial state: rotate left and scale down */
    }
    50% {
        transform: perspective(500px) rotateY(5deg) scale(1.1); /* Middle state: rotate right and scale up */
    }
    100% {
        transform: perspective(500px) rotateY(-5deg) scale(0.9); /* Final state: rotate left and scale down */
    }
    }
