﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #0d0d0d;
    color: #eee;
}

header {
    background: #141414;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    color: #00ffcc;
    font-weight: 600;
    font-size: 1.5rem;
}

nav a {
    color: #eee;
    margin-left: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

    nav a:hover {
        color: #00ffcc;
    }

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #0d0d0d; /* Fallback color */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Ensures the video fills the container without stretching */
}

/* Dark overlay to make text pop */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Adjust transparency here */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    padding: 0 20px;
}
.btn {
    background: #00ffcc;
    color: #111;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

    .btn:hover {
        background: #00cc99;
    }

/* Sections */
.section {
    padding: 1.5rem 2rem; /* Reduced from 4rem to fix the "spaced out" look */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 15px #00ffcc;
    }

    .card img {
        width: 100%;
        border-radius: 10px;
    }

/* Contact Button */
button {
    background: #00ffcc;
    border: none;
    padding: 0.8rem 1.5rem;
    color: #111;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

    button:hover {
        background: #00cc99;
    }

/* Footer */
footer {
    background: #141414;
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
    margin-top: 3rem;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Full-screen modal */
.modal {
    display: none; /* hide initially */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}


/* Modal content container */
.modal-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal image with smooth fade */
.modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    
}

/* Close button */
.close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}

/* Navigation arrows */
.controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

    .controls button {
        background: rgba(0,0,0,0.4);
        border: none;
        font-size: 3rem;
        color: #00ff88;
        cursor: pointer;
        padding: 0 20px;
        border-radius: 5px;
        transition: background 0.3s, color 0.3s;
    }

        .controls button:hover {
            background: rgba(0,0,0,0.7);
            color: #00cc6a;
        }
/* Wireframe */

.compare-container {
    position: relative;
    width: 80%; /* Shrink width slightly to look cleaner */
    height: 100%; 
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 5;
}


/* NUCLEAR RESET FOR WIREFRAME */
#wireframe-carousel .carousel-container {
    height: 600px !important;
    background: #000 !important;
}

#wireframe-carousel .compare-img, 
#wireframe-carousel .compare-img img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;        
    visibility: visible !important;
    transition: none !important;   
    display: block !important;
    
}

/* Ensure the layers are stacked correctly for the slider */
#wfFinalLayer { z-index: 10 !important; }
#wfWireLayer { z-index: 5 !important; }
#wfSlider { z-index: 20 !important; }

#wfFinalLayer, #wfWireLayer {
    transition: opacity 0.2s ease-in-out;
}

#carouselCaption {
    color: #00ffcc; /* Matches your logo color */
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 10px;
    text-align: center;
    min-height: 20px; /* Keeps the space reserved */
}



.portfolio {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    width: 90%;
    margin: 4rem auto;
}

.portfolio {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    width: 90%;
    margin: 4rem auto;
}

.thumb {
    display: flex;
    flex-direction: column; /* stack image + caption vertically */
    cursor: pointer;
}

    .thumb img {
        width: 100%;
        height: auto;
        object-fit: cover;
        transition: transform 0.4s ease; /* smooth zoom */
    }

    /* Zoom image on hover */
    .thumb:hover img {
        transform: scale(1.2);
    }

/* Caption text below the image */
.thumb-overlay {
    margin-top: 0.5rem; /* space between image and text */
    color: #fff;
    text-align: center;
    font-size: 1rem;
}

html {
    scroll-behavior: smooth;
}
section {
    scroll-margin-top: 90px;
}
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 800px; /* This keeps the arrows from hitting the content below */
    margin: 1rem auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .carousel-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: opacity 0.5s ease-in-out;
        display: block; 
    }
    .profile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00ffcc;
}

@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        text-align: center;
    }
}
/* Specifically for the Standard Fade Carousel */
#imgA, #imgB {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease-in-out;
    z-index: 1; /* Keep images below the buttons */
}

/* Ensure the control buttons stay on top of the images */
.carousel-container .controls {
    z-index: 10;
}

/* Fix for the Wireframe Slider images to ensure they don't use the fade transition */
.compare-img img {
    transition: none !important; 
    opacity: 1 !important;
}
.carousel-container .controls {
    z-index: 100 !important; /* Forces arrows to the front */
}

#imgA, #imgB {
    pointer-events: none; /* Allows you to click "through" the images to hit the buttons */
}
#carouselCaption, #wfCaption {
    text-align: center;
    display: block;
    width: 100%;
}
.section h2, 
.section p {
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.section div[style*="max-width:900px"] {
    width: 100%; /* Forces the container to expand */
    display: flex;
    justify-content: center;
}

iframe {
    max-width: 100%; /* Prevents it from spilling off mobile screens */
    aspect-ratio: 16 / 9; /* Maintains the cinematic shape */
    height: auto; /* Overrides the fixed height if needed */
}

.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* Keeps the GIF from spilling out */
    background: #0d0d0d; /* Fallback color */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Replace 'your-animation.gif' with your actual filename */
    background: url('BackgroundAnimationGIF.gif') no-repeat center center/cover;
    z-index: 1;
}

/* Dark overlay to make text pop */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Adjust 0.6 to make it darker or lighter */
    z-index: 2;
}

.hero-content {
    max-width: 800px; /* Limits how wide the text can go */
    margin: 0 auto;
    padding: 0 20px;
}
.hero-content h2 {
   margin-bottom: 2rem; /* Pushes the paragraph/button down */
    font-size: 2.8rem;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); /* This is the secret for readability */
}
.hero-content p {
    margin-bottom: 2.5rem; /* Pushes the button further away from the text */
    font-size: 1.2rem;
    line-height: 1.6;
}
.hero-content .btn {
    display: inline-block;
    margin-top: 1rem;
}
.reference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
}

.ref-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ref-item img {
    width: 100%;
    aspect-ratio: 4/3; /* Keeps all reference shots the same size */
    object-fit: cover;
    border-radius: 5px;
    filter: grayscale(50%); /* Optional: subtle desaturation so they look like 'research' */
    transition: filter 0.3s;
    border: 1px solid #333;
}

.ref-item img:hover {
    filter: grayscale(0%);
}

.ref-item span {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #888;
}

/* Mobile Fix */
@media (max-width: 768px) {
    .reference-grid {
        grid-template-columns: 1fr;
    }
}


.vertical-image-container {
    width: 90%;
    max-width: 800px; /* Limits width so it doesn't get massive */
    margin: 2rem auto;
    display: flex;
    justify-content: center;
}

.vertical-breakdown-img {
    width: 100%;
    height: auto; /* Maintains original aspect ratio */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    display: block;
}

/* Unique color for the Bonus Content button */
.btn-bonus {
    background: #4a5568; /* A professional slate gray */
    color: #fff;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-bonus:hover {
    background: #2d3748; /* Darker on hover */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}