html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: "Crang";
    src: url("/Fonts/Crang.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

* {
    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;
}

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;
    transition: background 0.3s ease;
    opacity: 0;
    transform: translateY(-30px);
    animation: slideDownFadeIn 1.5s forwards ease-out;
}

header .sticky-title {
    font-family: 'Crang', sans-serif;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;

    -webkit-text-stroke: 1px black;
    text-shadow: 
        0.2px 0.2px 0 black;

    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-left: 20px;
    pointer-events: none;
    white-space: nowrap;
}

header.show-title .sticky-title {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.logo img {
    height: 70px;
    width: auto;
}

/* --- Remainder Site Rules --- */
.hero {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    z-index: 2;
    animation: fadeIn 1s ease-in-out;
}

.hero h1 {
    font-size: 48px;
    margin: 0;
    text-shadow: 0 0 20px rgba(207, 4, 4, 0.4);
    animation: slideIn 1s ease forwards;
}

.hero p {
    font-family: 'Merchant Copy', sans-serif;
    font-size: 40px;
    margin: 20px 0;
    letter-spacing: 0.5px;
    animation: slideIn 1s ease forwards;
    animation-delay: 0.5s;
}

.button {
    font-family: inherit;
    background: #550101;
    color: white;
    padding: 15px 30px;
    border: none;
    letter-spacing: 1px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 20px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.button:hover {
    background: #810303;
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(207, 4, 4, 0.7);
}

section {
    padding: 90px 20px;
    text-align: center;
}

h2 {
    font-size: 36px;
    margin-bottom: 30px;
    animation: fadeIn 1s ease forwards;
}

.product-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.product {
    font-family: 'Merchant Copy', sans-serif;
    font-size: 30px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    width: 250px;
    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%;
    border-radius: 5px;
}

.product h3 {
    margin: 15px 0 5px 0;
}

.product:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #cf0404;
    box-shadow: 0 0 25px rgba(207, 4, 4, 0.6);
}

.about h2 {
    font-family: 'Public Pixel', sans-serif;
}

.about h3 {
    font-family: 'Merchant Copy', sans-serif;
}

.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: auto;
    padding: 30px;
    margin: 10px 0;
    font-size: 30px;
}

footer {
    color:#6b7280;
    font-size: 12px;
    font-family: 'Public Pixel', sans-serif;
    text-align: center;
    padding: 30px;
    background: #111;
    border-top: 1px solid #222;
}

.second-text {
    font-family: 'Merchant Copy', sans-serif;
    font-size: 40px;
    margin: 30px 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDownFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    header .sticky-title {
        font-size: 1rem;
    }
    .dropdown-content {
        min-width: 200px;
    }
}

/* --- Download Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
}

.modal-content {
    background-color: #1a1a1a;
    color: white;
    margin: 8% auto;
    padding: 40px;
    border: 2px solid #444;
    border-radius: 12px;
    width: 85%;
    max-width: 700px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
}

.close-btn {
    color: #aaaaaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: #ff4c4c;
}

.platforms-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
    gap: 30px;
}

.platform-title {
    font-family: 'Public Pixel', sans-serif;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 0;
    margin-bottom: 5px;
}

.platform-logo-small {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.store-btn {
    height: 50px;
    width: auto;
    transition: transform 0.2s, filter 0.2s;
}

.store-btn:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 35px 0 15px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #444;
}

.divider span {
    padding: 0 15px;
    color: #aaaaaa;
    font-family: 'Public Pixel', sans-serif;
    font-size: 10px;
}

.direct-btn {
    font-size: 12px;
    padding: 12px 20px;
    margin-top: 5px;
}

@media (max-width: 768px) {

    .header {
        padding: 10px;
    }

    .logo   img{
        height: 50px;
    }
    /* Hero */
    .hero {
        padding: 120px 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 22px;
    }

    h2 {
        font-size: 24px;
    }

    .second-text {
        font-size: 22px;
        line-height: 1.4;
    }

    .about {
        font-size: 20px;
        padding: 20px;
    }

    .about h3 {
        font-size: 22px;
        line-height: 1.5;
    }

    /* YouTube video */
    #myframe {
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        max-width: 100%;
        border: none;
    }

    /* Updates (2 / 2 / 1) */
    .product-gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product {
        width: 100%;
        font-size: 18px;
        padding: 12px;
    }

    .product h3 {
        font-size: 20px;
        line-height: 1.3;
    }


    /* Carousel */
    #services .container {
        max-width: 100%;
        padding: 1rem;
    }

    #carouselInner img {
        height: auto;
        max-height: 220px;
        object-fit: contain;
        background: #111;
    }

    .carousel {
        width: 100%;
    }

    #prevBtn,
    #nextBtn {
        width: 2.5rem;
        height: 2.5rem;
    }

    /* Buttons */
    .button {
        font-size: 16px;
        padding: 12px 22px;
    }

    footer {
        font-size: 10px;
    }

    .modal-content {
        width: 95%;
        padding: 20px 15px;
        margin: 15% auto;
    }

    .modal-content h2 {
        font-size: 18px !important;
        margin-bottom: 15px;
    }

    .platforms-container {
        gap: 20px;
    }

    .platform-title {
        font-size: 12px;
        gap: 8px;
    }

    .platform-logo-small {
        width: 20px;
        height: 20px;
    }

    .store-btn {
        height: 38px;
    }

    .direct-btn {
        font-size: 10px;
        padding: 10px 14px;
    }

    .divider {
        margin: 20px 0 10px;
    }

    .divider span {
        font-size: 8px;
    }

    .close-btn {
        font-size: 28px;
        top: 8px;
        right: 15px;
    }
}