/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0D1B2A 0%, #008891 100%);
    min-height: 100vh;
    color: #F8F9FA;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #FFB703, #FB8500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.title i {
    margin-right: 1rem;
    color: #00B4D8;
    -webkit-text-fill-color: #00B4D8;
}

.subtitle {
    font-size: 1.2rem;
    color: #E0E0E0;
    font-weight: 300;
    opacity: 0.9;
}

/* Apps grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    flex-grow: 1;
    margin-bottom: 2rem;
}

/* App card styles */
.app-card {
    background: rgba(248, 249, 250, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.2), transparent);
    transition: left 0.5s ease;
}

.app-card:hover::before {
    left: 100%;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 180, 216, 0.3);
    border-color: #00B4D8;
}

.app-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(45deg, #00B4D8, #0F9D9D);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #F8F9FA;
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3);
    transition: all 0.3s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 180, 216, 0.4);
}

.app-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #F8F9FA;
}

.app-description {
    color: #E0E0E0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.app-link {
    display: inline-block;
    background: linear-gradient(45deg, #FFB703, #FB8500);
    color: #0D1B2A;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.app-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 183, 3, 0.4);
    background: linear-gradient(45deg, #FFDD00, #FFB703);
}

/* Special styling for add app card */
.add-app {
    border: 2px dashed rgba(255, 183, 3, 0.5);
    background: rgba(255, 183, 3, 0.05);
}

.add-app .app-icon {
    background: linear-gradient(45deg, #FFB703, #FFDD00);
    color: #0D1B2A;
}

.add-app:hover {
    border-color: #FFB703;
    background: rgba(255, 183, 3, 0.1);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.footer p {
    color: #E0E0E0;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .apps-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .app-card {
        padding: 1.5rem;
    }
    
    .app-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .app-card {
        padding: 1.5rem 1rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}

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

.app-card {
    animation: fadeInUp 0.6s ease forwards;
}

.app-card:nth-child(1) { animation-delay: 0.1s; }
.app-card:nth-child(2) { animation-delay: 0.2s; }
.app-card:nth-child(3) { animation-delay: 0.3s; }
.app-card:nth-child(4) { animation-delay: 0.4s; }
.app-card:nth-child(5) { animation-delay: 0.5s; }
.app-card:nth-child(6) { animation-delay: 0.6s; }
.app-card:nth-child(7) { animation-delay: 0.7s; }

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0D1B2A;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00B4D8, #008891);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFB703, #FB8500);
}
