/* Basic styling */
body, html {
    margin: 0;
    padding: 0;}


body {
    font-family: 'Roboto', sans-serif;
    font-size: 1.15rem;
    color: #333; /* Ensure text color is readable */

        
}

/*           PRELOADER          */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; /* Optional: Background color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#main-content {
    visibility: hidden;
}

#preloader img {
    width: 100px; /* Adjust the size of the preloader image */
    height: auto;
}

#navbar.scrolled {
    background-color: white; /* White background after scrolling */
}


/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 95%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    background-color: transparent;
}

.header-nav {
    display: flex;
    gap: 20px;
}

.header-button {
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 16px;
    transition: background-color 0.3s ease;
}

.header-button:hover {
    color: chartreuse; /* Subtle hover effect */
}

.small-logo {
    width: 80px;
    height: 80px;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

/* Hero Background (Image or Video) */
.hero-background {
    width: 100%;
    height: 90vh; /* Adjust height as needed */
}

.hero-image, .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Content (Title and Tags) Positioned Below the Image */
.hero-content {
    text-align: center;
    padding: 20px; /* Space around text for readability */
    background-color: rgb(255, 255, 255); /* Optional semi-transparent background */
    color: rgb(0, 0, 0);
}

.hero-content h1 {
    margin: 0;
    font-size: 2em;
}

.project-tags {
    font-size: 1em;
    text-align: center;
    color: #ccc; /* Slightly lighter color for tags */
}

/* video */
.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    width: auto;
}

.responsive-video {
    max-height: 80vh;
    max-width: 60%;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: #000; /* Provide a background to see the player */
}


/* Centering text container */
.text-container {
    max-width: 80%; /* Limits line width for readability */
    margin: 0 auto; /* Centers the container */
    padding: 0 20px; /* Adds padding for small screens */
    text-align: left; /* Ensures paragraphs are aligned left within the container */
}

/* Paragraph styling for readability */

.image-carousel {
    padding: 20px;
}

