@import url("https://cdn.jsdelivr.net/gh/lipis/flag-icons@7.0.0/css/flag-icons.min.css");

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
    background: linear-gradient(to bottom, #f5f7fa, #e4efe9);
    min-height: 100vh;
}

/* Color Palette */
:root {
    --primary: #3a86ca; /* Blue for trust and technology */
    --secondary: #ffcb6b; /* Warm yellow for optimism */
    --accent: #6fbf73; /* Green for growth and accessibility */
    --dark: #2c3e50; /* Dark for text and contrast */
    --light: #ecf0f1; /* Light background */
}

#language-dropdown-menu {
    display: none;
    position: absolute;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0.5rem 1rem;
    background-color: white;
    list-style: none;
    border-radius: 0.25rem;
    margin-left: -15px;
    border: 1px solid #eee;
}

#language-dropdown-menu li {
    padding-bottom: 4px;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 4px;
    margin: 0px;
}

.dropdown-item a {
    /* Fix Russian font on Japanese page */
    font-family: 'Poppins', arial;
}

#language-dropdown-menu li:hover,
.dropdown-item.active {
    background-color: rgba(58, 134, 202, 0.1);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 5%;
    background: linear-gradient(rgba(58, 134, 202, 0.7), rgba(58, 134, 202, 0.5));
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    animation: fadeInUp 1.2s ease-out;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--secondary);
    color: var(--dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.3s ease;
    animation: fadeInUp 1.4s ease-out;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: fadeInUp 1.6s ease-out;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
    filter: drop-shadow(5px 5px 20px rgb(0 0 0 / 0.4));
}

/* Features Section */
.features {
    padding: 5rem 5%;
    text-align: center;
    background: white;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-card p {
    color: #666;
}

/* Early Access Section */
.early-access {
    padding: 5rem 5%;
    text-align: center;
    background: linear-gradient(to bottom, #e4efe9, #f5f7fa);
}

.early-access h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.early-access p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

.access-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.form-group input[type="email"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
}

.checkbox-group label {
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.checkbox-group input {
    margin-right: 0.5rem;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #2c6ca0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background: var(--dark);
    color: var(--light);
}

/* Screenshots Section */
.screenshots {
    padding: 5rem 5%;
    text-align: center;
    background: white;
}

/* FAQ Section */
.faq {
    padding: 5rem 5%;
    text-align: center;
    background: linear-gradient(to bottom, #f5f7fa, #e4efe9);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 5%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    transition: transform 0.5s ease;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    max-width: 800px;
    width: 90%;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 90%;
    overflow-y: scroll;
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.modal-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.modal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.modal-content li {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary);
}

.modal-button {
    display: block;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-button:hover {
    background: #2c6ca0;
}

.privacy-email a {
    color: var(--primary);
    text-decoration: none;
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 1rem;
    text-align: center;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-button {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-button.accept {
    background: var(--primary);
    color: white;
}

.cookie-button.accept:hover {
    background: #2c6ca0;
}

.cookie-button.decline {
    background: #ddd;
    color: var(--dark);
}

.cookie-button.decline:hover {
    background: #ccc;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .cookie-content p {
        margin-bottom: 0;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

.faq h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
}

.faq-item {
    max-width: 800px;
    margin: 0 auto 1rem;
    text-align: left;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(58, 134, 202, 0.1);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    opacity: 0;
    font-size: 1rem;
    color: #666;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
    overflow: hidden;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
    opacity: 1;
}

.screenshots h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.screenshots p {
    font-size: 1.1rem;
    /* margin-bottom: 3rem; */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    margin-top: 1.5rem;
}

.screenshot-card {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-10px);
}

.screenshot-card img {
    width: 100%;
    height: 400px;
    object-position: top;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #ddd; /* Placeholder color if image is missing */
}

.crop-bottom {
    object-position: 0px 100% !important;
}

.crop-middle {
    object-position: 0px 20% !important;
}

.screenshot-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .screenshot-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding-left: 2rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 2rem 5%;
    }

    .hero-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-image {
        width: 100%;
    }

    .features h2,
    .early-access h2 {
        font-size: 2rem;
    }
} 