:root {
    --text-black: #111827;
    --text-gray: #4b5563;
    --border-light: rgba(255, 255, 255, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc; /* General white/light background */
    color: var(--text-black);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Interactive Background blobs */
.interactive-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.interactive-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 250, 252, 0.4); /* Softens the blobs */
    z-index: 1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.6;
    transition: transform 0.2s cubic-bezier(0.1, 0, 0.9, 1);
    will-change: transform;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56,189,248,0.8) 0%, rgba(59,130,246,0) 70%);
    top: -100px;
    left: -100px;
    animation: drift 5s infinite alternate, color-cycle 6s infinite linear;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232,121,249,0.8) 0%, rgba(192,132,252,0) 70%);
    bottom: -100px;
    right: -100px;
    animation: drift 6s infinite alternate-reverse, color-cycle 7s infinite linear reverse;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.6) 0%, rgba(37,99,235,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: color-cycle 5s infinite linear;
    opacity: 0.40;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(25vw, 20vh) scale(1.3); }
}

@keyframes color-cycle {
    0% { filter: blur(90px) hue-rotate(0deg); }
    100% { filter: blur(90px) hue-rotate(360deg); }
}

.glass-container {
    position: relative;
    width: 90%;
    max-width: 1100px;
    min-height: 95vh;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header */
.header {
    position: absolute;
    top: 2rem;
    left: 4%;
    right: 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo img {
    width: 250px;
    height: auto;
    object-fit: contain;
}

.lang-selector select {
    appearance: none;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.6rem 2rem 0.6rem 1rem;
    border-radius: 20px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-gray);
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%234b5563%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem top 50%;
    background-size: 0.65rem auto;
}

.lang-selector select:hover {
    background-color: rgba(255,255,255,0.9);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 6rem 4rem;
}

.hero-content {
    max-width: 800px;
    margin-top: -3rem;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #111827 0%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h1 span {
    display: block;
    font-weight: 300;
    color: var(--text-gray);
    -webkit-text-fill-color: var(--text-gray);
}

.hero-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Custom Country Selector */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
    max-width: 450px;
    margin: 2.5rem auto 0;
    text-align: left;
    z-index: 100;
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-black);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.custom-select-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    background-color: #ffffff;
}

.custom-select.open .custom-select-trigger {
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: none;
}

.custom-select-trigger .arrow {
    width: 12px;
    height: 12px;
    border-left: 2px solid var(--text-black);
    border-bottom: 2px solid var(--text-black);
    transform: rotate(-45deg);
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.custom-select.open .custom-select-trigger .arrow {
    transform: rotate(135deg);
    margin-bottom: -5px;
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 100;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid rgba(0,0,0,0.05);
    border-top: none;
    transform: translateY(-10px);
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.search-box {
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 2;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.search-box input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-black);
    outline: none;
    transition: all 0.2s ease;
}

.search-box input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.1);
}

.custom-option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-option:hover {
    background-color: #f3f4f6;
    color: var(--text-black);
}

.custom-option img {
    width: 24px;
    height: auto;
    margin-right: 12px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Custom Scrollbar for options */
.custom-options::-webkit-scrollbar {
    width: 8px;
}
.custom-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 16px 0;
}
.custom-options::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.custom-options::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 2rem;
    left: 4%;
    right: 4%;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    z-index: 10;
}

.footer p {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .glass-container {
        height: auto;
        min-height: 85vh;
        width: 95%;
        margin: auto;
    }
    
    .header {
        top: 1rem;
        left: 5%;
        right: 5%;
        flex-direction: row;
        gap: 1rem;
    }

    .logo img {
        width: 200px;
    }

    .footer {
        bottom: 1rem;
        left: 5%;
        right: 5%;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero-content {
        margin-top: -2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }

    .custom-options {
        max-height: 200px;
    }
}
