html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(190deg, #0b0e19, #353844, #131314);
    background-attachment: fixed;
    color: #ddd;
    font-size: 1.25rem;
}

li {

    list-style-type: circle;   /* or circle / disc */
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}


h1, strong {
    color: rgb(255, 187, 0);
}
/* Wrapper = 80% width, centered */
.wrapper {
    width: 90%;
    height: 90%;
    display: flex;
    flex-direction: column;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.3s ease-out;

    opacity: 1;
    transition: opacity 0.45s ease-in-out;
}


button {
    background: #ffffffdd;
    color: #222;
    padding: 10px 22px;
    border: none;
    border-radius: 50px;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: 
        background 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}


button:hover {
    background: #ffffff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* Optional: Active (pressed) effect */
button:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Content area holds the two columns */
.content {
    height: 90%; /* takes the rest */
    display: flex;
    box-sizing: border-box;
}

/* Header takes ~10% height */
.header {
    height: 10%;
    background-color: rgba(20, 20, 22, 0.801);
    color: white;
    display: flex;
    align-items: center;
    padding: 20px;
    font-size: 1.5rem;
    box-sizing: border-box;
    border-bottom: 4px solid white;

    flex-direction: row;
    justify-content: space-between;
}

.col1, .col2 {
    min-width: 0;
}

/* Column 1: 2/3 width */
.col1 {
    flex: 2;
    height: 100%;
    display: flex;

}

/* Column 2: 1/3 width */
.col2 {
    flex: 1;
    background-color: rgba(69, 69, 82, 0.829);
    padding: 20px;

    /* Space items top → bottom */
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}
.tag {
    color: #2b2b36;
    display: inline-block;
    padding: 6px 12px;
    background: #ddd;
    border-radius: 8px;
    margin-right: 6px;
    margin-bottom: 10px;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
}

.col2::-webkit-scrollbar {
    width: 6px;  /* slim scrollbar */
}

.col2::-webkit-scrollbar-track {
    background: transparent !important;   /* remove track background */
}

.col2::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);  /* the bar */
    border-radius: 10px;
}

.col2::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}


/* ######### Slideshow ######### */


    /* Slideshow container */
.slideshow {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* Main image area – 90% */
.main-image {
    flex: 0 0 85%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.685);
}

.main-image #mainSlideContainer img,
.main-image #mainSlideContainer video {
    max-width: 100%;
    max-height: 100%;
}

.main-image img:hover {
    cursor: zoom-in;
}

/* Fade animation */
.fade {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Ensure main image covers area smoothly */
.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* or cover */
}


#mainSlideContainer {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#mainSlideContainer img,
#mainSlideContainer video {
    width: 100%;
    height: 100%;
}

/* ########################################## */
/* #### Video MP4 Slideshow Integration ##### */
/* ########################################## */


.main-image video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fade-video {
    animation: fadeIn 0.5s ease-in-out;
}

.video-thumb-wrapper {
    position: relative;
    height: 100%;          /* Makes it fill the thumb-strip height */
    aspect-ratio: 16/9;
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
}

.video-thumb-wrapper:hover,
.video-thumb-wrapper.active {
    opacity: 1;
    transform: scale(1.05);
}

.thumb .video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* ⭐ Key: stretches + crops to fill fully */
}

.video-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: white;
    font-weight: bold;
    text-shadow: 0 0 10px black;
    pointer-events: none;
    z-index: 3;
}

/* dark tint overlay */
.video-thumb-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;             /* stretch full width/height */
    background: rgba(0,0,0,0.7); /* <-- adjustable tint */
    z-index: 2;           /* behind play icon, above image */
    pointer-events: none;
}

/* ########################################## */
/* ########################################## */


.thumb-strip {
    flex: 0 0 15%;
    display: flex;
    gap: 20px;
    padding: 0 10px;
    background: #000000d8;
    align-items: center;
    justify-content: flex-start; /* ⭐ FIX: Align thumbnails to the left */
    flex-shrink: 0;

    overflow-x: auto;
    scrollbar-width: auto;
    scrollbar-color: white black;
}

.thumb {
    height: 90%;
    max-height: 90%;
    width: auto;
    object-fit: contain;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.15s;
    border: 3px solid transparent;
    border-radius: 6px;
    box-sizing: border-box; /* prevents border from increasing size */
    flex-shrink: 0;
}

.thumb.active {
    opacity: 1;
    transform: scale(1.05);
    border-color: white;
}

.thumb:hover,
.thumb.active {
    opacity: 1;
    transform: scale(1.1);
        flex-shrink: 0;
}


/* Customizing scroll bar for slideshow */
.thumb-strip::-webkit-scrollbar {
    height: 10px;     /* size of the horizontal scrollbar */
}

.thumb-strip::-webkit-scrollbar-track {
    background: black;
    border-radius: 10px;
}

.thumb-strip::-webkit-scrollbar-thumb {
    background: white;
    border-radius: 10px;
}

