/* MochiBits Modern CSS
----------------------------------------*/

:root {
    --primary-color: #000;
    --secondary-color: #333;
    --accent-color: #555;
    --text-color: #fff;
    --card-bg: rgba(0, 0, 0, 0.7);
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    --icon-width: 256px;
    --content-width: calc(var(--icon-width) * 1.25); /* 25% wider than icon */
}

/* Modern CSS reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica";
    line-height: 1.6;
    color: #fff;
    background-color: #000;
    min-height: 100vh;
    line-height: 20px;
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    overflow-x: hidden;
}

/* Header */
header {
    margin: 0px 0;
    text-align: center;
    width: 100%;
}

.logo {
    margin-left: auto;
    margin-right: auto;
    max-width: 85%;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 15px;
    min-width: 250px; /* Reduced from 450px */
}

/* Logo Animation */
@keyframes wiggle {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-0.6deg) scale(1.006); }
    50% { transform: rotate(0deg) scale(1.01); }
    75% { transform: rotate(0.6deg) scale(1.006); }
    100% { transform: rotate(0deg) scale(1); }
}

.logo img {
    width: 90%; /* Increased from 85% */
    height: auto;
    max-width: 900px; /* Increased from 850px */
    max-height: 153px; /* Increased from 145px */
    min-width: 300px; /* Increased from 280px */
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 
 * ANIMATION CONTROL:
 * To enable animation, uncomment the next rule.
 * To disable animation, comment it out.
 */
.logo img:hover {
    animation: wiggle 0.2s ease-in-out;
}

/* App Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

.app-card {
    margin-top: 10px;
    margin-bottom: 0;
    padding: 0.75rem;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-icon {
    width: var(--icon-width);
    height: var(--icon-width);
    margin-bottom: 1.5rem;
    object-fit: contain;
    align-self: center;
}

.app-content {
    width: 100%;
    max-width: var(--content-width);
    align-self: center;
}

.app-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: left;
}

.app-description {
    font-size: 17px;
    line-height: 1.1em;
    margin-bottom: 15px;
    color: #858585;
    text-align: left;
}

.app-links {
    display: flex;
    justify-content: flex-start;
    gap: 11px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.app-links a img {
    margin-right: 0;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 0;
    padding-top: 20px;
    border-top: none;
}

footer p {
    color: #757575;
    font-size: 12px;
    text-align: center;
    margin-bottom: 10px;
}

footer a {
    color: #757575;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}

/* Media Queries for Responsive Grid */
@media (min-width: 1100px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-content {
        max-width: var(--content-width);
    }
}

@media (max-width: 767px) {
    .app-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .app-icon {
        width: 256px;
        height: 256px;
        margin: 0 auto 1rem;
    }
    
    .app-card {
        padding: 0.5rem;
    }
    
    .app-content {
        width: 100%;
    }
} 