﻿/*.hero-gallery {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}*/

/* slides wrapper */
/*.hero-slides {
    display: flex;
    transition: transform 0.7s ease-in-out;
    height: 100%;
    align-items: center;
}*/

/* individual slide */
/*.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}*/

/* blurred full-width background */
/*.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.55);
    transform: scale(1.15);
    z-index: 0;
}

.slide-wrapper {
    position: relative;
    display: flex;*/ /* flex to center arrows and frame */
    /*justify-content: center;
    align-items: center;
    margin: 0 auto;
}*/


/* image frame with rounded corners */
/*.img-frame {
    width: 100%;
    max-width: 720px;
    height: 550px;*/
    /*    border-radius: 18px;*/
    /*overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.55);
}

    .img-frame img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }*/

/* default (small screens) - arrows inside frame */
/*.slide-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}*/

    /* arrows themselves */
    /*.slide-controls span {
        pointer-events: auto;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 2rem;
        color: #fff;
        background: rgba(0,0,0,0.3);
        cursor: pointer;
        transition: background 0.2s ease;
    }

        .slide-controls span:hover {
            background: rgba(0,0,0,0.6);
        }*/

/* slide overlay content */
/*.slide-content {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    z-index: 3;
}

    .slide-content h2 {
        font-size: 1.6rem;
        text-shadow: 0 6px 18px rgba(0,0,0,0.6);
        margin-bottom: 10px;
    }*/



/* default: arrows inside the frame (small screens) */
/*.slide-controls span.prev {
    left: 0;
    transform: translateY(-50%) translateX(0);
}

.slide-controls span.next {
    right: 0;
    transform: translateY(-50%) translateX(0);
}*/

/* large screens: arrows outside the frame */
/*@media (min-width: 692px) {
    .slide-controls span.prev {
        left: 0;
        transform: translateY(-50%) translateX(-60px);*/ /* shift left arrow outside */
    /*}

    .slide-controls span.next {
        right: 0;
        transform: translateY(-50%) translateX(60px);*/ /* shift right arrow outside */
    /*}
}*/

/* responsive */
/*@media (max-width: 600px) {
    .hero-gallery {
       height:700px;
      
    }

    .img-frame {
    
    }

    .slide-controls span {
        width: 36px;
        height: 36px;
        font-size: 1.6rem;
    }

    .slide-content h2 {
        font-size: 1.2rem;
    }
}

.smi {
    border-radius: 50%;
}*/
/* responsive */
/*@media (max-width: 450px) {
    .hero-gallery {
        height: 620px;
    }
}*/
/* responsive */
/*@media (max-width: 350px) {
    .hero-gallery {
        height: 580px;
    }
}*/
/* --- Global Variables --- */
:root {
    --slide-ease: cubic-bezier(0.25, 1, 0.5, 1);
    --glass-bg-sl: rgba(20, 20, 20, 0.6); /* Darker glass for better contrast */
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-color: #ffffff;
}

/* --- Main Container --- */
.hero-gallery {
    position: relative;
    width: 100%;
    /* 100dvh = 100% of the visible screen height, fixing mobile scroll bugs */
    height: 100dvh;
    overflow: hidden;
    background: #000;
}

.hero-slides {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.8s var(--slide-ease);
}

/* --- Slide Layout --- */
.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    /* Flexbox centers the wrapper perfectly */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Blurred Background */
.slide-bg {
    position: absolute;
    inset: -20px; /* Bleed edges to prevent white lines */
    background-size: cover;
    background-position: center;
    filter: blur(50px) brightness(0.5);
    transform: scale(1.1);
    z-index: 0;
    transition: transform 6s ease;
}

.slide.active .slide-bg {
    transform: scale(1.2);
}

/* --- The Wrapper (The Layout Fix) --- */
.slide-wrapper {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    height: 100%; /* Take full height */
    /* Layout Logic: Stack vertically */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- The Image Frame --- */
.img-frame {
    position: relative;
    width: 100%;
    max-width: 900px;
    /* Responsive Height Logic */
    /* On desktop, image takes 65% of screen height */
    height: auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--glass-border);
    /* Animation States */
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s var(--slide-ease) 0.1s;
}

.slide.active .img-frame {
    opacity: 1;
    transform: scale(1);
}

.img-frame img {
    width: 100%;
    height: 100%;
    /* Cover ensures no empty space inside the frame */
    object-fit: fill;
    display: block;
}

/* --- Content Box --- */
.slide-content {
    position: relative;
    z-index: 10;
    width: auto;
    min-width: 300px;
    max-width: 600px;
    text-align: center;
    /* THE MAGIC: Pull the text UP to overlap the image */
    margin-top: -60px;
    background: var(--glass-bg-sl);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 24px 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: var(--text-color);
    /* Animation States */
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--slide-ease) 0.3s;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.1;
}

.slide-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Button Styling */
.btn-modern {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

    .btn-modern:hover {
        transform: scale(1.05);
    }

/* --- Controls --- */
.slide-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none; /* Click through empty space */
    z-index: 20;
    box-sizing: border-box;
    transform: translateY(-50%);
}

    .slide-controls span {
        pointer-events: auto;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        border: 1px solid var(--glass-border);
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        cursor: pointer;
        transition: background 0.3s;
    }

        .slide-controls span:hover {
            background: rgba(255, 255, 255, 0.3);
        }

/* =========================================
   RESPONSIVE DESIGN (The Fix)
   ========================================= */

/* Mobile Portrait & Small Tablets */
@media (max-width: 768px) {
    .hero-gallery {
 
        /* 100dvh = 100% of the visible screen height, fixing mobile scroll bugs */
        height: 85dvh;
   
    }

    .slide-wrapper {
        width: 92%; /* Wider on mobile */
        /* Ensure there is padding at the bottom so text isn't cut off */
        padding-bottom: 20px;
    }

    .img-frame {
        /* On mobile, let image take roughly 55% of height */
        /* This leaves exactly 45% for the text, preventing overlap issues */
        height: auto;
        border-radius: 16px;
    }

    .slide-content {
        width: 90%;
        margin-top: -40px; /* Less overlap on mobile */
        padding: 20px;
    }

        .slide-content h2 {
            font-size: 1.5rem;
        }

    /* Move arrows to bottom corners so they don't block the image */
    .slide-controls {
        top: auto;
        bottom: 20px;
        transform: none;
        justify-content: space-between;
        padding: 0 20px;
    }
}

/* This specific query fixes the "squashed" look when you turn your phone sideways */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-gallery {
        min-height: 400px;
    }

    .slide-wrapper {
        flex-direction: row; /* Switch to side-by-side */
        gap: 20px;
    }

    .img-frame {
        height:auto;
        width: 60%;
        max-width: none;
    }

    .slide-content {
        width: 45%;
        margin-top: 0; /* Remove overlap */
        min-width: auto;
    }
}