/* 
 * Dieu Viet Nam - Premium UI Design 2026 
 * Theme: Luxury Agriculture (Gold - Red - Green)
 * Style: Modern, Glassmorphism, Clean, Sophisticated
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium Color Palette */
    --primary-color: #C22026;
    /* Red - Energy & Luck */
    --secondary-color: #2E7D32;
    /* Green - Nature & Freshness */
    --accent-color: #DAA520;
    /* Gold - Luxury & Quality */
    --text-dark: #1A1A1A;
    --text-gray: #555555;
    --off-white: #F9F9F9;
    --pure-white: #FFFFFF;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #C22026 0%, #A0151B 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius-lg: 20px;
    --border-radius-pill: 50px;

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --shadow-neon: 0 0 20px rgba(194, 32, 38, 0.3);
}

/* GLOBAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--off-white);
    overflow-x: hidden;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- UTILITY CLASSES --- */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-white {
    color: var(--pure-white) !important;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.p-4 {
    padding: 1.5rem;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatImage {

    /* Floating effect for images */
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(194, 32, 38, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(194, 32, 38, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(194, 32, 38, 0);
    }
}

/* --- PREMIUM HEADER & MENU (FIXED GLASSMORPHISM) --- */
.main-header {
    position: fixed;
    top: 15px;
    /* Floating from top */
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    /* Glass Background */
    backdrop-filter: blur(15px);
    /* Blur effect */
    -webkit-backdrop-filter: blur(15px);
    padding: 10px 30px;
    border-radius: var(--border-radius-pill);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.7);
    max-width: var(--container-width);
    margin: 0 auto;
    transition: all 0.3s ease;
}

.header-inner:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.site-logo {
    height: 45px;
    /* Appropriate size, not too big */
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-item {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

/* Menu underline animation */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* Special Highlight for Partners */
.nav-highlight {
    color: var(--accent-color) !important;
}

.nav-highlight::after {
    background: var(--accent-color);
}

/* Primary Button Style for Contact */
.btn-contact,
.btn-primary {
    background: var(--gradient-primary);
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(194, 32, 38, 0.3);
    border: none;
    display: inline-block;
    text-align: center;
}

.btn-contact::after,
.btn-primary::after {
    display: none;
    /* No underline for buttons */
}

.btn-contact:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 32, 38, 0.4);
}

/* --- HERO SECTION (FULL HEIGHT) --- */
.hero-section {
    padding-top: 140px;
    /* Offset for fixed header */
    padding-bottom: 80px;
    background: radial-gradient(circle at top right, rgba(218, 165, 32, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(194, 32, 38, 0.05), transparent 40%);
    min-height: 90vh;
    /* Almost full screen */
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-subtitle {
    display: inline-block;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
    background: linear-gradient(to right, #1A1A1A, #555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.development-notice {
    background: rgba(255, 230, 230, 0.5);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #555;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn-outline {
    padding: 10px 25px;
    border-radius: 30px;
    border: 2px solid var(--text-dark);
    font-weight: 600;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--text-dark);
    color: white;
}

.hero-form .form-wrapper {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Contact Form Inputs */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: inherit;
    transition: border 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(194, 32, 38, 0.1);
}

/* --- SECTIONS COMMON --- */
.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: #FAFAFA;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    margin-top: 20px;
}

.sub-title {
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

/* --- REFINED IMAGE LAYOUTS (Intro & Quality) --- */
/* Fix huge images: Split layout 50/50 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class^="col-"] {
    padding: 0 15px;
}

.col-6 {
    width: 50%;
}

.col-4 {
    width: 33.33%;
}

.col-3 {
    width: 25%;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.align-items-center {
    align-items: center;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

/* Image Container Restraint */
.image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    /* Important constraints */
    max-width: 550px;
    margin: 0 auto;
    background: white;
    padding: 10px;
    /* Frame effect */
}

.image-wrapper img {
    width: 100%;
    height: 400px;
    /* Fixed height for consistency */
    object-fit: cover;
    /* Prevents distortion */
    border-radius: 12px;
    display: block;
    animation: floatImage 4s ease-in-out infinite;
    /* Floating effect */
}

.content-wrapper {
    padding: 20px;
}

.content-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.content-wrapper p {
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-gray);
}

/* --- PRODUCT CARDS (Refined) --- */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 250px;
    /* Fixed height */
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
    /* Zoom effect */
}

.product-content {
    padding: 25px;
}

.product-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.product-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.product-detail {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-style: italic;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* --- GALLERY GRID --- */
.gallery-grid .gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    height: 250px;
    /* Taller */
    margin-bottom: 15px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .text {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* --- PARTNER SECTION STYLES --- */
#doi-tac {
    /* Inherits inline styles but adding specific overrides if needed */
}

/* --- FOOTER --- */
.main-footer {
    background: #111;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px;
    text-align: center;
}

.main-footer a {
    color: white;
    transition: color 0.3s;
}

.main-footer a:hover {
    color: var(--accent-color);
}

.bg-dark {
    background-color: #1a1a1a !important;
}

.text-white {
    color: #fff !important;
}

.contact-wrapper h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.icon-location,
.icon-email,
.icon-phone {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--accent-color);
}

.info-item {
    display: flex;
    margin-bottom: 25px;
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #eee;
}

/* --- RESPONSIVE FIXES (Mobile) --- */
@media (max-width: 992px) {

    .col-6,
    .col-4 {
        width: 100%;
        margin-bottom: 30px;
    }

    .col-3 {
        width: 50%;
        /* 2 cols on tablet */
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .header-inner {
        flex-direction: column;
        padding: 15px;
        border-radius: 20px;
    }

    .main-nav {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .image-wrapper img {
        height: 300px;
    }

    .flex-row-reverse {
        flex-direction: column;
        /* Stack normally on mobile */
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .col-3 {
        width: 100%;
    }
}

/* Partner Section Styles (Added for Social Boost Asia) */
.partner-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.partner-link-item {
    font-size: 0.85rem;
    color: #555;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
    transition: color 0.2s;
    text-decoration: none;
    display: block;
}

.partner-link-item:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.service-category {
    margin-bottom: 30px;
}

.service-category h5 {
    color: var(--primary-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Strategic Partners & Ecosystem Section */
.strategic-partners-section {
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.partners-context-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns Layout for readability */
    gap: 40px;
}

.partner-group {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
}

.partner-group:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.group-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.partner-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.partner-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.partner-item p {
    font-size: 0.95rem;
    color: #444;
    text-align: justify;
    line-height: 1.6;
}

.partner-link-dofollow {
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: all 0.2s;
}

.partner-link-dofollow:hover {
    color: var(--primary-color);
    background-color: rgba(218, 165, 32, 0.1);
    padding: 0 3px;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .partners-context-wrapper {
        grid-template-columns: 1fr;
    }
}