/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f5ff;
    color: #333;
    line-height: 1.6;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f5ff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(138, 43, 226, 0.2);
    border-radius: 50%;
    border-top-color: #8a2be2;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Header Styles */
header {
    width: 100%;
}

.banner {
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
}

.banner h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.powered-by {
    background-color: #f0e6ff;
    padding: 0.5rem 2rem;
    text-align: right;
    font-size: 0.9rem;
    color: #666;
    border-bottom: 1px solid #e0d0ff;
}

.powered-by a {
    color: #8a2be2;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.powered-by a:hover {
    color: #4b0082;
    text-decoration: underline;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.category-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(138, 43, 226, 0.1);
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid transparent;
}

.category-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(138, 43, 226, 0.2);
    border-color: #8a2be2;
}

.box-content {
    text-align: center;
    padding: 1.5rem;
    width: 100%;
}

.box-content i {
    font-size: 2.5rem;
    color: #8a2be2;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.category-box:hover .box-content i {
    transform: scale(1.2);
}

.box-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4b0082;
}

/* Footer Styles */
footer {
    background-color: #4b0082;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .banner h1 {
        font-size: 2.8rem;
    }
    
    .banner h2 {
        font-size: 1.2rem;
    }
    
    .logo-container {
        flex-direction: column;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .categories {
        grid-template-columns: 1fr;
    }
    
    .banner h1 {
        font-size: 2.2rem;
    }
    
    .banner h2 {
        font-size: 1rem;
    }
    
    .category-box {
        height: 180px;
    }
}

/* Category Pages Styles */
.category-page {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-header {
    text-align: center;
    margin-bottom: 2rem;
    color: #4b0082;
}

.category-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.category-header p {
    font-size: 1.1rem;
    color: #666;
}

.platform-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.platform-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.platform-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(138, 43, 226, 0.15);
}

.platform-item a {
    text-decoration: none;
    color: #4b0082;
    font-weight: 600;
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.platform-item a:hover {
    color: #8a2be2;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #8a2be2;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .platform-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .platform-list {
        grid-template-columns: 1fr;
    }
    
    .category-header h2 {
        font-size: 2rem;
    }
}