.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-slider .slides {
    height: 100%;
    width: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    display: flex;
    align-items: center;
    will-change: opacity, visibility;
    transform: translateZ(0);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px;
    width: 100%;
}

.content--wrapper {
    background-color: #fff;
    max-width: 50%;
    padding: 80px 70px;
    position: relative;
    box-shadow: #ff4a17 10px 10px;
    background-image: url('../img/sl-shape.png');
    background-size: auto;
    background-repeat: no-repeat;
    background-position: 100% 100%;
    margin-left: 50px;
}

.hero-slide h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #000;
    font-weight: 700;
}

.hero-slide h1 span {
    color: #ff4a17;
}

.hero-slide p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background-color: #ff4a17;
    color: #fff;
    min-width: 160px;
}

.btn-primary:hover {
    background-color: #e63e0e;
}

.btn-secondary {
    background-color: transparent;
    color: #000;
    border: 2px solid #ff4a17;
    min-width: 160px;
}

.btn-secondary:hover {
    background-color: #ff4a17;
    color: #fff;
}

.hero-navigation {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.slide-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #ff4a17;
    transform: scale(1.2);
}

.nav-prev,
.nav-next {
    background-color: #fff;
    color: #000;
    border: 2px solid #ff4a17;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-prev:hover,
.nav-next:hover {
    background-color: #ff4a17;
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 1366px) {
    .content--wrapper {
        max-width: 75%;
        padding: 60px 50px;
    }
}

@media (max-width: 1024px) {
    .hero-slide .container {
        padding: 0 30px;
    }

    .content--wrapper {
        max-width: 85%;
        padding: 50px 40px;
        margin-left: 30px;
    }

    .hero-slide h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-slider,
    .hero-slide {
        height: 85vh;
        min-height: 500px;
    }

    .hero-slide .container {
        padding: 20px;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .content--wrapper {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        padding: 25px 20px;
        box-shadow: #ff4a17 5px 5px;
    }

    .hero-slide h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-slide p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
        width: 100%;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        box-sizing: border-box;
        max-width: none;
        min-width: 0;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .hero-navigation {
        justify-content: center;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .hero-slide h1 {
        font-size: 2rem;
    }

    .content--wrapper {
        padding: 25px 15px;
    }

    .hero-slide .overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    }

    .hero-buttons .btn {
        padding: 10px 15px;
    }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .hero-slider,
    .hero-slide {
        height: -webkit-fill-available;
        min-height: 600px;
    }
}

/* Tablet and iPad Pro specific styles */
@media only screen and (min-width: 768px) and (max-width: 1366px) {
    .hero-slider,
    .hero-slide {
        height: 80vh;
        min-height: 600px;
    }

    .content--wrapper {
        max-width: 70%;
        padding: 50px 40px;
    }

    .hero-slide h1 {
        font-size: 2.8rem;
    }
}

/* Additional specific adjustment for iPad Pro in both orientations */
@media only screen and (min-width: 1024px) and (max-width: 1366px) and (min-height: 1024px) {
    .hero-slider,
    .hero-slide {
        height: 60vh;
        min-height: 500px;
    }
}

/* Specific adjustments for larger phones (iPhone 14 Pro Max, etc.) */
@media only screen and (min-width: 390px) and (max-width: 430px) and (min-height: 844px) {
    .hero-slider,
    .hero-slide {
        height: 70vh;
        min-height: 450px;
    }

    .content--wrapper {
        padding: 20px 15px;
    }

    .hero-slide h1 {
        font-size: 1.8rem;
        margin-bottom: 0.875rem;
    }

    .hero-buttons {
        margin-bottom: 20px;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    .hero-slider,
    .hero-slide {
        height: 75vh;
        min-height: 400px;
    }

    .content--wrapper {
        padding: 20px 15px;
    }

    .hero-slide h1 {
        font-size: 1.6rem;
    }
} 