/* Import Google Fonts - Chỉ dùng Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #f8fafc;
}

/* Hero Gradient - Đơn giản hơn */
.hero-gradient {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    background:
        url('/assets/images/main/main.jpg') center/cover no-repeat;
}

.hero-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 58, 138, 0.25) 100%);
    z-index: -1;
}

/* Section Title - Đơn giản, thanh lịch */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #3b82f6;
    border-radius: 2px;
}

/* Card Hover Effects - Giảm hiệu ứng */
.card-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Product Card */
.product-card {
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.product-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}

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

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

/* Stat Number */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #3b82f6;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Buttons */
.btn-primary {
    background: #3b82f6;
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: white;
    color: #3b82f6;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid #3b82f6;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: #3b82f6;
    color: white;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: translateY(-5px);
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.testimonial-card:hover {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

/* Process Steps */
.process-step {
    position: relative;
    padding-left: 80px;
}

.process-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: #3b82f6;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Process Item */
.process-item {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.process-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.process-header {
    display: flex;
    gap: 15px;
    align-items: center;
}

.process-number-box {
    width: 75px;
    height: 75px;
    background: #3b82f6;
    border-radius: 12px;
    color: #fff;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: transform 0.3s ease;
}

.process-item:hover .process-number-box {
    transform: scale(1.05);
}

.process-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.process-desc {
    color: #6b7280;
    margin-top: 4px;
}

.process-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.process-images img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform .3s ease;
    border: 1px solid #e2e8f0;
}

.process-images img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.process-list {
    padding-left: 300px;
    padding-right: 325px;
}

.step-label {
    font-size: 12px;
    opacity: .8;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 300px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* SWIPER - Fix và cải thiện */
.mySwiper {
    width: 100%;
    padding: 30px 0 50px 0;
}

.swiper {
    width: 100%;
    padding: 30px 0 50px 0;
}

.swiper-slide {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.mySwiper .swiper-slide {
    width: 380px !important;
    height: 260px !important;
}

.mySwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.mySwiper .swiper-slide:hover img {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
    border-radius: 12px;
}

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

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
    background: white !important;
    border-radius: 50% !important;
    color: #3b82f6 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: 900 !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #3b82f6 !important;
    color: white !important;
    transform: scale(1.1) !important;
}

.custom-nav {
    color: #3b82f6 !important;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background: #cbd5e1 !important;
    opacity: 0.5 !important;
    transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
    background: #3b82f6 !important;
    opacity: 1 !important;
    width: 28px !important;
    border-radius: 5px !important;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #60a5fa;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Padding */
.section {
    padding: 80px 0;
    position: relative;
}

/* BACKGROUND ẢNH MỜ CHO CÁC SECTION */

/* Section Giới Thiệu - Background mờ */
#gioi-thieu {
    background: 
        linear-gradient(rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.95)),
        url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1600&q=60') center/cover no-repeat;
    background-attachment: fixed;
}

/* Section Ưu Điểm - Background mờ */
#uu-diem {
    background: 
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
        url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1600&q=60') center/cover no-repeat;
    background-attachment: fixed;
}

/* Section Sản Phẩm - Background mờ */
#san-pham {
    background: 
        linear-gradient(rgba(248, 250, 252, 0.92), rgba(248, 250, 252, 0.92)),
        url('https://images.unsplash.com/photo-1497215842964-222b430dc094?auto=format&fit=crop&w=1600&q=60') center/cover no-repeat;
    background-attachment: fixed;
}

/* Section Quy Trình - Background mờ */
#quy-trinh {
    background: 
        linear-gradient(rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.93)),
        url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1600&q=60') center/cover no-repeat;
    background-attachment: fixed;
}

/* Section Đánh Giá - Background mờ */
#danh-gia {
    background: 
        linear-gradient(rgba(248, 250, 252, 0.94), rgba(248, 250, 252, 0.94)),
        url('https://images.unsplash.com/photo-1557426272-fc759fdf7a8d?auto=format&fit=crop&w=1600&q=60') center/cover no-repeat;
    background-attachment: fixed;
}

/* Section Liên Hệ - Background mờ */
#lien-he {
    background: 
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
        url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?auto=format&fit=crop&w=1600&q=60') center/cover no-repeat;
    background-attachment: fixed;
}

/* Stats Section - Background mờ */
.section:has(.stat-number) {
    background: 
        linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97)),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=60') center/cover no-repeat;
    background-attachment: fixed;
}

.section-gray {
    background: 
        linear-gradient(rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.95)),
        url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=60') center/cover no-repeat;
    background-attachment: fixed;
}

