/* ============================================
   SẮC MẦU ĐÔNG KINH - Custom Styles
   Phiên chợ Đông Kinh 4.0
   ============================================ */

/* === CSS Variables === */
:root {
    --primary: #C62828;
    --primary-dark: #8E0000;
    --primary-light: #FF5F52;
    --secondary: #E8A317;
    --secondary-light: #FFD54F;
    --secondary-dark: #B07400;
    --dark: #1A1A2E;
    --dark-light: #2D2D44;
    --light: #FFF8F0;
    --light-gray: #F5F0EB;
    --white: #FFFFFF;
    --text-primary: #2C2C2C;
    --text-secondary: #6B6B6B;
    --text-light: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Be Vietnam Pro', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* === Section Common === */
.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 12px;
    position: relative;
}

.section-header .section-subtitle::before,
.section-header .section-subtitle::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--secondary);
    vertical-align: middle;
    margin: 0 12px;
}

.section-header .section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-header .section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
}

/* === Button Styles === */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transition: var(--transition);
    z-index: -1;
}

.btn-primary-custom:hover::before {
    left: 0;
}

.btn-primary-custom:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--white);
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-size: 15px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary-custom:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* === Header / Navbar === */
.navbar {
    padding: 16px 0;
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
}

.navbar-brand .brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.navbar-brand .brand-slogan {
    font-size: 11px;
    color: var(--secondary-light);
    font-weight: 400;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 20px !important;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--white) !important;
    background: rgba(255,255,255,0.1);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.navbar-toggler {
    border: none;
    padding: 8px;
    color: var(--white);
}

.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%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* === Hero Section === */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(142,0,0,0.7) 100%),
                url('../images/hero-banner.png') center/cover no-repeat;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232,163,23,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(198,40,40,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    color: var(--secondary-light);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title span {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 22px;
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
    max-width: 550px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    animation: fadeInUp 0.8s ease 1s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
    display: block;
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 6px;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    animation: fadeInRight 1s ease 0.5s both;
}

.hero-image-wrapper img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
}

.hero-floating-card {
    position: absolute;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatCard 4s ease-in-out infinite;
}

.hero-floating-card.card-1 {
    bottom: 20%;
    left: -10%;
}

.hero-floating-card.card-2 {
    top: 15%;
    right: -5%;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-floating-card .card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.hero-floating-card .card-icon.icon-red {
    background: rgba(198,40,40,0.1);
    color: var(--primary);
}

.hero-floating-card .card-icon.icon-gold {
    background: rgba(232,163,23,0.1);
    color: var(--secondary);
}

.hero-floating-card .card-info .card-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.hero-floating-card .card-info .card-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    animation: fadeIn 1s ease 1.5s both;
}

.scroll-indicator .mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 13px;
    margin: 0 auto 8px;
    position: relative;
}

.scroll-indicator .mouse .wheel {
    width: 4px;
    height: 8px;
    background: var(--secondary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

.scroll-indicator span {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* === About / Giới thiệu Section === */
.about-section {
    background: var(--white);
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.about-content .about-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(198,40,40,0.08);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    width: fit-content;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-content h2 span {
    color: var(--primary);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 15px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.about-feature-item .feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.about-feature-item .feature-text h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark);
}

.about-feature-item .feature-text p {
    font-size: 13px;
    margin-bottom: 0;
    color: var(--text-secondary);
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper .about-main-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
    height: 450px;
}

.about-image-wrapper .about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.about-image-wrapper .about-badge .badge-number {
    font-size: 32px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.about-image-wrapper .about-badge .badge-text {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

/* === Products Section === */
.products-section {
    background: var(--light);
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-card .product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-card .product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-card .product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-card .product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transition: var(--transition);
}

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

.product-card .product-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.product-card .product-origin {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.product-card .product-origin i {
    color: var(--primary);
}

.product-card .product-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.product-card .product-producer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 14px;
}

.product-card .product-producer i {
    color: var(--secondary);
    font-size: 16px;
}

.product-card .product-producer strong {
    color: var(--dark);
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.product-rating i {
    color: var(--secondary);
    font-size: 14px;
}

.product-rating span {
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: 4px;
}

.product-card .product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.product-card .product-qr {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.product-card .product-qr:hover {
    color: var(--primary);
}

.product-card .product-qr i {
    font-size: 18px;
    color: var(--primary);
}

.product-card .product-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.product-card .product-detail-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    color: var(--white);
}

/* === Product Detail Modal === */
.product-modal .modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.product-modal .modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 20px 28px;
}

.product-modal .modal-title {
    font-weight: 700;
    font-size: 20px;
}

.product-modal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.product-modal .modal-body {
    padding: 28px;
}

.product-modal .modal-product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.product-modal .modal-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.product-modal .modal-info-item:last-child {
    border-bottom: none;
}

.product-modal .modal-info-item .info-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(198,40,40,0.08);
    color: var(--primary);
}

.product-modal .modal-info-item .info-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.product-modal .modal-info-item .info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

.product-modal .qr-section {
    text-align: center;
    padding: 24px;
    background: var(--light);
    border-radius: var(--radius-md);
    margin-top: 20px;
}

.product-modal .qr-section img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 12px;
}

.product-modal .qr-section p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* === Video Section === */
.video-section {
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232,163,23,0.1), transparent 70%);
    border-radius: 50%;
}

.video-section .section-header .section-subtitle {
    color: var(--secondary);
}

.video-section .section-header .section-subtitle::before,
.video-section .section-header .section-subtitle::after {
    background: rgba(255,255,255,0.3);
}

.video-section .section-header .section-title {
    color: var(--white);
}

.video-section .section-header .section-desc {
    color: rgba(255,255,255,0.6);
}

.video-card {
    background: var(--dark-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.06);
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232,163,23,0.3);
    box-shadow: 0 8px 30px rgba(232,163,23,0.15);
}

