.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.video-background iframe {
    width: 100vw;
    height: 56.25vw;
    /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 Aspect Ratio */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ginst-page .hero::before {
    display: none;
}

.ginst-page .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.ginst-page .hero {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    /* Move to left horizontally if column, top if row */
    text-align: left !important;
    padding-top: 12vh;
    /* Move higher from 20vh */
}

.ginst-page .hero-container {
    margin-left: 0 !important;
    margin-right: auto !important;
    max-width: 1200px;
    padding-left: 5% !important;
    width: 100% !important;
}

.ginst-page .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: left !important;
    margin-left: 0 !important;
    transform: none !important;
    /* Remove any previous translations */
}

.ginst-page .hero-content h1 {
    color: #4be2ff;
    font-size: clamp(2.5rem, 6vw, 5rem);
    text-shadow: 0 0 20px rgba(75, 226, 255, 0.6), 0 0 40px rgba(75, 226, 255, 0.4);
    margin-bottom: 5px;
    letter-spacing: 3px;
}

.ginst-page .hero-content h2 {
    color: #ffffff;
    font-size: clamp(1.2rem, 2.5vw, 2.2rem);
    margin: 0 0 8px 0;
    text-transform: none;
    font-weight: 600;
}

.ginst-page .hero-content .tagline {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 25px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ginst-page .hero-content .tagline::before {
    content: '-';
}

.hero-actions {
    margin-bottom: 20px;
}

.btn-gameplay {
    display: inline-block;
    padding: 12px 35px;
    background: linear-gradient(90deg, #126fb2 0%, #30b6d3 100%);
    color: #ffffff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(18, 111, 178, 0.4);
}

.btn-gameplay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(48, 182, 211, 0.6);
    color: #ffffff;
}

.hero-badges {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.badge-link img {
    display: block;
    transition: transform 0.3s ease;
}

.badge-google img {
    height: 55px;
    /* Taller to compensate for internal padding */
    margin-left: -8px;
    /* Offset the internal padding */
}

.badge-apple img {
    height: 38px;
}

.badge-link:hover img {
    transform: scale(1.05);
}

.btn-app-store {
    background: #ffffff;
    color: #05070a;
}

.btn-app-store:hover {
    background: #f0f0f0;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* General Left Alignment for Ginst Page */
.ginst-page .section-title {
    text-align: left;
    margin-bottom: 2.5rem;
}

.about-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 60px 0;
}

.about-logo {
    flex-shrink: 0;
    width: 300px;
}

.about-logo img {
    width: 100%;
    border-radius: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about-text {
    flex-grow: 1;
}

.about-text .section-title {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: none;
    letter-spacing: 0;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-text .download-badges {
    justify-content: flex-start;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .about-layout {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 30px;
    }

    .about-text .section-title {
        text-align: left;
    }

    .about-text .download-badges {
        justify-content: flex-start;
    }
}

.community-section {
    padding: 50px 0;
}

.community-section .section-title {
    text-align: left;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.community-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 1000px;
    margin-bottom: 30px;
}

.community-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.social-box {
    color: #ffffff;
    font-size: 3.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.9;
    display: flex;
    align-items: center;
}

.social-box:hover {
    transform: translateY(-5px) scale(1.05);
    opacity: 1;
    color: #4be2ff;
    filter: drop-shadow(0 8px 12px rgba(75, 226, 255, 0.3));
}

@media (max-width: 900px) {
    .community-socials {
        gap: 30px;
        justify-content: flex-start;
    }

    .social-box {
        font-size: 2.5rem;
    }
}

.awards-section {
    padding: 60px 0;
}

.awards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.awards-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #000000;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.award-text {
    margin-bottom: 30px;
}

.award-text h3 {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 300;
    line-height: 1.3;
    margin: 0;
    opacity: 0.9;
    text-transform: none;
    letter-spacing: 0;
}

.award-logo {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.award-logo img {
    height: 140px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    transition: transform 0.3s ease;
}

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

/* Video Award Styles */
.award-video-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.award-video-card:hover {
    border-color: #4be2ff;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(75, 226, 255, 0.15);
    background: rgba(75, 226, 255, 0.02);
}

.award-link-card {
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.award-link-card:hover {
    border-color: #99cc33;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(153, 204, 51, 0.15);
    background: rgba(153, 204, 51, 0.02);
}

.award-logo {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.play-overlay,
.link-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.play-overlay {
    background: linear-gradient(135deg, rgba(18, 111, 178, 0.9) 0%, rgba(48, 182, 211, 0.9) 100%);
    box-shadow: 0 0 20px rgba(75, 226, 255, 0.4);
}

.link-overlay {
    background: linear-gradient(135deg, rgba(153, 204, 51, 0.9) 0%, rgba(121, 163, 25, 0.9) 100%);
    box-shadow: 0 0 20px rgba(153, 204, 51, 0.4);
}

.play-overlay i {
    margin-left: 5px;
    /* Visual center for play icon */
}

.award-video-card:hover .play-overlay,
.award-link-card:hover .link-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 450px;
    aspect-ratio: 9/16;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(75, 226, 255, 0.3);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10002;
    transition: transform 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.video-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    color: #4be2ff;
}

@media (max-width: 900px) {
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.download-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

/* Ensure secondary badges use the same scaling as hero badges */
.download-badges .badge-google img {
    height: 55px;
    margin-left: -8px;
}

.download-badges .badge-apple img {
    height: 38px;
}

@media (max-width: 768px) {
    .download-badges {
        flex-direction: row;
        /* Keep them side by side on mobile if they fit */
        flex-wrap: wrap;
    }

    .download-badges .badge-google img {
        height: 45px;
    }

    .download-badges .badge-apple img {
        height: 31px;
    }
}

@media (max-width: 768px) {
    .ginst-page .hero {
        justify-content: flex-start !important;
        text-align: left !important;
        padding-top: 15vh;
    }

    .ginst-page .hero-container {
        padding-left: 20px !important;
    }

    .hero-badges {
        justify-content: flex-start;
    }

    .ginst-page .hero-content .tagline {
        justify-content: flex-start;
    }

    .ginst-page .section-title {
        text-align: left;
    }

    .ginst-page .download-buttons {
        justify-content: center;
    }
}

/* Mobile Landscape Optimization */
@media (max-width: 932px) and (orientation: landscape) {
    .ginst-page .hero {
        padding-top: 10vh !important;
    }

    .ginst-page .hero-content h1 {
        font-size: 2rem !important;
        margin-bottom: 2px !important;
    }

    .ginst-page .hero-content h2 {
        font-size: 1.1rem !important;
        margin-bottom: 5px !important;
    }

    .ginst-page .hero-content .tagline {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }

    .hero-actions {
        margin-bottom: 15px !important;
    }

    .btn-gameplay {
        padding: 8px 25px !important;
        font-size: 0.8rem !important;
    }

    .hero-badges .badge-google img {
        height: 40px !important;
        margin-left: -5px !important;
    }

    .hero-badges .badge-apple img {
        height: 28px !important;
    }
}

.music-themes,
.game-features,
.custom-midi-section {
    padding: 100px 0;
}

.music-themes {
    padding-bottom: 0;
}

.game-features {
    background: #000000;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text .section-title {
    text-align: left;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: none;
    letter-spacing: 0;
}

.feature-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-text .theme-list {
    color: #ffffff;
    font-size: 1.25rem;
}

.feature-image {
    flex: 1.2;
}

.feature-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s ease;
}

.feature-image img:hover {
    transform: scale(1.02);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    margin-bottom: 20px;
    color: var(--text-secondary);
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: flex-start;
    line-height: 1.5;
}

.feature-list li strong {
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
    grid-column: 1;
    display: inline-block;
    padding-right: 15px;
}

.feature-list li span {
    display: inline-block;
    color: #d0d0d0;
    grid-column: 2;
}

@media (max-width: 1024px) {
    .feature-row {
        gap: 40px;
    }
}

@media (max-width: 900px) {

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 50px;
    }

    .feature-text .section-title {
        text-align: center;
    }

    .feature-text p,
    .feature-list {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .feature-list li {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .feature-list li strong {
        grid-column: 1;
        padding-right: 0;
    }

    .feature-list li span {
        grid-column: 1;
        margin-top: 5px;
    }
}