/*
 * Home Page Styles
 * Theme: Stellar Light
 */

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
    padding-top: 0;
    overflow: hidden;
}

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

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}



.hero-video video {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    z-index: 1;
    object-fit: cover;
    pointer-events: none;
}

/* Video styling */
.hero-video video {
    /* Ensure video covers the entire container */
    object-fit: cover;
}





.hero-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    padding-top: 200px;
}

.hero-content h1 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 55px;
    font-weight: 480;
    margin-bottom: 20px;
    max-width: 650px;
}

.hero-content p {
    font-family: 'Titillium Web', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto 30px;
}

.enquire-button,
.cta-content .enquire-button {
    font-family: 'Titillium Web', sans-serif;
    font-size: 20px;
    color: white;
    background: transparent;
    border: 2px solid white;
    font-weight: bold;
    padding: 10px 27px;
    border-radius: 20px;
    letter-spacing: 2px;
    transition: background 0.3s, color 0.3s;
    display: inline-block;
    margin: 10px 0;
    text-decoration: none;
}

.enquire-button:hover,
.cta-content .enquire-button:hover {
    background: white;
    color: black;
    border: 2px solid white;
}

/* Carousel Section */
.carousel-section {
    padding: 4rem 0;
    text-align: center;
}

.carousel-intro {
    max-width: 60rem;
    width: 100%;
    margin: 0 auto 3rem;
    padding: 0 clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
}

.carousel-intro p {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
}

.carousel-wrapper {
    position: relative;
    max-width: 50rem;
    width: 100%;
    margin: 0 auto;
    min-height: 15rem;
    padding: 0 clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
}

.carousel-content {
    position: relative;
    padding: 1rem 0;
}

.carousel-item {
    display: none;
    text-align: center;
}

.carousel-item.active {
    display: block;
}

.carousel-item h2 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.carousel-item p {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.carousel-button {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.3rem;
    color: white;
    background-color: transparent;
    border: 1px solid white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.carousel-button:hover {
    background-color: white;
    border: 1px solid white;
    color: black;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    width: 3rem;
    height: 3rem;
    transition: background-color 0.3s, color 0.3s;
}

.carousel-arrow:hover {
    background-color: white;
    color: black;
}

.carousel-arrow-left {
    left: -4rem;
}

.carousel-arrow-right {
    right: -4rem;
}

/* Image Wrapper for Overlay */
.image-wrapper {
    position: relative;
    width: 100%;
    transition: transform 0.3s ease;
}

.image-wrapper:hover {
    transform: scale(1.05);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    pointer-events: none;
}

.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    padding: 0.5rem 1rem;
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Gallery section specific overlay styles */
.gallery-section .image-overlay {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    white-space: normal;
    font-weight: normal;
}

.gallery-section .image-overlay .overlay-title {
    font-weight: 700;
    white-space: nowrap;
}

.gallery-section .image-overlay .overlay-subtitle {
    font-weight: normal;
    font-style: italic;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

/* Video Player Overlay */
.video-player-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.video-player-overlay.active {
    display: flex;
}

.video-player-container {
    width: 100%;
    max-width: 1200px;
    height: auto;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.video-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    /* Remove YouTube branding and controls */
    filter: brightness(1.05) contrast(1.05) saturate(1.05);
    transform: scale(1.01);
    pointer-events: none;
    /* Additional YouTube hiding */
    -webkit-filter: brightness(1.05) contrast(1.05) saturate(1.05);
    -moz-filter: brightness(1.05) contrast(1.05) saturate(1.05);
    -ms-filter: brightness(1.05) contrast(1.05) saturate(1.05);
}

/* Custom loading for video player */
.video-player-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #000, #111, #000);
    z-index: 1;
    animation: playerLoad 1.5s ease-in-out;
    opacity: 0;
}

@keyframes playerLoad {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
    }
}

.video-player-container iframe {
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    animation: fadeInPlayer 0.3s ease-in-out 1.5s forwards;
}

@keyframes fadeInPlayer {
    to {
        opacity: 1;
    }
}

.close-video-player {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    transition: color 0.3s;
    z-index: 1001;
}

.close-video-player:hover {
    color: #ccc;
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 70%;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
}

.gallery-grid .image-wrapper {
    height: 400px;
}

.gallery-grid .image-wrapper img {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 12 12"><circle cx="6" cy="6" r="6" fill="white"/></svg>') 6 6, auto !important;
}

/* Call to Action Section */
.cta-section {
    padding: 4rem 0;
    padding-bottom: 0;
    text-align: center;
    margin-top: 0;
}

.cta-content {
    max-width: 60rem;
    width: 100%;
    margin: 0 auto 2rem;
    padding: 0 clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
}

.cta-content h2 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 3.5px;
    margin-bottom: 1.5rem;
}

