/* ============================================== */
/* OPTIMIZED SUPER APP - ENHANCED & SATURATED     */
/* ============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple: #a855f7;
    --purple-dark: #7c3aed;
    --orange: #f97316;
    --orange-bright: #ff6b35;
    --green: #10b981;
    --green-bright: #34d399;
    --gold: #fbbf24;
    --gold-bright: #fcd34d;
    --bg: #0a0e27;
    --card-bg: rgba(15, 10, 30, 0.92);
    --text: #ffffff;
    --text-muted: #cbd5e1;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a0b2e 50%, #0f0520 100%);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========== HEADER ========== */
.header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 0;
}

.header h1 {
    color: #ffffff;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
}

.header .subtitle {
    background: linear-gradient(90deg, #a855f7, #c084fc, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(17px, 2.5vw, 22px);
    font-weight: 600;
    margin-bottom: 20px;
}

.header .instruction {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    margin-top: 20px;
    line-height: 1.8;
}

.header .instruction-ar {
    color: rgba(168, 85, 247, 0.9);
    font-weight: 600;
}

/* ========== CARDS GRID ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1000px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== CARD BASE ========== */
.card {
    background: var(--card-bg);
    border: 2px solid;
    border-radius: 20px;
    padding: 36px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, currentColor, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card:hover::before {
    opacity: 0.4;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ========== CARD COLORS ========== */
.card-2 {
    border-color: rgba(249, 115, 22, 0.4);
    background: linear-gradient(135deg, rgba(15, 10, 30, 0.95) 0%, rgba(30, 15, 10, 0.9) 100%);
}

.card-2:hover {
    border-color: rgba(255, 107, 53, 0.8);
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.25);
}

.card-4 {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(15, 10, 30, 0.95) 0%, rgba(10, 25, 20, 0.9) 100%);
}

.card-4:hover {
    border-color: rgba(52, 211, 153, 0.8);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.25);
}

.card-5 {
    border-color: rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, rgba(15, 10, 30, 0.95) 0%, rgba(30, 25, 10, 0.9) 100%);
}

.card-5:hover {
    border-color: rgba(252, 211, 77, 0.8);
    box-shadow: 0 20px 50px rgba(251, 191, 36, 0.25);
}

/* ========== ICONS ========== */
.icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease;
}

.card:hover .icon {
    transform: scale(1.1) rotate(3deg);
}

.icon svg {
    width: 32px;
    height: 32px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.card-2 .icon { 
    background: linear-gradient(135deg, #f97316 0%, #ff6b35 100%);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
}

.card-4 .icon { 
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.card-5 .icon { 
    background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 100%);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
}

/* ========== CARD TEXT ========== */
.card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
    line-height: 1.3;
}

.card-2 h2 { color: #ffa366; }
.card-4 h2 { color: #6ee7b7; }
.card-5 h2 { color: #fde68a; }

.card p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    flex-grow: 1;
}

.card-arrow {
    font-size: 28px;
    font-weight: 700;
    align-self: flex-end;
    margin-top: 20px;
    transition: transform 0.2s ease;
}

.card-2 .card-arrow { color: #ff6b35; }
.card-4 .card-arrow { color: #34d399; }
.card-5 .card-arrow { color: #fcd34d; }

.card:hover .card-arrow {
    transform: translateX(8px);
}

/* ========== HONEY CARD SPECIAL ========== */
.honey-title {
    background: linear-gradient(90deg, #fbbf24, #fcd34d, #fde68a) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

.honey-text {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #fde68a !important;
}

/* ========== FOOTER ========== */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    color: rgba(203, 213, 225, 0.7);
    font-size: 14px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }
    
    .card {
        padding: 28px;
        min-height: 260px;
    }
    
    .header {
        margin-bottom: 30px;
        padding: 20px 0;
    }
    
    .cards-grid {
        gap: 20px;
    }
}

/* ========== PERFORMANCE ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
