:root {
    /* Silver, Green & Gold Hardware Theme Variables */
    --nvidia-green: #76b900;       /* Iconic Bright Green */
    --vibrant-green: #66a300;      /* Darker green for text highlights */
    --cyber-gold: #d4af37;        /* Premium Metallic Gold accent */
    --dark-green-header: #0a1f00;  /* Deep tech hardware green for the navbar */
    --silver-primary: #f5f5f7;     /* Clean, light silver body background */
    --silver-secondary: #e5e5ea;   /* Brushed aluminum/silver for cards and accents */
    --silver-tertiary: #d1d1d6;    /* Darker metallic grey for inputs and borders */
    
    --primary-bg: var(--silver-primary);
    --card-bg: var(--silver-secondary);
    --accent-color: var(--nvidia-green); 
    
    --text-color: #111111;         /* Sharp, highly readable black text */
    --text-muted: #555555;         /* Dark grey for secondary text descriptions */
    --radius: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
    background-color: var(--primary-bg);
    color: var(--text-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.fade-in {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Global Gradient Text Helper Utility Class */
.text-gradient-green-black {
    background: linear-gradient(135deg, var(--vibrant-green) 30%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Custom Header Styling (Dark Green with 3px Silver Bottom Line) */
.navbar-custom {
    background: linear-gradient(180deg, #051400 0%, var(--dark-green-header) 100%);
    border-bottom: 3px solid var(--silver-secondary);
    padding: 10px 0;
}

.navbar-brand {
    font-weight: 700;
    color: #ffffff;
    font-size: 1.4rem;
}

.navbar-brand span {
    background: linear-gradient(90deg, var(--nvidia-green), var(--cyber-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 800;
}

/* Gold Product Search Form Styling */
.search-bar {
    max-width: 450px;
    width: 100%;
}

.search-bar .form-control {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    border: 1px solid var(--cyber-gold); /* Premium Gold Framed Border */
    background-color: rgba(38, 31, 0, 0.3); /* Translucent warm gold tint */
    color: #ffffff;
}

.search-bar .form-control:focus {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    border-color: var(--cyber-gold);
    background-color: rgba(38, 31, 0, 0.6);
}

.search-bar .btn-outline-warning {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    border-color: var(--cyber-gold);
    color: var(--cyber-gold);
    background-color: rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.search-bar .btn-outline-warning:hover {
    background-color: var(--cyber-gold);
    border-color: var(--cyber-gold);
    color: #000000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.icon-links a {
    color: #ffffff;
    font-size: 1.25rem;
    transition: color 0.2s ease-in-out;
}

.icon-links a:hover {
    color: var(--cyber-gold);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* Dedicated Navigation Menu (Solid Gold Background with Clean Black Text) */
.nav-menu-bar {
    background-color: var(--cyber-gold); /* Rich solid gold foundation */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-menu-bar .nav-link {
    color: #000000; /* Swapped to pure black text for crisp contrast on gold */
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    transition: color 0.2s ease-in-out;
}

.nav-menu-bar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #000000; /* Subtle black accent line indicator on hover */
    transition: all 0.2s ease-in-out;
    transform: translateX(-50%);
}

.nav-menu-bar .nav-link:hover::after,
.nav-menu-bar .nav-link.active::after {
    width: 80%;
}

.nav-menu-bar .nav-link:hover, 
.nav-menu-bar .nav-link.active {
    color: #000000;
    opacity: 0.75; /* Smooth fade effect when highlighting items over gold */
    background-color: transparent;
}

/* Global Buttons */
.btn-fusion {
    background-color: #ffffff;
    border: 2px solid var(--vibrant-green);
    color: var(--vibrant-green);
    font-weight: 700;
    transition: all 0.3s ease-in-out;
}

.btn-fusion:hover {
    background-color: var(--nvidia-green);
    border-color: var(--nvidia-green);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(118, 185, 0, 0.4);
}

/* Hero Section */
.hero-bg-fade {
    background: linear-gradient(rgba(245, 245, 247, 0.9), rgba(229, 229, 234, 0.85)), 
                url('../img/hero-bg.jpg') center/cover no-repeat;
}

.bg-fade-section {
    background-color: var(--silver-secondary);
}

/* Footer Styling (Dark Hardware Gradient) */
footer {
    background: linear-gradient(135deg, #050505 0%, #161616 100%);
    border-top: 2px solid var(--nvidia-green);
    padding: 60px 0 30px 0;
}

footer, 
footer p, 
footer .text-muted {
    color: #b0b0b5 !important;
}

footer h5, 
footer h4, 
footer a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--nvidia-green) !important;
    text-shadow: 0 0 8px rgba(118, 185, 0, 0.4);
}

.newsletter-input {
    background-color: #222225 !important;
    border: 1px solid #3a3a3f !important;
    color: #ffffff !important;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    padding: 10px 15px;
}

.newsletter-input::placeholder {
    color: #77777c;
}

.newsletter-input:focus {
    border-color: var(--nvidia-green) !important;
    box-shadow: 0 0 10px rgba(118, 185, 0, 0.3);
    outline: none;
}

.newsletter-btn {
    background-color: var(--vibrant-green);
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    padding: 0 20px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    transition: var(--transition-smooth);
}

.newsletter-btn:hover {
    background-color: var(--nvidia-green);
    box-shadow: 0 0 15px rgba(118, 185, 0, 0.5);
    cursor: pointer;
}

footer .footer-bottom-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
    padding-top: 20px;
}

/* Floating Action Button */
.fab {
    background-color: #ffffff;
    color: var(--vibrant-green);
    border: 1px solid var(--silver-tertiary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 8px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.fab:hover {
    background-color: var(--vibrant-green);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(102, 163, 0, 0.4);
}

.floating-btns {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* Payment Icons */
.payment-icons {
    font-size: 1.8rem;
    gap: 12px;
}

.payment-icons .bi-cc-visa:hover {
    color: #1a1ebd; 
}

.payment-icons .bi-cc-mastercard:hover {
    color: #eb001b;
}

/* Layout and Components */
.fluid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--primary-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    font-weight: 800;
    background: linear-gradient(180deg, #111111 40%, var(--vibrant-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Grid Layout */
.fluid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    padding: 0 16px;
}

/* Fancy CSS Card Component */
.fancy-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fancy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--nvidia-green);
    transition: var(--transition-smooth);
}

.fancy-card:hover {
    transform: translateY(-8px);
    border-color: var(--nvidia-green);
    box-shadow: 0 15px 30px rgba(118, 185, 0, 0.15);
}

.card-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--vibrant-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 28px;
    border: 1px solid var(--silver-tertiary);
    transition: var(--transition-smooth);
}

.fancy-card:hover .card-icon-wrapper {
    background-color: var(--vibrant-green);
    color: #ffffff;
    border-color: var(--vibrant-green);
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.card-body {
    margin-bottom: 24px;
    line-height: 1.6;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-footer-action {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--vibrant-green);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.card-footer-action:hover {
    color: #000000;
}

.card-footer-action span {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.fancy-card:hover .card-footer-action span {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    .fancy-card {
        padding: 32px 24px;
    }
}