.thumb-strip::-webkit-scrollbar-thumb:hover {
    background: #ddd;   /* slightly lighter on hover */
}



/* ######### Project Nav Stuff ######### */

.project-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 90%;
    padding-top: 30px;
}

.arrow {
    font-size: 3rem;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
    font-weight: 900;
    position: absolute;  /* <-- important */
    top: 50%;            /* center vertically */
    transform: translateY(-50%);
    z-index: 10;
}


.arrow:hover {
    transform: translateY(-50%) scale(1.2);
    color: yellow;
}


.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

.project-dots {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    padding: 15px 0;
    /* margin-top: 10px; */
    gap: 10px;
    position: relative; /* important */
    margin-bottom: 2.5%;
}

.project-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: gray;
    transition: transform 0.2s ease, background 0.2s ease;
    cursor: pointer; /* 🔥 make pointer on hover */
}

/* ACTIVE DOT */
.project-dot.active {
    background: white;
    transform: scale(1.3);
}

/* HOVER EFFECT (non-active dots grow to active size) */
.project-dot:not(.active):hover {
    transform: scale(1.3);
    background: #d0d0d0; /* optional softer hover color */
}

.mobile-arrow {
    display: none;
}


/* =======================
   ABOUT SECTION LAYOUT
   ======================= */

.about-section {
    width: 100%;
    min-height: 100vh;
    padding: 80px 10%;
    background: rgba(0,0,0,0.55);   /* kept dark background */
    /* REMOVED blur */
    /* backdrop-filter: blur(10px); */
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    position: relative;
}

.about-container {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    align-items: flex-start;
}

/* RIGHT SIDE (Photo) */
.about-photo {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.about-photo img {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    object-fit: cover;
}

/* LEFT SIDE (Text) */
.about-content {
    flex: 2;
    color: white;
    line-height: 140%;
}

/* Header: keep buttons on right */
.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Buttons on right */
.download-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: flex-end;
}

.download-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #4e73df, #3251b3);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.2s ease;
    display: inline-block;
}

.download-btn:hover {
    background: linear-gradient(135deg, #678bf5, #3f61d6);
    transform: translateY(-2px);
}

.download-btn:active {
    transform: translateY(0px);
    opacity: 0.9;
}

.information {
    color: rgb(255, 187, 0); 
    display: flex;
    flex-wrap: wrap; 
    flex-direction: row; 
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}


/* ======================
   SOCIAL BAR (NO BLUR)
   ====================== */

.about-socials-bar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 25px;
    padding: 10px 15px;

    background: rgba(0, 0, 0, 0.55);
    border-radius: 12px;
    z-index: 20;
}


.about-socials-bar .social-icon {
    width: 64px;
    height: 64px;
}

.about-socials-bar img {
    width: 100%;
    height: 100%;
    transition: transform .2s ease, opacity .2s ease;
    cursor: pointer;
}

.about-socials-bar img:hover {
    transform: scale(1.2);
    opacity: 0.85;
}


/* ==============================
   CATALOGUE SECTION
   ============================== */

.catalogue-section {
    width: 100%;
    display: block; /* overrides center alignment from body */
    height: auto;   /* allow content to expand naturally */
    min-height: 100vh; /* still fills at least one screen */
    padding: 120px 8%;
    background: rgba(0,0,0,0.55);

    box-sizing: border-box;
}

.catalogue-title {
    text-align: center;
    font-size: 3rem;
    color: rgb(255, 187, 0);
    margin-bottom: 50px;
}

/* GRID */
.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

/* CARD */
.catalogue-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);

    transition: 0.25s ease;
    cursor: pointer;
}

.catalogue-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.4);
}

/* IMAGE */
.catalogue-image {
    width: auto;
    max-width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    background: black;
    margin:auto;
    display: block;
}

/* TAGS */
.catalogue-tags {
    margin-top: 10px;
    margin-bottom: 15px;
}

.catalogue-tags .tag {
    font-size: 0.9rem;
    margin-right: 6px;
}

/* SUMMARY */
.catalogue-summary {
    font-size: 1.1rem;
    color: #eee;
    line-height: 1.4;
    opacity: 0.85;
}

/* TITLE */
.catalogue-card-title {
    font-size: 1.4rem;
    color: rgb(255, 187, 0);
    margin-bottom: 10px;
}

/* ================================
        MODAL POP UP SECTION
   ================================ */

/* Modal wrapper */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px; /* 🔥 lets tall/wide images shrink gracefully */
    overflow: auto; /* 🔥 prevents cropping */
}

/* Modal window */
.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;  /* 🔥 Important */
    border-radius: 10px;
}

/* Large close button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;      /* MAKE IT BIG ✔ */
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 10000;
    user-select: none;
}

/* Modal arrows */
.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;      /* Large arrows ✔ */
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 10000;
    user-select: none;
    padding: 10px 20px;
    transition: 0.2s ease;
}

