/* Import Inter font */
@font-face {
    font-family: 'Inter';
    src: url('./assets/fonts/Inter-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #386871;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 100;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    min-width: 40px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.lang-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Main content area */
.main-content {
    text-align: center;
    z-index: 2;
    max-width: 600px;
    width: 100%;
}

/* Logo styles */
.logo-container {
    margin-bottom: 60px;
}

.logo {
    font-size: 120px;
    font-weight: 800;
    color: white;
    text-shadow: 
        -4px -4px 0 #000,
        4px -4px 0 #000,
        -4px 4px 0 #000,
        4px 4px 0 #000,
        -4px 0 0 #000,
        4px 0 0 #000,
        0 -4px 0 #000,
        0 4px 0 #000;
    letter-spacing: 2px;
    line-height: 1.1;
    text-transform: uppercase;
}

/* Download buttons */
.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 180px;
    gap: 12px;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.download-btn:active {
    transform: translateY(0);
}

.download-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.download-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.download-label {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-store {
    font-size: 16px;
    font-weight: 700;
    margin-top: 2px;
}

/* Footer links */
.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Legal links */
.legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.legal-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.legal-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.separator {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 300;
}

/* Goose mascot */
.goose-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1;
}

.goose {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.goose:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .language-selector {
        top: 15px;
        right: 15px;
        gap: 6px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 35px;
    }
    
    .lang-text {
        font-size: 11px;
    }
    
    .logo {
        font-size: 80px;
        text-shadow: 
            -3px -3px 0 #000,
            3px -3px 0 #000,
            -3px 3px 0 #000,
            3px 3px 0 #000,
            -3px 0 0 #000,
            3px 0 0 #000,
            0 -3px 0 #000,
            0 3px 0 #000;
    }
    
    .logo-container {
        margin-bottom: 40px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .download-btn {
        min-width: 200px;
    }
    
    .goose {
        width: 120px;
    }
    
    .goose-container {
        bottom: 15px;
        left: 15px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 8px;
        margin-top: 15px;
    }
    
    .legal-links .separator {
        display: none;
    }
    
    .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 60px;
    }
    
    .download-btn {
        min-width: 180px;
        padding: 10px 20px;
    }
    
    .download-store {
        font-size: 14px;
    }
    
    .download-label {
        font-size: 11px;
    }
    
    .goose {
        width: 100px;
    }
    
    .goose-container {
        bottom: 10px;
        left: 10px;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .logo {
        font-size: 140px;
    }
    
    .goose {
        width: 150px;
    }
    
    .goose-container {
        bottom: 40px;
        left: 40px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .goose:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .download-btn {
        border-color: white;
        background: rgba(0, 0, 0, 0.8);
    }
    
    .logo {
        text-shadow: 
            -2px -2px 0 #000,
            2px -2px 0 #000,
            -2px 2px 0 #000,
            2px 2px 0 #000;
    }
}

/* Focus styles for keyboard navigation */
.download-btn:focus,
.footer-link:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .goose-container {
        display: none;
    }
    
    .download-btn {
        border: 2px solid black;
        background: white;
        color: black;
    }
}

/* ===== MODAL STYLES ===== */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.modal-active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.modal-container {
    background: linear-gradient(135deg, #386871 0%, #2a5761 100%);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.modal-active .modal-container {
    transform: translateY(0);
}

/* Swipe Handle */
.modal-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    margin: 12px auto;
    cursor: grab;
    /* Make the handle area larger for easier touch interaction */
    position: relative;
}

.modal-handle::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -20px;
    width: 80px;
    height: 36px;
    /* Invisible larger touch area */
}

.modal-handle:active {
    cursor: grabbing;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.modal-close:active {
    transform: scale(0.95);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

/* Modal Content */
.modal-content {
    padding: 0 24px 24px 24px;
    height: calc(90vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Improve scrolling on mobile */
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    /* Ensure touch events work properly */
    touch-action: pan-y;
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: 32px;
    padding-top: 20px;
}

.modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.modal-logo-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.modal-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: white;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: 1px;
}

/* Modal Sections */
.modal-section {
    margin-bottom: 40px;
}

.section-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
    text-align: left;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    font-weight: 500;
}

.section-text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

/* Value Items */
.value-item {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.value-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.value-description {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Contact Button */
.contact-button {
    display: inline-block;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.contact-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.contact-button:active {
    transform: translateY(0);
}

/* Desktop Modal Styles */
@media (min-width: 768px) {
    .modal-overlay {
        align-items: center;
    }
    
    .modal-container {
        width: 90%;
        max-width: 600px;
        max-height: 80vh;
        border-radius: 20px;
        transform: scale(0.9) translateY(50px);
    }
    
    .modal-active .modal-container {
        transform: scale(1) translateY(0);
    }
    
    .modal-handle {
        display: none;
    }
    
    .modal-content {
        height: auto;
        max-height: calc(80vh - 60px);
    }
    
    .modal-header {
        padding-top: 10px;
    }
}

/* Large Desktop */
@media (min-width: 1024px) {
    .modal-container {
        max-width: 700px;
    }
    
    .modal-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .modal-content {
        padding: 0 40px 40px 40px;
    }
}

/* Accessibility and Animation Preferences */
@media (prefers-reduced-motion: reduce) {
    .modal-overlay,
    .modal-container,
    .modal-close,
    .contact-button {
        transition: none;
    }
    
    .modal-close:hover {
        transform: none;
    }
    
    .contact-button:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .modal-container {
        background: #000;
        border: 2px solid #fff;
    }
    
    .value-item {
        background: rgba(255, 255, 255, 0.2);
        border-left-color: white;
    }
    
    .modal-close {
        background: rgba(255, 255, 255, 0.9);
        color: black;
    }
    
    .contact-button {
        background: white;
        color: black;
        border-color: white;
    }
}

/* Focus States for Keyboard Navigation */
.modal-close:focus,
.contact-button:focus,
.lang-btn:focus,
.footer-link:focus,
.legal-link:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}