/* ================================================ */
/* VARIABLES */
/* ================================================ */
:root {
    --primary-color: #1a472a;
    --secondary-color: #2a6e50;
    --accent-color: #d4af37;
    --light-color: #f8f5e9;
    --dark-color: #0f2b1c;
    --text-color: #2c3e2d;
    --gradient-primary: linear-gradient(135deg, #1a472a 0%, #2a6e50 100%);
    --gradient-accent: linear-gradient(135deg, #d4af37 0%, #f7e6a6 100%);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Amiri', serif;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
}

.arabic-font {
    font-family: 'Scheherazade New', serif;
}

/* ================================================ */
/* HERO SECTION */
/* ================================================ */
.hero-section {
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(42, 110, 80, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero-title .arabic {
    font-size: 3.5rem;
    color: white;
    display: block;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(212, 175, 55, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 300;
}

.hero-image-container {
    position: relative;
    perspective: 1000px;
}

.hero-image {
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 15px solid rgba(255, 255, 255, 0.1);
    background: white;
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.hero-image-overlay {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 25px;
    z-index: 1;
    opacity: 0.3;
    filter: blur(20px);
}

/* ================================================ */
/* BUTTONS */
/* ================================================ */
.btn-cta {
    background: var(--gradient-accent);
    color: var(--dark-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f7e6a6 0%, #d4af37 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    color: var(--dark-color);
}

.btn-cta:hover::before {
    opacity: 1;
}

.btn-cta i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-cta:hover i {
    transform: translateX(5px);
}

/* ================================================ */
/* FEATURE SECTION */
/* ================================================ */
.feature-section {
    padding: 8rem 0;
    background: white;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-title h2 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-title p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.section-title-decoration {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* Features Container untuk Horizontal Scroll di Mobile */
.features-container {
    position: relative;
    width: 100%;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(42, 110, 80, 0.08);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    z-index: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::after {
    opacity: 0.02;
}

.feature-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(42, 110, 80, 0.2);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(42, 110, 80, 0.3);
}

.feature-icon i {
    display: block;
    font-size: 2.5rem;
}

.feature-title {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--dark-color);
    position: relative;
    z-index: 2;
}

.feature-description {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.feature-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(42, 110, 80, 0.08);
}

.feature-link:hover {
    color: var(--accent-color);
    gap: 12px;
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(5px);
}

.feature-link i {
    transition: transform 0.3s ease;
}

.feature-link:hover i {
    transform: translateX(5px);
}

/* ================================================ */
/* CTA SECTION */
/* ================================================ */
.cta-section {
    padding: 8rem 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
}

.cta-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-text {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.9;
    font-weight: 300;
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ================================================ */
/* FOOTER */
/* ================================================ */
footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 5rem 0 3rem;
    position: relative;
}

.footer-logo {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-logo .arabic {
    color: var(--accent-color);
    font-size: 2.2rem;
}

.footer-verse {
    font-family: 'Scheherazade New', serif;
    font-size: 1.8rem;
    color: var(--accent-color);
    margin: 2rem 0;
    line-height: 1.8;
    text-align: center;
}

.footer-verse-translation {
    font-style: italic;
    margin-bottom: 3rem;
    opacity: 0.9;
    text-align: center;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    color: var(--dark-color);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ================================================ */
/* FLOATING ELEMENTS */
/* ================================================ */
.floating-element {
    position: absolute;
    z-index: 1;
    opacity: 0.1;
    pointer-events: none;
}

.floating-element-1 {
    top: 20%;
    left: 10%;
    font-size: 8rem;
    color: var(--accent-color);
}

.floating-element-2 {
    bottom: 20%;
    right: 10%;
    font-size: 8rem;
    color: var(--secondary-color);
}

/* ================================================ */
/* LOADING ANIMATION */
/* ================================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99998;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================================================ */
/* MODAL POPUP */
/* ================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 30, 20, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: linear-gradient(145deg, var(--light-color) 0%, #ffffff 100%);
    border-radius: 25px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    background: var(--gradient-primary);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.modal-logo {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-logo .arabic {
    color: var(--accent-color);
    font-size: 1.6rem;
}

.modal-close {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-content {
    padding: 2.5rem;
    text-align: center;
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--dark-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.modal-title {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-family: 'Amiri', serif;
}

.modal-text {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Timer Styles */
.timer-container {
    margin: 2rem 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.timer-container.hiding {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
}

.timer-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.timer-progress {
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: rgba(42, 110, 80, 0.1);
    stroke-width: 8;
}

.timer-fill {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1s linear;
}

.timer-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-digits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    height: 60px;
}

.timer-digit {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-color);
    display: inline-block;
    min-width: 36px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    line-height: 1;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.timer-digit.changing {
    animation: digitFlip 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes digitFlip {
    0% { transform: rotateX(0deg); opacity: 1; }
    50% { transform: rotateX(90deg); opacity: 0; }
    51% { transform: rotateX(-90deg); opacity: 0; }
    100% { transform: rotateX(0deg); opacity: 1; }
}

.timer-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-top: 5px;
    display: block;
}

.timer-text {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Redirect Loading */
.redirect-loading {
    display: none;
    text-align: center;
    margin: 2rem 0;
    animation: fadeIn 0.3s ease forwards;
}

.redirect-loading.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.redirect-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(42, 110, 80, 0.1);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.redirect-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Modal Buttons */
.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-cancel {
    flex: 1;
    background: rgba(42, 110, 80, 0.1);
    color: var(--secondary-color);
    border: 2px solid rgba(42, 110, 80, 0.2);
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.btn-cancel:hover {
    background: rgba(42, 110, 80, 0.2);
    transform: translateY(-2px);
}

.btn-modal-primary {
    flex: 2;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-modal-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(42, 110, 80, 0.3);
}

.modal-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(42, 110, 80, 0.1);
}

.modal-footer p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-footer i {
    color: var(--accent-color);
}

/* ================================================ */
/* RESPONSIVE DESIGN */
/* ================================================ */

/* HERO SECTION - 2 KOLOM DI MOBILE */
@media (max-width: 1200px) {
    .hero-title { font-size: 3.5rem; }
    .hero-title .arabic { font-size: 3rem; }
    .section-title h2 { font-size: 2.8rem; }
}

/* Desktop & Tablet: Layout Normal */
@media (min-width: 768px) {
    .hero-section .row {
        display: flex;
        flex-wrap: wrap;
    }
}

/* Mobile: 2 Kolom Side-by-Side */
@media (max-width: 767px) {
    .hero-section {
        padding: 3rem 0;
        min-height: auto;
    }

    .hero-section .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        align-items: start;
    }

    .hero-content {
        grid-column: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-right: 0.5rem;
    }

    .hero-image-container {
        grid-column: 2;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        text-align: left;
    }

    .hero-title .arabic {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
        text-align: left;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
        text-align: left;
        max-width: 100%;
    }

    .hero-image {
        height: 180px;
        width: 100%;
        object-fit: cover;
        transform: none;
        border: 8px solid rgba(255, 255, 255, 0.1);
        border-radius: 15px;
    }

    .hero-image-overlay {
        top: -15px;
        right: -15px;
        border-radius: 15px;
    }

    .btn-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        border-radius: 25px;
    }

    .btn-cta i {
        font-size: 0.9rem;
    }

    .mt-4 {
        margin-top: 1rem !important;
        text-align: left;
    }
}

/* Mobile Sangat Kecil */
@media (max-width: 480px) {
    .hero-section .row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-content {
        grid-column: 1 / span 1;
        padding-right: 0;
    }

    .hero-image-container {
        grid-column: 1 / span 1;
        order: -1;
    }

    .hero-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .hero-title .arabic {
        font-size: 1.6rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        text-align: center;
    }

    .hero-image {
        height: 200px;
        margin: 0 auto;
    }

    .mt-4 {
        text-align: center;
    }
}

/* FEATURE SECTION RESPONSIVE */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .feature-section {
        padding: 5rem 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .feature-icon i {
        font-size: 2rem;
    }

    .feature-title {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }
}

/* Mobile: Horizontal Scroll dengan 3 kartu per baris */
@media (max-width: 768px) {
    .features-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--secondary-color) var(--light-color);
        padding-bottom: 1rem;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .features-container::-webkit-scrollbar {
        height: 6px;
    }

    .features-container::-webkit-scrollbar-track {
        background: var(--light-color);
        border-radius: 3px;
    }

    .features-container::-webkit-scrollbar-thumb {
        background: var(--secondary-color);
        border-radius: 3px;
    }

    .features-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 1.2rem;
        padding-bottom: 1rem;
        min-width: min-content;
    }

    .feature-card {
        flex: 0 0 calc(100vw / 1.5 - 20px);
        min-width: 280px;
        max-width: 320px;
        padding: 1.8rem 1.5rem;
        scroll-snap-align: start;
        height: auto;
        margin-bottom: 0;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .feature-icon i {
        font-size: 1.8rem;
    }

    .feature-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .feature-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .feature-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Mobile Sangat Kecil */
@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        flex: 0 0 calc(100vw / 1.3 - 20px);
        min-width: 250px;
        padding: 1.5rem 1.2rem;
    }

    .feature-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }

    .feature-icon i {
        font-size: 1.6rem;
    }

    .feature-title {
        font-size: 1.3rem;
    }

    .feature-description {
        font-size: 0.9rem;
    }

    .feature-section {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-title .arabic {
        font-size: 1.6rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .footer-logo {
        font-size: 2rem;
    }

    .footer-verse {
        font-size: 1.5rem;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem 1.2rem;
    }
}

/* Scroll Snap untuk UX yang lebih baik di mobile */
@media (max-width: 768px) {
    .features-grid {
        scroll-snap-type: x mandatory;
    }
}

/* MODAL RESPONSIVE */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-width: 400px;
    }
    
    .modal-content {
        padding: 2rem;
    }
    
    .modal-title {
        font-size: 1.6rem;
    }
    
    .modal-text {
        font-size: 1rem;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-footer p {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .timer-digit {
        font-size: 2.8rem;
        min-width: 28px;
    }
    
    .timer-digits {
        height: 50px;
    }
    
    .timer-circle {
        width: 100px;
        height: 100px;
    }
    
    .timer-fill,
    .timer-bg {
        stroke-width: 6;
    }
}

@media (max-width: 480px) {
    .modal-container {
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 1.2rem 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .timer-digit {
        font-size: 2.2rem;
        min-width: 22px;
    }
    
    .timer-digits {
        height: 40px;
    }
    
    .timer-circle {
        width: 80px;
        height: 80px;
    }
}

/* ================================================ */
/* ANIMATION CLASSES */
/* ================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================ */
/* CUSTOM SCROLLBAR */
/* ================================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* ================================================ */
/* PERFORMANCE OPTIMIZATIONS */
/* ================================================ */
.modal-container,
.timer-digit,
.timer-fill {
    will-change: transform, opacity, stroke-dashoffset;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ================================================ */
/* SCROLL INDICATOR */
/* ================================================ */
.scroll-indicator {
    display: none;
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 1rem;
        color: var(--secondary-color);
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .scroll-indicator i {
        animation: bounce 2s infinite;
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateX(0);
        }
        40% {
            transform: translateX(5px);
        }
        60% {
            transform: translateX(3px);
        }
    }
}

/* ================================================ */
/* FIXES FOR MODAL ALWAYS SHOW */
/* ================================================ */
.modal-overlay {
    display: flex !important;
}

/* Modal entrance animation */
@keyframes modalEntrance {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-overlay.active .modal-container {
    animation: modalEntrance 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}