/* ========================================
   Font Declarations
   ======================================== */
@font-face {
    font-family: 'Barlow Condensed';
    src: url('fonts/BarlowCondensed-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Barlow Condensed';
    src: url('fonts/BarlowCondensed-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Barlow Condensed';
    src: url('fonts/BarlowCondensed-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Barlow Condensed';
    src: url('fonts/BarlowCondensed-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* ========================================
   Global Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* ========================================
   Character Animation Background
   ======================================== */
.character-animation {
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 220px;
    background-image: url('imgs/character_tile.png');
    background-size: 500%;
    background-repeat: no-repeat;
    opacity: 0.4;
    animation: spriteWalk 1s steps(1) infinite;
    pointer-events: none;
    z-index: 1;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

@keyframes spriteWalk {
    0% {
        background-position: 25% 25%;
    }
    30% {
        background-position: 0% 25%;
    }
    50% {
        background-position: 50% 25%;
    }
    80% {
        background-position: 0% 25%;
    }
}

/* ========================================
   Main Container
   ======================================== */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

/* ========================================
   Logo Section
   ======================================== */
.logo-section {
    text-align: center;
    animation: fadeInDown 1s ease-out;
}

.logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* ========================================
   Call to Action Section
   ======================================== */
.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: fadeInUp 1s ease-out;
}

/* Steam Widget */
.steam-widget {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.steam-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.steam-widget iframe {
    display: block;
    max-width: 100%;
}

/* Instagram Button */
.instagram-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 25px rgba(188, 24, 136, 0.4);
    letter-spacing: 0.5px;
}

.instagram-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(188, 24, 136, 0.6);
}

.instagram-icon {
    width: 24px;
    height: 24px;
}

/* More Projects Link */
.projects-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    letter-spacing: 0.5px;
}

.projects-link:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: rgba(255, 255, 255, 1);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .container {
        gap: 2rem;
        padding: 1.5rem;
    }

    .logo {
        max-width: 300px;
    }

    .steam-widget {
        padding: 1rem;
    }

    .steam-widget iframe {
        width: 100%;
        height: auto;
    }

    .instagram-btn {
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
    }

    .projects-link {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 250px;
    }

    .instagram-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .steam-widget {
        padding: 0.75rem;
    }
}
