/* Global Styles */
:root {
    --primary-color: #2c7be5;
    --secondary-color: #00d97e;
    --dark-color: #12263f;
    --light-color: #f9fbfd;
    --gray-color: #95aac9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
    position: relative;
}

.nav-item a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item.active a {
    color: var(--primary-color);
}

.nav-item a:hover {
    color: var(--primary-color);
}

.flag {
    width: 20px;
    height: auto;
    vertical-align: middle;
    margin-right: 5px;
}

.language-dropdown {
    position: relative;
}

.language-submenu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    /* New additions: */
    list-style: none; /* Removes bullet points */
    margin: 0; /* Resets default margin */
    z-index: 1000; /* Ensures dropdown appears above other elements */
    border: 1px solid #e1e1e1; /* Clean border */
}

.language-dropdown:hover .language-submenu {
    opacity: 1;
    visibility: visible;
}

.language-submenu li {
    padding: 8px 15px;
    /* New additions: */
    position: relative; /* For any potential absolute positioning */
    line-height: 1.5; /* Better text alignment */
}

.language-submenu li:hover {
    background-color: #f5f7fa;
    /* New additions: */
    cursor: pointer; /* Shows hand cursor on hover */
    transition: background-color 0.2s; /* Smooth hover effect */
}

.language-submenu a {
    display: flex;
    align-items: center;
    /* New additions: */
    text-decoration: none; /* Removes underline */
    color: #333; /* Default text color */
    width: 100%; /* Full width clickable area */
}

.language-submenu img {
    margin-right: 10px;
    /* New additions: */
    width: 20px; /* Consistent flag size */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Prevents stretching */
}

/* Main Content Styles */
.main-content {
    padding: 60px 0;
    text-align: center;
}

.upload-box {
    background: white;
    border: 2px dashed var(--gray-color);
    border-radius: 10px;
    padding: 40px;
    margin: 0 auto 30px;
    max-width: 600px;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-box:hover {
    border-color: var(--primary-color);
}

.upload-box.drag-over {
    background-color: rgba(44, 123, 229, 0.05);
    border-color: var(--primary-color);
}

.upload-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.upload-box h2 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.upload-box p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.btn-select {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-select:hover {
    background-color: #1a68d1;
}

.alternative-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-cloud {
    background-color: white;
    color: var(--dark-color);
    border: 1px solid var(--gray-color);
    padding: 8px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cloud:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.compress-btn-container {
    margin-bottom: 30px;
}

.btn-compress {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-compress:hover {
    background-color: #00c571;
}

.description {
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--gray-color);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-box h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature-box p {
    color: var(--gray-color);
    font-size: 14px;
}

/* Footer Styles */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links img {
    width: 32px;
    height: 32px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.social-links img:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--gray-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    color: var(--gray-color);
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    .nav-menu {
        margin-top: 20px;
    }

    .nav-item {
        margin-left: 15px;
    }

    .alternative-options {
        flex-direction: column;
        align-items: center;
    }

    .features {
        grid-template-columns: 1fr;
    }
}