/* ============================================
   HOME PAGE DESIGN IMPROVEMENTS - PREMIUM
   ============================================ */

/* Enhanced Hero Section with Dynamic Gradient */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0a1929 0%, #1e3a5f 40%, #2d5a8f 70%, #00bcd4 100%);
    overflow: hidden;
}

/* Animated gradient overlay */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 188, 212, 0.1) 0%,
        transparent 30%,
        transparent 70%,
        rgba(30, 58, 95, 0.1) 100%
    );
    animation: gradientFlow 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gradientFlow {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(0) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(20px) scale(1.05);
    }
}

/* Improved gradient animation */
.hero-section::before {
    opacity: 0.1;
    background: url('/img/bg-1.jpg') center/cover;
    animation: subtleZoom 30s ease-in-out infinite;
}

@keyframes subtleZoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

/* Better text contrast with enhanced shadows */
.hero-content h1 {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 
                 0 2px 15px rgba(0, 0, 0, 0.5),
                 0 8px 40px rgba(0, 188, 212, 0.3);
    letter-spacing: -0.02em;
    position: relative;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00bcd4 0%, transparent 100%);
    border-radius: 2px;
}

.hero-content .subtitle {
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5),
                 0 1px 8px rgba(0, 0, 0, 0.4);
    max-width: 650px;
    font-weight: 400;
}

/* Better text contrast */
.hero-content h1 {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 
                 0 2px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

.hero-content .subtitle {
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    max-width: 600px;
}

/* Enhanced Hero Badge */
.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Premium Button Styling with Enhanced Effects */
.btn-primary-custom {
    background: white;
    color: #1e3a5f;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                0 0 0 0 rgba(255, 255, 255, 0.5),
                0 4px 20px rgba(0, 188, 212, 0.2);
    animation: pulseGlow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2), rgba(30, 58, 95, 0.2));
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary-custom:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary-custom:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(0, 188, 212, 0.4);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                    0 0 0 0 rgba(255, 255, 255, 0.5),
                    0 4px 20px rgba(0, 188, 212, 0.2);
    }
    50% {
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4),
                    0 0 20px 5px rgba(255, 255, 255, 0.3),
                    0 6px 30px rgba(0, 188, 212, 0.4);
    }
}

.btn-secondary-custom {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary-custom:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Enhanced Hero Stats */
.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat-item {
    position: relative;
}

.hero-stat-item::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-stat-item:last-child::after {
    display: none;
}

/* Improved Hero Image */
.hero-image {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-image img {
    transform: scale(1.05);
    transition: transform 0.6s ease;
}

.hero-image:hover img {
    transform: scale(1.1);
}

/* Enhanced Floating Cards */
.hero-floating-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.hero-floating-card i {
    background: linear-gradient(135deg, #1e3a5f 0%, #00bcd4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Better Section Spacing */
.section {
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 188, 212, 0.3) 50%, 
        transparent 100%);
}

/* Enhanced Section Headers */
.section-header {
    position: relative;
    padding-bottom: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-badge {
    background: linear-gradient(135deg, #1e3a5f 0%, #00bcd4 100%);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin: 0 auto 1rem auto;
}

.section-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.section-title {
    position: relative;
    display: block;
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #00bcd4 0%, transparent 100%);
    border-radius: 2px;
}

.section-description {
    text-align: center;
    margin: 1.5rem auto 0 auto;
}

/* Premium Service Cards with Enhanced Design */
.service-card-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 188, 212, 0.1);
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1e3a5f 0%, #00bcd4 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.03) 0%, rgba(30, 58, 95, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(0, 188, 212, 0.2);
}

.service-card-modern:hover::before {
    transform: scaleX(1);
}

.service-card-modern:hover::after {
    opacity: 1;
}

.service-icon-modern {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-icon-modern::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #00bcd4, #1e3a5f);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-modern:hover .service-icon-modern {
    transform: scale(1.1) rotate(5deg);
}

.service-card-modern:hover .service-icon-modern::after {
    opacity: 1;
    transform: scale(1);
}

/* Improved Feature Items */
.feature-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.feature-item:hover {
    border-left-color: #00bcd4;
    background: rgba(0, 188, 212, 0.05);
}

/* Enhanced CTA Section */
.cta-section-modern {
    background: linear-gradient(135deg, #1e3a5f 0%, #00bcd4 100%);
    position: relative;
    overflow: hidden;
}

.cta-section-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotateSlow 30s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

/* Better Scroll Indicator */
.scroll-indicator {
    animation: bounceSmooth 2s ease-in-out infinite;
}

@keyframes bounceSmooth {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(-15px);
        opacity: 0.7;
    }
}

/* Improved Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        background: linear-gradient(135deg, #0a1929 0%, #1e3a5f 100%);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .hero-stat-item::after {
        display: none;
    }
    
    .hero-floating-card {
        display: none;
    }
    
    .section-badge {
        font-size: 0.75rem;
    }
}

/* Loading Animation Prevention */
.hero-image img {
    will-change: auto;
}

/* Ensure smooth loading */
.hero-section,
.hero-content,
.hero-image-wrapper {
    will-change: auto;
}
