/* Modern Homepage Enhancements */

/* Hero Section 2-Column Layout */
.modern-hero {
    min-height: 100vh;
    padding: 100px 0 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.min-vh-90 {
    min-height: 90vh;
}

.hero-text-content {
    z-index: 10;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
}

.hero-text-content h1 {
    color: white !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-text-content .lead {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.3rem;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-text-content .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-text-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-text-content .highlight-text {
    color: #FFD700 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Force all text elements to stay visible */
.hero-text-content h1,
.hero-text-content .lead,
.hero-text-content p,
.hero-text-content .btn {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transform: none !important;
}

/* Override AOS animations in hero section */
.hero-text-content [data-aos],
.hero-text-content .fade-in-up,
.hero-text-content .delay-1,
.hero-text-content .delay-2,
.hero-text-content .delay-3 {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transform: translateY(0) !important;
    transition: all 0.3s ease !important;
}

/* Ensure typed text is visible */
.hero-text-content .typed-text {
    opacity: 1 !important;
    visibility: visible !important;
}

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

.hero-image-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.hero-main-image {
    width: 100%;
    height: auto;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.3s ease;
}

.hero-main-image:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    z-index: 3;
    animation: float 3s ease-in-out infinite;
}

.floating-element-1 {
    top: 15%;
    right: -10px;
    animation-delay: 0s;
}

.floating-element-2 {
    bottom: 20%;
    left: -20px;
    animation-delay: 1.5s;
}

.floating-card {
    background: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Enhanced Buttons */
.hero-text-content .btn {
    border-radius: 50px;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.hero-text-content .btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border: none;
    color: white;
}

.hero-text-content .btn-primary:hover {
    background: linear-gradient(135deg, #ee5a24 0%, #ff6b6b 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(238, 90, 36, 0.4);
}

.hero-text-content .btn-outline-primary {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.hero-text-content .btn-outline-primary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
}

/* Modern Feature Cards */
.modern-feature-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

.modern-feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.feature-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-feature-card:hover .feature-overlay {
    opacity: 1;
}

.modern-feature-card:hover .feature-image {
    transform: scale(1.1);
}

.feature-overlay .feature-icon {
    background: white;
    color: #667eea;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modern-feature-card:hover .feature-overlay .feature-icon {
    transform: scale(1);
}

.modern-feature-card .card-body {
    padding: 30px 25px;
}

.modern-feature-card .card-title {
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
}

.modern-feature-card .card-text {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-hero {
        padding: 80px 0 30px;
    }
    
    .hero-text-content {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero-image-content {
        text-align: center;
    }
    
    .hero-main-image {
        max-width: 350px;
    }
    
    .floating-element-1 {
        top: 5%;
        right: 10px;
    }
    
    .floating-element-2 {
        bottom: 10%;
        left: 10px;
    }
    
    .floating-card {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .hero-text-content .btn {
        margin: 5px;
        width: 100%;
        max-width: 200px;
    }
    
    .feature-image-container {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .hero-text-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-text-content .lead {
        font-size: 1.1rem;
    }
    
    .floating-element {
        display: none;
    }
    
    .modern-feature-card .card-body {
        padding: 25px 20px;
    }
}

/* Enhanced Section Styling */
.features-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: #333;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-title p {
    color: #666;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Animation Enhancements */
.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.fade-in-up.delay-1 {
    animation-delay: 0.2s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.4s;
}

.fade-in-up.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