.video-card .video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-card .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.video-card .video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(198,40,40,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    transition: var(--transition);
    cursor: pointer;
}

.video-card:hover .video-play-btn {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card .video-info {
    padding: 20px;
}

.video-card .video-info h5 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.video-card .video-info p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin: 0;
}

/* === Gallery Section === */
.gallery-section {
    background: var(--white);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 2px solid #e0e0e0;
    padding: 10px 24px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

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

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.gallery-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item.hidden {
    display: none;
}

.gallery-image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-image-wrapper:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26,26,46,0.85) 0%, rgba(26,26,46,0.2) 50%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
}

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

.gallery-overlay-content {
    padding: 20px;
    width: 100%;
    transform: translateY(10px);
    transition: var(--transition);
}

.gallery-image-wrapper:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-overlay-content h5 {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.gallery-overlay-content p {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    margin-bottom: 10px;
}

.gallery-zoom-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.gallery-zoom-btn:hover {
    background: var(--primary);
}

/* === Lightbox === */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 85vw;
    max-height: 85vh;
    text-align: center;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.lightbox-caption {
    margin-top: 16px;
}

.lightbox-caption h5 {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.lightbox-caption p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin: 0;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 18px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    font-size: 18px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-weight: 500;
}

/* === Teams Section === */
.teams-section {
    background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.team-card:hover::before {
    opacity: 1;
}

.team-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.team-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
}

.team-badge-group {
    background: rgba(198,40,40,0.08);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 600;
}

.team-product {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.team-leader {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.team-leader i {
    color: var(--secondary);
    font-size: 16px;
}

.team-leader strong {
    color: var(--dark);
}

.team-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.team-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.team-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--light);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 500;
}

.team-tag i {
    color: var(--primary);
    font-size: 11px;
}

/* === Support CTA === */
.support-cta {
    margin-top: 60px;
}

.support-cta-inner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    border-radius: var(--radius-lg);
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.support-cta-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(198,40,40,0.15), transparent 70%);
    border-radius: 50%;
}

.support-cta-inner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232,163,23,0.1), transparent 70%);
    border-radius: 50%;
}

.support-cta-content {
    position: relative;
    z-index: 2;
}

.support-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(66,103,178,0.2);
    color: #8B9DC3;
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.support-cta-badge i {
    font-size: 16px;
    color: #4267B2;
}

.support-cta-content h3 {
    color: var(--white);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}

.support-cta-content p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.support-cta-content p strong {
    color: var(--secondary);
}

.support-deadline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(198,40,40,0.15);
    color: var(--primary-light);
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 500;
}

.support-deadline i {
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.support-cta-actions {
    position: relative;
    z-index: 2;
}

.support-rules {
    margin-bottom: 24px;
}

.support-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
}

.support-rule i {
    color: #4CAF50;
    font-size: 16px;
    min-width: 20px;
}

.support-rule strong {
    color: var(--white);
}

.support-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
    background: linear-gradient(135deg, #4267B2, #365899) !important;
}

.support-btn::before {
    background: linear-gradient(135deg, #365899, #2D4373) !important;
}

.support-btn:hover {
    box-shadow: 0 8px 25px rgba(66,103,178,0.4);
}

/* === Footer === */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-brand img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
    margin-bottom: 16px;
}

.footer-brand h4 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    max-width: 300px;
}

.footer h5 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.footer-links li {
    list-style: none;
    margin-bottom: 10px;
}

.footer-links li a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--secondary);
    transform: translateX(4px);
}

.footer-links li a i {
    font-size: 10px;
}

.footer-contact li {
    list-style: none;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.footer-contact li i {
    color: var(--secondary);
    margin-top: 4px;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: var(--secondary);
}

/* === Scroll to Top === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* === Animations === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 991px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-image-wrapper {
        margin-top: 40px;
    }

    .hero-floating-card {
        display: none;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-header .section-title {
        font-size: 28px;
    }

    .about-image-wrapper .about-badge {
        right: 10px;
        bottom: -10px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .navbar-collapse {
        background: rgba(26,26,46,0.98);
        backdrop-filter: blur(20px);
        border-radius: var(--radius-md);
        margin-top: 12px;
        padding: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-stat .stat-number {
        font-size: 28px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header .section-title {
        font-size: 24px;
    }

    .section-header .section-subtitle::before,
    .section-header .section-subtitle::after {
        width: 16px;
        margin: 0 8px;
    }

    .about-content h2 {
        font-size: 24px;
    }

    .about-image-wrapper .about-main-image {
        height: 300px;
    }

    .product-card .product-image-wrapper {
        height: 200px;
    }

    .footer-main {
        padding: 40px 0 30px;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 575px) {
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        text-align: center;
        justify-content: center;
    }

    .about-image-wrapper .about-badge {
        position: static;
        margin-top: 16px;
        display: inline-flex;
        gap: 8px;
        align-items: center;
    }
}
