@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #050a15;
    color: #ffffff;
}

.overlay {
    background: linear-gradient(180deg, rgba(5, 10, 21, 0.88) 0%, rgba(5, 10, 21, 0.82) 50%, rgba(5, 10, 21, 0.94) 100%), 
                url("greenraynexus/download.jpg") center center/cover no-repeat;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding-bottom: 30px;
}

/* ================= HEADER ================= */
.header {
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 48px;
    background: rgba(5, 10, 21, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 20;
}

.header-left {
    display: flex;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.brand-mark-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(118, 216, 19, 0.25));
}

.brand-divider {
    width: 1px;
    height: 42px;
    background: rgba(255, 255, 255, 0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.brand-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1.5px;
}

.brand-nexus {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
    margin-top: 2px;
    display: flex;
    align-items: center;
}

.nexus-star {
    width: 12px;
    height: 12px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 1px;
}

.brand-tagline {
    font-size: 10.5px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.3px;
    margin-top: 3px;
}

.header-right {
    display: flex;
    align-items: center;
}

/* Country Selector Button */
.country-selector {
    position: relative;
}

.country-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.country-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.country-btn .chevron {
    font-size: 10px;
    color: #94a3b8;
    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(10, 17, 34, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    min-width: 170px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    z-index: 99;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
}

.country-selector.active .country-dropdown {
    display: flex;
}

.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, .country-option.selected {
    background: rgba(34, 197, 94, 0.18);
    color: #22c55e;
    font-weight: 600;
}

/* ================= HERO CONTENT ================= */
.hero-container {
    max-width: 1240px;
    width: 100%;
    margin: 30px auto 20px auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.hero-text {
    margin-bottom: 40px;
    max-width: 850px;
}

.hero-text h1 {
    color: #ffffff;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(90deg, #76d813 0%, #00b4d8 50%, #3a86ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.title-accent-bar {
    width: 54px;
    height: 4px;
    background: linear-gradient(90deg, #76d813, #00b4d8);
    border-radius: 2px;
    margin: 14px auto 20px auto;
}

.hero-text p {
    color: #94a3b8;
    font-size: 16.5px;
    line-height: 1.6;
    font-weight: 400;
}

/* ================= PORTAL GRID ================= */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    margin-bottom: 28px;
}

.portal-card {
    position: relative;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: 34px 28px 28px 28px;
    text-decoration: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    min-height: 330px;
}

/* Card 1: Solar */
.card-solar {
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: rgba(6, 24, 18, 0.65);
}

.card-solar:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 197, 94, 0.75);
    box-shadow: 0 16px 40px -10px rgba(34, 197, 94, 0.3);
}

/* Card 2: EV */
.card-ev {
    border: 1px solid rgba(6, 182, 212, 0.35);
    background: rgba(5, 23, 36, 0.65);
}

.card-ev:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.75);
    box-shadow: 0 16px 40px -10px rgba(6, 182, 212, 0.3);
}

/* Card 3: Digital Factory */
.card-factory {
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(20, 10, 38, 0.65);
}

.card-factory:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.75);
    box-shadow: 0 16px 40px -10px rgba(139, 92, 246, 0.3);
}

/* Card Header & Icons */
.card-header {
    margin-bottom: 22px;
}

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.icon-solar {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #22c55e;
}

.icon-ev {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: #06b6d4;
}

.icon-factory {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #8b5cf6;
}

.portal-card:hover .card-icon {
    transform: scale(1.05);
}

.card-icon svg {
    width: 26px;
    height: 26px;
}

.portal-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portal-card h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.portal-card p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-action {
    font-size: 14.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.3s ease;
}

.card-solar .card-action { color: #22c55e; }
.card-ev .card-action { color: #06b6d4; }
.card-factory .card-action { color: #a855f7; }

.portal-card:hover .card-action {
    transform: translateX(6px);
}

/* Watermarks */
.card-watermark {
    position: absolute;
    right: -5px;
    bottom: -10px;
    width: 140px;
    height: 140px;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.watermark-solar { color: #22c55e; opacity: 0.14; }
.watermark-ev { color: #06b6d4; opacity: 0.14; }
.watermark-factory { color: #8b5cf6; opacity: 0.14; }

.portal-card:hover .card-watermark {
    opacity: 0.25;
    transform: scale(1.05);
}

/* ================= FEATURE BAR ================= */
.feature-bar {
    width: 100%;
    background: rgba(6, 14, 28, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 36px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.icon-green {
    border: 1px solid rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.08);
    color: #22c55e;
}

.icon-cyan {
    border: 1px solid rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.08);
    color: #06b6d4;
}

.icon-purple {
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
}

.feature-info h4 {
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 2px;
}

.feature-info p {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 400;
}

.feature-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
}

/* ================= FOOTER ================= */
.footer {
    background: #050a15;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 48px 32px;
    flex-wrap: wrap;
}

.footer-logo {
    width: 170px;
    margin-bottom: 16px;
}

.footer-left { flex: 1; min-width: 260px; }
.footer-center { flex: 1; min-width: 200px; }
.footer-right { flex: 1; min-width: 260px; }

.footer h3 {
    margin-bottom: 16px;
    color: #22c55e;
    font-size: 16px;
    font-weight: 700;
}

.footer a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
    transition: color 0.2s;
}

.footer a:hover { color: #22c55e; }

.footer p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 32px;
    font-size: 13px;
    color: #64748b;
}

/* ================= RESPONSIVE MEDIA QUERIES ================= */
@media (max-width: 1024px) {
    .header { padding: 0 24px; }
    .portal-grid { gap: 16px; }
    .portal-card { padding: 28px 22px; }
    .feature-bar { padding: 18px 24px; }
}

@media (max-width: 900px) {
    .portal-grid {
        grid-template-columns: 1fr;
        max-width: 550px;
    }
    .feature-bar {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
        padding: 22px 24px;
    }
    .feature-divider {
        display: none;
    }
    .hero-text h1 {
        font-size: 34px;
    }
}

@media (max-width: 600px) {
    .header {
        height: auto;
        padding: 14px 18px;
    }
    .brand-logo { gap: 10px; }
    .brand-icon { width: 40px; height: 40px; }
    .brand-title { font-size: 17px; }
    .brand-nexus { font-size: 12px; }
    .brand-tagline { font-size: 9px; }
    .hero-container { padding: 0 16px; margin-top: 16px; }
    .hero-text h1 { font-size: 27px; }
    .hero-text p { font-size: 14px; }
}