/*reset browser css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width:none;
}

html {
    scroll-behavior: smooth;
}
/*main*/
body {
    display: flex; 
    justify-content: center; /*center child elements horizontally */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7em;
    width: 100%;
    margin: 0;
    padding-top: 80px;
    scroll-behavior: smooth;
}
.light-mode {
    background: white;
    color: black;
}
 
.dark-mode {
    background: black;
    color: white;
}
a {
    font-size: 20px;
    text-decoration: none;
    font-weight: 600;
}
a .bg-primary {
    color: black;
}
h1 {
    padding: 20px;
    font-weight: 800;
    margin-top: 0;
}
p {
    font-weight: 600;
}
.text-primary {
    color:#ffffff;
}
.bg-dark {
    background: #000000;
}
.bg-primary {
    background-image: linear-gradient(to bottom right,#3b8fb3,#51b484, #51b484); 
    color: #000;
}
.dark-mode .bg-primary {
    background-image: linear-gradient(to bottom right,#3b8fb3,#51b484, #51b484); 
    color: #000;
}
.bg-light {
    background-image: linear-gradient(to bottom right,#42a0c8,#5dce98, #5dce98);
}



#navbar {
    position:fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    height: 62px;
    z-index: 9999;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    background-color: #ffffff;
    color: #fff;
    overflow: visible;
}
.dark-mode #navbar {
    background-color: #000;
}
#navbar img {
    position: absolute;
    width: 160px;
    transition: transform 0.3s ease; /* Smooth hover effect */
}
#navbar img:hover {
    transform: scale(1.3);
    transform-origin: left top;
}
#navbar a .logo-left{
    width: 160px;
    height: 160px;
}
.dark-mode #navbar a {
    color: #fff;
}
#navbar ul {
    float: right;
    list-style: none;
}
#navbar ul li {
    float: left;
    margin: 1px;
}
#navbar ul li a {
    display: block;
    width: 100%;
    padding: 16px;
    text-align: center;
    font-weight: 700;
    border-radius: 7%;
    color: #000000;
}   
.current {
    background-image: linear-gradient(to bottom right,#3b8fb3,#51b484, #51b484); 
}
#navbar ul li a:hover {
    background-image: linear-gradient(to bottom right,#42a0c8,#5dce98, #5dce98);
    color: #000000;
}
button {
    display: block;
    max-width: 100%;
    padding: 16px;
    text-align: center;
    font-weight: 700;
    border-radius: 7%;
    border: none;
    background-color: #ffffff;
}
.dark-mode button {
    display: block;
    max-width: 100%;
    padding: 16px;
    text-align: center;
    font-weight: 700;
    border-radius: 7%;
    border: none;
    background-color: #000000;
    color: #fff;
}
.top_margin {
    margin-top: 150px;
}
.container { /*content block of the page*/
    width: 100%;
    max-width: 1600px;
    padding: 0px;
    margin: 0 auto;
}


/*main logo*/
.central-logo {
    width: 23%;
    position: absolute;
    bottom: 32vh;
    left: 38vw;
    border-radius: 100%;
}
.central-logo:hover {
    scale: 1.3;
}

/*bubbles*/
.bubble {
    position: absolute;
    border-radius: 100%;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
.bubble.left-top {
    width: 7%;
    opacity: 0.5;
    animation-name: left-top;
    animation-duration: 38s;
}
.bubble.right-top {
    width: 5%;
    opacity: 0.5;
    animation-name: right-top;
    animation-duration: 50s;
}
.bubble.contact {
    width: 18%;
    animation-name: contact;
    animation-duration: 50s;
}
.bubble.contact-bubble {
    width: 18%;
    animation-name: contact;
    animation-duration: 50s;
}
.bubble.projects {
    width: 17.5%;
    animation-name: projects;
    animation-duration: 50s;
}
.bubble.projects-bubble {
    width: 18%;
    animation-name: projects;
    animation-duration: 50s;
}
.bubble.bottom-right {
    width: 15%;
    animation-name: bottom-right;
    animation-duration: 40s;
}
.bubble.top-center {
    width: 12%;
    animation-name: top-center;
    animation-duration: 38s;
}
.bubble.bottom-left {
    width: 12%;
    animation-name: bottom-left;
    animation-duration: 35s;
}
.bubble.bottom-left2 {
    width: 10%;
    animation-name: bottom-left2;
    animation-duration: 40s;
}
.bubble.mini-center {
    width: 3%;
    opacity: 0.5;
    animation-name: mini-center;
    animation-duration: 52s;
}
.bubble.mini-right {
    width: 3%;
    animation-name: mini-right;
    animation-duration: 49s;
}
@keyframes left-top {
    0% {bottom: 70vh; left: 18vw; position:absolute}
    50% {bottom: 70vh; left: 20vw; position:absolute}
    100% {bottom: 70vh; left: 18vw; position:absolute}
}
@keyframes right-top {
    0% {bottom: 75vh; left: 75vw; position:absolute}
    50% {bottom: 75vh; left: 73vw; position:absolute}
    100% {bottom: 75vh; left: 75vw; position:absolute}
}
@keyframes contact {
    0% {bottom: 33vh; left: 70vw; position:absolute}
    50% {bottom: 33vh; left: 60vw; position:absolute}
    100% {bottom: 33vh; left: 70vw; position:absolute}
}
@keyframes projects {
    0% {bottom: 50vh; left: 22vw; position:absolute}
    50% {bottom: 50vh; left: 15vw; position:absolute}
    100% {bottom: 50vh; left: 22vw; position:absolute}
}
@keyframes bottom-right {
    0% {bottom: 10vh; left: 53vw; position:absolute}
    50% {bottom: 10vh; left: 55vw; position:absolute}
    100% {bottom: 10vh; left: 53vw; position:absolute}
}
@keyframes top-center {
    0% {bottom: 70vh; left: 55vw; position:absolute}
    50% {bottom: 70vh; left: 57vw; position:absolute}
    100% {bottom: 70vh; left: 55vw; position:absolute}
}
@keyframes bottom-left {
    0% {bottom: 25vh; left: 10vw; position:absolute}
    50% {bottom: 25vh; left: 12vw; position:absolute}
    100% {bottom: 25vh; left: 10vw; position:absolute}
}
@keyframes bottom-left2 {
    0% {bottom: 10vh; left: 30vw; position:absolute}
    50% {bottom: 10vh; left: 28vw; position:absolute}
    100% {bottom: 10vh; left: 30vw; position:absolute}
}
@keyframes mini-center {
    0% {bottom: 30vh; left: 40vw; position:absolute}
    50% {bottom: 30vh; left: 44vw; position:absolute}
    100% {bottom: 30vh; left: 40vw; position:absolute}
}
@keyframes mini-right {
    0% {bottom: 30vh; left: 80vw; position:absolute}
    50% {bottom: 30vh; left: 76vw; position:absolute}
    100% {bottom: 30vh; left: 80vw; position:absolute}
}



#projects-title {
    color: #000;
    text-align: center;
}
.dark-mode #projects-title {
    text-align: center;
    color: #ffffff;
}
/* Container for the grid */
#works {
    display: grid; /*Grid layout*/
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); /* Create columns with a minimum width of 400px */
    gap: 20px; /*Space between grid items*/
    max-width: 1200px;
    justify-self: center;
}
/* Card styling */
#project-card {
    max-width: 100%;
    width: 450px;
    height: auto; /*Allow card height to adjust based on content*/
    display: flex;
    flex-direction: column; /*Stack image and text vertically*/
    align-items: center; /*Center horizontally */
    border-radius: 10px;
    text-align: center;
    padding: 20px; /*Padding to ensure content doesn't touch edges*/
}
#project-card:hover {
    background-image: linear-gradient(to bottom right,#42a0c8,#5dce98, #5dce98)/*hover*/
}