/* Icon Styles */
.icon-box {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 28px;
    transition: all 0.3s ease;
}

.icon-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

/* Price Tag */
.price-tag {
    background: #3b82f6;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.25rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Contact Form */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Lightbox */
.lb-image {
    max-width: 45% !important;
    max-height: 50vh !important;
    border-radius: 10px !important;
    object-fit: contain !important;
}

.lb-outerContainer {
    max-width: 48% !important;
    max-height: 55vh !important;
    border-radius: 12px !important;
}

.lb-container {
    padding: 10px !important;
}

.lb-data {
    max-width: 48% !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.lb-data .lb-caption {
    font-size: 14px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .process-step {
        padding-left: 0;
        padding-top: 80px;
    }
    
    .process-number {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .process-list {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .gallery-card img,
    .mySwiper .swiper-slide img {
        height: 200px;
    }
    
    .mySwiper .swiper-slide {
        width: 300px !important;
        height: 200px !important;
    }
    
    /* Mobile: Tắt parallax background */
    #gioi-thieu,
    #uu-diem,
    #san-pham,
    #quy-trinh,
    #danh-gia,
    #lien-he,
    .section-gray {
        background-attachment: scroll !important;
    }
}

/* Animations - Đơn giản */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 50px;
    height: 50px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    background: #2563eb;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* CARD PRODUCT */

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

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

/* Overlay nút xem chi tiết */

.product-overlay-button {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image-wrapper:hover .product-overlay-button {
    opacity: 1;
}

.product-overlay-button button {
    background: #ffffff;
    color: #2563eb;
    border: none;
    padding: 0.6rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* MODAL */

.product-modal {
    position: fixed;
    inset: 0;
    display: none;              /* ẩn mặc định */
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.product-modal.open {
    display: flex;
}

.product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.product-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 1.25rem;
    width: 70%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}

/* nút đóng */

.product-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: #4b5563;
    z-index: 2;
}

/* Ảnh lớn */

.product-modal-main-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* Ảnh phụ */

.product-modal-thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
}

.product-modal-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-modal-thumbs img:hover {
    transform: scale(1.03);
    border-color: #2563eb;
}

/* THÔNG TIN – phần này cuộn */

.product-modal-info {
    padding: 1.5rem 1.75rem;
    overflow-y: auto;
    flex: 1;
}

.product-modal-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111827;
}

.product-modal-info h4 {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    color: #111827;
}

.product-modal-info p {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.product-modal-info ul {
    margin-left: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #4b5563;
}

.product-modal-info li {
    list-style: disc;
}


@media (max-width: 768px) {
    .product-modal-main-image img {
        height: 220px;
    }
}
#productModal {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.25s ease;
    display: none;
}

#productModal.show {
    display: block;
    opacity: 1;
    transform: scale(1);
}

#mainImage {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 14px;
}

.popup-thumbs img {
    width: 85px;
    height: 65px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    opacity: 0.6;
}

.popup-thumbs img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.popup-thumbs img.active {
    opacity: 1;
    outline: 3px solid #2563eb;
}

.popup-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    padding: 10px 14px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
}

.popup-nav-btn:hover {
    background: white;
}

.popup-close {
    font-size: 32px;
    cursor: pointer;
}

.popup-content {
    max-height: 260px;
    overflow-y: auto;
}
.feature-icon {
    font-size: 34px !important;
}

.hero-btn {
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    border: 1px solid rgba(180, 180, 180, 0.35);

    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    position: relative;
}

.hero-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #60a5fa) !important;
    border-color: rgba(255,255,255,0.85) !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(59,130,246,0.5);
}
.zalo-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #ffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zaloShake 1.8s infinite;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 9999;
}

.zalo-float img {
    width: 38px;
    height: 38px;
}

@keyframes zaloShake {
    0%   { transform: rotate(0deg) scale(1); }
    15%  { transform: rotate(18deg) scale(1.1); }
    30%  { transform: rotate(-18deg) scale(1.1); }
    45%  { transform: rotate(15deg) scale(1.1); }
    60%  { transform: rotate(-15deg) scale(1.1); }
    75%  { transform: rotate(10deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(1); }
}

/* Toàn trang fade-in khi tải */
body {
    animation: pageFade 0.8s ease-out;
}

@keyframes pageFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu {
    z-index: 9999 !important;
}

nav {
    z-index: 100 !important;
}
@media (max-width: 768px) {
    nav {
        position: static !important;
    }
}
@media (max-width: 768px) {
    body {
        padding-top: 0 !important;
    }
}


