/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Main content will expand to push the footer down */
main {
    flex: 1;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

/* Navigation */
nav {
    margin: 20px 0;
    text-align: center;
}

nav a {
    margin: 0 15px;
    font-weight: bold;
    color: #007BFF;
}

/* Main Content */
main {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #007BFF;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 5px;
}

h3 {
    color: #333;
}

/* Project Cards */
.project-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.download-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.download-button:hover {
    background-color: #0056b3;
}

.contact-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.contact-button:hover {
    background-color: #0056b3;
}

.project-card img {
    max-width: 100%;
    border-radius: 5px;
}

.project-card h3 {
    margin-top: 0;
}

.project {
    text-align: center;
    text-decoration: none;
    color: #333;
    background: #f4f4f4;
    padding: 10px;
    border-radius: 10px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.project:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 per row */
    gap: 15px;
    justify-items: center;
    padding: 20px;
}

.project img {
    width: 100%; /* Make images fill the container */
    max-width: 300px; /* Limit max width */
    height: 200px; /* Fixed height to maintain uniformity */
    object-fit: cover; /* Ensures images fill the space without distortion */
    border-radius: 10px; /* Optional: Adds rounded corners */
}
.project p {
    text-align: center;
    font-weight: bold;
    margin-top: 5px;
}
.project h3 {
    margin-top: 10px;
    font-size: 18px;
}

/* Footer remains at the bottom */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

footer a {
    color: #fff;
}

footer a:hover {
    color: #007BFF;
}

.mermaid {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent unnecessary scrolling */
    max-width: 100%;
    transform: scale(0.85); /* Reduce default size */
    transform-origin: top center; /* Keep scaling centered */
}

.mermaid svg {
    width: auto;
    max-width: 80vw; /* Reduce max width */
    min-width: 500px; /* Prevent text cutting */
    height: auto;
}

/* Smaller nodes */
.mermaid .node rect, 
.mermaid .node polygon {
    width: 100px !important; /* Decrease width */
    height: 40px !important; /* Decrease height */
}

/* Reduce line thickness */
.mermaid .edgePath path {
    stroke-width: 1px; 
}

/* Smaller font */
.mermaid text {
    font-size: 12px !important;
}

.mermaid:hover {
    transform: scale(1); /* Zoom in on hover */
    transition: transform 0.3s ease-in-out;
}


  .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    text-align: center;
    width: 200px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item img:hover {
    transform: scale(1.1);
}

/* Video Gallery Styles */
.video-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.video-gallery-item {
    flex: 1 1 calc(80% - 40px); /* Makes videos larger */
    max-width: calc(80% - 40px); /* Ensures they don’t shrink too much */
    text-align: center;
}

.video-gallery-item iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: none; /* Remove iframe border */
}

.video-gallery-item p {
    margin-top: 10px;
    font-size: 1rem;
    color: #333;
}

/* Make videos full-width on smaller screens */
@media (max-width: 768px) {
    .video-gallery-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}


/* Video Carousel Styles */
.video-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 80%;
    margin: auto;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.video-container iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.video-container p {
    margin-top: 10px;
    font-size: 1rem;
    color: #333;
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6); /* Slightly darker for better visibility */
    color: white;
    border: none;
    font-size: 2.5rem; /* Slightly larger */
    width: 60px; /* Increased size */
    height: 60px; /* Keep it perfectly circular */
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1); /* Slight scale effect */
}

/* Push arrows further out */
.left-arrow {
    left: -70px; /* Move further left */
}

.right-arrow {
    right: -70px; /* Move further right */
}

/* Carousel Dots */
.carousel-dots {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.dot {
    width: 14px; /* Slightly bigger dots */
    height: 14px;
    background: gray;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.dot.active {
    background: black;
    transform: scale(1.2); /* Slightly enlarge active dot */
}


header {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow to the header */
    padding: 10px 20px; /* Adds some padding for better spacing */
    background-color: #2c2c2c; /* Ensures the header has a solid background */
    position: relative; /* Ensures the shadow is visible */
    z-index: 10; /* Keeps the header above other content */
}

.header-image {
    float: left;
    height: 160px;
    width: 160px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
    border: 2px solid #000; /* Adds a black border */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Adds a subtle shadow to the image */
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}


/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav a {
        display: block;
        margin: 10px 0;
    }
    
    main {
        padding: 10px;
    }
}