﻿:root {
    --mirei-color: #758B8B;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    padding-top: 80px; /* Tránh bị navbar che */
}

.hero {
    padding: 120px 0;
    background-color: #F6F7F8;
    min-height: calc(100vh - 80px); /* Trừ phần navbar cố định */
    position: relative;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    color: var(--mirei-color);
}

.hero p {
    font-size: 1.25rem;
    color: #444;
}

.hero-bg-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: 160vw;
    animation: fadeInLogo 2s ease-out forwards;
    opacity: 0;
    object-fit: contain;
    width: 100%;
    height: auto;
    pointer-events: none;
}

@keyframes fadeInLogo {
    to {
        opacity: 0.1;
    }
}

@media (max-width: 767.98px) {
    html, body {
        scroll-snap-type: none !important;
    }

    .snap-section {
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-company {
        margin-top: 60px;
    }

    .hero-bg-logo {
        max-width: 100vw;
        top: 10%;
    }
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--mirei-color);
}

.feature-box {
    padding: 40px 20px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

footer {
    background-color: #f8f9fa;
    padding: 40px 0;
    text-align: center;
    color: #6c757d;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
}

.btn-primary {
    background-color: #000;
    border-color: var(--mirei-color);
}

.btn-primary:hover {
    background-color: #5f7777;
    border-color: #5f7777;
}

.navbar-custom {
    background-color: #768988;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-custom .navbar-nav .nav-link {
    color: #fff;
}

.navbar-custom .navbar-nav .nav-link:hover {
    color: #dfe8e8;
}

.navbar-custom .navbar-brand img {
    filter: brightness(0) invert(1);
}

.fade-image {
    transition: opacity 0.5s ease-in-out;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

.list-group-item {
    background-color: transparent !important;
    color: #fff;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 1.25rem;
}

.list-group-item.active-hover {
    opacity: 1;
    border-bottom: 1px solid #ffffff;
}

.btn-company {
    margin-top: 120px;
}

.snap-section {
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    padding-top: 5rem !important;
    min-height: 100vh;
}

.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade.show {
    opacity: 1;
    transform: translateY(0);
}

#mainNavbar {
    transition: top 0.3s ease-in-out;
}

.navbar-hidden {
    top: -100px;
}

.brand-logo {
    max-height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-logo-box {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 16px;
    border-radius: 8px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.brand-logo-box:hover {
    border-color: #ffffff;
    transform: scale(1.05);
}

@media (min-width: 992px) {
    .row-cols-lg-8 > * {
        flex: 0 0 auto;
        width: 12.5%;
    }
}

.btn-soja {
    background-color: #7A72A1;
    border-color: #7A72A1;
    color: white;
}

.btn-soja:hover {
    background-color: #6a6391;
    border-color: #6a6391;
}

@media (max-width: 991px) {
    .navbar-collapse {
        /* background-color: #fff; */
        padding: 10px;
    }

    .navbar-nav .nav-link {
        padding: 10px 15px;
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
  #featureImage {
    display: none !important;
  }
}
