/* Modern Frontpage/Landing Page Styling */

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

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

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

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

/* ============================================
   HERO SECTION
   ============================================ */

.modern-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 30px 0;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(46, 204, 113, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.modern-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    max-width: 800px;
    padding: 40px 20px;
    animation: fadeInUp 1s ease-out;
}

.modern-hero-logo {
    margin-bottom: 40px;
    animation: slideInDown 0.8s ease-out;
}

.modern-hero-logo img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: floatUp 4s ease-in-out infinite;
}

.modern-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    animation: slideInUp 0.8s ease-out 0.2s both;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.modern-hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    line-height: 1.6;
}

.modern-hero .hero-subtitle {
    font-size: 1.1rem;
    color: #3498db;
    font-weight: 600;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* ============================================
   CTA BUTTONS
   ============================================ */

.modern-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.modern-btn-primary,
.modern-btn-secondary {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.modern-btn-primary {
    background: linear-gradient(135deg, rgb(52, 152, 219) 0%, rgb(41, 128, 185) 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.4);
}

.modern-btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.modern-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(52, 152, 219, 0.6);
}

.modern-btn-primary:active {
    transform: translateY(-2px);
}

.modern-btn-primary:active::before {
    width: 300px;
    height: 300px;
}

.modern-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.modern-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(255, 255, 255, 0.2);
}

.modern-btn-secondary:active {
    transform: translateY(-2px);
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.modern-features {
    padding: 45px 20px;
    background: #ffffff;
    position: relative;
}

.modern-features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.modern-features-title {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.modern-features-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgb(52, 73, 94);
    margin-bottom: 20px;
}

.modern-features-title p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.modern-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.modern-feature-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #e74c3c);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.modern-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

.modern-feature-card:hover::before {
    transform: translateX(0);
}

.modern-feature-icon {
    font-size: 2.5rem;
    color: rgb(52, 152, 219);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(52, 152, 219, 0.05));
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-left: auto;
    margin-right: auto;
}

.modern-feature-card:hover .modern-feature-icon {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(46, 204, 113, 0.2));
    transform: rotate(10deg) scale(1.1);
}

.modern-feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgb(52, 73, 94);
    margin-bottom: 15px;
}

.modern-feature-card p {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 1rem;
}

/* ============================================
   STATS SECTION
   ============================================ */

.modern-stats {
    padding: 60px 20px;
    background: linear-gradient(135deg, rgb(52, 73, 94) 0%, rgb(44, 62, 80) 100%);
    color: #ffffff;
}

.modern-stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.modern-stat-item {
    animation: fadeInUp 0.8s ease-out;
}

.modern-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgb(52, 152, 219);
    margin-bottom: 10px;
}

.modern-stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ============================================
   INFO SECTION
   ============================================ */

.modern-info-section {
    padding: 45px 20px;
    background: #f8f9fa;
    position: relative;
}

.modern-info-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.modern-info-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: rgb(52, 73, 94);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.modern-info-text p {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.8;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.modern-info-image {
    text-align: center;
    animation: slideInRight 0.8s ease-out;
}

.modern-info-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   CALL TO ACTION BANNER
   ============================================ */

.modern-cta-banner {
    padding: 40px 20px;
    background: linear-gradient(135deg, rgb(52, 152, 219) 0%, rgb(41, 128, 185) 100%);
    color: #ffffff;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    margin-top: 20px;
}

.modern-cta-banner h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.modern-cta-banner p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* ============================================
   CTA BUTTONS
   ============================================ */

.modern-cta-buttons {
    display: flex !important;
    gap: 20px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-top: 30px !important;
}

.modern-btn-primary,
.modern-btn-secondary {
    padding: 15px 40px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.modern-btn-primary {
    background: linear-gradient(135deg, rgb(52, 152, 219) 0%, rgb(41, 128, 185) 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3) !important;
}

.modern-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4) !important;
}

.modern-btn-secondary {
    background: transparent !important;
    color: white !important;
    border: 2px solid white !important;
}

.modern-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px) !important;
}

@media (max-width: 768px) {
    .modern-hero {
        min-height: auto;
        padding: 30px 0;
    }

    .modern-hero h1 {
        font-size: 2rem;
    }

    .modern-hero p {
        font-size: 1rem;
    }

    .modern-cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .modern-btn-primary,
    .modern-btn-secondary {
        width: auto;
        max-width: none;
    }

    .modern-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modern-info-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modern-info-text h2 {
        font-size: 1.7rem;
    }

    .modern-stats-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modern-features,
    .modern-info-section,
    .modern-cta-banner {
        padding: 50px 20px;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
    [data-bs-theme=auto] {
        .modern-features {
            background: #1a1a1a;
        }

        .modern-feature-card {
            background: #2a2a2a;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        }

        .modern-feature-card:hover {
            box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
        }

        .modern-info-section {
            background: #1a1a1a;
        }

        .modern-info-text h2,
        .modern-features-title h2 {
            color: #ecf0f1;
        }

        .modern-info-text p,
        .modern-features-title p {
            color: #bdc3c7;
        }
    }
}

[data-bs-theme=dark] {
    .modern-features {
        background: #1a1a1a;
    }

    .modern-feature-card {
        background: #2a2a2a;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }

    .modern-feature-card:hover {
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    }

    .modern-info-section {
        background: #1a1a1a;
    }

    .modern-info-text h2,
    .modern-features-title h2 {
        color: #ecf0f1;
    }

    .modern-info-text p,
    .modern-features-title p {
        color: #bdc3c7;
    }
}
