/* =============================================================================
   AV Technosoft - Main Stylesheet
   Consolidated CSS for all frontend and admin pages
   ============================================================================= */

/* =============================================================================
   ANIMATIONS & KEYFRAMES
   ============================================================================= */

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */

.gradient-bg {
    background: linear-gradient(-45deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.cursor-zoom-in {
    cursor: zoom-in;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Line Clamp Utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================================================
   PRODUCT CARDS
   ============================================================================= */

.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* =============================================================================
   BANNER SLIDER
   ============================================================================= */

.banner-slider {
    position: relative;
    width: 100%;
    min-height: 450px;
    overflow: hidden;
    background-position: top center !important;
    margin-top: 48px;
    opacity: 0.9 !important;
}

@media (min-width: 768px) {
    .banner-slider {
        min-height: 554px;
    }
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 450px;
    background-size: cover !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s ease-in-out;
    opacity: 0.94 !important;
}

@media (min-width: 768px) {
    .banner-slide {
        min-height: 554px;
    }
}

.banner-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.banner-slide.prev {
    transform: translateX(-100%);
    opacity: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Banner Content */
.banner-content {
    padding-top: 8rem;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .banner-content {
        padding-top: 10rem;
        padding-bottom: 8rem;
    }
}

/* Banner Text Sizing */
.banner-title {
    font-size: 2.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .banner-title {
        font-size: 3.5rem;
    }
}

.banner-subtitle {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .banner-subtitle {
        font-size: 2rem;
    }
}

.banner-description {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .banner-description {
        font-size: 1.25rem;
    }
}

/* =============================================================================
   TESTIMONIAL CAROUSEL
   ============================================================================= */

.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 16px;
}

.testimonial-slide {
    min-width: 90%;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .testimonial-slide {
        min-width: 45%;
    }
}

@media (min-width: 768px) {
    .testimonial-slide {
        min-width: 30%;
    }
}

.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(1, 121, 165, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-arrow:hover {
    background: rgba(1, 121, 165, 1);
    transform: translateY(-50%) scale(1.1);
}

.testimonial-arrow.prev {
    left: 10px;
}

.testimonial-arrow.next {
    right: 10px;
}

@media (max-width: 767px) {
    .testimonial-arrow {
        width: 40px;
        height: 40px;
    }
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s;
}

.testimonial-dot.active {
    background: #0179A5;
    width: 30px;
    border-radius: 5px;
}

/* =============================================================================
   CLIENTS CAROUSEL
   ============================================================================= */

.clients-carousel {
    position: relative;
    overflow: hidden;
}

.clients-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 16px;
}

.client-slide {
    min-width: 50%;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .client-slide {
        min-width: 33.333%;
    }
}

@media (min-width: 768px) {
    .client-slide {
        min-width: 25%;
    }
}

@media (min-width: 1024px) {
    .client-slide {
        min-width: 16.666%;
    }
}

.client-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(1, 121, 165, 0.9);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-arrow:hover {
    background: rgba(1, 121, 165, 1);
    transform: translateY(-50%) scale(1.1);
}

.client-arrow.prev {
    left: -15px;
}

.client-arrow.next {
    right: -15px;
}

@media (max-width: 767px) {
    .client-arrow {
        width: 35px;
        height: 35px;
    }
    .client-arrow.prev {
        left: 5px;
    }
    .client-arrow.next {
        right: 5px;
    }
}

/* =============================================================================
   SIDEBAR & NAVIGATION (About Page)
   ============================================================================= */

.sidebar-link {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: #f3f4f6;
    border-left-color: #0179A5;
    color: #0179A5;
}

.content-section {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    .sidebar {
        position: relative !important;
    }
}

/* =============================================================================
   PRODUCT DETAIL PAGE
   ============================================================================= */

.thumbnail-item.active div {
    border-color: #0179A5 !important;
    box-shadow: 0 0 0 1px #0179A5;
}

#thumbnailGallery::-webkit-scrollbar {
    height: 6px;
}

#thumbnailGallery::-webkit-scrollbar-thumb {
    background: #0179A5;
    border-radius: 3px;
}

/* =============================================================================
   ADMIN PANEL
   ============================================================================= */

.section-card {
    transition: all 0.3s ease;
}

.section-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* client bg  */
.bg-client {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdfa 100%);
    background-image: url('../images/client-b.png');
    background-position: top center !important;
    background-repeat: no-repeat;
    background-size: cover;
    height: 300px!important;
}