/* ========================================
   Premium Hero Section Styles
   File: assets/css/hero-section.css
======================================== */

:root {
    --ws-primary: #b87939;
    --ws-primary-dark: #9a6530;
    --ws-primary-light: #d4955e;
}

/* ========== Hero Container ========== */
.ws-hero-section {
    position: relative;
    width: 100%;
    height: 500px;
    min-height: 500px;
    overflow: hidden;
    background: #000;
    margin: 2rem auto;
    border-radius: 20px;
}

/* ========== Slides Container ========== */
.ws-hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.ws-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.645, 0.045, 0.355, 1),
                visibility 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: 1;
}

.ws-hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* ========== Background Image ========== */
.ws-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ws-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ws-hero-slide.active .ws-hero-bg img {
    transform: scale(1.1);
}

.ws-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0.60) 0%, 
        rgba(0, 0, 0, 0.7) 40%, 
        rgba(0, 0, 0, 0.3) 70%, 
        rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

/* ========== Content Container ========== */
.ws-hero-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 3;
}

.ws-hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ws-hero-text {
    max-width: 700px;
}

/* ========== Text Elements ========== */
.ws-hero-subtitle {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ws-primary-light);
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(30px);
}

.ws-hero-slide.active .ws-hero-subtitle {
    animation: fadeUp 0.8s cubic-bezier(0.645, 0.045, 0.355, 1) 0.2s forwards;
}

.ws-hero-title {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
}

.ws-hero-slide.active .ws-hero-title {
    animation: fadeUp 0.8s cubic-bezier(0.645, 0.045, 0.355, 1) 0.4s forwards;
}

.ws-hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    opacity: 0;
    transform: translateY(30px);
    max-width: 550px;
}

.ws-hero-slide.active .ws-hero-description {
    animation: fadeUp 0.8s cubic-bezier(0.645, 0.045, 0.355, 1) 0.6s forwards;
}

/* ========== Button ========== */
.ws-hero-button {
    opacity: 0;
    transform: translateY(30px);
}

.ws-hero-slide.active .ws-hero-button {
    animation: fadeUp 0.8s cubic-bezier(0.645, 0.045, 0.355, 1) 0.8s forwards;
}

.ws-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: var(--ws-primary);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    box-shadow: 0 10px 30px rgba(184, 121, 57, 0.3);
    color: white !important;
}

.ws-hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s;
}

.ws-hero-btn:hover::before {
    left: 100%;
}

.ws-hero-btn:hover {
    background: var(--ws-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(184, 121, 57, 0.4);
}

.ws-hero-btn svg {
    transition: transform 0.3s;
}

.ws-hero-btn:hover svg {
    transform: translateX(5px);
}

/* ========== Navigation Arrows ========== */
.ws-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    opacity: 0;
    visibility: hidden;
}

.ws-hero-section:hover .ws-hero-nav {
    opacity: 1;
    visibility: visible;
}

.ws-hero-prev {
    left: 30px;
}

.ws-hero-next {
    right: 30px;
}

.ws-hero-nav:hover {
    background: var(--ws-primary);
    border-color: var(--ws-primary);
    transform: translateY(-50%) scale(1.1);
}

/* ========== Pagination Dots ========== */
.ws-hero-pagination {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.ws-hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    padding: 0;
}

.ws-hero-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.ws-hero-dot.active {
    width: 40px;
    border-radius: 6px;
    background: var(--ws-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========== Progress Bar ========== */
.ws-hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.ws-hero-progress-bar {
    height: 100%;
    width: 0;
    background: var(--ws-primary);
    transition: width linear;
}

/* ========== Animations ========== */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .ws-hero-title {
        font-size: clamp(36px, 5vw, 56px);
    }
    
    .ws-hero-description {
        font-size: 16px;
    }
    
    .ws-hero-nav {
        width: 45px;
        height: 45px;
    }
    
    .ws-hero-prev {
        left: 20px;
    }
    
    .ws-hero-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .ws-hero-section {
        min-height: 500px;
    }
    
    .ws-hero-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .ws-hero-title {
        font-size: clamp(32px, 8vw, 42px);
        margin-bottom: 15px;
    }
    
    .ws-hero-description {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .ws-hero-btn {
        padding: 15px 32px;
        font-size: 15px;
    }
    
    .ws-hero-nav {
        width: 40px;
        height: 40px;
        opacity: 1;
        visibility: visible;
    }
    
    .ws-hero-prev {
        left: 15px;
    }
    
    .ws-hero-next {
        right: 15px;
    }
    
    .ws-hero-pagination {
        bottom: 30px;
    }
    
    .ws-hero-dot {
        width: 10px;
        height: 10px;
    }
    
    .ws-hero-dot.active {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .ws-hero-section {
        min-height: 320px ;
        height: 320px;
        margin: 1rem auto;
        border-radius: 12px;

    }
    
    .ws-hero-container {
        padding: 0 15px;
    }
    
    .ws-hero-subtitle {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .ws-hero-title {
        font-size: clamp(28px, 7vw, 36px);
    }
    
    .ws-hero-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .ws-hero-btn {
        padding: 11px 26px;
        font-size: 14px;
        gap: 6px;
    }
    
    .ws-hero-nav {
        display: none !important;
    }
    
    .ws-hero-pagination {
        bottom: 25px;
    }
}

/* ========== Accessibility ========== */
@media (prefers-reduced-motion: reduce) {
    .ws-hero-slide,
    .ws-hero-bg img,
    .ws-hero-subtitle,
    .ws-hero-title,
    .ws-hero-description,
    .ws-hero-button,
    .ws-hero-nav,
    .ws-hero-dot {
        animation: none !important;
        transition: none !important;
    }
    
    .ws-hero-slide.active .ws-hero-subtitle,
    .ws-hero-slide.active .ws-hero-title,
    .ws-hero-slide.active .ws-hero-description,
    .ws-hero-slide.active .ws-hero-button {
        opacity: 1;
        transform: none;
    }
}

/* ========== Print Styles ========== */
@media print {
    .ws-hero-nav,
    .ws-hero-pagination,
    .ws-hero-progress {
        display: none;
    }
    
    .ws-hero-section {
        height: auto;
        page-break-inside: avoid;
    }
}