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

html {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --brand-primary-500: #051d49;
    --brand-accent-400: #6785fe;
    --basics-white: #fff;
    --text-primary: #314158;
    --text-secondary: #45556c;
    --border-color: rgba(229, 231, 235, 0.4);
    --background-light: #f9faff;
    --background-blue: #dbe2ff;
    --background-dark: #182455;
}

body {
    font-family: 'Aileron', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

.hidden {
    display: none !important;
}

/* Page Container */
.page-container {
    background: var(--background-light);
    min-height: 100vh;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.page-container::before {
    content: '';
    position: fixed;
    top: 70vh;
    right: -10%;
    width: 622px;
    height: 498px;
    background: #6785fe;
    border-radius: 50%;
    filter: blur(418.2px);
    z-index: 1;
    opacity: 0.8;
    pointer-events: none;
    overflow: hidden;
}

.page-container > * {
    position: relative;
    z-index: 2;
}

/* Header Styles */
.header-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 24px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    min-height: 80px;
}

.logo-container {
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-image {
    height: 32px;
    width: auto;
    cursor: pointer;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    gap: 44px;
    align-items: center;
}

.nav-text {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Aileron', sans-serif;
    transition: color 0.3s ease;
}

.nav-text:hover {
    color: #3149a9;
}

.mobile-nav-container {
    display: none;
}

/* Language Dropdown */
.language-dropdown-container {
    position: relative;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #cad5e2;
    border-radius: 8px;
    padding: 8px 12px;
    height: 40px;
    overflow: visible;
    min-width: 160px;
    max-width: 200px;
}

.flag-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.language-text {
    font-family: 'Aileron';
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arrow-icon {
    flex-shrink: 0;
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #ffffff;
    border: 1px solid #cad5e2;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: none;
    min-width: 200px;
    max-width: 300px;
    overflow: visible;
}

.dropdown-options.open {
    display: block;
}

.dropdown-option {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.dropdown-option:hover {
    background: #f3f5ff;
}

.dropdown-option .check-icon {
    margin-left: auto;
}

/* Hero Section */
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    background: var(--background-light);
}

.hero-logo {
    height: 120px;
    width: auto;
    margin-bottom: 32px;
}

.subtitle {
    color: var(--brand-primary-500);
    text-align: center;
    font-family: Aileron;
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    max-width: min(1084px, 90%);
    margin: 0 auto;
}

.globe-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.globe-image {
    width: 600px;
    height: 468px;
    max-width: 100%;
    height: auto;
}

/* Why Region Section */
.why-region-section {
    background: var(--background-light);
    padding: 80px 60px;
    width: 100%;
}

.section-title {
    color: var(--brand-primary-500);
    text-align: center;
    font-family: 'SF Pro Text', 'Aileron', sans-serif;
    font-size: 64px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%;
    margin-bottom: 80px;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0px 4px 20px rgba(103, 133, 254, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 290px;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 8px 30px rgba(103, 133, 254, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #e7ecff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
}

.feature-title {
    font-family: 'Aileron', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--brand-primary-500);
    margin-bottom: 16px;
    line-height: 1.2;
}

.feature-description {
    font-family: 'Aileron', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
}

/* Choose Country Section */
.choose-country-section {
    background: white;
    margin: 60px auto;
    max-width: 1320px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.1);
    padding: 80px 40px;
    position: relative;
}

.countries-container {
    display: flex;
    gap: 60px;
    justify-content: center;
    margin: 60px 0;
}

.country-card {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 20px 32px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 200px;
    width: 295px;
    height: 106px;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.2);
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.04);
}

.country-card:hover {
    border: 2px solid var(--brand-accent-400);
    box-shadow: 0 4px 20px 0 rgba(103, 133, 254, 0.3);
    border-radius: 8px;
}

.country-card.selected {
    border: 1px solid var(--brand-accent-400);
    box-shadow: 2px 22px 28.2px 0 rgba(103, 133, 254, 0.5);
}

.country-flag {
    height: 74.435px;
    width: 80px;
    position: relative;
    flex-shrink: 0;
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.country-name {
    font-family: 'Aileron', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--brand-primary-500);
    line-height: 1.2;
    flex: 1;
}

.continue-button {
    display: inline-flex;
    width: 138px;
    height: 54px;
    padding: 16px 28px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    background: linear-gradient(90deg, #051d49 -46.71%, #496def 106.38%);
    color: #fff;
    border: none;
    position: absolute;
    bottom: 40px;
    right: 40px;
    font-family: 'SF Pro Text', 'Aileron', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.continue-button:disabled {
    display: flex;
    background: var(--basics-white);
    border: 2px solid var(--brand-primary-500);
    box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.04);
    color: var(--brand-primary-500);
    cursor: not-allowed;
}

.continue-button:not(:disabled):hover {
    opacity: 0.9;
}

/* Footer Styles */
footer {
    font-family: 'Aileron', sans-serif;
    width: 100%;
    margin-top: auto;
}

.upper-footer {
    background: var(--background-blue);
    padding: 0;
    color: #020a18;
    position: relative;
    height: 579px;
    overflow: hidden;
    width: 100%;
}

.footer-title {
    color: var(--brand-primary-500);
    font-size: 64px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    font-family: 'Aileron', sans-serif;
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(1084px, 90%);
    margin: 0;
}

.content-container {
    position: absolute;
    top: 243px;
    left: 60px;
    right: 60px;
    display: flex;
    gap: 125px;
    max-width: 1320px;
    margin: 0 auto;
}

.image-container {
    width: 213px;
    height: 177px;
    background-image: url('images/footer-image.svg');
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.image-container img.footer-illustration {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .image-container {
        width: 100%;
        height: 150px;
        background-size: contain;
        background-repeat: no-repeat;
    }
    .image-container img.footer-illustration {
        height: 100%;
    }
}
.info-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: #020a18;
    font-family: 'Aileron', sans-serif;
}

.info-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: #020a18;
}

.info-text {
    line-height: 1.2;
}

.info-text p {
    margin: 0;
}

.info-text p:not(:last-child) {
    margin-bottom: 4px;
}

.lower-footer {
    background: var(--background-dark);
    text-align: center;
    padding: 20px 16px;
    color: #cdd2db;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    font-family: 'Aileron', sans-serif;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-container::before {
        top: 60vh;
        right: -20%;
        width: 400px;
        height: 320px;
        filter: blur(250px);
        opacity: 0.6;
    }

    .subtitle {
        width: 90%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 40px;
    }

    .globe-image {
        width: 500px;
        height: 390px;
    }

    .section-title {
        font-size: 56px;
        margin-bottom: 60px;
    }

    .choose-country-section {
        margin: 50px 20px;
        padding: 60px 30px;
    }

    .countries-container {
        gap: 40px;
        margin: 50px 0;
    }

    .country-card {
        width: 250px;
        height: 90px;
        padding: 18px 28px;
        gap: 20px;
    }

    .country-flag {
        height: 65px;
        width: 70px;
    }

    .country-name {
        font-size: 22px;
    }

    .continue-button {
        bottom: 30px;
        right: 30px;
    }
}

