/* Define the custom font */
@font-face {
    font-family: 'ASITP';
    src: url('../fonts/AShellinthePit-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Italic */
@font-face {
    font-family: 'ASITP';
    src: url('../fonts/AShellinthePit-Italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

/* Bold */
@font-face {
    font-family: 'ASITP';
    src: url('../fonts/AShellinthePit-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: sans-serif;
    background-color: #00c3af;
    margin: 0;
    min-height: 100vh;
    font-family: 'ASITP', sans-serif;
}

body {
    overflow-y: hidden;
}

.Trailerheader {
    background-color: #a8f0fe;
    width: 100%;
    height: 540px;
    padding: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}


.TrailerHeaderTitleImage {

    max-width: auto;
    max-height: 75px;
    padding: 0px;
    margin: 0px;
    margin-top: 90px;

}

@media only screen and (min-width: 760px) {
    .TrailerHeaderTitleImage {

        max-width: auto;
        max-height: 105px;
        padding: 0px;
        margin: 0px;
        margin-top: 90px;

    }
}

.TrailerheaderContent {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.TrailerheaderLineArt {
    position: absolute;
    margin-top: 20px;
}

.Trailerlineart1,
.Trailerlineart2,
.Trailerlineart3,
.Trailerlineart4 {
    position: relative;
    height: auto;
}

.Trailerlineart1 {
    width: 250px;
    right: -450px;
    top: 30px;
}

.Trailerlineart2 {
    width: 250px;
    left: -420px;
    top: -80px;
}

.Trailerlineart3 {
    width: 150px;
    left: 720px;
    top: -80px;
}

.Trailerlineart4 {
    position: relative;
    /* Needed for precise positioning */
    width: 150px;
    right: 620px;
    /* Offset from the left edge of .headerLineArt */
    top: -220px;
    /* Distance from the top edge */
    height: auto;
    /* Maintain aspect ratio */
    transform: rotate(25deg);
}

.Trailerheader h1 {
    margin-top: 0px;
    font-size: 30px;
    color: black;
    font-family: 'ASITP', sans-serif;
}

.Trailerheader nav {
    margin-top: 0px;
    padding: 0 15px;
    width: 100%;
}

.Trailerheader nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    /* CRITICAL: Allows links to drop to the next line */
    justify-content: center;
    /* Centers the links on all screen sizes */
    gap: 1.5em clamp(10px, 4vw, 57px);
    /* Adds vertical (1.5em) and horizontal (1em) space between items */
    width: 100%;
    /* Ensure the flex container uses all available space */
}

.Trailerheader nav ul li {
    margin: 0;
    /* Minimal vertical margin. Horizontal spacing is now handled by the 'gap' property above. */
    text-align: center;
}

.Trailerheader nav ul li a {
    color: black;
    text-decoration: none;
    font-size: clamp(25px, 2.8vw, 40px);
    /* The new fluid font size */
    padding: 5px 0;
    /* Add a little vertical padding for click space */
}

.TrailernewWaves {
    width: 100%;
    height: 100%;
    margin-top: 0px;
    margin-bottom: -135px;
    background-color: #a8f0fe;
    pointer-events: all;
}

@media only screen and (min-width: 760px) {
.TrailernewWaves {
    width: 100%;
    height: 100%;
    margin-top: -180px;
    margin-bottom: -1000px;
    background-color: #a8f0fe;
    pointer-events: all;
}
}

.trailers-section {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    font-size: 30px;
    text-align: center;
    justify-content: center;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
    padding-bottom: 25vw;
}

h1,
h2 {
    color: black;
}

p {
    color: black;
}

.service-image {
    width: 275px;
    height: 275px;
    padding: 30px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    will-change: transform;
    transform-origin: center center;
    transition: none !important;
    animation: none !important;

}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Small gap to ensure 3 items fit on one line */
    padding: 10px;
    /* Give the whole grid some breathing room */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
    /* Increased to ensure it's above background elements */
}

@media only screen and (min-width: 760px) {
    .image-grid {
        display: flex;
        flex-wrap: wrap;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 50px;
        padding: 0px;
        max-width: 90%;
        margin: 0 auto;
        justify-content: center;
        justify-items: center;
        position: relative;
        z-index: 1;
    }
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    padding: 10px;
}

/* Mobile: Force 3 columns */
.image-item {
    position: relative;
    z-index: 1;
    width: 30%;
    /* 30% + 30% + 30% = 90% (fits 3 per row) */
    will-change: transform;
    transform-origin: center center;
    transition: none !important;
}

/* Tablet/Desktop: Let them expand */
@media only screen and (min-width: 760px) {
    .image-item {
        width: 100%;
        max-width: 180px;
        /* On big screens, they stay at a nice size */
    }
}

.containerTrailerBubbles {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0px;
    width: 100%;
    position: relative;
}

@media only screen and (min-width: 760px) {
    .containerTrailerBubbles {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding: 20px;
        width: 80%;
        position: relative;
    }
}

/* Animation styles for trailer bubbles */
/* This targets image-item-1, image-item-2, etc. */
[class^="image-item-"] {
    position: relative;
    z-index: 1;
    width: 30%;
    /* Changed from 90% to 30% for 3 columns on mobile */
    will-change: transform;
    transform-origin: center center;
    transition: none !important;
    animation: none !important;
}

/* On Desktop, make them a fixed size again */
@media only screen and (min-width: 760px) {
    [class^="image-item-"] {
        width: 100%;
        max-width: 180px;
    }
}

.swap-image:hover {
    aspect-ratio: 1 / 1;
    width: 100%;
}

.projectsHeaderContainer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0px;
    padding-left: 120px;
    padding-right: 120px;
    margin-bottom: 30px;
    margin-top: 0px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

@media only screen and (min-width: 760px) {
    .projectsHeaderContainer {
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 0px;
        padding-left: 120px;
        padding-right: 120px;
        margin-bottom: 110px;
        margin-top: -100px;
        position: relative;
        z-index: 2;
        flex-wrap: wrap;
    }
}

.box-row {
    display: flex;
    justify-content: left;
    gap: 80px;
    padding-left: 0px;
    padding-right: 1150px;
    margin-top: 0;
}

.box-row img {
    width: 275px;
    height: 275px;
    padding: 30px;
    object-fit: contain;
}

.box-row-2 {
    display: flex;
    justify-content: left;
    gap: 80px;
    margin-top: 100px;
}

.box-row-2 img {
    width: 275px;
    height: 275px;
    padding: 30px;
    object-fit: contain;
}

.boxContent {
    padding: 0px;
    text-align: left;
    flex: 1;
    max-width: 600px;
    font-size: 20px;
    line-height: 35px;
    text-align: left;
    margin-bottom: 0px;
    padding-right: 3vw;
    padding-left: 3vw;

}

@media only screen and (min-width: 760px) {
    .boxContent {
        padding: 0px;
        text-align: left;
        flex: 1;
        max-width: 1600px;
        font-size: 36px;
        line-height: 45px;
        text-align: left;
        margin-bottom: 0px;
        padding-right: 41vw;
        padding-left: 5vw;

    }
}

.floatingOnWater .trailerReelFloating {
    position: relative;
    display: block;
    pointer-events: all;
}

.floatingOnWater .trailerReelContainer {
    position: absolute;
    width: 80%;
    right: 8%;
    transform: translate(0, 335%);
}

@media only screen and (min-width: 760px) {
    .floatingOnWater .trailerReelContainer {
        width: 40%;
        right: 6%;
        transform: translate(0, 50%);
        top: 220px;
    }
}

.floatingOnWater .trailerReelFloating {
    width: 85%;
    margin: 0 auto;
}

/* Video modal styles */
#video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.video-container {
    width: 90%;
    height: 40%;
    position: relative;
    z-index: 1000;
}

@media only screen and (min-width: 760px) {
    .video-container {
        width: 80%;
        height: 80%;
        position: relative;
        z-index: 1000;
    }
}

#youtube-video {
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.trailerReel {
    width: 400px;
    height: 225px;
    margin-right: -60px;
}

#trailer-video {
    width: 100%;
    height: 100%;
}


.seaLife {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 80%;
    bottom: 0;
    left: 0;
    opacity: 0.7;
    overflow-x: hidden;
}

.underwaterDecorationsTop {
    display: none;
    position: absolute;
    z-index: 999;
    width: 100%;
    height: 100%;
    top: 0%;
    left: 0;
    opacity: 0.9;
}

@media only screen and (min-width: 760px) {
    .underwaterDecorationsTop {
        display: block;
        position: absolute;
        z-index: 999;
        width: 100%;
        height: 100%;
        top: 0%;
        left: 0;
        opacity: 0.9;
    }
}

.underwaterDecorationsTop .screen4-1 {
    position: absolute;
    top: 32%;
    left: -9%;
    width: 20%;
}

@media only screen and (min-width: 760px) {
    .underwaterDecorationsTop .screen4-1 {
        top: 29%;
        left: 5%;
        width: 10%;
    }
}

.underwaterDecorationsTop .screen4-2 {
    position: absolute;
    top: 18%;
    right: -10%;
    width: 20%;
}

@media only screen and (min-width: 760px) {
    .underwaterDecorationsTop .screen4-2 {
        top: 29%;
        right: 5%;
        width: 11%;
    }
}

.underwaterDecorationsTop .screen4-3 {
    position: absolute;
    top: 39%;
    right: -10%;
    width: 20%;
}

@media only screen and (min-width: 760px) {
    .underwaterDecorationsTop .screen4-3 {
        top: 40%;
        right: 4%;
        width: 11%;
    }
}

.underwaterDecorationsTop .screen4-4 {
    position: absolute;
    top: 39%;
    right: -10%;
    width: 20%;
}

@media only screen and (min-width: 760px) {
    .underwaterDecorationsTop .screen4-4 {
        top: 57%;
        left: 3%;
        width: 11%;
    }
}

.underwaterDecorationsTop .screen4-5 {
    position: absolute;
    top: 8%;
    left: 3%;
    width: 20%;
    transform: scaleX(-1);
}

@media only screen and (min-width: 760px) {
    .underwaterDecorationsTop .screen4-5 {
        top: 41%;
        left: 3%;
        width: 11%;
        transform: scaleX(-1);
    }
}

.underwaterDecorationsTop .screen4-6 {
    position: absolute;
    top: 39%;
    right: -10%;
    width: 20%;
}

@media only screen and (min-width: 760px) {
    .underwaterDecorationsTop .screen4-6 {
        top: 59%;
        right: 4%;
        width: 11%;
    }
}

.underwaterDecorationsTop .screen4-7 {
    position: absolute;
    top: 39%;
    right: -10%;
    width: 20%;
}

@media only screen and (min-width: 760px) {
    .underwaterDecorationsTop .screen4-7 {
        top: 38%;
        right: 4%;
        width: 11%;
    }
}

.content {
    background: #00c3af;
    min-height: 100vh;
    z-index: 1;
    position: relative;

}

@media only screen and (min-width: 760px) {
    .content {
        background: #00c3af;
        min-height: 100vh;
        z-index: 1;
        position: relative;

    }
}