/* 
* VAV Furniture - Custom CSS Styles
* Main stylesheet for VAV Furniture website
*/

/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #c0392b;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
}

/* Unified Font Family for entire website */
* {
    font-family: 'Roboto', sans-serif !important;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

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

.btn-primary:hover {
    background-color: #1a2530;
    border-color: #1a2530;
}

.text-primary {
    color: var(--primary-color) !important;
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading h6 {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Header Styles */
.navbar {
    padding: 0.8rem 0rem;
}

.navbar-brand img {
    max-height: 50px;
    max-width: 100px;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    max-height: 50px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--light-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Navbar cố định và hiệu ứng cuộn */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.4); /* Nền đen trong suốt lúc đầu */
    transition: all 0.4s ease;
    backdrop-filter: blur(6px); /* Hiệu ứng mờ nền */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Text navbar ban đầu */
.navbar .nav-link {
    color: #ffffff !important;
    font-weight: 500;
}

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

.navbar .nav-link.active {
    color: var(--light-color) !important;
}

/* Khi cuộn xuống */
.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.7); /* Đen trong suốt */
    backdrop-filter: blur(15px); /* Tăng hiệu ứng mờ khi cuộn */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Đảm bảo text navbar có màu trắng khi cuộn xuống */
.navbar.scrolled .nav-link {
    color: white !important;
}

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

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

/* Hamburger menu styling */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Product Card Styles */
.product-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

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

.product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Service Card Styles */
.service-card {
    background: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    margin-bottom: 1.5rem;
}

/* Project Card Styles */
.project-card {
    position: relative;
    overflow: visible; /* Allow image to overflow for border effect */
    border-radius: 5px;
}

.project-image {
    position: relative;
    height: 300px;
    overflow: visible; /* Allow image to overflow */
    margin: -5px; /* Negative margin to create overflow effect */
    border-radius: 5px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-content {
    text-align: center;
    padding: 1rem;
}

/* Testimonial Card Styles */
.testimonial-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.testimonial-quote {
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

footer h4 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}


/* About Page Styles */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 5rem 0;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.page-header-content {
    position: relative;
    z-index: 2;
}

/* Video Container Styles */
.video-container,
.about-video {
    position: relative;
}

.video-container iframe,
.about-video iframe {
    border: none;
    transition: transform 0.3s ease;
}

.video-container:hover iframe,
.about-video:hover iframe {
    transform: scale(1.02);
}

.about-video .experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.about-video .experience-badge .number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 2px;
}

.about-video .experience-badge .text {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Responsive video styles */
@media (max-width: 768px) {
    .about-video .experience-badge {
        bottom: 10px;
        right: 10px;
        padding: 10px 15px;
    }
    
    .about-video .experience-badge .number {
        font-size: 1.2rem;
    }
    
    .about-video .experience-badge .text {
        font-size: 0.7rem;
    }
}

/* Products Page Styles */
.filter-button {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 30px;
    background-color: transparent;
    border: 1px solid #dee2e6;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.filter-button.active, .filter-button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Contact Page Styles */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-size: 22px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Fixed Back to Top Button (always visible) */
#fixed-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(44, 62, 80, 0.9);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 48px;
    font-size: 24px;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#fixed-back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* News Section Styles */
.news-section {
    background-color: #f8f9fa;
}

.news-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.news-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.news-meta {
    font-size: 14px;
}

.news-title {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-title a:hover {
    color: var(--secondary-color) !important;
}

.news-summary {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Responsive News Cards */
@media (max-width: 767.98px) {
    .news-image {
        height: 200px;
    }
}

/* Team Section Styles */
.team-section {
    position: relative;
}

.team-member {
    background: white;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.member-image {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    border: 5px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-info h5 {
    color: var(--primary-color);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.member-info .text-primary {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.member-info .text-muted {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Team member centering */
.team-section .row.justify-content-center {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

/* Responsive team section */
@media (max-width: 991.98px) {
    .team-member {
        margin-bottom: 2rem;
    }
    
    .member-image {
        width: 130px;
        height: 130px;
    }
    
    .member-info h5 {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .team-member {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .member-image {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }
    
    .member-info h5 {
        font-size: 1.1rem;
    }
    
    .member-info .text-muted {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Responsive navbar styles */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        max-height: 30px;
        max-width: 60px;
    }
    
    .navbar.scrolled .navbar-brand img {
        max-height: 30px;
    }
    
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.4);
        border-radius: 8px;
        margin-top: 10px;
        padding: 1rem;
        backdrop-filter: blur(10px);
    }
    
    .navbar.scrolled .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.95);
    }
    
    .navbar.scrolled .navbar-collapse .nav-link {
        color: white !important;
    }
}

/* Exception for code blocks - keep monospace font */
code, pre, .code, .monospace {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace !important;
}

/* Exception for icons */
.fa, .fas, .far, .fab, .fal, .fad,
[class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro" !important;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-section, .hero-slide {
        height: 70vh;
    }
    
    .hero-content {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .hero-section, .hero-slide {
        height: 60vh;
    }
    
    .product-image, .project-image {
        height: 220px;
    }
    
    .page-header {
        padding: 3rem 0;
    }
}

/* Pagination Styles */
.pagination-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0 2rem 0;
    gap: 4px;
}

.pagination-custom .page-link {
    color: var(--primary-color);
    background: white;
    border: 2px solid #e0e0e0;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-custom .page-link:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.pagination-custom .page-link.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.pagination-custom .page-link:first-child,
.pagination-custom .page-link:last-child {
    font-weight: 600;
    padding: 10px 20px;
}

/* Mobile responsive pagination */
@media (max-width: 767.98px) {
    .pagination-custom {
        flex-wrap: wrap;
        gap: 2px;
        margin: 2rem 0 1rem 0;
    }
    
    .pagination-custom .page-link {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 40px;
    }
    
    .pagination-custom .page-link:first-child,
    .pagination-custom .page-link:last-child {
        padding: 8px 16px;
    }
}

/* News pagination specific adjustments */
.news-pagination {
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
    margin-top: 3rem;
}

/* Additional responsive adjustments for very small screens */
@media (max-width: 575.98px) {
    .pagination-custom .page-link {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 36px;
    }
    
    .pagination-custom .page-link:first-child,
    .pagination-custom .page-link:last-child {
        padding: 6px 12px;
    }
}