.carousel {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-images img {
    width: 100%;
    max-width: 600px;
    display: none;
}

.carousel-images img:first-child {
    display: block; /* Show the first image */
}

.carousel-prev, .carousel-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.project-timeline, .project-audio, .related-projects {
    padding: 20px;
}

.details-text {
    margin: 40px 100px;
    font-size: large;
}

.intro-text {
    margin: 40px;
    font-size: large; 
}

/* Image Gallery Section */
/* Image Carousel Section */
.image-carousel {
    width: 100% ; /* Full width of the viewport */
    height: 80%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Ensures no overflow */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Carousel Container */
.carousel-container {
    width: 100vw; /* Full width of the viewport */
    height: 100%; /* Adjust height as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carousel Slides */
.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

/* Carousel Images */
.carousel-image {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* Hide all images initially */
}

.carousel-image.active {
    display: block; /* Show only the active image */
}

/* Carousel Buttons */
.carousel-button {
    background-color: rgba(0, 0, 0, 0.7); /* Darker background for better visibility */
    color: white;
    border: none;
    padding: 15px 20px; /* Larger padding for bigger buttons */
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px; /* Increased font size */
    border-radius: 50%; /* Make buttons round */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    z-index: 10;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.carousel-button:hover {
    background-color: rgba(255, 255, 255, 0.8); /* Lighter on hover */
    color: #333;
    transition: background-color 0.3s ease;
}

.project-details {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.content-column {
    flex: 2; /* Larger column for text */
}

.content-column blockquote {
    margin: 20px 0;
    font-style: italic;
    font-size:2em;
    color: #555;
}

.diagram-column {
    flex: 1; /* Smaller column for diagrams */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.diagram-column img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.project-article {
    margin: 20px auto;
    max-width: 1000px;
    color: #333;
}

.text-block {
    margin-bottom: 20px;
}

.text-block p {
    margin: 0;
    text-align: justify;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
}

.highlighted-content {
    margin: 20px 0;
    text-align: center;
}

.highlighted-content blockquote {
    font-size: 2em;
    font-style: bold;
    color: grey ;
    margin: 10px 0;
}

.highlighted-content img {
    width: 100%;
    height: auto;
    margin: 10px 0;
}


/* Media query for iPhone 13, iPhone 14, and iPhone 15 (max width 393px) */
@media (max-width: 393px) {
    /* General adjustments */

    
    /* Header adjustments */
    header {
        display: flex;
        flex-direction: row; /* Keeps header in a single row */
        justify-content: space-between; /* Space between logo and nav */
        padding: 10px 15px; /* Reduced padding */
    }

    .header-nav {
        display: flex;
        flex-wrap: nowrap; /* Prevents navigation buttons from wrapping */
        gap: 10px;
    }
    .header-button {
        font-size: 0.85em; /* Slightly smaller font */
        padding: 5px 8px;
    }
    
    /* Hero Section adjustments */

    .hero-background {
        height: 250px; /* Limit hero image height */
    }
    .hero-content h1 {
        font-size: 1.4em; /* Slightly smaller font for title */
    }
    .hero-content .project-tags {
        font-size: 0.9em;
    }

    /* Project Description adjustments */
    .text-container {
        max-width: 90vw;
        padding: 0 10px; /* Reduced padding */
    }
    .details-text {
        font-size: 1em;
        line-height: 1.4;
        margin: 0 0 1em; /* Reduced margin between paragraphs */
        padding: 0 5px; /* Add slight padding for readability */
    }

    /* Carousel adjustments */
    .carousel-container {
        width: 100vw;
        height: 220px; /* Adjust height for mobile */
    }
    .carousel-button {
        padding: 8px 10px;
        font-size: 20px;
    }

    /* Timeline Section adjustments */
    .project-timeline {
        padding: 10px 15px;
    }
    .timeline-item {
        font-size: 0.9em;
    }
    
    /* Audio Section adjustments */
    .project-audio {
        padding: 10px 15px;
    }
    
    /* Related Projects Section adjustments */
    .related-projects {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 10px;
    }
    
    /* Footer adjustments */
    footer {
        font-size: 0.8em;
        padding: 10px 0;
        text-align: center;
    }
}

/* Small mobile devices (portrait) */
@media (max-width: 420px) {
    /* For very small screens like older iPhones */
    body {
        font-size: 0.9em;
    }
    .header-button {
        font-size: 0.8em;
    }

    .hero-image{
        width: 100%;
        height: auto;
    }

    .carousel-container {
        height: 180px;
    }

    .text-block {
        margin: 0 20px;
    }

    .highlighted-content blockquote {
        font-size: 1.5em; 
        margin: 5px 20px;
    }

    .video-container {
        height: auto;
    }
}

    /* Mobile devices (portrait) */
    @media (max-width: 480px) {
        /* Most smartphones */
        .header-button{
            font-size: 14px;
            padding: 8px 10px;
        }

        .small-logo{
            width: 60px;
            height: 60px;
        }

        .hero-background {
            height: 220px;
        }

        .hero-image{
            width: 100%;
            height: 100%;
        }

        .text-container {
            padding: 0 8px;
        }

        .text-block {
            margin: 0 20px;
        }

        .highlighted-content blockquote{
            font-size: 1.5em; 
            margin: 5px 20px;
        }

        .video-container {
            height: auto;
        }

        .responsive-video{
            max-width: 90%;
            max-height: 80vh;
        }
    }

/* Mobile devices (landscape) */
@media (max-width: 600px) {
    /* Slightly wider view for landscape orientation */
    .header-button{
        font-size: 14px;
        padding: 8px 10px;
    }

    .small-logo{
        width: 60px;
        height: 60px;
    }

    .carousel-container {
        height: 240px;
    }
    .text-block {
        margin: 0 20px;
    }
    .text-container {
        max-width: 90vw;
    }
    .highlighted-content blockquote{
        font-size: 1.5em; 
        margin: 5px 20px;
    }
}

/* Tablets and large mobile devices */
@media (max-width: 900px) {
    /* For devices like iPad, Galaxy Tab, larger phones in landscape */
    .header-nav {
        gap: 15px; /* More space between buttons */
    }
    .hero-background {
        height: 300px;
    }
    .carousel-container {
        height: 300px;
    }
    .text-block {
        margin: 0 20px;
    }
    .text-container {
        max-width: 80vw;
        padding: 0 15px;
    }
    .highlighted-content blockquote{
        font-size: 1.5em; 
        margin: 5px 20px;
    }

    .video-container {
        height: auto;
    }
}

/* Small laptops and desktops */
@media (max-width: 1200px) {
    /* Typical laptop screens */
    .hero-background {
        height: 350px;
    }
    .carousel-container {
        height: 80%;
    }
    .text-block {
        margin: 0 20px;
    }
    .text-container {
        max-width: 70vw;
        padding: 0 20px;
    }
    .highlighted-content blockquote{
        font-size: 1.5em; 
        margin: 5px 20px;
    }
}



