/* General Styles */
body, html {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* Ensure the body has a minimum size */
    min-width: 320px;  /* Minimum width */
    min-height: 600px; /* Minimum height */
    overflow-x: hidden; /* Prevent horizontal scrollbars */
}

/* Custom Scrollbar Styling (for Webkit browsers like Chrome, Safari) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* For non-Webkit browsers, set scrollbar color (FF, Edge) */
body {
    scrollbar-color: #888 #f1f1f1;
    scrollbar-width: thin;
}

.tab {
    display: flex;
    background-color: #333;
    padding: 10px;
}

.tab button {
    background-color: #333;
    color: white;
    border: none;
    font-size: 17px;
    padding: 14px 30px;
    cursor: pointer;
    transition: 0.5s;
}

.tab button:hover {
    background-color: #575757;
}

.tab button.active {
    background-color: #4CAF50;
}

.tabcontent {
    display: none;
    padding: 20px;
    height: 100%;
}

.tabcontent h1, .tabcontent h2 {
    color: #333;
}
/* ... existing styles ... */
a:hover {
    color: #0056b3; /* Darker blue on hover */
    text-decoration: underline; /* Underline on hover */
}
a {
    text-decoration: none;
    color: #007BFF; /* Default link color */
    font-weight: bold;
    transition: color 0.3s, text-decoration 0.3s; /* Smooth transition */
}
.tooltip {
    visibility: hidden;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
    position: absolute;
    bottom: 100%;
    left: 10%;
    transform: translateX(-50%);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.copy-tag:active .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Add padding to link container for better spacing */
.contact-info a {
    margin-top: 10px;
    display: inline-block; /* Allow block level behavior with margin */
}

/* Add focus styles for better accessibility */
a:focus {
    outline: 3px solid #0056b3; /* Blue border on focus */
    outline-offset: 2px;
}
.research-item {
    display: flex;
    flex-direction: row; /* Arrange items horizontally */
    align-items: center; /* Align items at the top */
    justify-content: space-between; /* Space between the items */
    background-color: #f4f4f4;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    flex-wrap: nowrap; /* Allow items to wrap on smaller screens */
}
/* Adjust .text-content to ensure proper sizing */
.research-item .text-content {
    flex: 1 1 40%; /* Flex-grow: 1; Flex-shrink: 1; Flex-basis: 60% */
    background-color: #f0f0f0;
    padding: 20px;
    box-sizing: border-box;
    min-width: 0; /* Allow to shrink below content size */
}

/* Ensure the iframe fills the available space */
.research-item .text-content iframe {
    width: 100%;
    height: auto; /* Adjust as needed */
    border: none;
    min-height: 500px;
    /* Ensure iframe content doesn't force container to expand */
    max-width: 100%;
    overflow: hidden;
}
.research-item img {
    flex: 0 0 55%; /* Flex-grow: 0; Flex-shrink: 0; Flex-basis: 35% */
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-left: 20px; /* Add margin to separate from iframe */
    box-sizing: border-box;
    min-width: 200px; /* Optional: set a minimum width */
}

.project-item {
    display: flex;
    flex-direction: row; /* Arrange items horizontally */
    align-items: center; /* Align items at the top */
    justify-content: space-between; /* Space between the items */
    background-color: #f4f4f4;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    flex-wrap: nowrap; /* Allow items to wrap on smaller screens */
}
/* Adjust .text-content to ensure proper sizing */
.project-item .text-content {
    flex: 1 1 40%; /* Flex-grow: 1; Flex-shrink: 1; Flex-basis: 60% */
    background-color: #f0f0f0;
    padding: 20px;
    box-sizing: border-box;
    min-width: 0; /* Allow to shrink below content size */
}

/* Ensure the iframe fills the available space */
.project-item .text-content iframe {
    width: 100%;
    height: auto; /* Adjust as needed */
    border: none;
    min-height: 500px;
    /* Ensure iframe content doesn't force container to expand */
    max-width: 100%;
    overflow: hidden;
}
.project-item img {
    flex: 0 0 55%; /* Flex-grow: 0; Flex-shrink: 0; Flex-basis: 35% */
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-left: 20px; /* Add margin to separate from iframe */
    box-sizing: border-box;
    min-width: 200px; /* Optional: set a minimum width */
}



/* Fade-in effect for iframe */
@keyframes fadeInIframe {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.research-item .text-content iframe {
    opacity: 0;
    animation: fadeInIframe 0.6s ease forwards;
    animation-delay: 0.3s; /* Adjust delay as needed */
}
.project-item .text-content iframe {
    opacity: 0;
    animation: fadeInIframe 0.6s ease forwards;
    animation-delay: 0.3s; /* Adjust delay as needed */
}
/* Fade-in effect for image */
@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: translateX(20px); /* Slide in from the right */
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.research-item img {
    opacity: 0;
    animation: fadeInImage 0.6s ease forwards;
    animation-delay: 0.6s; /* Adjust delay to occur after iframe */
}
.project-item img {
    opacity: 0;
    animation: fadeInImage 0.6s ease forwards;
    animation-delay: 0.6s; /* Adjust delay to occur after iframe */
}



/* Ensure the contact info is spaced well */
.contact-info p {
    color: #555;
}
.contact-info, .things-about-me {
    background-color: #f9f9f9;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Flex container for .things-about-me */
.things-about-me {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap; /* Allows wrapping on smaller screens */
}

/* Styling for the text content */

/* Styling for the image content */
.things-about-me div {
    flex: 1 1 35%; /* Adjusts the width to 35% */
    padding: 50px;
    box-sizing: border-box;
    display: flex;
    justify-content: center; /* Centers the image */
}

/* Image styling */
.things-about-me img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .things-about-me {
        flex-direction: column;
    }

    .things-about-me div,
    .things-about-me img {
        flex: none;
        width: 100%;
        padding: 10px;
    }

    .things-about-me img {
        margin-top: 20px; /* Adds space between text and image */
    }
}
/* Fade-in effect for each paragraph line */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* Optional: adds a slight movement from bottom to top */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Ensure the text remains visible after the animation ends */
.things-about-me p {
    opacity: 1; /* Override initial opacity after animation completes */
    animation: fadeIn 0.6s ease forwards;
}

p {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    font-family: 'Arial', sans-serif;
    font-size: 1.1em; /* Slightly larger text for better readability */
    line-height: 1.8; /* Increase line height for better readability */
    color: #333; /* Darker text for contrast */
    text-align: justify; /* Justified alignment for a cleaner look */
    margin-bottom: 20px; /* Add space between paragraphs */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
    padding: 10px; /* Padding for better spacing */
    border-left: 4px solid #2196F3; /* A left border for emphasis */
    word-wrap: break-word; /* Break long words onto the next line */
    overflow-wrap: break-word; /* Ensure compatibility with older browsers */

}
/* Hover effect */
p:hover {
    color: #2196F3; /* Change text color on hover */
    cursor: pointer; /* Change cursor to indicate interactivity */
}
/* Styling for the unordered list */
ul {
    list-style-type: none; /* Remove default bullet points */
    padding-left: 0; /* Remove default padding */
    margin: 20px 0; /* Add some space around the list */
}

/* Styling for list items */
li {
    font-family: 'Arial', sans-serif;
    font-size: 1.1em; /* Slightly larger text for readability */
    line-height: 1.7; /* Increased line height for spacing */
    color: #555; /* Dark gray color for the text */
    margin-bottom: 15px; /* Add spacing between items */
    padding-left: 25px; /* Add some space to the left of the text */
    position: relative; /* Necessary for positioning the pseudo-element */
}

/* Bullet point style using pseudo-element */
li::before {
    content: "•"; /* Custom bullet point */
    font-size: 1.5em; /* Increase the size of the bullet */
    color: #2196F3; /* Blue color for the bullet */
    position: absolute; /* Positioning it to the left */
    left: 0;
    top: 50%;
    transform: translateY(-50%); /* Center the bullet vertically */
}

/* Hover effect on list items */
li:hover {
    color: #2196F3; /* Change text color to blue on hover */
    cursor: pointer; /* Show pointer cursor on hover */
}
@media (max-width: 800px) {
  
    h3 h1 h2 {
        font-size: .9em;
    }
    .research-item {
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Align items at the top */
        justify-content: start; /* Space between the items */
        box-sizing: border-box;
        flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    }

    .research-item .text-content iframe {
        height: 300px; /* Reduce iframe height for mobile screens */
        border: none;
        overflow-y: auto; /* Allow vertical scrolling inside the iframe */
    }
    .research-item img {
        margin-left: 0; /* Remove margin for image on smaller screens */
        width: 100%; /* Make images take full width */
    }
    .research-item .text-content {
        width: 100%; /* Ensure text content takes up full width */
        padding: 10px; /* Adjust padding for smaller screens */
        box-sizing: border-box;
        flex: 1;
    }
    
}