/* Image styling */
#project-card img {
    display: block;
    justify-self: center;
    max-width: 80%;
    width: 350px;
    height: 250px; /* Prevent image from getting too large */
    margin-bottom: 10px; /* Add space between the image and the text */
    border-radius: 5%;
    margin: 0 auto;
}
/* Text styling */
#project-card p {
    margin: 0; /* Remove default margin around text */
    margin-top: 50px;
    font-size: 16px; /* Adjust font size if needed */
    color: #333; /* Text color */
    text-align:center;
}
#project-card a {
    margin-bottom: -50px;
}



.contacts-flex {
    margin-top: 10%;
    display:flex;
    max-width: 80vw;
    align-items: center;
    justify-content: center;
}
.icon {
    max-width: 50%; /* Keep the icon size as it is */
    height: auto;
    position: relative; /* Required for positioning the hover image */
    justify-content: center;
}
.icon img {
    max-width: 60%; /* Keep icon dimensions intact */
    display: flex;
    justify-self: center;
    height: auto;
    transition: transform 0.3s ease; /* Smooth hover effect */
}
.icon img:hover {
    transform: scale(1.1); /* Slight zoom on hover */
}
.copy:hover {
    transform: scale(1.1);
}
/* Hover image styling */
.hover-image2 {
    position: absolute;
    top: 0; /* Align hover image with the icon */
    left: 80%; /* Place the hover image 10px to the left of the icon */
    width: 100%; /* Adjust size of hover image */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease; /* Smooth fade-in effect */
    pointer-events: none; /* Ensure it doesn't interfere with hover state */
}
.hover-image1 {
    transform: scaleX(-1);
    position: absolute;
    top: 0; /* Align hover image with the icon */
    right: 80%; /* Place the hover image to the right of the icon */
    width: 100%; /* Adjust size of hover image */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease; /* Smooth fade-in effect */
    pointer-events: none; /* Ensure it doesn't interfere with hover state */
}
.icon:hover .hover-image1 {
    opacity: 1; /* Show hover image when hovering over the icon */
}
.icon:hover .hover-image2 {
    opacity: 1; /* Show hover image when hovering over the icon */
}
#copyEmailButton {
    position: relative;
    max-width: 10vw;
    margin: 0 auto;
    border-radius: 10px;
    font-size: 1em;
}
#emailMessage { /* Styling for the copy notification */
    display: flex;
    justify-self: center;
    margin-top: 10px;
    width: 200px;
    background-color: #D3D3D3 !important;/* Grey background */
    color: rgb(0, 0, 0);
    padding: 0px 5px 0px 5px;
    border-radius: 5px;
    font-size: 15px;
    border: 6px solid #1f7b4a !important; /* Green border */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Disable interactions with this element */
}