@media (max-width: 768px) {
    .header-wrapper {
        padding: 12px 16px;
        justify-content: space-between;
        min-height: 56px;
        overflow: visible;
        gap: 12px;
    }

    .logo-image {
        height: 24px;
    }

    .nav-container {
        display: none;
    }

    .mobile-nav-container {
        display: flex;
        align-items: center;
        position: relative;
        overflow: visible;
        flex-shrink: 0;
    }

    .language-dropdown-container {
        padding: 4px 6px;
        height: 32px;
        min-width: 90px;
        max-width: 120px;
        gap: 4px;
        border-radius: 6px;
    }

    .flag-icon {
        width: 20px;
        height: 20px;
    }

    .language-text {
        font-size: 14px;
        line-height: 20px;
    }

    .arrow-icon {
        width: 20px !important;
        height: 20px !important;
    }

    .dropdown-options {
        right: 0;
        left: auto;
        min-width: 160px;
        max-width: calc(100vw - 32px);
    }

    .hero-container {
        min-height: 60vh;
        padding: 60px 20px;
    }

    .hero-logo {
        height: 100px;
        margin-bottom: 24px;
    }

    .subtitle {
        width: 100%;
        font-size: 24px;
        padding: 0 20px;
        margin-bottom: 40px;
    }

    .globe-image {
        width: 400px;
        height: 312px;
        margin-bottom: 60px;
    }

    .why-region-section {
        padding: 60px 40px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 24px;
        line-height: 1.3;
        padding: 0 16px;
    }

    .features-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card {
        padding: 24px;
    }

    .choose-country-section {
        margin: 20px 20px;
        padding: 32px 28px;
        border-radius: 16px;
        box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.08);
    }

    .countries-container {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin: 32px 0;
        width: 100%;
    }

    .country-card {
        width: 100%;
        max-width: 100%;
        height: 72px;
        padding: 16px 20px;
        gap: 16px;
        border-radius: 12px;
    }

    .country-card.selected {
        border: 2px solid var(--brand-accent-400);
        box-shadow: 0px 4px 16px rgba(103, 133, 254, 0.3);
    }

    .country-card:hover {
        border: 2px solid var(--brand-accent-400);
        box-shadow: 0px 4px 16px rgba(103, 133, 254, 0.2);
        transform: translateY(-1px);
    }

    .country-flag {
        height: 48px;
        width: 52px;
    }

    .country-flag img {
        border-radius: 3px;
    }

    .country-name {
        font-size: 18px;
        font-weight: 500;
    }

    .continue-button {
        position: static;
        margin: 32px auto 0 auto;
        width: 100%;
        max-width: 280px;
        height: 48px;
        border-radius: 12px;
        font-size: 16px;
    }

    .continue-button:disabled {
        width: 100%;
        max-width: 280px;
        height: 48px;
        border-radius: 12px;
        font-size: 16px;
    }

    .upper-footer {
        padding: 60px 20px;
        height: auto;
    }

    .footer-title {
        font-size: 48px;
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: auto;
        margin-bottom: 40px;
    }

    .content-container {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 30px;
    }

    .image-container {
        width: 100%;
        height: 150px;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .info-column {
        gap: 20px;
    }

    .info-item {
        font-size: 16px;
        gap: 12px;
    }

    .info-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .header-wrapper {
        padding: 10px 12px;
        min-height: 50px;
        gap: 8px;
    }

    .logo-image {
        height: 20px;
    }

    .language-dropdown-container {
        padding: 3px 5px;
        height: 28px;
        min-width: 80px;
        max-width: 100px;
        gap: 3px;
    }

    .flag-icon {
        width: 18px;
        height: 18px;
    }

    .language-text {
        font-size: 12px;
        line-height: 16px;
    }

    .arrow-icon {
        width: 16px !important;
        height: 16px !important;
    }

    .dropdown-options {
        min-width: 140px;
        max-width: calc(100vw - 24px);
    }

    .hero-container {
        min-height: 55vh;
        padding: 40px 16px;
    }

    .hero-logo {
        height: 80px;
        margin-bottom: 20px;
    }

    .subtitle {
        font-size: 20px;
        margin-bottom: 32px;
        padding: 0 16px;
    }

    .globe-image {
        width: 300px;
        height: 234px;
        margin-bottom: 40px;
    }

    .why-region-section {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 20px;
        padding: 0 12px;
    }

    .choose-country-section {
        margin: 16px 16px;
        padding: 28px 24px;
        border-radius: 12px;
        max-width: 93%;
    }

    .countries-container {
        gap: 12px;
        margin: 24px 0;
    }

    .country-card {
        padding: 16px 18px;
        gap: 14px;
        min-width: auto;
        width: 100%;
        height: 68px;
        border-radius: 10px;
    }

    .country-flag {
        height: 44px;
        width: 48px;
    }

    .country-name {
        font-size: 16px;
    }

    .continue-button {
        margin: 24px auto 0 auto;
        width: 100%;
        max-width: 100%;
        height: 44px;
        border-radius: 10px;
        font-size: 15px;
    }

    .continue-button:disabled {
        width: 100%;
        max-width: 100%;
        height: 44px;
        border-radius: 10px;
        font-size: 15px;
    }

    .upper-footer {
        padding: 40px 15px;
    }

    .footer-title {
        font-size: 36px;
        margin-bottom: 30px;
    }
}

@media (max-width: 360px) {
    .globe-image {
        width: 280px;
        height: 218px;
    }
}
