html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Public Pixel', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0d0202;
    background-image: url('../Images/222.webp');
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #ffffff;
    
    /* --- NEW: Layout setup to allow pinning to bottom --- */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures the page is exactly the height of the screen */
}

/* --- NEW: Allows the main container to fill the screen --- */
main {
    display: flex;
    flex-direction: column;
    flex: 1; 
}

header {
    background: linear-gradient(to right, #000000, #550101);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .sticky-title {
    font-family: 'Crang', sans-serif;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 1;
    margin-left: 20px;
    pointer-events: none;
    white-space: nowrap;
}

.logo img {
    height: 70px;
    width: auto;
}

/* --- Section Formatting (Desktop) --- */
section {
    text-align: center;
}

/* --- Centers the Title and Icons vertically --- */
#products {
    flex: 1; /* Takes up all available middle space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Pushes content strictly to the middle */
    align-items: center;
    padding: 20px;
    width: 100%;
}

h2 {
    font-size: 36px;
    margin-bottom: 30px;
    font-family: 'Public Pixel', sans-serif;
}

.product-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.product {
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.product img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.product:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: #cf0404;
    box-shadow: 0 0 25px rgba(207, 4, 4, 0.6);
}

.about {
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    padding: 30px;
    
    /* margin-top: auto is the magic trick that pushes it to the bottom */
    margin: auto auto 40px auto; 
}

.about h3 {
    font-family: 'Merchant Copy', sans-serif;
    font-size: 40px;
    margin: 0;
    line-height: 1.3;
}

footer {
    color: #6b7280;
    font-size: 12px;
    font-family: 'Public Pixel', sans-serif;
    text-align: center;
    padding: 30px;
    background: #111;
    border-top: 1px solid #222;
}


/* ==========================================================================
   INTEGRATED MOBILE RESPONSIVE MEDIA QUERIES (Below 700px)
   ========================================================================== */
@media (max-width: 700px) {
    header {
        padding: 10px 12px;
    }

    .logo img {
        height: 40px;
    }

    header .sticky-title {
        font-size: 1rem;
        margin-left: 10px;
    }

    /* --- "Versions" to "Ver." Swap --- */
    .text-desktop {
        display: none !important;
    }

    .text-mobile {
        display: inline !important;
    }

    /* --- Sections & Gallery Layout --- */
    section {
        padding: 30px 10px;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 25px;
    }

/* --- Mobile Social Buttons (Side-by-Side strictly) --- */
    .product-gallery {
        display: flex !important;
        flex-direction: row !important; /* Forces them into a line */
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important; /* STRICTLY prevents stacking */
        gap: 10px !important; /* Spacing between buttons */
        width: 100% !important;
        padding: 0 5px !important;
        overflow-x: auto !important; /* Allows swiping if the screen is tiny */
    }

    .product {
        width: 55px !important; /* Extremely small and uniform */
        height: 55px !important;
        min-width: 55px !important; 
        padding: 8px !important;
        margin: 0 !important;
        border-radius: 8px !important;
        background: #1e1e1e !important;
        border: 1px solid #3c3c3c !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .product img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
    .about {
        padding: 15px 12px;
        margin: 20px auto;
        max-width: 90%;
    }

    .about h3 {
        font-size: 24px;
    }

    footer {
        padding: 20px;
        font-size: 9px;
    }
}