/* Global styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #eae8e8; /* light grey */
    color: #595959; /* darker grey */
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto; /* centers the container */
    padding: 0; /* optional: add horizontal padding if desired */
}

html {
    scroll-behavior: smooth;
}

/* Navigation Bar Styles */
nav {
    position: absolute;
    top: 0;
    left: 50%; /* center the nav */
    transform: translateX(-50%); /* center the nav */
    width: 100%;
    max-width: 1400px;
    height: 100px; /* adjust the height if needed */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(89, 89, 89, 0.8); /* semi-transparent black background */
    z-index: 1; /* make the navbar appear above other elements */
    border-bottom: 5px solid #B22222; /* fire brick red */
}

nav .nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
}

nav .logo img {
    height: 60px;
}

nav .menu a {
    margin-left: 50px;
    color: #eae8e8;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

/* Slideshow styles */
.slideshow {
    position: relative;
    width: 100%;
    height: 80vh; /* reduced from 100vh to 80vh */
    overflow: hidden;
    margin: 0 auto; /* center the slideshow */
    margin-top: 0;
    border-bottom: 5px solid #B22222; /* fire brick red */
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

#slide1:checked ~ .slides .slide1,
#slide2:checked ~ .slides .slide2,
#slide3:checked ~ .slides .slide3,
#slide4:checked ~ .slides .slide4,
#slide5:checked ~ .slides .slide5 {
    opacity: 1; /* Show the current slide when its radio button is checked */
}

.slide1 { background-image: url('hero_comp.jpg'); }
.slide2 { background-image: url('lab3_comp.jpg'); }
.slide3 { background-image: url('lab2_comp.jpg'); }
.slide4 { background-image: url('libra_comp.jpg'); }
.slide5 { background-image: url('microFULL_comp.jpg'); }

/* Hide the radio inputs */
.slideshow input[type="radio"] {
    display: none;
}

/* Dots styles */
.dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.dots label {
    display: block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #595959; /* darker grey */
    cursor: pointer;
}

/* Highlight the active dot */
#slide1:checked ~ .dots label[for="slide1"],
#slide2:checked ~ .dots label[for="slide2"],
#slide3:checked ~ .dots label[for="slide3"],
#slide4:checked ~ .dots label[for="slide4"],
#slide5:checked ~ .dots label[for="slide5"] {
    background: #B22222; /* fire brick red */
}

/* Arrows styles */
.arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 30px; /* Adjust padding as needed */
    transform: translateY(-50%);
    z-index: 1;
}

.arrows label {
    display: block;
    width: 60px;
    height: 60px;
    text-align: center;
    line-height: 60px;
    cursor: pointer;
    position: relative;
}

.arrows label:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: solid #eae8e8; /* light grey */
    border-width: 0 10px 10px 0;
    display: inline-block;
    padding: 20px;
}

.arrows .left:before {
    transform: translate(-50%, -50%) rotate(135deg);
}

.arrows .right:before {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* About section */
.about {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
    background-color: #ffffff;
    border-bottom: 5px solid #B22222; /* fire brick red */
}

.about h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 40px;
    color: #B22222;
}

.about p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-align: justify;
}

.btn {
    display: inline-block;
    background-color: #595959; /* darker grey */
    color: #eae8e8; /* light grey */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    font-size: 1.5rem;
    transition: all 0.3s ease-in-out;
}

.btn:hover {
    background-color: #B22222; /* fire brick red */
    color: #eae8e8; /* light grey */
}

/*Latest Video Section */
/* Video Section Styles */
.video-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
    background-color: #ffffff;
    border-bottom: 5px solid #B22222; /* Fire brick red */
}

.video-section h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 40px;
    color: #B22222;
}

.video-container {
    max-width: 1000px; /* Adjust as needed */
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 16 / 9; /* Maintains 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.video-description {
    font-size: 1.25rem;
    color: #595959;
    margin-top: 20px;
    text-align: center;
}


/* Projects section */
.projects {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.projects a {
    display: block;
    text-decoration: none; /* remove underline from links */
    color: inherit; /* ensure the text color remains the same */
    margin-bottom: 30px;
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    width: 100%;
    color: #B22222; /* Fire brick red color */
    text-align: center;
}

.project {
    margin: 20px;
    width: 350px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease-in-out;
    border-radius: 8px; /* Add border radius */
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 20px rgba(0,0,0,0.5);
}

.project img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-top-left-radius: 8px; /* Add border radius */
    border-top-right-radius: 8px; /* Add border radius */
}

.project h3 {
    font-size: 2rem;
    margin-top: -10px;
    padding: 10px;  /* add spacing between info section and tile borders */
    color: #B22222;
}

.project p {
    font-size: 1.25rem;
    padding: 10px;  /* add spacing between info section and tile borders */
    text-align: justify;
}

.project h4 {
    font-size: 0.8rem;
    margin-left: 20px;
    color: #595959;
}

/* Footer Formatting */
footer {
    background-color: #595959; /* darker grey */
    padding: 0px 0;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    height: 25px;
    background-color: #B22222; /* fire brick red */
}

.footer-content p {
    margin-bottom: 10px;
    margin-top: 10px;
    color: #eae8e8; /* light grey */
}

.footer-content ul {
    list-style-type: none;
    padding: 10px;
}

.footer-content ul li {
    display: inline;
    margin: 0 30px;
}

.footer-content ul li a {
    color: #eae8e8; /* light grey */
    text-decoration: none;
}

.footer-content ul li a:hover {
    color: #B22222; /* fire brick red */
}

/* Increase the size of footer icons */
.footer-content ul li a i {
    font-size: 4rem; /* Adjust the size as needed */
}

/* Blog post & learn more styles */
.blog-post {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
    background-color: #ffffff;
}

.blog-post h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #B22222;
}

.blog-post h4 {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 20px;
    color: #595959;
}

.blog-post p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: justify;
}

.blog-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: 20px auto;
}

figure {
    display: inline-block;
    text-align: center;
    max-width: 800px;
    width: 100%;
    margin: 20px auto;
}

figcaption {
    font-size: 1rem;
    text-align: justify;
    font-style: italic;
    color: #595959;
    margin-bottom: 20px;
}

.page-top-spacer {
    height: 100px;
}

.blog-post p2 {
    font-size: 1.5rem;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    nav .nav-container {
        padding: 0 20px;
    }

    nav .menu a {
        margin-left: 20px;
        font-size: 1.25rem;
    }

    .about h2, .projects h2 {
        font-size: 2rem;
    }
    

    .about p, .project p {
        font-size: 1rem;
    }

    .btn {
        font-size: 1.25rem;
    }

    .project {
        width: 100%;
        margin: 10px 0;
    }

    .project img {
        height: auto;
    }

    /* Adjust arrow sizes for smaller screens */
    .arrows label {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }

    .arrows label:before {
        border-width: 0 7px 7px 0;
        padding: 14px;
    }
}
