/* 
   JHGT Premium Trade Portal - Main Stylesheet 
   Design System: Corporate Futurism
*/

:root {
    /* Color Palette */
    --color-bg-deep: #020617;
    /* Deepest Navy/Black */
    --color-bg-surface: #0f172a;
    /* Slightly lighter navy for cards */
    --color-primary: #d4af37;
    /* Metallic Gold */
    --color-primary-dim: #b8860b;
    --color-text-main: #f8fafc;
    /* Off-white */
    --color-text-muted: #94a3b8;
    /* Muted slate */
    --color-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    /* You might need to add Outfit to imports */

    /* Spacing & Layout */
    --container-width: 1280px;
    --section-spacing: clamp(4rem, 8vw, 8rem);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;

    /* Effects */
    --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --backdrop-blur: blur(12px);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

/* Typography Helpers */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

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

/* Layout Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin-inline: auto;
}

.section {
    padding-block: var(--section-spacing);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Offset for navbar */
    overflow: hidden;
}

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

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.3) 0%, var(--color-bg-deep) 100%);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: #e2e8f0;
    margin-bottom: 3rem;
    max-width: 600px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
    background: #fff;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Industries (Bento Grid) */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: block;
    font-weight: 600;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    position: relative;
    border-radius: var(--border-radius-lg);
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

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

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

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

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.card-arrow {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
    background: var(--color-primary);
    color: #000;
}

.card-info-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 5;
    transition: 0.3s;
    font-weight: bold;
    font-family: serif;
    font-style: italic;
}

.card-info-icon:hover {
    background: var(--color-primary);
    color: #000;
    transform: scale(1.1);
}

/* Why Us (Glass Cards) */
.glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--backdrop-blur);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    transition: 0.3s;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Process Section */
.process-card {
    position: relative;
    padding-top: 3.5rem;
    /* Space for the number */
}

.process-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.3;
    /* Increased from 0.1 for visibility */
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    line-height: 1;
    z-index: 0;
}

.process-title {
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: #fff;
}

.process-desc {
    position: relative;
    z-index: 1;
    color: #e2e8f0;
    /* Brighter than muted text */
    font-size: 0.95rem;
}

/* Product Tags */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin-top: 1rem;
    padding: 0;
}

.product-tags li {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}

.product-tags li:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-primary);
}

/* Pulsing Heart Animation */
.heart-pulse {
    display: inline-block;
    color: #e74c3c;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    padding: 4rem 0;
    background: #000;
    text-align: center;
    color: var(--color-text-muted);
}

/* Utilities */
.hidden {
    display: none;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #fff;
}

.contact-link {
    color: var(--color-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: #fff;
    text-decoration: underline;
}

.contact-cta {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
}

.contact-cta h3 {
    font-size: 1.75rem;
    color: #fff;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Detail Pages */
.detail-hero {
    padding: 10rem 0 4rem;
    background: linear-gradient(to bottom, var(--color-bg-surface), var(--color-bg-deep));
}

.back-link {
    display: inline-block;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: #fff;
    transform: translateX(-5px);
}

.detail-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.detail-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
}

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

.product-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    transition: all 0.3s ease;
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

/* .product-icon removed/modified to handle image */
.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: none; /* Hide if still present but image failed */
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.product-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Simplified mobile nav for now */

    .hero {
        padding-top: 120px;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Modal System */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    position: relative;
    overflow-y: auto;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 3rem;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--color-primary);
    color: #000;
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
}

.modal-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--color-text-muted);
}

/* Supplier Grid */
.supplier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.supplier-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
}

.supplier-item:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--color-primary-dim);
    color: var(--color-primary);
    cursor: pointer;
}

.supplier-item h4 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.supplier-item h4::before {
    content: '🏢';
    font-size: 1rem;
    filter: grayscale(1);
    opacity: 0.7;
}

.supplier-item p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
}

.supplier-item .view-link {
    font-size: 0.8rem;
    color: var(--color-primary);
    text-decoration: underline;
    margin-top: 0.5rem;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .modal-container {
        padding: 2rem 1.5rem;
    }

    .modal-title {
        font-size: 1.8rem;
    }
}