/* ===================== */
/* PDF CV Embed Styling  */
/* ===================== */
.pdf-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.pdf-container object {
    width: 100%;
    height: 80vh;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: block;
}

.pdf-link {
    display: block;
    margin: 20px auto;
    padding: 12px 24px;
    background-color: #fff;
    color: #000 !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
    border: 1px solid #000;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pdf-link:hover, .pdf-link:focus {
    background-color: #000;
    color: #fff !important;
    text-decoration: none;
    border-color: #000;
}

@media (max-width: 768px) {
    .pdf-container object {
        display: none !important;
    }
    .pdf-link {
        display: block;
    }
}
/* global settings */
body {
    margin: 0; /* Remove default margin */
    font-family: Arial, sans-serif; /* Set Arial as the default font */
    font-size: 12px; /* Set a base font size */
    line-height: 1.5; /* Improve readability */
    color: #333; /* Set a default text color */
    text-align: justify; /* Justify text globally */
}

#bio-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 100vh; /* Full viewport height */
    padding: 5vh 7vw; /* Adds space at the top while keeping side padding */
    box-sizing: border-box; /* Ensures padding does not increase height */
}

/* DECORATIONS */ 
a:hover {
    text-decoration: underline;
}

/* navigation bar */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0; /* Remove padding to eliminate the outer spacing */
    background-color: transparent; /* Make the background transparent */
    box-shadow: none; /* Remove shadow effect */
    border-radius: 0; /* Remove rounded corners */
}

.navbar-nav {
    display: flex;
    flex-wrap: wrap; /* Ensure responsiveness */
    gap: 15px; /* Space between navigation items */
    list-style: none; /* Remove default bullet points */
    padding: 0;
    margin: 0;
}

.nav-item {
    text-align: center;
}

.nav-link {
    font-size: 1.6em; /* Match font size with bio text */
    color: #000000; /* Text color */
    text-decoration: none;
    padding: 10px 15px; /* Add padding for better click area */
    transition: color 0.3s; /* Smooth hover effect */
}

.nav-link:hover {
    color: #000; /* Slightly darker text on hover */
}

.navbar-toggler {
    background-color: transparent; /* Remove background color */
    border: none;
    padding: 0;
}

/* containers */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* sections */
.section {
    display: flex;
    align-items: center; /* Center align elements horizontally */
    justify-content: center;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-justify: inter-word;
    text-align: justify; /* Center text alignment */
    text-align-last: center;
}

.title {
    text-align: center;
}

#bio-section {
    flex-direction: column; /* Stack elements vertically */
    max-width: 800px;
}

#dev-section {
    flex-direction: row; /* Ensure horizontal stacking */
    max-width: 2000px;
}


/* images */
.bio-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin-bottom: 20px; /* Add space between the image and text */
}

.rra_gif {
    flex-shrink: 0; /* Prevent the image from shrinking */
    width: 600px; /* Adjust width as needed */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10%;
    margin-right: 20px; /* Add space between the image and text */
}

.research-image {
    /* Inherit styles from .rra_gif */
    flex-shrink: 0;
    width: 600px;
    height: auto;
    border-radius: 10%;
    margin-right: 20px; /* Keep .rra_gif margin */
    
    /* Additional styles for research images */
    margin-right: 35px; /* Override margin-right */
    transition: transform 0.2s ease-out;
    display: block;
}


/* texts */
.text h1 {
    margin: 0;
    font-size: 2.5em;
    color: #333;
}

/* texts */
.text h2 {
    margin: 0;
    font-size: 2em;
    color: #333;
}

.text p {
    margin-top: 10px;
    color: #313131;
    font-size: 1.6em;
    line-height: 1.5;
}

.text {
    flex: 1; /* Allow the text to take up remaining space */
}

.bio-header-name {
    @extend .text;
    visibility: hidden;
}


.head-text {
    margin: 0;
    font-size: 2.6em; /* Make the text big */
    color: #333; /* Text color */
    font-weight: bold; /* Optional: make it bold */
    text-align: center;
    justify-content: center; /* Center horizontally */
    align-items: center;
    visibility: hidden;
}



/* ======================== */
/* 📱 Mobile Responsive Fix */
/* ======================== */
@media (max-width: 768px) {

    /* 📌 Adjust Navbar */
    .navbar-nav {
        flex-direction: column; /* Stack menu items */
        align-items: center;
        gap: 0.625em; /* 10px / 16 */
    }

    .nav-link {
        font-size: 1.2em; /* Reduce navbar text size */
    }

    /* 📌 Fix Text Size */
    .text h1 {
        font-size: 2em; /* Reduce heading size */
    }

      /* 📌 Fix Text Size */
    .text h2 {
        font-size: 1.5em; /* Reduce heading size */
    }


    .text p {
        font-size: 1.2em; /* Reduce paragraph size */
    }

    .head-text {
        font-size: 2em; /* Adjust big headers */
    }

    /* 📌 Fix Image Scaling */
    .bio-image {
        width: 80%; /* Adjust width */
        height: auto;
    }

    .rra_gif, .research-image {
        width: 100%; /* Make full width on mobile */
        max-width: 400px; /* Prevent excessive scaling */
        height: auto;
        margin-right: 0; /* Remove extra spacing */
    }

    /* 📌 Adjust Sections & Containers */
    .container {
        min-height: auto; /* Allow content to shrink */
        padding: 20px; /* Add breathing space */
    }

    .section {
        flex-direction: column; /* Stack content */
        text-align: center;
        padding: 15px;
    }

    #bio-section, #dev-section {
        max-width: 100%; /* Ensure full width */
    }
}


/* Add this to ensure the p5 canvas is always in the background */
#p5-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Ensures it stays in the background */
  }


/* Ensure content is readable over the animation */
.section {
    background-color: rgba(255, 255, 255, 1); /* Make sections slightly transparent */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
}

/* Make the navbar links stand out */
.nav-link {
    color: rgb(0, 0, 0) !important; /* White text for contrast */
    transition: color 0.3s;
}

.nav-link:hover {
    color: rgb(0, 0, 0) !important; /* Slight hover effect */
}

/* Adjust mobile responsiveness */
@media (max-width: 768px) {
    .section {
        background-color: rgba(255, 255, 255, 1); /* Increase opacity for readability */
    }

    .nav-link {
        font-size: 1.4em; /* Make sure links are readable */
    }
}




/* TITLES effect */
.title {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #000000;
  transition: width 0.4s ease-in-out;
}

.title:hover::after {
  width: 100%;
} 

.download-button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #005bbb;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}
.download-button:hover {
  background-color: #004499;
}