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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('https://www.gregscozystudio.com/images/background.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 0;
}

.logo-avatar {
    height: 220px;
    width: auto;
    object-fit: contain;
}

.logo-title {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.site-title {
    display: none;
}

.bento-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 20px;
    height: calc(100vh - 200px);
    min-height: 600px;
}

/* Common styles for all platform boxes */
.platform-box {
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 6px 24px rgba(150, 150, 150, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: #2d2d2d;
}

.platform-handle {
    font-size: 0.95rem;
    opacity: 0.75;
    font-weight: 400;
}

.platform-name {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.platform-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    object-fit: contain;
}

/* Individual box styles with grid positions */
.youtube {
    grid-column: 1;
    grid-row: 1;
    background:
        url('https://www.gregscozystudio.com/images/asfalt-dark.png'),
        #ffb3ba;
    background-blend-mode: multiply;
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.screenshot {
    grid-column: 2 / 4;
    grid-row: 1;
    background-image: url('https://www.gregscozystudio.com/images/hero.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 6px 24px rgba(150, 150, 150, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.screenshot-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 18px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.instagram {
    grid-column: 4;
    grid-row: 1;
    background:
        url('https://www.gregscozystudio.com/images/asfalt-dark.png'),
        #d4c5f9;
    background-blend-mode: multiply;
    animation: subtle-rotate 8s ease-in-out infinite;
}

@keyframes subtle-rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(1deg);
    }
    75% {
        transform: rotate(-1deg);
    }
}

.etsy {
    grid-column: 1;
    grid-row: 2;
    background:
        url('https://www.gregscozystudio.com/images/asfalt-dark.png'),
        #bae1ff;
    background-blend-mode: multiply;
    animation: gentle-float 6s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

.twitch {
    grid-column: 2;
    grid-row: 2;
    background:
        url('https://www.gregscozystudio.com/images/asfalt-dark.png'),
        #c7ceea;
    background-blend-mode: multiply;
    animation: tiny-wiggle 7s ease-in-out infinite;
}

@keyframes tiny-wiggle {
    0%, 100% {
        transform: translateX(0px);
    }
    25% {
        transform: translateX(1px);
    }
    75% {
        transform: translateX(-1px);
    }
}

.tiktok {
    grid-column: 3;
    grid-row: 2;
    background:
        url('https://www.gregscozystudio.com/images/asfalt-dark.png'),
        #ffdfba;
    background-blend-mode: multiply;
    animation: subtle-pulse 5s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.coffee {
    grid-column: 4;
    grid-row: 2;
    background:
        url('https://www.gregscozystudio.com/images/asfalt-dark.png'),
        #ffffba;
    background-blend-mode: multiply;
    animation: gentle-drift 9s ease-in-out infinite;
}

@keyframes gentle-drift {
    0%, 100% {
        transform: translate(0px, 0px);
    }
    33% {
        transform: translate(2px, -1px);
    }
    66% {
        transform: translate(-1px, 2px);
    }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    body {
        padding: 15px;
    }

    .header {
        margin-bottom: 20px;
    }

    .logo-container {
        flex-direction: column;
        gap: 12px;
    }

    .logo-avatar {
        height: 160px;
        width: auto;
    }

    .logo-title {
        height: 40px;
        width: auto;
    }

    .site-title {
        display: none;
    }

    .bento-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 15px;
        height: auto;
        min-height: auto;
    }

    /* Reset all grid positions and use order */
    .youtube, .instagram, .screenshot, .tiktok, .twitch, .etsy, .coffee {
        grid-column: span 1;
        grid-row: auto;
    }

    /* Set specific order for mobile layout */
    .youtube { order: 1; }
    .instagram { order: 2; }
    .screenshot { 
        order: 3; 
        grid-column: 1 / -1; /* Full width */
    }
    .tiktok { order: 4; }
    .twitch { order: 5; }
    .etsy { order: 6; }
    .coffee { order: 7; }

    /* Adjust sizing for mobile */
    .platform-box, .youtube, .instagram, .tiktok, .twitch, .etsy, .coffee {
        padding: 20px;
        min-height: 140px;
    }

    .screenshot {
        min-height: 140px;
        padding: 20px;
    }

    .platform-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }

    .platform-name {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .platform-handle {
        font-size: 0.85rem;
    }

    .screenshot-title {
        font-size: 1.1rem;
        padding: 8px 14px;
    }
}

/* Very small mobile devices */
@media screen and (max-width: 480px) {
    body {
        padding: 10px;
    }

    .logo-container {
        flex-direction: column;
        gap: 10px;
    }

    .logo-avatar {
        height: 140px;
        width: auto;
    }

    .logo-title {
        height: 35px;
        width: auto;
    }

    .site-title {
        display: none;
    }

    .bento-container {
        gap: 10px;
    }

    .platform-icon {
        width: 35px;
        height: 35px;
    }

    .platform-name {
        font-size: 1rem;
    }

    .platform-handle {
        font-size: 0.8rem;
    }
}
