*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Segoe UI, -apple-system, BlinkMacSystemFont, sans-serif;
}

body{
min-height:100vh;
display:flex;
flex-direction:column;
background:#0f172a;
}

.overlay{
background: linear-gradient(rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.8)), url("greenraynexus/download.jpg") center center/cover;
width:100%;
min-height:100vh;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
flex-grow: 1;
position: relative;
}

/* ================= HEADER ================= */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    width: 33.33%;
}

.header-logo {
    height: 48px;
    object-fit: contain;
}

.header-center {
    width: 33.33%;
    text-align: center;
}

.header-center h2 {
    color: #10b981;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 0;
    text-transform: uppercase;
}

.header-right {
    width: 33.33%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Country Selector */
.country-selector {
    position: relative;
    display: inline-block;
}

.country-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.country-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #10b981;
    transform: translateY(-1px);
}

.country-btn .chevron {
    font-size: 10px;
    transition: transform 0.25s;
}

.country-selector.active .country-btn .chevron {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 170px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    z-index: 99;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.25s, opacity 0.25s;
}

.country-selector.active .country-dropdown {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.country-option {
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.country-option:hover {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.country-option.selected {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    font-weight: 700;
}

/* ---- HEADER MOBILE ---- */
@media (max-width: 600px) {
    .header {
        height: auto;
        padding: 12px 20px;
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }
    .header-left {
        width: auto;
    }
    .header-logo {
        height: 36px;
    }
    .header-center {
        width: auto;
    }
    .header-center h2 {
        font-size: 16px;
        letter-spacing: 1px;
    }
    .header-right {
        display: none;
    }
}

/* ================= HERO CONTENT ================= */
.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 120px auto 40px auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.hero-text {
    margin-bottom: 45px;
    max-width: 800px;
}

.portal-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-text h1 {
    color: white;
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-text p {
    color: #94a3b8;
    font-size: 17px;
    line-height: 1.6;
}

/* ================= PORTAL GRID ================= */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1100px;
    margin-bottom: 20px;
}

.portal-card {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 35px 30px;
    text-decoration: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-card:hover {
    transform: translateY(-6px);
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.12);
}

.card-icon {
    width: 54px;
    height: 54px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #10b981;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.portal-card:hover .card-icon {
    background: #10b981;
    color: white;
}

.card-icon svg {
    width: 26px;
    height: 26px;
}

.portal-card h3 {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.portal-card:hover h3 {
    color: #10b981;
}

.portal-card p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-action {
    color: #10b981;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.portal-card:hover .card-action {
    transform: translateX(6px);
}

/* ---- TABLET (max 968px) ---- */
@media (max-width: 968px) {
    .portal-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .hero-container {
        margin-top: 110px;
    }

    .hero-text h1 {
        font-size: 34px;
    }
}

/* ---- MOBILE (max 640px) ---- */
@media (max-width: 640px) {
    .overlay {
        justify-content: flex-start;
        padding-bottom: 40px;
    }

    .hero-container {
        margin-top: 110px;
        padding: 0 16px;
        margin-bottom: 30px;
    }

    .hero-text {
        margin-bottom: 28px;
    }

    .portal-badge {
        font-size: 11px;
        padding: 5px 12px;
        letter-spacing: 1px;
    }

    .hero-text h1 {
        font-size: 26px;
        letter-spacing: -0.3px;
        margin-bottom: 14px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .portal-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .portal-card {
        padding: 22px 20px;
        border-radius: 14px;
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .card-icon svg {
        width: 20px;
        height: 20px;
    }

    .portal-card-content {
        flex: 1;
    }

    .portal-card h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .portal-card p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .card-action {
        font-size: 13px;
    }
}



/* ================= FOOTER ================= */

.footer{
    background:#0f172a;
    color:#fff;
    margin-top:50px;
}

.footer-container{
    max-width:1400px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    gap:40px;
    padding:40px;
    flex-wrap:wrap;
}

.footer-logo{
    width:180px;
    margin-bottom:15px;
}

.footer-left{
    flex:1;
    min-width:250px;
}

.footer-center{
    flex:1;
    min-width:200px;
}

.footer-right{
    flex:1;
    min-width:250px;
}

.footer h3{
    margin-bottom:15px;
    color:#10b981;
}

.footer a{
    display:block;
    color:#fff;
    text-decoration:none;
    margin-bottom:10px;
}

.footer a:hover{
    color:#10b981;
}

.footer-bottom{
    text-align:center;
    border-top:1px solid rgba(255,255,255,.1);
    padding:15px;
    font-size:14px;
}

/* ---- FOOTER MOBILE ---- */
@media (max-width: 768px) {
    .footer {
        margin-top: 20px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
        gap: 24px;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        min-width: unset;
        width: 100%;
    }

    .footer-logo {
        width: 140px;
        margin: 0 auto 12px;
    }

    .footer-left p {
        font-size: 13px;
        color: #94a3b8;
    }

    .footer-bottom {
        font-size: 12px;
        padding: 12px 16px;
        line-height: 1.5;
    }
}