.cta-content .enquire-button {
    font-family: 'Titillium Web', sans-serif;
    font-size: 20px;
    color: white;
    background-color: transparent;
    border: 2px solid white;
    font-weight: bold;
    padding: 10px 27px;
    text-decoration: none;
    border-radius: 20px;
    letter-spacing: 2.9px;
    transition: background-color 0.3s, color 0.3s;
}

.cta-content .enquire-button:hover {
    background-color: white;
    border: 2px solid white;
    color: black;
}

.additional-images {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
    margin-top: 100px;
    padding: 0 clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
}

.additional-images .image-wrapper {
    width: 23%;
    height: 250px;
}

/* Responsive Adjustments */

/* Global responsive fixes */
.hero-section,
.carousel-section,
.gallery-section,
.cta-section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Small screens (up to 576px) */
@media (max-width: 576px) {
    .hero-section {
        margin-top: 0;
        padding-top: 0;
    }

    .hero-content {
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 6vw;
        min-font-size: 28px;
    }

    .hero-content p {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .enquire-button {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
        border-radius: 15px;
    }

    .carousel-section {
        padding: 2rem 0;
    }

    .carousel-intro p {
        font-size: 0.9rem;
        max-width: 90%;
        margin: 0 auto;
        text-align: center;
    }

    .carousel-wrapper {
        min-height: 12rem;
        padding: 0 2.5rem;
    }

    .carousel-item h2 {
        font-size: 1.5rem;
    }

    .carousel-item p {
        font-size: 0.9rem;
        max-width: 90%;
    }

    .carousel-button {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .carousel-arrow {
        font-size: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        border: 2px solid white;
        background: rgba(0, 0, 0, 0.5);
        color: white;
    }

    .carousel-arrow:hover {
        background-color: white;
        color: black;
    }

    .carousel-arrow-left {
        left: 0.5rem;
    }

    .carousel-arrow-right {
        right: 0.5rem;
    }

    .gallery-section {
        padding: 2rem 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 90%;
    }

    .gallery-grid .image-wrapper {
        height: 300px;
    }

    .image-overlay {
        font-size: 1rem;
        padding: 0.3rem 0.8rem;
    }

    .video-player-container {
        width: 90%;
        max-width: 90%;
    }

    .close-video-player {
        font-size: 1.5rem;
        top: 10px;
        right: 10px;
    }

    .cta-section {
        padding: 2rem 0;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .additional-images {
        flex-direction: column;
    }

    .additional-images .image-wrapper {
        width: 100%;
        height: 150px;
    }
}

/* Medium screens (576px to 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .hero-section {
        margin-top: 0;
        padding-top: 0;
    }

    .hero-content {
        padding-top: 110px;
    }

    .hero-content h1 {
        font-size: 6vw;
    }

    .hero-content p {
        font-size: 1rem;
        max-width: 90%;
    }

    .enquire-button {
        font-size: 0.9rem;
    }

    .carousel-section {
        padding: 3rem 0;
    }

    .carousel-intro p {
        font-size: 1rem;
        max-width: 90%;
        margin: 0 auto;
        text-align: center;
    }

    .carousel-wrapper {
        min-height: 13rem;
    }

    .carousel-item h2 {
        font-size: 1.8rem;
    }

    .carousel-item p {
        font-size: 1rem;
    }

    .carousel-button {
        font-size: 0.9rem;
    }

    .carousel-arrow {
        font-size: 1.2rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .carousel-arrow-left {
        left: 1rem;
    }

    .carousel-arrow-right {
        right: 1rem;
    }

    .gallery-section {
        padding: 3rem 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 80%;
    }

    .gallery-grid .image-wrapper {
        height: 300px;
    }

    .image-overlay {
        font-size: 1.1rem;
        padding: 0.4rem 0.9rem;
    }

    .video-player-container {
        width: 85%;
        max-width: 85%;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .additional-images {
        flex-wrap: wrap;
    }

    .additional-images .image-wrapper {
        width: 48%;
        height: 180px;
    }
}

/* Large screens (768px to 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .hero-content h1 {
        font-size: 5vw;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .carousel-intro p {
        font-size: 1.1rem;
        max-width: 80%;
        margin: 0 auto;
        text-align: center;
    }

    .carousel-wrapper {
        min-height: 14rem;
    }

    .carousel-item h2 {
        font-size: 1.8rem;
    }

    .carousel-item p {
        font-size: 1.1rem;
    }

    .gallery-grid {
        max-width: 75%;
    }

    .gallery-grid .image-wrapper {
        height: 320px;
    }

    .image-overlay {
        font-size: 1.1rem;
    }

    .video-player-container {
        width: 80%;
        max-width: 80%;
    }

    .additional-images .image-wrapper {
        width: 24%;
        height: 200px;
    }
}

/* Extra large screens (992px and above) */
@media (min-width: 993px) {
    .hero-content h1 {
        font-size: 4vw;
        max-font-size: 60px;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .carousel-intro p {
        font-size: 1.2rem;
        max-width: 70%;
        margin: 0 auto;
        text-align: center;
    }

    .carousel-item h2 {
        font-size: 2rem;
    }

    .carousel-item p {
        font-size: 1.2rem;
    }

    .gallery-grid {
        max-width: 70%;
    }

    .gallery-grid .image-wrapper {
        height: 400px;
    }

    .image-overlay {
        font-size: 1.8rem;
    }

    .video-player-container {
        width: 80%;
        max-width: 80%;
    }

    .additional-images .image-wrapper {
        width: 23%;
        height: 350px;
    }
}

/* Extremely aggressive YouTube branding removal - targets specific YouTube elements */
.hero-video iframe,
.video-player-container iframe {
    /* Force hide YouTube elements with maximum priority */
    filter: brightness(1.1) contrast(1.1) saturate(1.1) !important;
    -webkit-filter: brightness(1.1) contrast(1.1) saturate(1.1) !important;
    -moz-filter: brightness(1.1) contrast(1.1) saturate(1.1) !important;
    -ms-filter: brightness(1.1) contrast(1.1) saturate(1.1) !important;

    /* Scale to hide YouTube controls */
    transform: scale(1.02) !important;
    -webkit-transform: scale(1.02) !important;
    -moz-transform: scale(1.02) !important;
    -ms-transform: scale(1.02) !important;

    /* Disable interactions */
    pointer-events: none !important;

    /* Hide any YouTube overlays */
    overflow: hidden !important;
}

/* Target YouTube's specific elements that are still showing */
.hero-video iframe[src*="youtube"],
.video-player-container iframe[src*="youtube"] {
    /* Force remove YouTube branding with maximum priority */
    filter: brightness(1.1) contrast(1.1) saturate(1.1) !important;
    transform: scale(1.02) !important;
}

/* Hide YouTube's watch later, share, and other buttons */
.hero-video iframe[src*="youtube"]::before,
.hero-video iframe[src*="youtube"]::after,
.video-player-container iframe[src*="youtube"]::before,
.video-player-container iframe[src*="youtube"]::after {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Target YouTube's embedded player elements */
.hero-video iframe[src*="youtube"] *,
.video-player-container iframe[src*="youtube"] * {
    /* Hide all child elements that might contain YouTube controls */
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Additional YouTube element hiding with maximum specificity */
iframe[src*="youtube"] {
    /* Force hide all YouTube elements */
    filter: brightness(1.1) contrast(1.1) saturate(1.1) !important;
    -webkit-filter: brightness(1.1) contrast(1.1) saturate(1.1) !important;
    -moz-filter: brightness(1.1) contrast(1.1) saturate(1.1) !important;
    -ms-filter: brightness(1.1) contrast(1.1) saturate(1.1) !important;

    transform: scale(1.02) !important;
    -webkit-transform: scale(1.02) !important;
    -moz-transform: scale(1.02) !important;
    -ms-transform: scale(1.02) !important;

    pointer-events: none !important;
    overflow: hidden !important;
}

/* Target YouTube's specific UI elements */
iframe[src*="youtube"]::before,
iframe[src*="youtube"]::after {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Ensure video loads without YouTube loader */
.hero-video.video-loaded iframe,
.video-player-container iframe {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Additional YouTube hiding for all iframes */
iframe {
    /* Global YouTube hiding */
    filter: brightness(1.1) contrast(1.1) saturate(1.1) !important;
    transform: scale(1.02) !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* Additional responsive fixes for home page */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 4rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: clamp(1rem, 4vw, 1.5rem);
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }

    .enquire-button {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        padding: clamp(0.5rem, 2vw, 1rem) clamp(1rem, 4vw, 2rem);
    }

    .carousel-intro p {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        line-height: 1.5;
    }

    .carousel-item h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        line-height: 1.3;
    }

    .carousel-item p {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        line-height: 1.5;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: clamp(0.5rem, 2vw, 1rem);
    }

    .gallery-grid .image-wrapper {
        height: clamp(200px, 50vw, 300px);
    }

    .additional-images {
        flex-direction: column;
        gap: clamp(0.5rem, 2vw, 1rem);
        margin-top: clamp(3rem, 8vw, 6rem);
    }

    .additional-images .image-wrapper {
        width: 100%;
        height: clamp(150px, 40vw, 250px);
    }
}

@media (max-width: 576px) {
    .hero-section {
        margin-top: -3rem;
        padding-top: 3rem;
    }

    .hero-content {
        padding: 0 clamp(1rem, 8vw, 2rem);
    }

    .carousel-wrapper {
        padding: 0 clamp(1rem, 8vw, 2rem);
        min-height: clamp(10rem, 25vw, 15rem);
    }

    .carousel-arrow {
        width: clamp(2rem, 8vw, 3rem);
        height: clamp(2rem, 8vw, 3rem);
        font-size: clamp(0.8rem, 3vw, 1.2rem);
    }

    .carousel-arrow-left {
        left: clamp(0.5rem, 2vw, 1rem);
    }

    .carousel-arrow-right {
        right: clamp(0.5rem, 2vw, 1rem);
    }

    .cta-content h2 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        letter-spacing: clamp(1px, 1vw, 3px);
    }

    .cta-content .enquire-button {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        padding: clamp(0.5rem, 2vw, 1rem) clamp(1rem, 4vw, 2rem);
        letter-spacing: clamp(1px, 1vw, 2px);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: clamp(1.8rem, 7vw, 3rem);
    }

    .hero-content p {
        font-size: clamp(0.9rem, 3.5vw, 1.3rem);
    }

    .enquire-button {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        padding: clamp(0.4rem, 1.5vw, 0.8rem) clamp(0.8rem, 3vw, 1.5rem);
    }

    .carousel-intro p {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
    }

    .carousel-item h2 {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }

    .carousel-item p {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
    }

    .gallery-grid .image-wrapper {
        height: clamp(180px, 45vw, 250px);
    }

    .additional-images .image-wrapper {
        height: clamp(120px, 35vw, 200px);
    }
}

/* Target YouTube's specific newer UI elements */
iframe[src*="youtube"] {
    /* Hide YouTube's watch later, share, and other buttons */
    position: relative !important;
}

iframe[src*="youtube"]::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    z-index: 9999 !important;
    pointer-events: none !important;
}

/* Force hide any remaining YouTube elements */
iframe[src*="youtube"] *,
iframe[src*="youtube"]::before,
iframe[src*="youtube"]::after {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Additional YouTube hiding with CSS custom properties */
:root {
    --youtube-hide: none !important;
}

iframe[src*="youtube"] {
    --youtube-hide: none !important;
}

iframe[src*="youtube"] * {
    display: var(--youtube-hide) !important;
    visibility: hidden !important;
    opacity: 0 !important;
}