/* ==========================================================================
   General Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================================
   Fonts
   ========================================================================== */
@font-face {
    font-family: 'AvantGardGothEF-Demi';
    src: url('fonts/AvantGardGothEF-Demi.woff2') format('woff2'),
         url('fonts/AvantGardGothEF-Demi.woff') format('woff'),
         url('fonts/AvantGardGothEF-Demi.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AvantGardGothEF-Book';
    src: url('fonts/AvantGardGothEF-Book.woff2') format('woff2'),
         url('fonts/AvantGardGothEF-Book.woff') format('woff'),
         url('fonts/AvantGardGothEF-Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h2 {
    font-family: 'AvantGardGothEF-Demi', sans-serif;
    font-size: 4rem;
    font-weight: normal;
    color: #000;
}

p {
    font-family: 'AvantGardGothEF-Book', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 1.7;
    color: #000;
}

/* ==========================================================================
   Hover Text Styling
   ========================================================================== */
.hover-text {
    font-family: 'AvantGardGothEF-Demi', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    color: #000;
    transition: 
        color 0.3s ease-in-out, 
        opacity 0.3s ease-in-out, 
        transform 0.3s ease-in-out;
    position: absolute;
    top: 70%;
    left: 30%;
    transform: translate(-50%, -50%) rotate(180deg);
    opacity: 0;
    z-index: 3;
}

/* Background Shape for Hover Text */
.hover-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 30px);
    height: calc(100% + 10px);
    background-color: rgba(255,255,255,1.00);
    border: 3px solid #000;
    border-radius: 30px;
    z-index: -1;
}

/* Hover Effect for Text on devices with hover */
.image-container:hover .hover-text {
    color: #000000;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* ==========================================================================
   Layout & Grid
   ========================================================================== */
/* Default styles for larger screens */
.col-3 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
    .col-3 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Container Styles */
.container {
    max-width: 110%;
    padding: 30px 100px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0;
    }
}

/* Grid Layout */
.row {
    margin: 30px;
}

.col-md-6.col-12.text-center {
    padding: 0;
}

.col-md-6.col-12.text-center img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Image and Video Containers
   ========================================================================== */
.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
}

/* Common styles for images and videos */
.image-container img,
.image-container video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 1;
}

/* ----------------------------------------------------------------------------
   Disable Video Pointer Interactions
   ---------------------------------------------------------------------------- */
.image-container video {
    pointer-events: none;
    touch-action: none;
}

/* ----------------------------------------------------------------------------
   Hover Effects (for devices that support hover)
   ---------------------------------------------------------------------------- */
.image-container:hover img,
.image-container:hover video {
    transform: scale(1.1);
}

.image-container:hover .overlay {
    top: 0;
    transition: top 0.4s ease-in-out;
}

/* ----------------------------------------------------------------------------
   Disable Hover Effects on Mobile/Touch Devices
   ---------------------------------------------------------------------------- */
@media (hover: none) {
    .image-container:hover img,
    .image-container:hover video {
        transform: none;
    }

    .image-container:hover .hover-text {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(180deg);
    }
}

/* ==========================================================================
   Overlay Styles
   ========================================================================== */
.image-container .overlay {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    transition: top 0.4s ease-in-out;
    z-index: 2;
}

/* ==========================================================================
   Moving Image Animation
   ========================================================================== */
.moving-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    background-color: #FFFFFF;
}

.moving-image {
    display: flex;
    position: absolute;
    top: 0;
    animation: slideInfinite 10s linear infinite;
}

.moving-image img {
    width: 1920px;
    height: 400px;
    flex-shrink: 0;
}

@keyframes slideInfinite {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-1920px);
    }
}
