/* 
==================================================
SHREE JI TRADERS - TRADE GRID Design System
==================================================
*/

:root {
    --primary-color: #0A192F; /* Deep Navy */
    --secondary-color: #F8F9FA; /* Off White / Ivory */
    --accent-color: #FF9F1C; /* Saffron / Amber */
    --text-main: #333333; /* Charcoal */
    --text-light: #6c757d;
    --success-color: #2E7D32; /* Deep Green */
    --grid-line: rgba(10, 25, 47, 0.08);
    --grid-line-light: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

p {
    line-height: 1.7;
}

/* Typography Classes */
.text-primary { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }

/* Buttons */
.btn-accent {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0; height: 100%;
    background-color: #e68a12;
    transition: var(--transition);
    z-index: -1;
}

.btn-accent:hover::before { width: 100%; }
.btn-accent:hover { color: #fff; transform: translateY(-2px); }

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: 0;
    font-weight: 600;
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Header & Nav */
.header {
    background-color: transparent;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
.header.scrolled {
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--grid-line-light);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo-box {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo-text-top { font-size: 1.2rem; font-weight: 700; letter-spacing: 2px; color: var(--accent-color); }
.logo-text-bottom { font-size: 0.9rem; font-weight: 600; letter-spacing: 4px; color: #fff; }

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0 10px;
    padding-bottom: 5px;
    position: relative;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: #fff !important;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { width: 100%; }

/* Hero Section */
.hero {
    position: relative;
    padding: 150px 0 100px;
    background-color: var(--primary-color);
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Trade Grid Background Pattern */
.trade-grid-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(var(--grid-line-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-light) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: 0;
}
/* Grid lines animation */
.grid-lines-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    overflow: hidden;
}
.grid-line-h, .grid-line-v {
    position: absolute;
    background: var(--accent-color);
    opacity: 0.5;
}
.grid-line-h { height: 1px; width: 0; animation: growH 8s infinite linear; }
.grid-line-v { width: 1px; height: 0; animation: growV 8s infinite linear; }

@keyframes growH { 0% { width: 0; left: 0; opacity: 1; } 50% { width: 100%; opacity: 0; } 100% { width: 0; left: 100%; opacity: 0; } }
@keyframes growV { 0% { height: 0; top: 0; opacity: 1; } 50% { height: 100%; opacity: 0; } 100% { height: 0; top: 100%; opacity: 0; } }

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero h1 span { color: var(--accent-color); }

/* Enquiry Strip */
.enquiry-strip {
    background: #fff;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transform: translateY(-50%);
    position: relative;
    z-index: 10;
}
.enquiry-strip .form-control, .enquiry-strip .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 0.9rem;
    padding: 12px 15px;
}

/* Feature & Service Cards */
.trade-card {
    background: #fff;
    border: 1px solid var(--grid-line);
    padding: 40px 30px;
    border-radius: 0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}
.trade-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 3px; height: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}
.trade-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
    border-color: var(--accent-color);
}
.trade-card:hover::before { height: 100%; }

.trade-card .icon-box {
    width: 60px; height: 60px;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border: 1px solid var(--grid-line);
    transition: var(--transition);
}
.trade-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--accent-color);
}
.trade-card h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 15px; }
.trade-card p { font-size: 0.95rem; color: var(--text-light); }

/* The Shree Ji Trade Network (Interactive Node Grid) */
.trade-network {
    background-color: var(--primary-color);
    padding: 100px 0 150px;
    position: relative;
}
.network-container {
    position: relative;
    height: 600px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.network-node {
    position: absolute;
    width: 120px; height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center; justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    z-index: 2;
}
.network-node.center {
    width: 150px; height: 150px;
    background: var(--accent-color);
    border-color: var(--accent-color);
    font-size: 1.1rem;
    color: var(--primary-color);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}
.network-node:not(.center):hover, .network-node.active {
    background: #fff;
    color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    z-index: 10;
}
.network-line {
    position: absolute;
    background: var(--grid-line-light);
    transform-origin: 0 0;
    z-index: 1;
    transition: background 0.3s;
}
.network-line.active { background: var(--accent-color); height: 2px !important; }
.network-info {
    position: absolute;
    bottom: -130px;
    left: 50%; transform: translateX(-50%);
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,0.9);
    min-height: 60px;
    font-size: 1.2rem;
    font-weight: 500;
    z-index: 5;
}

/* Sections */
.section-padding { padding: 100px 0; }
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
    text-transform: uppercase;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px; height: 3px;
    background-color: var(--accent-color);
}
.text-center .section-title::after {
    left: 50%; transform: translateX(-50%);
}

/* Products */
.product-card {
    background: #fff;
    border: 1px solid var(--grid-line);
    transition: var(--transition);
    height: 100%;
}
.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.product-img-wrap {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--secondary-color);
}
.product-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-category-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Forms */
.form-control, .form-select {
    border-radius: 0;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    background: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}
.form-label { font-weight: 600; font-size: 0.9rem; text-transform: uppercase; color: var(--primary-color); }

/* Footer */
.footer {
    background-color: var(--primary-color);
    border-top: 4px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(var(--grid-line-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-light) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}
.footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Process Section */
.process-step {
    text-align: center;
    position: relative;
    padding: 0 15px;
}
.process-num {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(10, 25, 47, 0.05);
    line-height: 1;
    margin-bottom: -20px;
    position: relative;
    z-index: 0;
}
.process-step h5 { position: relative; z-index: 1; }

@media (max-width: 991px) {
    .hero h1 { font-size: 3rem; }
    .header { background-color: rgba(10, 25, 47, 0.95); }
    .enquiry-strip { transform: none; margin-top: -30px; }
}

/* Premium Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d2342 100%);
    padding: 180px 0 100px;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
}
.header-line {
    height: 2px;
    width: 40px;
    background-color: var(--accent-color);
}
.tracking-wider {
    letter-spacing: 2px;
}
.page-subtitle-anim {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}
.page-title-anim {
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}
.page-desc-anim {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Abstract Shapes for Page Header */
.header-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    opacity: 0.4;
    animation: pulse 8s infinite alternate;
}
.header-shape.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    top: -150px;
    right: -100px;
    opacity: 0.15;
}
.header-shape.shape-2 {
    width: 300px;
    height: 300px;
    background: #004e92;
    bottom: -100px;
    left: 10%;
    opacity: 0.2;
    animation-delay: -4s;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.1; }
    100% { transform: scale(1.1); opacity: 0.25; }
}

@media (max-width: 991px) {
    .page-header {
        padding: 150px 0 80px;
    }
}
