/* Hero Section Styles - BEM Methodology */

.hero {
    width: 100%;
    height: 550px;
    position: relative;
    overflow: hidden;
    background-color: #000000;
}

.hero__slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s, transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
}

.hero__slide--active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    transform: scale(1);
}

.hero__image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero__image {
    width: 120%;
    height: 120%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 20s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero__slide--active .hero__image {
    animation: kenBurns 20s ease-in-out infinite alternate;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.6) 100%),
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    transition: opacity 1s ease;
}

.hero__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 0 20px;
    text-align: center;
}

.hero__content-inner {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.hero__title {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: heroTitleReveal 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.hero__title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: textShine 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
}

.hero__subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #b0b0b0;
    letter-spacing: 1px;
    text-transform: none;
    margin: 0;
    line-height: 1.6;
    max-width: 700px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroSubtitleIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
}

.hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 45px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid #ffffff;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: heroButtonIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s forwards;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.hero__button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #000000;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.hero__button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 1;
}

.hero__button span {
    position: relative;
    z-index: 2;
}

.hero__button:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

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

.hero__button:active::after {
    width: 300px;
    height: 300px;
    transition: width 0s, height 0s;
}

.hero__button:active {
    transform: translateY(-1px) scale(1);
}

/* Reset animations when slide changes */
.hero__slide:not(.hero__slide--active) .hero__subtitle,
.hero__slide:not(.hero__slide--active) .hero__title,
.hero__slide:not(.hero__slide--active) .hero__button {
    opacity: 0;
    animation: none;
}

.hero__slide--active .hero__title {
    animation: heroTitleReveal 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.hero__slide--active .hero__subtitle {
    animation: heroSubtitleIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
}

.hero__slide--active .hero__button {
    animation: heroButtonIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s forwards;
}

.hero__dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 3;
    width: auto;
    flex-wrap: nowrap;
}

.hero__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 3;
    overflow: hidden;
}

.hero__progress-bar {
    height: 100%;
    width: 0%;
    background-color: #ffffff;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
    outline: none;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.hero__dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: width 0.3s, height 0.3s;
}

.hero__dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: transparent;
    z-index: -1;
    pointer-events: none;
}

.hero__dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.3);
}

.hero__dot:hover::before {
    width: 20px;
    height: 20px;
}

