/* FTIK-Style Enhancement CSS */

/* Mobile Text Optimization - Stats Card Only */
@media (max-width: 768px) {
    /* Compact mobile height - sesuai dengan konten stats card */
    .hero-section {
        height: 70vh !important; /* Diperpendek dari 100vh */
        min-height: 70vh !important;
    }

    .hero-content {
        padding: 20px 0 30px 0 !important; /* Padding lebih kecil */
    }

    .hero-content .row {
        gap: 0px !important;
        min-height: calc(70vh - 50px) !important; /* Sesuai dengan tinggi baru */
        justify-content: center !important;
        align-items: center !important;
    }

    /* Sembunyikan text card di mobile */
    .hero-text-card {
        display: none !important;
    }

    /* Stats card sebagai fokus utama - ukuran kompak */
    .hero-stats-card {
        padding: 2rem 1.5rem !important; /* Padding lebih kompak */
        max-width: 350px !important; /* Sedikit lebih kecil */
        order: 1 !important;
        margin: 0 auto !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25) !important;
        backdrop-filter: blur(12px) !important;
    }

    /* Enhanced stats card untuk mobile - ukuran proporsional */
    .stats-icon-circle {
        width: 70px !important; /* Sedikit lebih kecil */
        height: 70px !important;
        margin-bottom: 1rem !important; /* Margin lebih kecil */
    }

    .stats-icon-circle i {
        font-size: 2rem !important; /* Icon lebih kecil */
    }

    .stats-title {
        font-size: 1.2rem !important; /* Title lebih kecil */
        margin-bottom: 0.75rem !important;
    }

    .stats-subtitle {
        font-size: 0.8rem !important; /* Subtitle lebih kecil */
        margin-bottom: 1.25rem !important;
        line-height: 1.4 !important;
    }

    .stats-grid {
        gap: 0.8rem !important; /* Gap lebih kecil */
    }

    .stat-item {
        padding: 0.8rem !important; /* Padding lebih kecil */
        border-radius: 0.6rem !important;
    }

    .stat-number {
        font-size: 1.2rem !important; /* Number lebih kecil */
        margin-bottom: 0.25rem !important;
    }

    .stat-label {
        font-size: 0.75rem !important; /* Label lebih kecil */
    }

    /* Col adjustments */
    .hero-content .col-lg-8 {
        display: none !important;
    }

    .hero-content .col-lg-4 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        order: 1 !important;
    }
}

/* Desktop responsiveness for larger screens */
@media (min-width: 769px) {
    .hero-text-card {
        text-align: left;
        max-width: 600px;
    }

    .hero-button-container {
        justify-content: flex-start;
    }

    .hero-stats-card {
        max-width: 450px;
    }

    .stats-subtitle {
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .stat-label {
        color: rgba(255, 255, 255, 0.7) !important;
    }
}

/* Tablet optimization */
@media (max-width: 992px) and (min-width: 769px) {
    .hero-title {
        font-size: 2rem !important;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
    }

    .hero-description {
        font-size: 0.9rem !important;
    }

    .stats-title {
        font-size: 1.3rem;
    }

    .stats-grid {
        gap: 0.8rem;
    }

    .stat-item {
        padding: 0.8rem;
    }
}

/* Small tablet optimization - Compact Stats Card */
@media (max-width: 576px) {
    .hero-section {
        height: 65vh !important; /* Lebih pendek untuk mobile kecil */
        min-height: 65vh !important;
    }

    .hero-content {
        padding: 15px 0 25px 0 !important; /* Padding lebih kecil */
    }

    .hero-content .row {
        min-height: calc(65vh - 40px) !important;
    }

    .hero-stats-card {
        max-width: 320px !important;
        padding: 1.75rem 1.25rem !important; /* Padding lebih kompak */
    }

    .stats-icon-circle {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 0.75rem !important;
    }

    .stats-icon-circle i {
        font-size: 1.8rem !important;
    }

    .stats-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .stats-subtitle {
        font-size: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    .stat-number {
        font-size: 1.1rem !important;
        margin-bottom: 0.2rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
    }

    .stats-grid {
        gap: 0.7rem !important;
    }

    .stat-item {
        padding: 0.7rem !important;
    }
}

/* Extra small devices - Compact Stats Card */
@media (max-width: 375px) {
    .hero-section {
        height: 60vh !important; /* Paling pendek untuk layar extra kecil */
        min-height: 60vh !important;
    }

    .hero-content {
        padding: 10px 0 20px 0 !important; /* Padding minimal */
    }

    .hero-content .row {
        gap: 0px !important;
        min-height: calc(60vh - 30px) !important;
    }

    .hero-stats-card {
        max-width: 280px !important;
        padding: 1.5rem 1rem !important; /* Padding sangat kompak */
    }

    .stats-icon-circle {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 0.5rem !important;
    }

    .stats-icon-circle i {
        font-size: 1.5rem !important;
    }

    .stats-title {
        font-size: 1rem !important;
        margin-bottom: 0.4rem !important;
    }

    .stats-subtitle {
        font-size: 0.7rem !important;
        margin-bottom: 0.8rem !important;
    }

    .stat-number {
        font-size: 1rem !important;
        margin-bottom: 0.15rem !important;
    }

    .stat-label {
        font-size: 0.65rem !important;
    }

    .stats-grid {
        gap: 0.5rem !important;
    }

    .stat-item {
        padding: 0.6rem !important;
    }
}

/* Animation enhancements */
.hero-stats-card,
.hero-text-card {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Mobile Landscape Optimization - Compact Stats Card */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        height: 85vh !important; /* Sedikit lebih tinggi untuk landscape tapi tetap kompak */
        min-height: 85vh !important;
    }

    .hero-content {
        padding: 15px 0 25px 0 !important;
    }

    .hero-content .row {
        gap: 0px !important;
        min-height: calc(85vh - 40px) !important;
    }

    .hero-stats-card {
        padding: 1.25rem 1rem !important;
        max-width: 300px !important;
    }

    .stats-icon-circle {
        width: 55px !important;
        height: 55px !important;
        margin-bottom: 0.5rem !important;
    }

    .stats-icon-circle i {
        font-size: 1.6rem !important;
    }

    .stats-title {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .stats-subtitle {
        font-size: 0.7rem !important;
        margin-bottom: 0.8rem !important;
    }

    .stat-number {
        font-size: 0.9rem !important;
        margin-bottom: 0.15rem !important;
    }

    .stat-label {
        font-size: 0.65rem !important;
    }

    .stats-grid {
        gap: 0.5rem !important;
    }

    .stat-item {
        padding: 0.5rem !important;
    }
}

/* Hover effects for interactive elements */
.hero-stats-card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease;
}
