/* Custom CSS for Gorida */

:root {
    --primary-color: #10448f;
    --primary-dark: #0a2d61;
    --text-color: #333333;
    --bg-light: #f8f9fa;
}

html, body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

/* Navbar */
.navbar,
.navbar.bg-transparent {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled .nav-link {
    color: #333 !important;
}

/* Add a class for dark logo */


.nav-link {
    font-weight: 500;
    font-size: 16px;
    padding: 0.5rem 1.5rem !important;
    position: relative;
    color: #fff !important;
    text-shadow: none;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
}

.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active {
    color: var(--primary-color) !important;
}

/* Mega Menu */
@media (min-width: 992px) {
    .mega-dropdown:hover .mega-menu {
        display: block !important;
        animation: fadeIn 0.3s ease;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-menu {
    border-top: 2px solid var(--primary-color) !important;
}

.mega-link {
    transition: all 0.3s ease;
}

.mega-link:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

.mega-link i {
    transition: transform 0.3s;
}

.mega-link:hover i {
    transform: translateX(3px);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-rounded {
    border-radius: 50px;
}

.title-line {
    height: 1px;
    background-color: #ccc;
    flex-grow: 1;
    max-width: 150px;
}

/* Banner Swiper */
.bannerSwiper {
    width: 100%;
    height: 100vh;
}

.bannerSwiper .swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.banner-content {
    position: absolute;
    bottom: 12rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    max-width: 1100px;
    width: min(1100px, calc(100% - 4rem));
    padding: 20px;
    text-align: center;
}

.banner-content h1,
.banner-content p {
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
}

.banner-content .lead {
    width:100%;
    margin: 0;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.swiper-slide-active .animate-up {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.3s;
}

/* Pagination */
.swiper-pagination-bullet {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: #fff;
    opacity: 0.5;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 40px;
    background: var(--primary-color);
}

/* Advantages Tabs */
.advantages-section {
    background-color: #f6f8fb;
}

.advantages-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background:url("../images/ysbg.jpg") no-repeat top center;background-size: cover;
    z-index: 0;
}

.adv-tabs-wrapper {
    margin-bottom: 2rem;
}

.adv-line {
    top: 49px;
    left: 16.666%;
    right: 16.666%;
    height: 1px;
    background-color: #c4d1e6;
    z-index: 0;
}

#pills-tab .nav-item {
    z-index: 2;
    flex: 1;
}

#pills-tab .nav-link {
    width:98px;
    height: 98px;
    background-color: #fff !important;
    color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 50%;
    border:5px solid #e6eaf3;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
}

#pills-tab .nav-link i {
    font-size: 2.2rem;
}

#pills-tab .nav-link.active {
    color: #fff;
    background-color: var(--primary-color) !important;
    border: 5px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-color), 0 5px 15px rgba(0,0,0,0.1) !important;
}
#pills-tab .nav-link.active img{ filter: brightness(0) invert(1);}
.adv-tab-text {
    color: #555;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 1.05rem;
}

#pills-tab .nav-link.active + .adv-tab-text {
    color: #222;
}

/* Industry Section (Checkerboard Layout) */
.industry-wrapper {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    min-height: 600px;
    position: relative;
    z-index: 1;
}

.industry-grid {
    grid-column: 1 / 8;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.ind-texts-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 41.666%;
    z-index: 20;
    pointer-events: none;
}

.ind-text-layer {
    padding: 3rem 4rem;
}

@media (max-width: 991.98px) {
    .ind-texts-wrapper {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .ind-text-layer {
        position: relative !important;
        height: auto !important;
        padding: 3rem 1.5rem !important;
    }
    
    .ind-text-layer:not(.active) {
        display: none !important;
    }
}

.ind-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
    background: rgba(25, 25, 25, 0.75);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 200px;
    border: 1px solid rgba(255,255,255,0.05);
}

.ind-box.active {
    background: var(--primary-color) !important;
}

.ind-box:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.ind-box i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.ind-box span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Cards */
.hover-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.hover-card .card-img-top {
    transition: transform 0.5s;
}

.hover-card:hover .card-img-top {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 68, 143, 0.7);
    opacity: 0;
    transition: opacity 0.3s;
}

.hover-card:hover .card-overlay {
    opacity: 1;
}

/* Forms */
.form-control:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.input-group-text {
    border-color: #dee2e6;
}

.form-control {
    border-color: #dee2e6;
}

/* Footer */
.footer-links a {
    text-decoration: none;
    transition: color 0.3s;font-size: 15px;line-height: 2;color: #b0b0b0;
}

.footer-links a:hover {
    color: #fff;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Responsive fixes */
@media (max-width: 991.98px) {
    .navbar {
        background-color: transparent !important;
    }
    
    .navbar.scrolled,
    .navbar.mobile-expanded {
        background-color:#fff !important;
    }

    .navbar.scrolled .nav-link,
    .navbar.mobile-expanded .nav-link,
    .navbar.scrolled .nav-link:hover,
    .navbar.mobile-expanded .nav-link:hover,
    .navbar.scrolled .nav-link.active,
    .navbar.mobile-expanded .nav-link.active {
        color: #333 !important;
    }


    .navbar-collapse {
        background: transparent;
        padding: 0 1rem 1rem;
    }
    
    .ind-item {
        padding: 1.5rem !important;
    }
    
    .industry-wrapper {
        display: flex;
        flex-direction: column;
    }
    
    .industry-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .ind-box[style] {
        grid-column: auto !important;
        grid-row: auto !important;
    }
    
    .industry-text-box {
        padding: 3rem 1.5rem;
    }
}

/* Sidebar hover effects */
.sidebar-link {
    transition: all 0.3s ease;
}
.sidebar-link:hover {
    color: #1b489a !important;
    transform: translateX(8px);
}

/* Product list image hover effect */
.image-hover-wrap {
    overflow: hidden;
}
.image-hover-wrap img.transition-transform {
    transition: transform 0.5s ease;
}
.image-hover-wrap:hover img.transition-transform {
    transform: scale(1.05);
}