.hero__dot--active {
    background-color: #ffffff !important;
    transform: scale(1.2) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

.hero__dot:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.hero__dot:active {
    transform: scale(0.9);
    background-color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes heroSubtitleIn {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    60% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kenBurns {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1) translate(-5%, -5%);
    }
}

@keyframes heroTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    }
    50% {
        opacity: 0.8;
        transform: translateY(15px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
}

@keyframes textShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes heroButtonIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    60% {
        opacity: 0.9;
        transform: translateY(5px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ============================================
   RESPONSIVE STYLES - Complete & Enhanced
   ============================================ */

/* Large Devices (Desktops, 1200px to 1399px) */
@media (max-width: 1399.98px) {
    .hero {
        height: 550px !important;
    }

    .hero__content-inner {
        max-width: 1000px !important;
        gap: 25px !important;
    }

    .hero__title {
        font-size: 64px !important;
        letter-spacing: -1.5px !important;
    }

    .hero__subtitle {
        font-size: 17px !important;
        max-width: 70% !important;
    }
}

/* Medium-Large Devices (Small Desktops, 992px to 1199px) */
@media (max-width: 1199.98px) {
    .hero {
        height: 550px !important;
    }

    .hero__content {
        padding: 0 40px !important;
    }

    .hero__content-inner {
        max-width: 950px !important;
        gap: 24px !important;
    }

    .hero__title {
        font-size: 56px !important;
        letter-spacing: -1.2px !important;
    }

    .hero__subtitle {
        font-size: 16px !important;
        max-width: 75% !important;
    }

    .hero__button {
        padding: 16px 45px !important;
        font-size: 13px !important;
    }
}

/* Medium Devices (Tablets, 768px to 991px) */
@media (max-width: 991.98px) {
    .hero {
        height: 500px !important;
    }

    .hero__content {
        padding: 0 30px !important;
    }

    .hero__content-inner {
        gap: 22px !important;
        max-width: 90% !important;
    }

    .hero__title {
        font-size: 48px !important;
        letter-spacing: -1px !important;
        line-height: 1.15 !important;
    }

    .hero__subtitle {
        font-size: 16px !important;
        letter-spacing: 1px !important;
        max-width: 80% !important;
    }

    .hero__button {
        padding: 16px 42px !important;
        font-size: 12.5px !important;
        letter-spacing: 2px !important;
        margin-top: 18px !important;
    }

    .hero__dots {
        bottom: 30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        gap: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        z-index: 3 !important;
    }

    .hero__dot {
        width: 10px !important;
        height: 10px !important;
        min-width: 10px !important;
        min-height: 10px !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }

    .hero__dot::after {
        width: 44px !important;
        height: 44px !important;
    }

    .hero__progress {
        height: 3px !important;
    }

    .hero__image {
        width: 110% !important;
        height: 110% !important;
        object-fit: cover !important;
        object-position: center !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(1) !important;
    }

    .hero__image-wrapper {
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .hero__slide--active .hero__image {
        animation: kenBurnsDesktop 20s ease-in-out infinite alternate !important;
    }
}

/* Small Devices (Landscape Phones, 576px to 767px) */
@media (max-width: 767.98px) {
    .hero {
        height: 450px !important;
        min-height: 450px !important;
    }

    .hero__slider {
        height: 100% !important;
    }

    .hero__slide {
        height: 100% !important;
    }

    .hero__content {
        padding: 0 20px !important;
        height: 100% !important;
    }

    .hero__content-inner {
        gap: 18px !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .hero__title {
        font-size: 32px !important;
        letter-spacing: -0.8px !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }

    .hero__subtitle {
        font-size: 14px !important;
        letter-spacing: 0.8px !important;
        max-width: 100% !important;
        line-height: 1.6 !important;
        text-align: center !important;
    }

    .hero__button {
        padding: 14px 35px !important;
        font-size: 12px !important;
        letter-spacing: 1.8px !important;
        margin-top: 12px !important;
        width: auto !important;
        display: inline-flex !important;
    }

    .hero__dots {
        bottom: 25px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        gap: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        z-index: 3 !important;
        padding: 0 10px !important;
    }

    .hero__dot {
        width: 9px !important;
        height: 9px !important;
        min-width: 9px !important;
        min-height: 9px !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        border-width: 2px !important;
        box-sizing: border-box !important;
    }

    .hero__dot::after {
        width: 44px !important;
        height: 44px !important;
    }

    .hero__progress {
        height: 2.5px !important;
        bottom: 0 !important;
    }

    .hero__image {
        width: 120% !important;
        height: 120% !important;
        object-fit: cover !important;
        object-position: center !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(1) !important;
    }

    .hero__image-wrapper {
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .hero__slide--active .hero__image {
        animation: kenBurnsTablet 18s ease-in-out infinite alternate !important;
    }
}

/* Extra Small Devices (Portrait Phones, up to 575px) */
@media (max-width: 575.98px) {
    .hero {
        height: 400px !important;
        min-height: 400px !important;
    }

    .hero__content {
        padding: 0 15px !important;
    }

    .hero__content-inner {
        gap: 15px !important;
        max-width: 100% !important;
    }

    .hero__title {
        font-size: 28px !important;
        letter-spacing: -0.5px !important;
        line-height: 1.15 !important;
        text-align: center !important;
    }

    .hero__subtitle {
        font-size: 13px !important;
        letter-spacing: 0.5px !important;
        max-width: 100% !important;
        line-height: 1.55 !important;
        text-align: center !important;
    }

    .hero__button {
        padding: 14px 28px !important;
        font-size: 11px !important;
        letter-spacing: 1.5px !important;
        margin-top: 10px !important;
        width: auto !important;
        display: inline-flex !important;
    }

    .hero__dots {
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        gap: 9px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        z-index: 3 !important;
        padding: 0 10px !important;
    }

    .hero__dot {
        width: 8px !important;
        height: 8px !important;
        min-width: 8px !important;
        min-height: 8px !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        border-width: 2px !important;
        box-sizing: border-box !important;
    }

    .hero__dot::after {
        width: 44px !important;
        height: 44px !important;
    }

    .hero__progress {
        height: 2px !important;
    }

    .hero__image {
        width: 125% !important;
        height: 125% !important;
        object-fit: cover !important;
        object-position: center !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(1) !important;
    }

    .hero__image-wrapper {
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .hero__slide--active .hero__image {
        animation: kenBurnsMobile 16s ease-in-out infinite alternate !important;
    }
}

/* Very Small Devices (Small Phones, up to 375px) */
@media (max-width: 374.98px) {
    .hero {
        height: 350px !important;
        min-height: 350px !important;
    }

    .hero__content {
        padding: 0 12px !important;
    }

    .hero__content-inner {
        gap: 12px !important;
    }

    .hero__title {
        font-size: 24px !important;
        letter-spacing: -0.3px !important;
        line-height: 1.1 !important;
    }

    .hero__subtitle {
        font-size: 11px !important;
        letter-spacing: 0.3px !important;
        line-height: 1.5 !important;
    }

    .hero__button {
        padding: 12px 24px !important;
        font-size: 10px !important;
        letter-spacing: 1px !important;
        margin-top: 8px !important;
    }

    .hero__dots {
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        gap: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        z-index: 3 !important;
        padding: 0 10px !important;
    }

    .hero__dot {
        width: 7px !important;
        height: 7px !important;
        min-width: 7px !important;
        min-height: 7px !important;
        padding: 0 !important;
        border-width: 1.5px !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }

    .hero__dot::after {
        width: 44px !important;
        height: 44px !important;
    }

    .hero__progress {
        height: 2px !important;
    }

    .hero__image {
        width: 130% !important;
        height: 130% !important;
        object-fit: cover !important;
        object-position: center !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(1) !important;
    }

    .hero__image-wrapper {
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .hero__slide--active .hero__image {
        animation: kenBurnsMobile 15s ease-in-out infinite alternate !important;
    }
}

/* Landscape Orientation (Mobile) */
@media (max-width: 991.98px) and (orientation: landscape) {
    .hero {
        height: 100vh !important;
        max-height: 500px !important;
        min-height: 400px !important;
    }

    .hero__content-inner {
        gap: 15px !important;
    }

    .hero__title {
        font-size: clamp(28px, 5vw, 42px) !important;
    }

    .hero__subtitle {
        font-size: clamp(13px, 2vw, 16px) !important;
    }

    .hero__button {
        padding: 12px 35px !important;
        font-size: 11px !important;
    }

    .hero__dots {
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        z-index: 3 !important;
        gap: 10px !important;
    }

    .hero__dot {
        width: 9px !important;
        height: 9px !important;
        min-width: 9px !important;
        min-height: 9px !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }

    .hero__dot::after {
        width: 44px !important;
        height: 44px !important;
    }
}

/* High DPI / Retina Displays */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    .hero__image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .hero__title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .hero__image,
    .hero__slide,
    .hero__title,
    .hero__subtitle,
    .hero__button {
        animation: none !important;
        transition: none !important;
    }

    .hero__slide--active .hero__image {
        animation: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .hero {
        background-color: #000000;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .hero__dots {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .hero__dot {
        width: 10px !important;
        height: 10px !important;
        min-width: 10px !important;
        min-height: 10px !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        border-width: 2px !important;
        box-sizing: border-box !important;
    }

    .hero__dot::after {
        width: 44px !important;
        height: 44px !important;
    }

    .hero__button {
        min-height: 44px !important;
        padding: 16px 45px !important;
    }

    .hero__dot:hover {
        transform: scale(1) !important;
    }

    .hero__dot:active {
        transform: scale(0.9) !important;
        background-color: rgba(255, 255, 255, 0.7) !important;
    }
}

/* Mobile Ken Burns Animations */
@keyframes kenBurnsMobile {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.08) translate(-3%, -3%);
    }
}

@keyframes kenBurnsTablet {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.09) translate(-4%, -4%);
    }
}

@keyframes kenBurnsDesktop {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1) translate(-5%, -5%);
    }
}

