/*
Theme Name: Vinh Bia Tiệp Premium
Theme URI: https://ngocanhfood.ndvinh.duckdns.org
Author: Vinh Bia Tiệp
Description: Theme cao cấp với hiệu ứng glassmorphism, gradient, animation
Version: 2.0.0
*/

:root {
    --primary: #d4a017;
    --primary-light: #ffd700;
    --secondary: #8b0000;
    --dark: #0a0a0a;
    --darker: #000;
    --light: #fff8e7;
    --gray: #f8f9fa;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #fff8e7 0%, #ffeaa7 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

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

/* HEADER - Glassmorphism */
.site-header {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    transition: transform 0.3s;
}

.site-logo:hover { transform: scale(1.05); }

.site-logo .logo-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(212, 160, 23, 0.5));
}

.site-logo .logo-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* NAVIGATION */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

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

.main-nav a:hover { color: var(--dark); }
.main-nav a:hover::before { left: 0; }

.main-nav .cta {
    background: linear-gradient(135deg, var(--secondary), #b30000);
    color: white !important;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.main-nav .cta::before { display: none; }
.main-nav .cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.6);
}

/* HERO - Premium với Parallax */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 40px 20px;
    background:
        linear-gradient(135deg, rgba(10, 10, 10, 0.7), rgba(139, 0, 0, 0.5)),
        url('https://images.unsplash.com/photo-1575444758702-4a6b9222b36f?w=1920') center/cover fixed;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle, transparent, rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    filter: drop-shadow(0 0 30px rgba(212, 160, 23, 0.5));
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

/* BUTTONS - Gradient */
.btn {
    display: inline-block;
    padding: 16px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--dark);
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 160, 23, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #b30000);
    color: white;
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 0, 0, 0.6);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--dark);
    transform: translateY(-3px);
}

/* SECTIONS */
section { padding: 80px 0; }

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    margin: 20px auto 0;
    border-radius: 5px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* FEATURES - Glass Cards */
.features { background: white; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212, 160, 23, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.4s;
}

.feature-card:hover .feature-icon { transform: scale(1.2) rotate(5deg); }

.feature-card h3 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 800;
}

/* PRODUCTS - Premium Cards */
.products { background: linear-gradient(135deg, #fff8e7, #ffeaa7); }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card::after {
    content: 'NEW';
    position: absolute;
    top: 15px; right: 15px;
    background: linear-gradient(135deg, var(--secondary), #b30000);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

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

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

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

.product-info { padding: 25px; }

.product-title {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 800;
}

.product-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
    min-height: 50px;
}

.product-price {
    color: var(--secondary);
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-price::before {
    content: '💰';
    font-size: 1.3rem;
}

.product-card .btn {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 1rem;
}

/* PROMO BANNER */
.promo {
    background: linear-gradient(135deg, var(--secondary) 0%, #b30000 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.promo::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 20s linear infinite;
}

.promo h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.promo p {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

/* CONTACT - Dark Glass */
.contact {
    background: linear-gradient(135deg, var(--darker), #1a1a1a);
    color: white;
}

.contact .section-title {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.5); }

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

.contact-form .btn { width: 100%; }

/* FOOTER - Premium */
.site-footer {
    background: var(--darker);
    color: white;
    text-align: center;
    padding: 50px 0 30px;
    position: relative;
}

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p { margin: 8px 0; opacity: 0.9; }

.social-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    width: 45px; height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 160, 23, 0.4);
}

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-card, .feature-card {
    animation: fadeInUp 0.6s ease both;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.8rem; }
    .hero-buttons { flex-direction: column; }
    .main-nav ul { display: none; }
    .section-title { font-size: 2rem; }
}
