/* NAS Hero Slider - Frontend Styles (nasimaging.com exact replica) */

.nas-hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
}

.nas-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.nas-slide {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 73%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.nas-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.nas-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.nas-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.nas-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Vertical Label on Left */
.nas-vertical-label {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    opacity: 0;
}

.nas-slide.active .nas-vertical-label {
    opacity: 1;
    animation-delay: 0.3s;
}

/* Subtitle above title */
.nas-subtitle {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    opacity: 0;
    color: rgba(255, 255, 255, 0.9);
}

.nas-slide.active .nas-subtitle {
    opacity: 1;
    animation-delay: 0.5s;
}

/* Main Title with underline link effect */
.nas-title {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 25px 0;
    opacity: 0;
    display: inline-block;
}

.nas-title a {
    color: inherit;
    text-decoration: none;
    position: relative;
    display: inline-block;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.nas-title a:hover {
    border-bottom-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.nas-slide.active .nas-title {
    opacity: 1;
    animation-delay: 0.7s;
}

/* Description text */
.nas-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.85);
}

.nas-slide.active .nas-description {
    opacity: 1;
    animation-delay: 0.9s;
}

/* VIEW CASE button */
.nas-button {
    display: inline-block;
    padding: 14px 35px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: #fff;
    transition: all 0.4s ease;
    opacity: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nas-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.4s ease;
    z-index: -1;
}

.nas-button:hover::before {
    left: 0;
}

.nas-button:hover {
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.nas-slide.active .nas-button {
    opacity: 1;
    animation-delay: 1.1s;
}

/* Slider Navigation Arrows - Minimal style */
.nas-slider-controls {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    transform: translateY(50%);
    pointer-events: none;
}

.nas-prev,
.nas-next {
    position: relative;
    z-index: 9999;
    pointer-events: auto;
    width: 60px;
    height: 60px;
    background: transparent;
    /*border: 1px solid rgba(255, 255, 255, 0.3);*/
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    opacity: 0.7;
}

.nas-prev:hover,
.nas-next:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    opacity: 1;
    transform: scale(1.1);
}

.nas-prev:active,
.nas-next:active {
    transform: scale(0.95);
}

/* Pagination Counter - Bottom Right */
.nas-slider-pagination {
    position: absolute;
    /* bottom: 60px;
    right: 60px; */
    bottom: 225px;
    right: -54px;
    transform: translateX(-50%) rotate(90deg);
    z-index: 10;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: 'Arial', sans-serif;
}

.current-slide {
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
}

.separator {
    opacity: 0.6;
    font-size: 20px;
    margin: 0 5px;
}

.total-slides {
    opacity: 0.7;
    font-size: 18px;
}

/* Bottom Info Boxes (How We Work, What We Do, Get A Quote) */
.nas-info-boxes {
    position: absolute;
    /*bottom: 0;*/
    /*left: 0;*/
    bottom: 87px;
    left: 97px;
    right: 0;
    z-index: 10;
    display: flex;
    /*background: rgba(0, 0, 0, 0.3);*/
    /*backdrop-filter: blur(10px);*/
}

.nas-info-box {
    /*display: none;*/
    flex: 1;
    padding: 30px 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.nas-info-box:last-child {
    border-right: none;
}

/*.nas-info-box:hover {*/
/*    background: rgba(255, 255, 255, 0.05);*/
/*}*/

.nas-info-box h4 {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    color: #fff;
}

.nas-info-box p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Social Links - Bottom Left */
.nas-social-links {
    position: absolute;
    /* left: 60px;
    bottom: 60px; */
    left: 36px;
    bottom: 225px;
    transform: translateX(-50%) rotate(-90deg);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.nas-social-links a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.nas-social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

/* Empty State */
.nas-slider-empty {
    padding: 60px 20px;
    text-align: center;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    color: #666;
    font-size: 16px;
}

/* Animation Delays for Active Slide */
.nas-slide.active .animate__animated {
    animation-duration: 1.2s;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nas-vertical-label {
        left: 30px;
        font-size: 11px;
    }
    
    .nas-slider-pagination {
        bottom: 135px;
        right: -65px;
    }
    
    .nas-social-links {
        /* left: 40px;
        bottom: 40px; */
        bottom: 250px;
        right: 20px;
    }
}

@media (max-width: 1024px) {
    .nas-title {
        font-size: 48px;
    }
    
    .nas-subtitle {
        font-size: 13px;
    }
    
    .nas-description {
        font-size: 15px;
    }
    
    .nas-container {
        padding: 0 30px;
    }
    
    .nas-slider-controls {
        padding: 0 20px;
    }
    
    .nas-info-box {
        padding: 25px 30px;
    }
    
    .nas-info-box h4 {
        font-size: 13px;
    }
    
    .nas-info-box p {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .nas-hero-slider {
        height: 100vh;
        min-height: 600px;
    }
    
    .nas-vertical-label {
        display: none;
    }
    
    .nas-title {
        font-size: 36px;
    }
    
    .nas-title a {
        border-bottom-width: 2px;
    }
    
    .nas-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }
    
    .nas-description {
        font-size: 14px;
        margin-bottom: 30px;
        line-height: 1.7;
    }
    
    .nas-button {
        padding: 12px 30px;
        font-size: 10px;
    }
    
    .nas-container {
        padding: 0 20px;
    }
    
    .nas-slider-controls {
        padding: 0 15px;
    }
    
    .nas-prev,
    .nas-next {
        width: 50px;
        height: 50px;
        font-size: 12px;
    }
    
    .nas-slider-pagination {
        bottom: 30px;
        right: 30px;
        font-size: 12px;
    }
    
    .current-slide {
        font-size: 28px;
    }
    
    .separator {
        font-size: 16px;
    }
    
    .total-slides {
        font-size: 16px;
    }
    
    .nas-social-links {
        left: 30px;
        bottom: 30px;
        gap: 10px;
    }
    
    .nas-social-links a {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    /* Stack info boxes vertically on mobile */
    .nas-info-boxes {
        flex-direction: column;
    }
    
    .nas-info-box {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px 25px;
    }
    
    .nas-info-box:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .nas-hero-slider {
        min-height: 550px;
    }
    
    .nas-title {
        font-size: 28px;
    }
    
    .nas-subtitle {
        font-size: 11px;
        margin-bottom: 12px;
        letter-spacing: 1.5px;
    }
    
    .nas-description {
        font-size: 13px;
        margin-bottom: 25px;
    }
    
    .nas-button {
        padding: 10px 25px;
        font-size: 9px;
        letter-spacing: 1.5px;
    }
    
    .nas-container {
        padding: 0 15px;
    }
    
    .nas-slider-controls {
        padding: 0 10px;
    }
    
    .nas-prev,
    .nas-next {
        width: 45px;
        height: 45px;
        font-size: 11px;
    }
    
    .nas-slider-pagination {
        /* bottom: 20px;
        right: 20px; */
        bottom: 270px;
        right: -25px;
        font-size: 11px;
    }
    
    .current-slide {
        font-size: 24px;
    }
    
    .separator {
        font-size: 14px;
    }
    
    .total-slides {
        font-size: 14px;
    }
    
    .nas-social-links {
        /* left: 20px;
        bottom: 129px; */
        left: 53px;
        bottom: 270px;
        transform: translateX(-50%) rotate(360deg);
        flex-direction: column;
        gap: 8px;
    }
    
    .nas-social-links a {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    
    .nas-info-box {
        padding: 18px 20px;
    }
    
    .nas-info-box h4 {
        font-size: 12px;
        letter-spacing: 1.5px;
    }
    
    .nas-info-box p {
        font-size: 11px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .nas-hero-slider {
        height: auto;
        min-height: 100vh;
    }
    
    .nas-slide-content {
        padding: 40px 0;
    }
    
    .nas-info-boxes {
        position: relative;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .nas-prev,
    .nas-next {
        width: 55px;
        height: 55px;
    }
    
    .nas-social-links a {
        width: 40px;
        height: 40px;
    }
    
    .nas-info-box {
        cursor: default;
    }
}

/* Accessibility */
.nas-prev:focus,
.nas-next:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
}

.nas-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

.nas-social-links a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.nas-title a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

/* Print Styles */
@media print {
    .nas-hero-slider {
        height: auto;
        page-break-inside: avoid;
    }
    
    .nas-slide {
        position: relative;
        opacity: 1 !important;
        visibility: visible !important;
        page-break-inside: avoid;
        page-break-after: always;
    }
    
    .nas-slider-controls,
    .nas-slider-pagination,
    .nas-social-links,
    .nas-info-boxes {
        display: none;
    }
}

/* Loading State */
.nas-hero-slider.loading {
    background: #000;
}

.nas-hero-slider.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