.modal-arrow:hover {
    transform: translateY(-50%) scale(1.2);
    color: yellow;
}

.modal-arrow-left {
    left: 30px;
}

.modal-arrow-right {
    right: 30px;
}

/* Media scaling */
.modal-content img,
.modal-content video {
    max-width: 100%;
    max-height: calc(100vh - 80px); /* 🔥 ensures no cropping */
    width: auto;
    height: auto;
    object-fit: contain; /* important */
}



/* ================================
   MOBILE FIXES FOR PROJECT SECTION
   ================================ */

@media (max-width: 900px), (orientation: portrait) {


    .information {
        margin-top: 20px;
        flex-direction: row;       
        justify-content: center;      
        align-items: center;          
        text-align: center;                           
    }


    .about-container {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .about-photo {
        width: 100%;
        justify-content: center;
    }

    .about-content {
        width: 100%;
        text-align: center;
    }

    /* Buttons centered on mobile only */
    .download-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-header {
        flex-direction: column;
        gap: 20px;
    }

    /* Allow the whole area to grow naturally */
    .project-nav {
        height: auto !important;
        margin-top: 0px; /* creates space under navbar */
        padding-bottom: 40px;
        display: flex;
        flex-direction: column;
        background: none !important;
        border: none !important;
        padding-top: 60px;
    }

    /* Allow wrapper to auto-resize with content */
    .wrapper {
        height: auto !important;
        width: 100%;
    }

    /* CONTENT collapses vertically */
    .content {
        flex-direction: column;
        height: auto !important;
        width: 100%;
    }

    .header {
        flex-direction: column;         /* Stack Title + Button vertically */
        justify-content: center;
        align-items: center;
        gap: 10px;                      /* Small space between Title and Button */
        height: auto;                   /* Allow natural height */
        padding: 20px;
        text-align: center;


    }

    button {
        font-size: 1rem;
    }
    .col1,
    .col2 {
        width: 100%;
        height: auto !important;
        text-align: center;
        max-width: 100% !important;
        box-sizing: border-box;
    }


    /* Prevent any internal content from overflowing */
    .content,
    .wrapper,
    .project-nav {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Prevent horizontal scroll from tags, bullets, headers */
    #tags,
    #bullets,
    .summary,
    .tag-area,
    .bullet-points {
        max-width: 100% !important;
        overflow-wrap: break-word;
    }

    .main-image {
        aspect-ratio: 16/9;
        width: 100%;
    }




    /* Thumbnails below image */
    .thumb-strip {
        height: 80px !important;
        max-height: 80px !important;
        flex: 0 0 80px !important;
    }
    /* TEXT SIZE REDUCTIONS */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    p, li {
        font-size: 1.6rem;
    }

    .tag {
        font-size: 0.9rem;
        padding: 4px 8px;
    }

    /* Bullets spacing tighter */
    li {
        margin-bottom: 6px;
        margin-left: 0px;
        text-align: left;
    }

    /* Hide desktop arrows */
    #prevProject,
    #nextProject {
        display: none;
    }

    /* Show mobile arrows */
    .mobile-arrow {
        display: block;
    }

    .header {
        position: relative;
    }

    .mobile-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2.2rem;
        color: white;
        z-index: 20;
        cursor: pointer;
    }

    .mobile-arrow.left {
        left: 10px;
    }

    .mobile-arrow.right {
        right: 10px;
    }

    .arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2.4rem;
        z-index: 30;
        cursor: pointer;

        /* FIX: arrow no longer shifts downward */
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1 !important;
        padding: 0;
    }

    .arrow.left  { left: 10px; }
    .arrow.right { right: 10px; }

    /* Remove hover scaling on mobile */
    .arrow:hover {
        transform: translateY(-50%) !important;
    }

    /* Press = scale only */
    .arrow:active {
        transform: translateY(-50%) scale(1.25) !important;
    }

    .about-socials-bar .social-icon {
        width: 40px;
        height: 40px;
    }

    .about-socials-bar {
        bottom: 10px;
        padding: 6px 12px;
    }
    
    .catalogue-section h2{
        font-size: 2.5rem;
    }

    .catalogue-card {
        padding: 15px;
    }

    .catalogue-grid {
        grid-template-columns: 1fr;
    }
    .catalogue-grid p {
        font-size: 1.5rem;
    }

    .tag {
        font-size: 1.5rem;
    }

    .catalogue-card{
        text-align: center;
    }
}


/* Small screens (like 1280 × 720 or smaller) */
@media (max-width: 1280px) and (max-height: 720px) {
    html {
        font-size: xx-small;
    }
    .tag {
        font-size: 1.5rem;
    }
}

/* Mid-size screens up to 1920 × 1080 */
@media (min-width: 1281px) and (max-width: 1920px),
       (min-height: 721px) and (max-height: 1080px) {
    html {
        font-size: small;
    }
}