/* styles.css - Custom styles for MAS Enterprise landing page */

/* Add your custom styles below. Example: */

/* --- HIGH-QUALITY HEADER/NAV DESIGN --- */

.navbar {
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.06);
    background: #fff;
    padding: 0;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 10;
    height: 200px; /* Even taller navbar */
    min-height: 200px;
}
.nav-container {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    max-width: 1800px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    height: 100%;
    min-height: 200px;
    position: relative;
}
.logo {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    height: 100%;
}
.logo img {
    height: 100%;
    max-width: 840px; /* Double previous width */
    min-width: 440px;
    width: 100%;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

.nav-main {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
}
.nav-main-spacer-left {
    width: 48px;
    min-width: 32px;
    flex-shrink: 0;
}
.nav-main-spacer-right {
    width: 120px; /* Increased for more margin between Contact and right group */
    min-width: 60px;
    flex-shrink: 0;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}
.nav-menu li {
    list-style: none;
}
.nav-menu li a {
    color: #232323;
    font-size: 1.13rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    position: relative;
    padding: 0.2rem 0.2rem;
    transition: color 0.18s cubic-bezier(.4,0,.2,1);
    opacity: 0.92;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-menu li a::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, #6c757d 0%, #495057 100%);
    border-radius: 2px;
    transform: scaleX(0);
    opacity: 0.5;
    transition: transform 0.32s cubic-bezier(.4,0,.2,1), opacity 0.32s;
}
.nav-menu li a:hover, .nav-menu li a.active {
    color: #6c757d;
    opacity: 1;
}
.nav-menu li a:hover::after, .nav-menu li a.active::after {
    transform: scaleX(1);
    opacity: 1;
}

.nav-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.2rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    height: 100%;
}
.nav-auth, .lang-switcher {
    margin: 0;
    padding: 0;
}
.nav-auth a {
    color: #232323;
    font-size: 0.98rem;
    font-weight: 500;
    padding: 0.1rem 0.7rem;
    background: none;
    border: none;
    border-radius: 0;
    text-decoration: none;
    opacity: 0.85;
    transition: color 0.18s;
    position: relative;
}
.nav-auth a:hover {
    color: #6c757d;
    opacity: 1;
}
.nav-auth .auth-divider {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: #e0e0e0;
    margin: 0 0.3rem;
    vertical-align: middle;
}

.lang-switcher {
    margin-left: 1.1rem;
    display: flex;
    align-items: center;
}
.lang-select {
    border: none;
    background: none;
    box-shadow: none;
    font-size: 1.05rem;
    font-weight: 500;
    color: #232323;
    padding: 0.1rem 0.5rem 0.1rem 2.2rem;
    min-width: 110px;
    background: none;
    background-position: left 0.5rem center, right 0.7rem center;
    background-size: 1.5rem, 1rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 4px;
    transition: color 0.18s;
}
.lang-select option {
    background: #fff;
    color: #232323;
    font-size: 1.05rem;
    padding-left: 2rem;
}

/* Responsive: stack or collapse gracefully */
@media (max-width: 1100px) {
    .nav-menu {
        gap: 1.2rem;
    }
    .logo img {
        height: 48px;
        max-width: 120px;
    }
}
@media (max-width: 900px) {
    .nav-container {
        flex-direction: row;
        align-items: center;
        padding: 0 1vw;
    }
    .nav-center {
        display: none;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100vw;
        width: 70vw;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 16px rgba(0,0,0,0.08);
        flex-direction: column;
        align-items: flex-start;
        padding: 4rem 2rem 2rem 2rem;
        gap: 1.5rem;
        z-index: 1001;
        transition: right 0.35s cubic-bezier(.4,0,.2,1);
        white-space: normal;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.7rem;
        width: 100%;
        margin-left: 0;
        margin-top: 1.5rem;
    }
    .lang-switcher {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }
    .logo img {
        height: 40px;
        max-width: 100px;
    }
}

/* Remove background and box for language select and buttons */
.lang-select, .btn, .btn-primary, .btn-outline-primary {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Hamburger menu for mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1002;
}
.hamburger span {
    height: 3px;
    width: 25px;
    background: #222;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Language select improvements */
.lang-select {
    padding-left: 2.2rem;
    background-position: left 0.5rem center, right 0.7rem center;
    background-size: 1.5rem, 1rem;
    min-width: 120px;
    font-weight: 500;
}
.lang-select option {
    padding-left: 2rem;
    font-size: 1rem;
}

/* Smooth transitions for nav */
.nav-menu, .nav-menu li a, .btn, .btn-primary, .btn-outline-primary {
    transition: all 0.2s cubic-bezier(.4,0,.2,1);
}

/* Add more custom styles for hero, sections, grid, etc. as needed. */ 

/* Custom language dropdown with flags */
.custom-lang-dropdown {
    position: relative;
    min-width: 120px;
    user-select: none;
    cursor: pointer;
    outline: none;
}
.selected-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.1rem 0.7rem 0.1rem 0.5rem;
    border-radius: 4px;
    background: none;
    font-size: 1.05rem;
    font-weight: 500;
    color: #232323;
    transition: background 0.18s;
}
.selected-lang .lang-flag {
    width: 22px;
    height: 16px;
    object-fit: contain;
    border-radius: 2px;
    margin-right: 0.3rem;
}
.selected-lang .lang-caret {
    margin-left: 0.5rem;
    font-size: 0.9em;
    color: #888;
}
.lang-options {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    min-width: 140px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 24px 0 rgba(0,0,0,0.10);
    z-index: 100;
    padding: 0.3rem 0;
    margin-top: 0.2rem;
    transition: opacity 0.18s;
}
.custom-lang-dropdown.open .lang-options {
    display: block;
    animation: fadeInLang 0.18s;
}
@keyframes fadeInLang {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.lang-option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1.1rem 0.35rem 0.7rem;
    cursor: pointer;
    font-size: 1.05rem;
    color: #232323;
    transition: background 0.15s;
}
.lang-option-item .lang-flag {
    width: 22px;
    height: 16px;
    object-fit: contain;
    border-radius: 2px;
    margin-right: 0.3rem;
}
.lang-option-item:hover, .lang-option-item.selected {
    background: #f5f7fa;
    color: #6c757d;
}

.custom-lang-dropdown:focus .selected-lang,
.custom-lang-dropdown.open .selected-lang {
    background: #f5f7fa;
} 