/* Variables */
:root {
    --yellow: #ffcc00;
    --max-width: 60em;
}

/* Base Styles */
body {
    background: var(--yellow);
    font-family: "Montserrat";
    overflow-x: hidden;
    margin: 0 auto;
}

main {
    margin-bottom: 8em;
    transition: margin-left 0.3s;
}

.page-content {
    max-width: var(--max-width);
    padding: 5em 5em;
    margin: 0 auto;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: black;
}

h2, h3, p {
    margin-top: 0;
}

h2 {
    font-family: "Bebas Neue";
    font-size: 5em;
    margin: 0 auto;
}

/* Navigation */
.sidebar {
    display: block;
    height: 100%;
    width: 10em;
    position: fixed;
    top: 0;
    left: -10em;
    background-color: black;
    transition: 0.3s;
    overflow-x: hidden;
    line-height: 2;
    z-index: 2;
    box-shadow: 0 0 1em rgba(0, 0, 0, 0.5);
}

.sidebar.active {
    left: 0;
}

.sidebar .menu {
    display: flex;
    flex-direction: column;
    padding-top: 6em;
    padding-left: 2em;
}

.sidebar a {
    text-decoration: none;
    color: var(--yellow);
    display: block;
    transition: 0.3s;
    font-weight: 600;
}

.sidebar a:hover {
    transform: translateX(4px);
}

.sidebar img {
    width: 70px;
    margin: 40px 0;
}

.burger-menu {
    position: fixed;
    top: 1em;
    left: 1em;
    display: inline-block;
    cursor: pointer;
    z-index: 3;
    background-color: black;
    padding: 0.5em;
    border-radius: 5px;
}

.bar1, .bar2, .bar3 {
    width: 30px;
    height: 3px;
    background-color: var(--yellow);
    margin: 6px 0;
    transition: 0.3s;
}

.change .bar1 {
    transform: translateY(9px) rotate(45deg);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: translateY(-9px) rotate(-45deg);
}

#overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    cursor: pointer;
    transition: opacity 0.4s ease;
}

/* Hero Section */
.hero-video {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-logo {
    position: absolute;
    top: 1em;
    right: 1em;
    width: 12em;
    height: auto;
    z-index: 10;
}

.mute-button {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    text-align: center;
}

.mute-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.mute-button span {
    font-size: 20px;
}

/* Content Sections */
.welcome {
    padding: 3em 0;
    margin-bottom: 3em;
}

.welcome p {
    line-height: 1.5;
}

.slogan-banner {
    background-color: #000;
    color: #FFD700;
    font-family: "Bebas Neue";
    font-size: 1.6em;
    letter-spacing: 0.2em;
    text-align: left;
    padding: 0.5em 1em;
    margin: 0.2em 0 1.5em 0;
    width: fit-content;
    box-sizing: border-box;
}

.split-section {
    display: flex;
    margin-bottom: 5em;
    width: 100%;
}

.section-title {
    flex: 0 0 30%;
    text-align: right;
    position: relative;
    margin-top: -9px;
}

.section-content {
    flex: 0 0 70%;
    padding-left: 1.5em;
    box-sizing: border-box;
    font-size: 1.1em;
}

.section-content p {
    line-height: 1.5;
}

.section-content a {
    font-weight: bold;
}

.page-content p {
    font-size: 0.9em;
}

/* Services */
.services-block h3 {
    margin-bottom: 0.3em;
}

.services-block {
    margin-bottom: 1.5em;
}

/* Studio */
.studio-image {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
}

.studio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#studio {
    width: 100%;
    border-radius: 0.7em;
    margin-bottom: 1.5em;
}

/* Clients */
#atmos {
    max-width: 10em;
}

.client-logos {
    display: flex;
    margin-top: 2em;
    gap: 0;
}

.client-logos img {
    width: 50%;
    border-radius: 0.7em;
}

/* Team */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: 2em;
    width: 100%;
    max-width: 800px;
}

.team-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2em;
    width: 100%;
}

.team-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-text {
    flex: 1;
}

.team-block h3 {
    margin: 0 0 0.3rem 0;
}

.team-block p {
    line-height: 1.4;
    margin: 0;
    font-size: 0.9rem;
}

/* Contact */
#contact {
    margin-bottom: 2em;
}

.social-contact {
    margin-top: 1em;
}

.social-contact a {
    display: flex;
    align-items: center;
    gap: 0.5em;
    text-decoration: none;
    color: black;
    font-size: 0.9em;
    font-weight: normal;
}

.social-contact span {
    font-weight: normal;
}

#mail {
    font-weight: bold;
    margin-bottom: 1em;
    display: inline-block;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
    width: 100%;
}

