@import url('normalize.css');

/* Hero Section Styles */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 5%;
    color: white;
    font-family: 'Manrope', sans-serif;
    background-color: #111;
    /* Fallback for when video didn't load */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}

.hero__background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1.05);
    filter: brightness(0.7);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.hero__content {
    flex: 1;
    max-width: 50%;
    z-index: 2;
    position: relative;
}

.hero__content--centered {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    height: 100vh;
}

.hero__content--centered .hero__title {
    margin-bottom: 2rem;
}

.hero__content--centered .hero__button {
    margin: 0 auto;
    display: block;
}

.hero__title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: none;
    line-height: 1;
}

.hero__description {
    font-size: 1.5rem;
    /* ~24px for modern readability */
    line-height: 1.5;
    font-weight: 400;
    max-width: 800px;
    /* Increased slightly for better text flow */
    margin: 0 auto 2.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Stronger shadow for readability without box */
}

.hero__button {
    display: inline-block;
    background-color: var(--color-tints-light-blue);
    color: white;
    text-decoration: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}

.hero__button::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-gray-dark-3);
    /* The hover color */
    transition: top 0.3s ease;
    z-index: -1;
}

.hero__button:hover::before {
    top: 0;
}

.hero__button:hover {
    color: white;
    /* Ensure text remains visible/white */
}

.hero__video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    height: auto;
    z-index: 2;
}

.hero__video {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.hero__play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.hero__play-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.hero__play-icon {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal__content {
    position: relative;
    width: calc(100vw - 40px);
    height: calc(100vh - 40px);
    margin: 20px;
}

.modal__video {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    padding: 10px;
    z-index: 1001;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    margin: 0 5px;
}

.control-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.progress-container {
    flex: 1;
    margin: 0 10px;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: #555;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.progress-bar::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
}

.time-display {
    color: white;
    font-size: 14px;
    margin: 0 10px;
    white-space: nowrap;
}

.volume-container {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.volume-bar {
    width: 80px;
    height: 5px;
    background: #555;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-left: 5px;
}

.volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.volume-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
}

.speed-select {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    padding: 5px;
    margin: 0 5px;
    border-radius: 3px;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 576px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }

    .hero__content {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .hero__video-container {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1000 / 586;
    }

    .hero__title {
        font-size: 3rem;
    }

    .hero__description {
        font-size: 1.5rem;
    }

    .modal__content {
        width: 100vw;
        height: 100vh;
        margin: 0;
    }

    .modal__close {
        top: 10px;
        right: 10px;
    }

    .custom-controls {
        flex-wrap: wrap;
        padding: 5px;
    }

    .control-btn {
        margin: 0 2px;
    }

    .control-btn svg {
        width: 20px;
        height: 20px;
    }

    .time-display {
        font-size: 12px;
        margin: 0 5px;
    }

    .volume-container {
        margin: 0 5px;
    }

    .speed-select {
        font-size: 10px;
        padding: 3px;
        margin: 0 2px;
    }

    .volume-bar {
        width: 60px;
    }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        gap: 0;
        text-align: center;
        padding: 100px 5% 40px;
        height: auto;
        min-height: 100vh;
    }

    .hero__content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero__title {
        font-size: 3.5rem;
    }

    .hero__video-container {
        width: 100%;
        max-width: 800px;
    }
}

@media (max-width: 576px) {
    .hero__title {
        font-size: 2.5rem;
    }

    .hero__description {
        font-size: 1.1rem;
        /* Slightly larger than 1rem for better legibility */
        padding: 0.8rem 1rem;
        margin-bottom: 2rem;
    }

    .hero__button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .hero__play-button {
        width: 60px;
        height: 60px;
    }
}