.text-about-me {
    justify-self: center;
    background-color: #8ed0a3;
    text-align: center;
    max-width: 700px;
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 30px;
    border-radius: 3%;
    overflow: hidden;
}
.dark-mode .text-about-me {
    background-color: #15302b;
    border-radius: 1%;
}
.text-about-me p {
margin-top: 30px;
}
#readMoreButton {
    margin: 0 auto;
    opacity: 0;
}
#readMoreButton:hover {
    background-image: linear-gradient(to bottom right,#42a0c8,#5dce98, #5dce98);
}
.mina img{
    display: flex;
    justify-self: center;
    border-radius: 50%;
    max-width: 50%;
    margin: 0 auto;
    margin-bottom: 20px;
    border: #51b4a2;
    border-width: 8px;
    border-style: solid;
}
#cv {
    max-width: 100%;
    width: 350px;
    height: auto; /*Allow card height to adjust based on content*/
    display: flex;
    flex-direction: column; /*Stack image and text vertically*/
    align-items: center; /*Center horizontally */
    border-radius: 10px;
    text-align: center;
    margin: 0 auto;
    padding: 20px; /*Padding to ensure content doesn't touch edges*/
}
#cv:hover {
    background-image: linear-gradient(to bottom right,#42a0c8,#5dce98, #5dce98)/*hover*/
}
/* Image styling */
#cv img {
    display: block;
    justify-self: center;
    max-width: 100%;
    width: 350px;
    height: auto;
    margin-bottom: 10px; /* Add space between the image and the text */
    border-radius: 5%;
    margin: 0 auto;
}
/* Text styling */
#cv p {
    margin: 0; /* Remove default margin around text */
    margin-top: 50px;
    font-size: 25px; /* Adjust font size if needed */
    color: #000000; /* Text color */
    text-align:center;
    font-weight: 700;
}
.dark-mode #cv p {
    color: white;
    margin-top: 70px;
}
#cv a {
    margin-bottom: -50px;
}

.portal-container {
    display: flex;
    justify-content: space-between;
    justify-self: center;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    height: 200px;
    position: relative;
    padding: 20px 0;
    margin: 0 auto;
}
.portal {
    overflow: hidden;
    position: relative;
    z-index: -1;
}
.portal img {
    max-height: 200px;
}
.logos-wrapper {
    display: flex;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 150px;
    overflow: hidden;
    left: 50%; /* (+) Move to the center */
    transform: translateX(-50%); /* (+) Adjust back by half its own width */
  }
.portal-logos {
    display: flex;
    gap: 20px;
    max-width: 80%;
    position: absolute;
    width: max-content; /* Ensures content doesn't wrap */
    animation: moveInfinite 40s linear infinite;
}
.portal-logos img{
    min-width: 100px;
    opacity: 1;
/*    animation: fadeEffect 10s linear infinite;*/
    overflow: hidden;
}
@keyframes moveInfinite {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-307%); } /* Moves halfway through duplicate */
  }
.left-portal {
    position: absolute;
    left: -70px;
}
.right-portal {
    position: absolute;
    right: -70px;
}
.certs img {
    display: block;
    justify-self: center;
    position: relative;
    margin: 0 auto;
    max-width: 70%;
    width: 700px;
    border: 5px solid #5184b4;
    border-radius: 10px;
}
.certs h1 {
    text-align: center;
}

footer {
    position:fixed;
    bottom: 0;
    left:0;
    width: 100%;
    max-height: 50px;
    text-align: center;
    margin-top:50px;
    background-color: #ffffff;
    color: #606060;
    font-size: 1em;
}
.dark-mode footer {
    background-color: #000000;
}
.bottom-room {
    padding-bottom: 50px;
    min-height: 100%;
}