.gallery-item {
    position: relative;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    border-radius: 0.7em;
}

.gallery-client-name {
    position: absolute;
    top: 0.5em;
    left: 0.5em;
    font-size: 0.6em;
    text-transform: uppercase;
    color: var(--yellow);
    background-color: black;
    font-weight: 500;
    letter-spacing: 0.05em;
    font-family: "Montserrat";
    text-align: left;
    pointer-events: none;
    padding: 0.3em 0.8em;
    border-radius: 0.4em;
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 0.7em;
}

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

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

.lightbox.active {
    display: flex;
}

.lightbox-content {
    width: 800px;
    background-color: black;
    padding: 20px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-container video.direct-video {
    background: #000;
}

.video-title {
    color: var(--yellow);
    margin-bottom: 15px;
    font-family: "Montserrat";
    font-weight: 500;
    text-align: center;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    color: var(--yellow);
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Footer */
footer {
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    background-color: black;
    box-shadow: 0 0 1em rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    padding: 1em 3em;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-column-gap: 2em;
    color: var(--yellow);
    margin: 0 auto;
    align-items: center;
}

#contact-ig {
    height: 1.5em;
}

#footer-logo {
    height: 2em;
    grid-column: 2;
}

.footer-right {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.social-icon {
    margin-right: 1em;
}

#footer-ig {
    height: 1.5em;
    width: auto;
    margin-bottom: -0.3em;
}

.footer-container p {
    font-size: 0.6em;
    text-align: left;
    position: relative;
    padding-left: 1em;
    margin: 0;
}

.footer-container p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0.1em;
    background-color: var(--yellow);
}

/* Photo Gallery */
.photo-gallery {
    display: none;
    width: 100%;
    padding: 2em 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 0.7em;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--yellow);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 2;
    transition: background-color 0.3s;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background: rgba(0, 0, 0, 1);
}

/* Responsive */
@media (max-width: 800px) {
    .hero-video {
    	height: 40vh;
    }
    .welcome {
        margin-bottom: 0em;
    }

    .client-logos {
        flex-direction: column;
    }
    
    .client-logos img {
        width: 100%;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    footer p {
        display: none;
    }

    h2 {
        font-size: 3.5em;
        margin-bottom: 0.3em;
    }

    .split-section h3 {
        margin-bottom: 0.5em;
    }

    .services-block {
        margin-bottom: 2em;
    }

    .split-section {
        display: block;
    }

    .section-title {
        text-align: left;
    }

    #contact .section-content a {
        font-size: 0.7em;
    }

    #contact .section-content p {
        font-size: 0.9em;
    }
    
    .section-content {
        padding-left: 0;
    }

    .page-content {
        padding: 1em 4em;
        margin-left: 2.5em;
    }

    .split-section {
        margin-bottom: 4em;
    }

    .team-block {
        display: block;
    }

    .team-image {
        width: 100%;
        height: 100%;
        margin-bottom: 1em;
    }
    
    .team-block {
        margin-bottom: 1em;
    }
    
    #studio {
        display: none;
    }
    
    #footer-ig {
        display: none;
    }

    .lightbox-content {
        width: calc(100% - 2em);
        margin: 0 1em;
        padding: 1em;
    }

    .video-container {
        margin: 0;
        width: 100%;
    }

    .video-container iframe,
    .video-container video {
        width: 100%;
        height: 100%;
        border-radius: 0.5em;
    }

    .hero-logo {
        width: 7em;
        top: 1em;
        right: 1em;
    }

    .photo-gallery {
        padding: 2em 0;
    }

    .photo-gallery .page-content {
        padding: 0 1em;
    }

    .carousel-container {
        height: 300px;
    }

    .carousel-container {
        height: 300px;
    }

    .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}


/* Hero carousel controls; scoped separately from the studio photo carousel. */
.hero-navigation {
    position: absolute;
    /* Clear the fixed footer (4em) with a 1em gap on full-height heroes. */
    bottom: 5em;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.25em;
    padding: 0.15em 0.35em;
    border-radius: 2em;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.hero-navigation button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--yellow);
    cursor: pointer;
    font-size: 2em;
}

.hero-dots {
    display: flex;
}

.hero-dots button {
    width: 28px;
}

.hero-dots button::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.45;
}

.hero-dots button[aria-pressed="true"]::before {
    opacity: 1;
    transform: scale(1.25);
}

.hero-navigation button:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: -2px;
    border-radius: 1em;
}

@media (max-width: 800px) {
    .hero-navigation {
        /* The mobile hero is only 40vh and sits above the footer. */
        bottom: 1em;
    }
}
