/* 
 * GANESH TRADERS - SMART TRADE HUB
 * Core Styles
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-navy: #0F2027;
    --primary-charcoal: #203A43;
    --secondary-white: #FFFFFF;
    --secondary-light-grey: #F5F7FA;
    --accent-orange: #F2994A;
    --accent-amber: #F2C94C;
    --support-teal: #2C7744;
    --support-green: #27AE60;
    
    --text-dark: #333333;
    --text-muted: #6c757d;
    --text-light: #F5F7FA;

    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Poppins', sans-serif;
    
    --transition: all 0.3s ease-in-out;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--secondary-light-grey);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-navy);
}

a {
    color: var(--primary-navy);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-orange);
}

/* Utilities */
.bg-navy { background-color: var(--primary-navy) !important; color: var(--secondary-white); }
.bg-charcoal { background-color: var(--primary-charcoal) !important; color: var(--secondary-white); }
.text-navy { color: var(--primary-navy) !important; }
.text-orange { color: var(--accent-orange) !important; }
.text-teal { color: var(--support-teal) !important; }
.section-padding { padding: 80px 0; }
.premium-shadow { box-shadow: var(--box-shadow); }

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #E67E22 100%);
    color: var(--secondary-white);
    font-family: var(--font-accent);
    font-weight: 600;
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(242, 153, 74, 0.3);
    color: var(--secondary-white);
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary-navy);
    font-family: var(--font-accent);
    font-weight: 600;
    padding: 12px 28px;
    border: 2px solid var(--primary-navy);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--primary-navy);
    color: var(--secondary-white);
}

/* Header & Navbar */
.site-header {
    background-color: var(--secondary-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary-navy);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-link {
    font-family: var(--font-accent);
    font-weight: 500;
    color: var(--primary-charcoal);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 10px 15px !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-orange);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.85) 0%, rgba(20, 20, 20, 0.9) 100%), url('../images/hero_banner.jpg') center/cover no-repeat;
    color: var(--secondary-white);
    padding: 120px 0;
    overflow: hidden;
}

.hero-content h1 {
    color: var(--secondary-white);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
}

/* Smart Trade Network Visual */
.trade-network-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-node {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-family: var(--font-accent);
    font-weight: 600;
    position: absolute;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.node-supplier { top: 10%; left: 50%; transform: translateX(-50%); }
.node-ganesh { top: 40%; left: 50%; transform: translate(-50%, -50%); font-size: 1.2rem; background: var(--accent-orange); border-color: var(--accent-orange); }
.node-wholesale { top: 70%; left: 20%; animation-delay: 1s; }
.node-distribution { top: 70%; right: 20%; animation-delay: 2s; }
.node-business { top: 90%; left: 50%; transform: translateX(-50%); animation-delay: 3s; }

.network-lines svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.network-line {
    stroke: rgba(255,255,255,0.2);
    stroke-width: 2;
    stroke-dasharray: 10;
    animation: dash 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0px) translateX(-50%); }
    50% { transform: translateY(-15px) translateX(-50%); }
    100% { transform: translateY(0px) translateX(-50%); }
}

@keyframes dash {
    to { stroke-dashoffset: -1000; }
}

/* Cards (Services / Categories) */
.service-card {
    background: var(--secondary-white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-bottom: 4px solid var(--accent-orange);
}

.service-icon {
    font-size: 3rem;
    color: var(--support-teal);
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Product Cards */
.product-card {
    background: var(--secondary-white);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #eee;
}

.product-card:hover {
    box-shadow: var(--box-shadow);
    border-color: var(--accent-orange);
}

.product-img-wrap {
    height: 250px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-wrap img {
    max-width: 100%;
    height: auto;
    transition: var(--transition);
}

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

.product-info {
    padding: 20px;
}

.product-category-label {
    font-size: 0.75rem;
    color: var(--support-teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Footer */
.site-footer {
    background: var(--primary-navy);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 20px;
}

.site-footer h5 {
    color: var(--secondary-white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--accent-orange);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

.footer-bottom-links a {
    color: var(--secondary-white);
    opacity: 0.75;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover,
.hover-orange:hover {
    color: var(--accent-orange) !important;
    opacity: 1;
}

/* Interactive Trade Categories */
.trade-category-tile {
    position: relative;
    height: 200px;
    background: var(--primary-charcoal);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.trade-category-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0;
    transition: var(--transition);
}

.tile-content {
    text-align: center;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.tile-content h3 {
    color: var(--secondary-white);
    margin: 0;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.tile-hover-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    z-index: 3;
    transition: var(--transition);
    width: 90%;
}

.tile-hover-content p {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.trade-category-tile:hover {
    transform: scale(1.03);
    background: var(--primary-navy);
}

.trade-category-tile:hover::before {
    opacity: 1;
}

.trade-category-tile:hover .tile-content {
    opacity: 0;
    transform: scale(0.8);
}

.trade-category-tile:hover .tile-hover-content {
    opacity: 1;
}

/* Loading Screen */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-navy);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-brand {
    color: var(--secondary-white);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-top: 20px;
    letter-spacing: 2px;
}

.loader-sub {
    color: var(--accent-orange);
    font-family: var(--font-accent);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.loader-box {
    width: 50px;
    height: 50px;
    background: var(--accent-orange);
    animation: boxMove 2s infinite ease-in-out;
}

@keyframes boxMove {
    0% { transform: perspective(120px) rotateX(0deg) rotateY(0deg); }
    50% { transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg); }
    100% { transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg); }
}

/* Multi-step Form */
.step-container {
    display: none;
}
.step-container.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Breadcrumbs */
.breadcrumb-wrap {
    background: var(--primary-charcoal);
    padding: 40px 0;
}
.breadcrumb-wrap h1 {
    color: white;
    margin-bottom: 10px;
}
.breadcrumb {
    margin: 0;
}
.breadcrumb-item a {
    color: var(--accent-orange);
}
.breadcrumb-item.active {
    color: rgba(255,255,255,0.7);
}
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* Custom 404 */
.error-404-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--secondary-light-grey);
}
.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1;
    margin-bottom: 20px;
}
