/* 
 * MODERN BENTO GRID 2026 - DELTAMAX
 * Restored & Fixed
 */

/* SMOOTH SCROLLING (Global) */
html {
    scroll-behavior: smooth;
}

:root {
    --primary: #0f172a;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --bg-body: #F0F2F5;
    --surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 12px 40px rgba(59, 130, 246, 0.15);
    --nav-height: 80px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* --- BENTO GRID LAYOUT --- */
.bento-wrapper {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    max-width: 1600px;
    margin: 120px auto 40px;
    padding: 0 24px;
}

.bento-tile {
    background: white;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-tile:hover {
    box-shadow: var(--shadow-hover);
}

/* Span Utilities - Comprehensive */
.span-12 {
    grid-column: span 12;
}

.span-11 {
    grid-column: span 11;
}

.span-10 {
    grid-column: span 10;
}

.span-9 {
    grid-column: span 9;
}

.span-8 {
    grid-column: span 8;
}

.span-7 {
    grid-column: span 7;
}

.span-6 {
    grid-column: span 6;
}

.span-5 {
    grid-column: span 5;
}

.span-4 {
    grid-column: span 4;
}

.span-3 {
    grid-column: span 3;
}

.span-2 {
    grid-column: span 2;
}

.span-1 {
    grid-column: span 1;
}

/* Mobile Utilities for Grid */
@media (max-width: 1024px) {
    [class*="span-"] {
        grid-column: span 12 !important;
    }
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-logo img {
    height: 28px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}

.nav-link:hover {
    color: var(--accent);
}

.mobile-only {
    display: none !important;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Lang Dropdown */
.lang-dropdown {
    position: relative;
    cursor: pointer;
    margin-left: 1rem;
}

.lang-drop-btn {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-drop-content {
    position: absolute;
    top: 120%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 5px;
    width: 60px;
    display: none;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: 0.2s;
}

.lang-dropdown.active .lang-drop-content {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    top: 100%;
}

.lang-drop-content a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.lang-drop-content a:hover,
.lang-drop-content a.active {
    background: #f1f5f9;
    color: var(--accent);
}


/* --- HERO TILE (Span 12) --- */
.hero-tile {
    height: 70vh;
    min-height: 600px;
    display: flex;
    position: relative;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 400px;
    align-items: center;
    padding: 0 60px;
    gap: 40px;
}

.hero-text h1 {
    color: white;
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 40px;
}

.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--accent);
    color: white;
    border-radius: 99px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.6);
}

/* --- PARTNERS TILE --- */
.partners-tile {
    padding: 30px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.partners-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 700;
}

.partners-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.partners-track {
    display: inline-flex;
    gap: 60px;
    animation: scrollHorz 30s linear infinite;
    align-items: center;
}

.partner-logo {
    height: 32px;
    filter: grayscale(1);
    opacity: 0.6;
    transition: 0.3s;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scrollHorz {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* --- ABOUT TILES --- */
.about-text-tile {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text-tile h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 800;
}

.about-text-tile p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: justify;
}

.about-video-tile {
    position: relative;
}

.about-video-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- PRODUCTS TILE --- */
.products-tile {
    padding: 60px;
    background: #fff;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .tabs {
        width: 100%;
        /* Full width for scrolling */
        border-radius: 12px;
        /* Less rounded on mobile strip */
    }
}

.products-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0;
    font-weight: 800;
}

.tabs {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 99px;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.tabs::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar Chrome/Safari */

@media (max-width: 1024px) {
    .tabs {
        justify-content: center !important;
        width: 100%;
        margin: 0 auto;
    }

    .products-header {
        justify-content: center;
        flex-direction: column;
        gap: 20px;
    }
}

.tab-btn {
    padding: 10px 24px;
    border: none;
    background: transparent;
    border-radius: 99px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: 0.3s;
    flex-shrink: 0;
    /* Prevent shrinking */
    white-space: nowrap;
}

.tab-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

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

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.product-img-wrap {
    height: 240px;
    width: 100%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-img-wrap img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: 0.3s;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

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

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0px;
    text-align: center;
}

.product-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
}

.btn-sm-glow {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.2s;
}

.btn-sm-glow:hover {
    opacity: 0.9;
}

/* --- CONTACT TILES --- */
.contact-info-tile {
    background: #0f172a;
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.contact-info-tile h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: white;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--accent);
    margin-top: 5px;
}

.contact-item h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #94a3b8;
}

.contact-item p,
.contact-item a {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    line-height: 1.4;
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-form-tile {
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- CONTACT FORM --- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

/* Matched to index.php class .form-input & .form-control */
.form-input,
.form-control {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
    background: white;
    box-sizing: border-box;
}

.form-input:focus,
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Matched to index.php class .btn-submit & .submit-btn */
.btn-submit,
.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover,
.submit-btn:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

/* --- FOOTER --- */
footer {
    /* Legacy tag selector, keeping for safety */
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-tile {
    padding: 30px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
}

.footer-left img {
    height: 32px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-right {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-tile {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

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

/* Responsive adjustments for Form Row */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}