/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */
   :root {
    --color-primary: #1a5fa8;
    --color-secondary: #5cb82e;
    --color-dark: #0d1f3c;
    --color-accent: #f97316;
    --color-gray-bg: #f4f6f9;
    --color-text: #1e2d3d;
    --color-text-light: #ffffff;
    --gradient-brand: linear-gradient(135deg, #1a5fa8 0%, #5cb82e 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--color-text);
    background-color: var(--color-text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

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

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

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 2rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-pill {
    border-radius: 50px;
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

.btn-accent:hover {
    background-color: #e06512;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-text-light);
    color: var(--color-text-light);
}

.btn-outline:hover {
    background-color: var(--color-text-light);
    color: var(--color-dark);
}

.btn-detail {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
    width: 100%;
}

.btn-detail:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    backdrop-filter: blur(5px);
}

.header.scrolled .logo-text,
.header.scrolled .nav-list a {
    color: var(--color-dark);
}

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

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

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.logo-text {
    font-weight: 700;
    color: var(--color-text-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list a {
    color: var(--color-text-light);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-light);
    cursor: pointer;
}

.header.scrolled .mobile-menu-btn {
    color: var(--color-dark);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    background-color: var(--color-dark);
    position: relative;
    padding: 160px 0 120px;
    overflow: hidden;
    color: var(--color-text-light);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at right 30%, rgba(26, 95, 168, 0.2) 0%, transparent 60%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    max-width: 700px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid var(--color-secondary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--color-secondary);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-stats {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 200px;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stat-label {
    font-weight: 600;
    font-size: 1.1rem;
    color: #e2e8f0;
}

/* ==========================================================================
   TRUST BAR
   ========================================================================== */
.trust-bar {
    padding: 0;
    background: var(--gradient-brand);
}

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

.trust-item {
    flex: 1;
    padding: 24px 15px;
    text-align: center;
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.trust-item i {
    font-size: 1.5rem;
}

.trust-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about {
    background-color: var(--color-text-light);
}

.about-container {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: 60px;
    align-items: center;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #475569;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    background-color: var(--color-gray-bg);
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.check-list i {
    color: var(--color-secondary);
    font-size: 1.4rem;
}

/* ==========================================================================
   PRODUCTS
   ========================================================================== */
.products {
    background-color: var(--color-gray-bg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.product-card:nth-child(-n+3) {
    grid-column: span 4;
}

.product-card:nth-child(n+4) {
    grid-column: span 3;
}

.product-card {
    background: var(--color-text-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(26,95,168,0.18);
    border-color: var(--color-primary);
}

.product-img-wrap {
    position: relative;
    aspect-ratio: 280/180;
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-primary);
    color: var(--color-text-light);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
}

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

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

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

.product-desc {
    color: #64748b;
    margin-bottom: 24px;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.why-us {
    background-color: var(--color-gray-bg);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.why-card {
    background: var(--color-text-light);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.why-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.why-desc {
    color: #64748b;
    font-size: 0.95rem;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-form-col {
    background: var(--color-text-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--color-gray-bg);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-text-light);
    box-shadow: 0 0 0 3px rgba(26, 95, 168, 0.1);
}

.error-msg {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group.error .form-control {
    border-color: #ef4444;
}

.form-group.error .error-msg {
    display: block;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    color: #166534;
}

.success-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.success-message p {
    font-weight: 600;
    font-size: 1.1rem;
}

.info-box {
    background: var(--gradient-brand);
    padding: 40px;
    border-radius: 10px;
    color: var(--color-text-light);
    height: 100%;
}

.info-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-list i {
    font-size: 1.5rem;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.9);
}

.info-list div strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-list div a, .info-list div span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

.info-list div a:hover {
    color: var(--color-text-light);
    text-decoration: underline;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--color-dark);
    color: #cbd5e1;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 4fr 3fr 3fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--color-text-light);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-icon-sm {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
}

.footer-heading {
    color: var(--color-text-light);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 0.95rem;
}

/* ==========================================================================
   ANIMATIONS & UTILS
   ========================================================================== */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center; justify-content: center;
}
.modal.show {
    opacity: 1;
}
.modal-content {
    background: var(--color-text-light);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}
.modal.show .modal-content {
    transform: translateY(0);
}
.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2.5rem;
    cursor: pointer;
    color: #64748b;
    z-index: 10;
    transition: color 0.3s;
    line-height: 1;
}
.close-modal:hover {
    color: var(--color-accent);
}
.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}
.modal-img-col {
    background: var(--color-gray-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-img {
    max-height: 300px;
    object-fit: contain;
}
.modal-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
}
.modal-desc {
    color: #475569;
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.7;
}
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-5 { margin-top: 30px; }

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog {
    background-color: var(--color-text-light);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.blog-card {
    background: var(--color-text-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.blog-img-wrap {
    aspect-ratio: 16/10;
    overflow: hidden;
}
.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-img {
    transform: scale(1.05);
}
.blog-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.blog-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}
.blog-title a:hover {
    color: var(--color-primary);
}
.blog-desc {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}
.blog-readmore {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.blog-readmore:hover {
    color: var(--color-accent);
    gap: 10px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card:nth-child(n) {
        grid-column: span 1;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 48px 0;
    }

    .header {
        background-color: var(--color-dark);
        padding: 15px 0;
    }

    .logo-text {
        font-size: 1rem;
    }

    .header-action {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: var(--color-dark);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .nav.nav-open {
        max-height: 400px;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .trust-container {
        flex-direction: column;
    }

    .trust-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .modal-body {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
