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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
}

.social-corner {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 1rem;
}

.social-corner a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    transition: background 0.3s ease;
}

.social-corner a:hover {
    background: rgba(255,255,255,0.3);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

nav li {
    display: inline;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: background 0.3s ease;
}

nav a:hover {
    color: #667eea;
    font-weight: 700;
}

nav a.active {
    text-decoration: underline;
    text-decoration-color: #667eea;
    text-decoration-thickness: 3px;
}

main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.asset-grid, .tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.asset-item, .tutorial-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.asset-item:hover, .tutorial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.asset-item img, .tutorial-item img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
}

.asset-item p, .tutorial-item p {
    margin: 1rem 0;
    font-weight: 400;
}

.tutorial-item h3 {
    font-size: 1.2rem;
    margin: 1rem 0;
    font-weight: 500;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    background: #333;
    color: #fff;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 1rem;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -1rem;
}

.close:hover {
    color: #333;
}

.modal-screenshots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.modal-screenshots img {
    max-width: 250px;
    height: auto;
    border-radius: 10px;
}

.download-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: transform 0.3s ease;
    margin-top: 2rem;
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.category-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.tutorial-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutorial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.tutorial-item img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
}

.tutorial-item h3 {
    font-size: 1.2rem;
    margin: 1rem 0;
    font-weight: 500;
}

.tutorial-item p {
    margin: 1rem 0;
    font-weight: 400;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    margin: 0 1rem;
    color: #fff;
    text-decoration: none;
}

.social-links a:hover {
    text-decoration: underline;
}

.donate-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.donate-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    .social-corner {
        position: static;
        justify-content: center;
        margin-bottom: 1rem;
    }
    .asset-grid, .tutorial-grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1rem;
    }
    .modal-screenshots img {
        max-width: 150px;
    }
}