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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, rgb(0, 119, 255) 0%, rgb(30, 144, 255) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 60px 0 40px;
    color: white;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: white;
    padding: 3px;
    object-fit: contain;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.app-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    margin-top: 10px;
}

/* Hero Section */
.hero {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
    padding: 40px 0 40px;
    margin-bottom: 40px;
    flex: 1;
}

@supports (display: grid) {
    .hero {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* Phone Mockup */
.phone-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

/* Download Section */
.download-section {
    flex: 1;
    color: white;
    min-width: 300px;
}

.phone {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 20px;
    box-shadow: 
        0 0 0 8px #333,
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 0 0 2px #666;
    position: relative;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.phone:hover {
    transform: rotate(0deg) scale(1.02);
}

.screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(0, 119, 255) 0%, rgb(30, 144, 255) 100%);
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

.app-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.preview-header {
    padding: 15px 20px 0;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.time {
    font-weight: 700;
}

.indicators {
    display: flex;
    gap: 5px;
}

.signal, .wifi, .battery {
    width: 12px;
    height: 8px;
    background: white;
    border-radius: 2px;
}

.preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.app-icon-large {
    margin-bottom: 20px;
}

.large-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: white;
    padding: 4px;
    object-fit: contain;
}

.preview-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.preview-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 400;
}



.download-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.download-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 15px 25px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-label {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1.2;
}

.btn-store {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

/* QR Section */
.qr-section {
    text-align: center;
    margin-top: 30px;
}

.qr-code {
    display: inline-block;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

#qrCanvas {
    display: block;
    margin: 0 auto;
}

.qr-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 5px;
}

.qr-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}





/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 20px 0;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-text {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .phone {
        width: 240px;
        height: 480px;
        transform: rotate(0deg);
    }
    
    .app-title {
        font-size: 2rem;
    }
    
    .download-title {
        font-size: 1.8rem;
    }
    
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 0 15px;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 0 30px;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .app-title {
        font-size: 1.8rem;
    }
    
    .download-buttons {
        gap: 15px;
    }
    
    .download-btn {
        padding: 12px 20px;
    }
    
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Apply animations */

.qr-code {
    animation: pulse 2s infinite;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Specific button styles */
.ios-btn {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.google-play-btn {
    background: linear-gradient(135deg, rgba(1, 135, 95, 0.8) 0%, rgba(67, 160, 71, 0.9) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.android-apk-btn {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.8) 0%, rgba(245, 124, 0, 0.9) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.ios-btn:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 1) 100%);
}

.google-play-btn:hover {
    background: linear-gradient(135deg, rgba(1, 135, 95, 0.9) 0%, rgba(67, 160, 71, 1) 100%);
}

.android-apk-btn:hover {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.9) 0%, rgba(245, 124, 0, 1) 100%);
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .download-btn {
        background: rgba(255, 255, 255, 0.3);
        border: 2px solid rgba(255, 255, 255, 0.4);
    }

    .download-btn:hover {
        background: rgba(255, 255, 255, 0.4);
    }
}