/* Home Page Specific Styles - Clean Design */

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Features Grid - 2x2 Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 280px;
    position: relative;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .feature-icon {
    background: var(--bg-tertiary);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    background: var(--accent-color);
    transform: scale(1.1);
}

.feature-box:hover .feature-icon svg {
    color: white;
}

.feature-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.feature-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    display: flex;
    align-items: center;
    font-weight: 400;
    max-width: 280px;
}

.coming-soon {
    opacity: 0.7;
    cursor: default;
}

.coming-soon:hover {
    transform: none;
}

.coming-soon .feature-icon {
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .main-container {
        padding: 40px 30px;
    }
    
    .page-header {
        margin-bottom: 60px;
    }

    .page-title {
        font-size: 32px;
    }

    .features-grid {
        gap: 30px;
        max-width: 600px;
    }

    .feature-box {
        padding: 30px 25px;
        min-height: 240px;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 30px 20px;
        justify-content: flex-start;
        min-height: auto;
    }
    
    .page-header {
        margin-bottom: 40px;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .page-subtitle {
        font-size: 16px;
    }

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

    .feature-box {
        padding: 25px 20px;
        min-height: 200px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .feature-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .feature-description {
        font-size: 15px;
        max-width: none;
    }
}


@media (max-width: 480px) {
    .main-container {
        padding: 20px 15px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-subtitle {
        font-size: 15px;
    }

    .feature-box {
        min-height: 180px;
        padding: 20px 15px;
    }

    .feature-title {
        font-size: 18px;
    }

    .feature-description {
        font-size: 14px;
    }
}

/* Smooth animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    animation: fadeInUp 0.6s ease;
}

.feature-box {
    animation: fadeInUp 0.6s ease;
}

.feature-box:nth-child(1) { animation-delay: 0.1s; }
.feature-box:nth-child(2) { animation-delay: 0.1s; }
.feature-box:nth-child(3) { animation-delay: 0.2s; }
.feature-box:nth-child(4) { animation-delay: 0.2s; }

/* Country Connection */
.country-connection {
    text-align: center;
    margin-top: 0.5rem;
    padding: 10px 20px;
}

.flag-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.indonesia-flag, .canada-flag {
    font-size: 48px;
}

.arrow-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.connection-text {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .flag-container {
        gap: 20px;
    }
    
    .indonesia-flag, .canada-flag {
        font-size: 36px;
    }
    
    .arrow-icon {
        width: 24px;
        height: 24px;
    }
    
    .connection-text {
        font-size: 16px;
    }
}

/* Newsletter Popup */
.newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.newsletter-popup.show {
    display: flex;
}

.popup-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
}

.popup-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.popup-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.popup-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.popup-form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.popup-email {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.popup-subscribe {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.popup-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 480px) {
    .popup-form {
        flex-direction: column;
    }
}