/* =========================================
   Import Products Page - Clean & Robust CSS
   ========================================= */

/* --- Variables & Reset --- */
:root {
    --primary: #4f46e5;
    /* Indigo */
    --secondary: #3b82f6;
    /* Blue */
    --accent: #a5b4fc;
    /* Light Indigo */
    --bg-dark: #ffffff;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #475569;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    /* Ensure padding for fixed nav if needed, though Hero handles it */
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    /* Fallback */
    height: 100svh;
    /* Mobile modern */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
    margin-top: -76px;
    /* Consistency */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    margin-top: 40px;
    /* Slight adjustment */
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.text-gradient {
    background: linear-gradient(135deg, #1e293b 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.scroll-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.6);
}

/* --- Products Section --- */
.products-section {
    padding: 8rem 2rem;
    background: var(--bg-dark);
    position: relative;
}

.import-card {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: var(--card-bg);
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 4rem;
    margin: 0 auto 6rem auto;
    max-width: 1200px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    /* No overflow:hidden to prevent clipping text */
    position: relative;
}

.import-card.reverse {
    flex-direction: row-reverse;
}

/* Image Handling */
.card-image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    aspect-ratio: 4/3;
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Force visibility override */
    opacity: 1 !important;
    transform: none !important;
    transition: transform 0.6s ease;
}

.import-card:hover .card-image {
    transform: scale(1.05) !important;
}

/* Content Handling */
.card-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.card-number {
    font-size: 6rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    /* Very subtle number */
    position: absolute;
    top: -5rem;
    left: -2rem;
    line-height: 1;
    pointer-events: none;
    z-index: -1;
    /* Behind text */
}

.card-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.2;
}

.card-origin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.card-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.details-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--primary);
    transition: var(--transition);
}

.details-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateX(5px);
}

/* --- Responsive CSS --- */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .import-card {
        flex-direction: column !important;
        /* Force stack */
        padding: 2.5rem;
        gap: 2.5rem;
        text-align: center;
    }

    .card-image-wrapper {
        width: 100%;
        min-width: 0;
        /* Override desktop min-width to prevent overflow */
        max-height: 350px;
    }

    .card-number {
        top: -3rem;
        left: 50%;
        transform: translateX(-50%);
        font-size: 5rem;
    }

    .card-origin {
        justify-content: center;
    }

    .details-link {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .card-title {
        font-size: 2rem;
    }

    .card-content {
        padding-top: 1rem;
    }
}