:root {
    --primary-color: #0062ff;
    /* Vibrant Blue */
    --primary-hover: #004ecc;
    --secondary-color: #6c757d;
    --accent-color: #ff3d00;
    /* Vibrant Orange-Red for punch */
    --text-main: #1a1a1a;
    --text-muted: #4a5568;
    --card-bg: rgba(255, 255, 255, 1);
    --card-shadow: 0 10px 40px rgba(0, 98, 255, 0.12);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Open Sans', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
        url('https://images.unsplash.com/photo-1558483320-d92564336719?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Light tech-inspired overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.modern-header {
    background: rgb(227 228 235 / 96%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 10px 30px rgba(0, 0, 0, 0.02);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 850;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -1px;
    line-height: 1;
}

.header-slogan {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
}

.header-contact {
    display: flex;
    gap: 2rem;
    transition: gap 0.3s ease;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-item:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-section {
    padding: 90px 2rem 0;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 850;
    margin-top: 0;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.portal-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 0 0 3rem 0;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    border: 3px solid var(--primary-color);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.portal-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 98, 255, 0.18);
}

.portal-card img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    object-position: top center;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.portal-card:hover img {
    transform: scale(1.05);
}

.portal-card h3 {
    font-size: 2.22rem;
    margin: 0.5rem 1.5rem 1.2rem;
    color: var(--primary-color);
    font-weight: 850;
}

.portal-card .card-description {
    font-size: 1.22rem;
    color: var(--text-muted);
    padding: 0 2.5rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.card-cta {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.portal-card:hover .card-cta {
    transform: translateX(5px);
}

.modern-footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-footer p {
    color: var(--primary-color);
    font-weight: 600;
}

.footer-keywords {
    max-width: 1400px;
    margin: 2rem auto 0;
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 2;
    text-align: center;
}

/* PC Zoom Scaling (Maintains 3 columns up to 200% zoom) */
@media (max-width: 1400px) and (min-width: 751px) {
    html {
        font-size: clamp(10px, 1vw, 14px);
    }

    .header-container {
        padding: 0 1.5rem;
    }

    .header-contact {
        gap: 1.2rem;
    }

    .portal-grid {
        gap: 1.5rem;
        padding: 0 1.5rem 2rem;
    }

    .logo-text {
        font-size: 1.8rem;
    }

    .header-slogan {
        display: none;
    }
}

/* 
   Mobile UI Revamp (Smartphone Optimization)
   FORCE Vertical Stacking & Massive Visibility
*/
@media (max-width: 750px),
(max-width: 1100px) and (hover: none) {
    .modern-header {
        padding: 1.2rem 0;
    }

    .hero-section {
        padding: 240px 1.5rem 0;
    }

    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 2.2rem;
        margin-bottom: 3rem;
        line-height: 1.4;
    }

    .portal-grid {
        grid-template-columns: 1fr !important;
        max-width: 100%;
        padding: 0 1.5rem 4rem;
        gap: 4rem;
    }

    .portal-card {
        min-height: 600px;
        /* Increased Height */
        padding-bottom: 5rem;
        border-width: 5px;
        /* Thicker borders for mobile impact */
    }

    .portal-card img {
        height: auto;
        max-height: none;
    }

    .portal-card h3 {
        font-size: 3.2rem;
        /* Aggressive Increase */
        margin: 1.5rem 1rem;
    }

    .portal-card .card-description {
        font-size: 2.2rem;
        /* Aggressive Increase */
        padding: 0 1.5rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
        padding: 1rem;
    }

    .logo-text {
        font-size: 3.2rem;
        /* Takes full header width prominence */
        text-align: center;
        width: 100%;
        display: block;
    }

    .header-contact {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }

    .contact-item {
        font-size: 1.6rem;
        /* Large and readable contact items */
        justify-content: center;
        width: 100%;
    }

    .contact-item i {
        font-size: 1.8rem;
    }

    .card-cta {
        font-size: 1.3rem;
        bottom: 2rem;
    }
}