/* Clean, Basic Stylesheet */

:root {
    --text-color: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #e2e8f0;
    
    /* Solid, basic colors matching screenshot */
    --btn-play-bg: #ffb800; /* Yellow */
    --btn-play-text: #000000;
    --btn-apk-bg: #3bb75e; /* Grass green */
    --btn-apk-text: #ffffff;
    
    --font-primary: 'Nunito', sans-serif;
}

/* Reset and Base Rules */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    font-family: var(--font-primary);
    color: var(--text-color);
    overflow: hidden; /* Not scrollable */
}

/* Base Body settings - transparent since background elements handle images */
body {
    background-color: #070913;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Dual-Layer Background Setup (1 Viewport Height, Non-scrollable)
   ========================================================================== */
   
.bg-blurred {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('backgroundLandscape.png'), linear-gradient(180deg, #60c5f7 0%, #aae2ff 100%);
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    transform: scale(1.02); /* Prevents blur artifacts at edges */
    opacity: 0.6;
    z-index: -2;
    pointer-events: none;
}

.bg-unblurred {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: calc(100vh * 18 / 9); /* Full width until max aspect ratio of 18:9 */
    height: 100vh;
    background-image: url('backgroundLandscape.png'), linear-gradient(180deg, #60c5f7 0%, #aae2ff 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}

/* Portrait Background Switch */
@media (orientation: portrait) {
    .bg-blurred,
    .bg-unblurred {
        background-image: url('backgroundPortrait.png'), linear-gradient(180deg, #60c5f7 0%, #aae2ff 100%);
    }

    .bg-unblurred {
        background-size: cover;
        max-width: none;
    }
}


/* ==========================================================================
   Main Container Layout (Hero Section - first viewport height)
   ========================================================================== */

.main-container {
    height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    padding-bottom: 90px; /* space for the footer socials */
    z-index: 1;
    position: relative;
}

/* Left panel matching screenshot layout */
.left-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 450px;
}

/* Logo image style */
.logo-box {
    margin-bottom: 16px;
}

.logo-image {
    max-width: 220px;
    max-height: 110px;
    display: block;
    object-fit: contain;
}

/* Slogan text styling */
.slogan-text {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.85);
    margin-bottom: 20px;
}

/* Buttons Container */
.cta-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
}

/* Simple, Solid Action Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.1s, filter 0.2s;
}

.btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(1px);
}

.btn-play {
    background-color: var(--btn-play-bg);
    color: var(--btn-play-text);
}

.btn-apk {
    background-color: var(--btn-apk-bg);
    color: var(--btn-apk-text);
    gap: 8px;
}

.android-icon {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Right Panel: Video Screen (Taller container scaling proportionally)
   ========================================================================== */

.right-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.video-container {
    height: 75vh; /* Exactly 75% of viewport height */
    aspect-ratio: 9 / 16; /* Scales width proportionally */
    width: auto;
    border-radius: 16px;
    overflow: hidden;
    background-color: #000000;
    border: 5px solid #1e293b;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ==========================================================================
   Footer Social Links (Absolute bottom of 1vh screen)
   ========================================================================== */

.app-footer {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 0;
    z-index: 5;
}

.social-links-footer {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, transform 0.1s;
}

.social-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.social-icon {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Responsive Rules
   ========================================================================== */

@media (max-width: 768px) {
    html, body {
        overflow-y: auto; /* Fallback scroll for mobile stacking layout to avoid clipping */
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .bg-blurred, .bg-unblurred {
        position: fixed;
        height: 100dvh;
    }

    .main-container {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        padding: 24px 20px 12px 20px;
        height: auto;
        min-height: auto;
        flex: 1;
    }
    
    .left-panel {
        padding-left: 0;
        align-items: center;
        text-align: center;
        max-width: 100%;
    }

    .logo-box {
        margin-bottom: 12px;
    }

    .logo-image {
        max-width: 200px;
        max-height: 90px;
    }
    
    .slogan-text {
        text-align: center;
        font-size: 1.05rem;
        margin-bottom: 16px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .video-container {
        height: 46vh;
        max-height: 390px;
        border-width: 4px;
        border-radius: 14px;
    }

    .app-footer {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        padding: 16px 20px 24px;
    }
}

@media (max-width: 480px) {
    .main-container {
        gap: 16px;
        padding: 18px 16px 8px 16px;
    }

    .logo-box {
        margin-bottom: 10px;
    }

    .logo-image {
        max-width: 175px;
        max-height: 80px;
    }

    .slogan-text {
        font-size: 0.98rem;
        line-height: 1.4;
        margin-bottom: 14px;
    }

    .cta-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .btn {
        flex: 1 1 130px;
        max-width: 175px;
        padding: 9px 16px;
        font-size: 0.9rem;
    }

    .video-container {
        height: 40vh;
        max-height: 320px;
        min-height: 220px;
        border-width: 3px;
        border-radius: 12px;
    }

    .app-footer {
        padding: 12px 16px 20px;
    }
    
    .social-links-footer {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 12px;
    }

    .social-btn {
        padding: 7px 14px;
        font-size: 0.85rem;
    }
}

