:root {
    --atea-primary: #008d2a;
    --atea-secondary: #00a3e0;
    --atea-dark: #001f4d;
    --atea-accent: #ff6b35;
    --text-primary: #1a1a1a;
    --text-secondary: #5a5a5a;
    --text-light: #757575;
    --border-color: #e5e5e5;
    --background-light: #f8f9fa;
    --hover-shadow: 0 4px 20px rgba(0, 51, 141, 0.15);
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter";
    font-size: 16px;
    background: #f7f7f7;
    min-height: 100vh;
    color: var(--text-primary);
}

/* Country selector */
.country-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.country-selector label {
    color: var(--text-secondary);
    font-weight: 500;
}

.country-selector select {
    box-sizing: border-box;
    width: 157px;
    height: 48px;
    padding: 8px 40px 8px 16px;
    border: 1px solid #71797d;
    border-radius: 4px;
    background-color: #f7f7f7;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: -0.25px;
    color: #1f2325;
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("../Welcome/Images/static-dropdown-arrow.svg");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 24px 24px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.country-selector select:hover {
    box-shadow: 0 4px 20px rgba(0, 51, 141, 0.15);
}

.country-selector select:focus {
    outline: none;
    border-color: #00338d;
    box-shadow: 0 0 0 2px rgba(0, 51, 141, 0.1);
}

/* Main Content */
.container {
    margin: 4rem auto;
    padding: 32px;
    max-width: 1400px;
}

.welcome-section {
    margin-bottom: 4rem;
}

.welcome-section h1 {
    font-family: Inter;
    font-weight: 500;
    font-style: Medium;
    font-size: 36px;
    line-height: 16px;
    letter-spacing: -0.25px;
    vertical-align: middle;
}

.welcome-section p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    line-height: 1.6;
}

/* Tiles Grid */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 1rem;
}

.tile {
    background: #fff;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 51, 141, 0.15);
    border: 2px solid var(--border-color);
    position: relative;
    padding: 32px;
}

.tile:hover {
    border-color: transparent;
}

.tile::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    opacity: 0;

    background: radial-gradient(
            100% 225% at 0% 50%,
            #008a00 0%,
            #99d099 21.44%,
            #33a133 51.75%,
            #008a00 78.22%,
            #99d099 100%
    );
    background-size: 200% 100%;
    background-position: 0% 50%;

    -webkit-mask: linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
    transition: opacity 300ms ease-out;
}

.tile:hover::before {
    opacity: 1;
    transition: opacity 300ms ease-in;
    animation: borderGradientShift 3s linear infinite;
    animation-delay: 400ms;
}

@keyframes borderGradientShift {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 200% 50%;
    }
}

.tile-icon {
    border-radius: 8px;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.tile-hover-icon {
    position: absolute;
    top: 12px;
    right: 12px;

    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease,
    transform 0.2s ease;
}

/* show on hover */
.tile:hover .tile-hover-icon {
    opacity: 1;
    transform: translateY(0);
}

.tile-hover-icon svg {
    width: 100%;
    height: 100%;
}

.tile h3 {
    font-family: Inter;
    font-weight: 500;
    font-size: 20px;
    line-height: 20px;
    letter-spacing: 0.24%;
    vertical-align: middle;
    margin: 10px 0px 10px 0px;
}

.tile p {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.25px;
    vertical-align: middle;
    color: #4d575d;
    margin-top: 8px;
}

.tile-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--atea-accent);
    color: white;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* No Services Message */
.no-services {
    text-align: center;
    padding: 3rem;
    background: var(--background-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.no-services h3 {
    color: var(--atea-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.no-services p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2.5rem 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5rem;
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }

    .tiles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container {
        margin: 2rem auto;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.lang-selector {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

@media (max-width: 768px) {
    .lang-selector {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .country-selector {
        margin-left: 0;
        width: 100%;
    }

    #countryLabel {
        display: none;
    }
}

.country-selector {
    margin-left: auto;
}

.other-platforms-container {
    display: flex;
    gap: 41px;
    flex-wrap: wrap;
}

.other-platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 28px;
    border: 1px solid #71797d;
    border-radius: 3px;
    text-decoration: none;
    color: inherit;
    background: #f7f7f7;
    position: relative;
    overflow: hidden;
}

/* gradient border layer */
.other-platform-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    opacity: 0;

    background: radial-gradient(
            100% 225% at 0% 50%,
            #008a00 0%,
            #99d099 21.44%,
            #33a133 51.75%,
            #008a00 78.22%,
            #99d099 100%
    );

    background-size: 200% 100%;
    background-position: 0% 50%;

    -webkit-mask: linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
    transition: opacity 500ms ease-out;
}

/* hover */
.other-platform-btn:hover {
    border-color: transparent; /* hides the original border */
}

.other-platform-btn:hover::before {
    opacity: 1;
    transition: opacity 300ms ease-in;
    animation: borderGradientShift 3s linear infinite;
    animation-delay: 400ms;
}

.other-platforms-title {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 24px;
    line-height: 34px;
    letter-spacing: -0.4px;
    vertical-align: middle;
}

.other-platforms {
    gap: 24px;
}

.header {
    background: #ffffff;
    padding: 1.5rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}
