@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200..900;1,200..900&display=swap');

:root {
    --primary-navy: #ffffff;
    --accent-blue: #38bdf8;
    --bg-light: #0f172a;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-light);
    background-image: url('WEB_BG.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow-x: hidden;
}

/* --- Typography Rules --- */

/* Headings & Title Styling */
h2, h3, 
.main-title,
.mv-card h2, 
.purpose-card h2, 
.cv-title, 
.purpose-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.portal-header .main-title {
    font-size: 3.5rem;
    letter-spacing: 2px;
}

.portal-header .title-light {
    font-weight: 200;
}

.portal-header .title-bold {
    font-weight: 900;
}

/* Body & Content Text */
.portal-header p,
.mv-card p,
.purpose-list li,
.cv-box p,
.purpose-box p {
    font-family: 'Times New Roman', Times, serif;
}

.portal-header p {
    font-size: 1.35rem !important;
    font-style: normal;
}

.portal-header p i,
.portal-header p em {
    font-style: italic;
}

/* --- Navigation Bar Layout --- */
.navbar {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-img {
    height: 35px;
    width: auto;
    display: block;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-wrapper {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding-bottom: 0.25rem;
    transition: color 0.2s ease, border-bottom 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

.nav-icon {
    font-size: 0.75rem;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    list-style: none;
    min-width: 200px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 101;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-blue);
}

/* --- Main Structure & Layout Container --- */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 3rem;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

/* --- Section Layouts --- */
.portal-header {
    width: 100%;
    max-width: 950px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.mission-vision-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.cards-wrapper {
    display: flex;
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
}

/* --- Grid Layouts --- */
.purpose-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

/* --- Contact Us Section --- */
.contact-main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 5rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 0;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 380px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.qr-frame {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1 / 1;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card:hover .qr-frame {
    border-color: var(--accent-blue);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6), 0 0 18px rgba(56, 189, 248, 0.25);
    transform: translateY(-6px);
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.contact-handle {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    word-break: break-word;
    transition: color 0.3s ease;
}

.contact-card:hover .contact-handle {
    color: var(--accent-blue);
}

.contact-label {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- Responsive Breakpoint Rules --- */
@media (max-width: 1200px) {
    .purpose-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 0.8rem 1.25rem !important;
        position: relative !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .mobile-menu-toggle {
        display: block !important;
        z-index: 1002;
    }

    .nav-wrapper {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        z-index: 1001;
    }

    .nav-wrapper.active {
        display: block !important;
    }

    .nav-menu {
        display: flex !important;
        flex-direction: column !important;
        padding: 1.5rem !important;
        gap: 1.25rem !important;
        align-items: flex-start !important;
        width: 100%;
        list-style: none;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        border: none;
        margin-top: 0.5rem;
        padding-left: 1rem;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown.open .dropdown-menu {
        display: block;
    }

    .core-values-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .container {
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        flex-direction: column;
        align-items: center;
        gap: 3.5rem;
    }

    .contact-main-title {
        font-size: 2.5rem;
    }

    .contact-handle {
        font-size: 1.15rem;
    }
}

@media (max-width: 640px) {
    .purpose-grid,
    .core-values-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .cards-wrapper {
        flex-direction: column;
    }
}