/* Additional Modern & Futuristic CSS for HMI Website */

/* ===== VARIABLES ===== */
:root {
    /* Update/add color palette for a more modern look */
    --primary-color: #328E6E;
    --primary-light: #47b38e;
    --primary-dark: #046b30;
    --primary-gradient: linear-gradient(135deg, #328E6E, #046b30);
    --secondary-color: #2ecc71;
    --secondary-dark: #E1EEBC;
    --accent-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --success-color: #2ecc71;
    --info-color: #3498db;
    --gray-light: #f5f5f5;
    --gray: #ddd;
    --gray-dark: #95a5a6;
    
    /* Animations */
    --transition-speed-fast: 0.2s;
    --transition-speed: 0.3s;
    --transition-speed-slow: 0.5s;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* ===== GENERAL STYLES ===== */
body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Enhanced animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* Glowing button effect */
.ul-btn-glow {
    position: relative;
    overflow: hidden;
    background: var(--primary-gradient);
    color: white;
    border: none;
    z-index: 1;
    transition: all 0.5s ease;
}

.ul-btn-glow: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.7s ease;
    z-index: -1;
}

.ul-btn-glow:hover:before {
    left: 100%;
}

.ul-btn-glow:hover {
    box-shadow: 0 0 15px var(--primary-light);
    transform: translateY(-3px);
}

.ul-btn-hover-effect {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.ul-btn-hover-effect:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--primary-dark);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.ul-btn-hover-effect:hover:after {
    transform: scaleY(1);
}

.ul-btn-hover-effect:hover {
    color: white;
}

.ul-btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.ul-btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Enhanced About section */
.ul-about-img {
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

.ul-about-img:hover {
    transform: translateY(-10px);
}

.about-pattern-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 20px;
    left: 20px;
    background-image: linear-gradient(45deg, var(--primary-color) 25%, transparent 25%), 
                      linear-gradient(-45deg, var(--primary-color) 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, var(--primary-color) 75%),
                      linear-gradient(-45deg, transparent 75%, var(--primary-color) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    z-index: -1;
    opacity: 0.1;
    border-radius: 10px;
}

.about-accent-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-gradient);
    top: -20px;
    right: -20px;
    z-index: -1;
    opacity: 0.7;
}

.ul-feature-item {
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.ul-feature-item:hover {
    background: rgba(46, 204, 113, 0.05);
    transform: translateX(5px);
}

.ul-feature-item i {
    font-size: 28px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.ul-feature-item:hover i {
    transform: scale(1.2);
}

/* Activities section enhancements */
.ul-activities-section {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.activities-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--gray) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 0;
}

.ul-section-sub-title {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.title-separator {
    width: 80px;
    height: 3px;
    background: var(--primary-gradient);
    margin: 15px 0 30px;
}

.title-separator.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.ul-activity-card {
    border-radius: 15px;
    background: white;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.card-hover {
    border: 1px solid transparent;
}

.card-hover:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-hover:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.card-hover:hover:before {
    transform: scaleX(1);
}

.ul-activity-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
}

.ul-activity-card:hover .ul-activity-icon {
    transform: rotateY(180deg);
}

.ul-activity-icon i {
    font-size: 32px;
    color: white;
}

.activity-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.activity-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.ul-activity-card:hover .activity-link {
    opacity: 1;
    transform: translateY(0);
}

.ul-activity-card:hover .activity-link i {
    transform: translateX(5px);
}

/* Counter section */
.ul-counter-section {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.ul-counter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/img/pattern-light.png');
    opacity: 0.1;
    z-index: 0;
}

.counter-wrap {
    position: relative;
    z-index: 1;
}

.counter-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.counter-box:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.counter-box i {
    font-size: 40px;
    color: white;
    margin-bottom: 15px;
}

.counter-number {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    line-height: 1;
}

.counter-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin: 0;
}

/* Blog section enhancements */
.ul-blogs-2 {
    position: relative;
}

.blog-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-light) 25%, transparent 25%) -10px 0,
                linear-gradient(225deg, var(--gray-light) 25%, transparent 25%) -10px 0,
                linear-gradient(315deg, var(--gray-light) 25%, transparent 25%),
                linear-gradient(45deg, var(--gray-light) 25%, transparent 25%);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: -1;
}

.blog-card-hover {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.blog-card-hover:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.ul-blog-img {
    overflow: hidden;
    position: relative;
}

.ul-blog-img img {
    transition: transform 0.5s ease;
}

.blog-card-hover:hover .ul-blog-img img {
    transform: scale(1.1);
}

.ul-blog-title {
    position: relative;
    padding-bottom: 10px;
    transition: all 0.3s ease;
}

.ul-blog-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.blog-card-hover:hover .ul-blog-title {
    color: var(--primary-color);
}

.blog-card-hover:hover .ul-blog-title:after {
    width: 100%;
}

.ul-blog-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.ul-blog-btn .icon {
    transition: transform 0.3s ease;
}

.ul-blog-btn:hover {
    color: var(--primary-dark);
}

.ul-blog-btn:hover .icon {
    transform: translateX(5px);
}

/* Empty state styling */
.empty-state-container {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.empty-icon {
    font-size: 60px;
    color: var(--gray);
    margin-bottom: 20px;
}

/* CTA Section */
.ul-cta-section {
    background: var(--primary-gradient);
    padding: 0;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.ul-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/img/dots-pattern.png');
    opacity: 0.1;
    z-index: 0;
}

.cta-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 50px;
    margin: -30px auto 30px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-container h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 10px;
}

.cta-container p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin: 0;
}

.ul-btn-light {
    background: white;
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ul-btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.ul-btn-light i {
    transition: transform 0.3s ease;
}

.ul-btn-light:hover i {
    transform: translateX(5px);
}

.ul-btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* Testimonial section enhancements */
.ul-testimonial-section {
    position: relative;
    overflow: hidden;
}

.ul-testimonial-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 0;
}

.ul-testimonial-card {
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    background: white;
    transition: all 0.3s ease;
}

.ul-testimonial-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.testimonial-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.ul-testimonial-card:hover .testimonial-img {
    transform: rotate(5deg);
}

.testimonial-prev,
.testimonial-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Partners section */
.ul-partners-section {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.partners-slider {
    padding: 30px 0;
}

.partner-item {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
}

.partner-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.partner-item img {
    max-height: 80px;
    max-width: 80%;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .ul-banner-2 {
        margin: 10px 15px 40px;
    }
    
    .cta-container {
        padding: 30px;
        margin: -20px 15px 20px;
    }
    
    .counter-box {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .ul-section-title {
        font-size: 28px;
    }
    
    .cta-container {
        padding: 25px;
        text-align: center;
    }
    
    .cta-container h2 {
        font-size: 24px;
    }
    
    .ul-banner-2-slide {
        padding: 80px 15px 120px;
    }
    
    .partner-item {
        height: 80px;
    }
}

@media (max-width: 575px) {
    .ul-banner-2 {
        margin: 5px 10px 30px;
    }
    
    .ul-section-title {
        font-size: 24px;
    }
    
    .ul-activity-icon {
        width: 60px;
        height: 60px;
    }
    
    .ul-activity-icon i {
        font-size: 24px;
    }
    
    .counter-number {
        font-size: 36px;
    }
    
    .partner-item {
        height: 60px;
    }
}