* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E3BE78;
    --secondary-color: #8B7355;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    height: 100vh;
}

.hero {
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 20px;
    text-align: center;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    width: 100%;
    height: 100%;
    padding: 0;
}

.hero-content h2 {
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-content img {
    max-width: 35%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.download-options {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
    min-width: 140px;
}

.download-btn:hover {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

/* QR Code Popup Styles */
.qr-code-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    margin-bottom: 10px;
}

.qr-code-popup::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--white);
}

.qr-code-content {
    padding: 20px;
    text-align: center;
    min-width: 280px;
}

.qr-code-placeholder {
    width: 160px;
    height: 160px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin: 0 auto 12px;
    position: relative;
    background: #f9f9f9;
    overflow: hidden;
    padding: 2px;
    box-sizing: border-box;
}

.qr-image {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: fill;
    display: block;
    border-radius: 4px;
    box-shadow: none !important;
}

.qr-text {
    color: var(--text-color);
    font-size: 16px !important;
    font-weight: 500;
    margin: 0;
    text-shadow: none !important;
}

/* Show QR code on hover (web only) */
@media screen and (min-width: 1024px) {
    .download-btn.ios,
    .download-btn.android {
        position: relative;
    }

    .download-btn.ios:hover .qr-code-popup,
    .download-btn.android:hover .qr-code-popup {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Mobile-first: 2x2 grid layout for download buttons */
@media screen and (max-width: 767px) {
    .hero-content {
        gap: 10px;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .hero-content p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .hero-content img {
        max-width: 50%;
    }
    
    .download-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        justify-items: center;
    }

    .download-btn {
        width: 100%;
        max-width: 120px;
        font-size: 0.75rem;
        padding: 6px 8px;
        text-align: center;
        min-width: auto;
    }
    
    .qr-code-content {
        min-width: 220px;
        padding: 15px;
    }
    
    .qr-code-placeholder {
        width: 120px;
        height: 120px;
        box-sizing: border-box;
        position: relative;
        padding: 2px;
    }
}

/* Tablet and desktop: horizontal layout */
@media screen and (min-width: 768px) {
    .container {
        max-width: 100%;
    }
    
    .hero-content {
        gap: 15px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-content img {
        max-width: 35%;
    }

    .download-options {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px;
        width: 100%;
        margin: 0 auto;
    }

    .download-btn {
        flex: none !important;
        width: auto !important;
        max-width: none !important;
        font-size: 0.9rem;
        padding: 10px 18px;
    }
}

@media screen and (min-width: 1024px) {
    .container {
        max-width: 100%;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
    
    .download-btn {
        font-size: 1rem;
        padding: 12px 20px;
        min-width: 160px;
    }
    
    .qr-code-content {
        min-width: 300px;
        padding: 25px;
    }
    
    .qr-code-placeholder {
        width: 180px;
        height: 180px;
        box-sizing: border-box;
        position: relative;
        padding: 2px;
    }
} 