:root {
    --primary-color: #3478A7;     /* Richer blue */
    --secondary-color: #0e4571;   /* Darker blue */
    --accent-color: #d68c45;      /* Warm orange/copper accent */
    --accent-secondary: #c2703a;  /* Slightly darker orange for hover states */
    --text-dark: #2c3e50;         /* Dark slate for text */
    --text-light: #f8f9fa;        /* Light gray for text on dark backgrounds */
    --light-bg: #eef2f6;          /* Light blue-gray background */
    --medium-bg: #d9e2ec;         /* Medium blue-gray for alternating sections */
    --dark-bg: #1e3a5d;           /* Deep blue for dark sections */
    --card-bg: #ffffff;           /* White for cards */
    --printer-bg-color: #152f4d;  /* Dark blue background for hero section */
}

/* Hidden elements - temporarily disabled but preserved for future re-enabling */
.hidden-element {
    display: none !important;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin-top: 56px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

/* Navigation */
.navbar {
    padding: 1.2rem 0;
    background: rgba(245, 247, 250, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: var(--secondary-color) !important;
    font-size: 1.3rem;
}

.nav-link {
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-link:hover:after {
    width: 80%;
    left: 10%;
}

/* Logo and Branding */
.logo-container {
    width: 60px;
    height: 60px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.navbar-brand:hover .logo-container {
    transform: scale(1.05);
}

/* Brand text styling */
.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .logo-container {
        width: 45px;
        height: 45px;
    }
    
    .brand-name {
        font-size: 1.3rem;
    }
    
    .brand-tagline {
        font-size: 0.85rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d1c2e 0%, var(--printer-bg-color) 40%, #0d1c2e 100%);
    color: white;
    padding: 8rem 0 6rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.04) 1%, transparent 1%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.04) 1%, transparent 1%),
        linear-gradient(45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.02) 75%);
    background-size: 50px 50px, 50px 50px, 100px 100px;
    opacity: 0.6;
    z-index: 1;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    /* Add subtle gradient to enhance the printer visibility */
    background: radial-gradient(circle at center, rgba(30, 58, 95, 0.3) 0%, transparent 70%);
}

.hero-center-image {
    height: 100%;
    width: auto;
    max-width: 70%;
    object-fit: contain;
    /* Darker and perfectly symmetrical transitions on both sides */
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    filter: drop-shadow(0 0 25px rgba(13, 41, 84, 0.6)) brightness(1.05);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-content h1,
.hero-content p,
.hero-content .lead {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.6);
    font-weight: 600;
}

.hero-content .btn {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.hero-content .btn-light {
    background-color: rgba(255, 255, 255, 0.9);
}

.hero-content .btn-outline-light {
    border-width: 2px;
}

/* Cards */
.card {
    border: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    text-align: center;
    background: var(--light-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1);
}

.laser-icon-container {
    position: relative;
    display: inline-block;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
}

.laser-beam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.laser-line {
    background-color: #ff0000;
    height: 2px;
    width: 60%;
    margin: 3px 0;
    box-shadow: 0 0 5px 2px rgba(255, 0, 0, 0.5);
}

.laser-line:first-child {
    width: 70%;
}

.laser-line:last-child {
    width: 50%;
}

@keyframes laser-pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.laser-line {
    animation: laser-pulse 1.5s infinite;
}

.laser-line:nth-child(2) {
    animation-delay: 0.2s;
}

.laser-line:nth-child(3) {
    animation-delay: 0.4s;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 0.5rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

.product-card img {
    height: 240px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.product-card .text-muted {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.7rem;
}

.product-card .card-body {
    padding: 1rem;
}

.product-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-card .card-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-card .card-footer {
    padding: 0.75rem 1rem;
}

/* Featured product section */
.featured-product {
    border-radius: 1rem;
    padding: 2rem;
    background-color: var(--light-bg);
}

.featured-product img {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.featured-product img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #0d1c2e 0%, #0a1625 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.1);
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 0.5rem;
}

.social-links a:hover {
    transform: translateY(-3px) rotate(5deg);
    color: var(--primary-color);
}

/* Page Headers */
.products-header, .services-header, .about-header {
    padding-top: 8rem !important;
    padding-bottom: 4rem !important;
    margin-top: -1.5rem;
    background-color: var(--dark-bg);
    padding-left: 1rem;
    padding-right: 1rem;
}

.products-header h1, .services-header h1, .about-header h1,
.products-header p, .services-header p, .about-header p {
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.products-header h1, .services-header h1, .about-header h1 {
    margin-top: 2rem;
}

/* Create a narrower content container while preserving navbar and headers */
.content-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 576px) {
    .content-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .content-container {
        max-width: 680px;
    }
}

@media (min-width: 992px) {
    .content-container {
        max-width: 800px;
    }
}

@media (min-width: 1200px) {
    .content-container {
        max-width: 900px;
    }
}

/* Remove earlier container modifications that made headers narrower */
.products-header .container, 
.services-header .container, 
.about-header .container,
.hero-section .container {
    max-width: 1200px;
}

/* Global container width adjustment */
.container {
    max-width: 1000px;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 920px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1000px;
    }
}

/* Keep navbar and header containers at original width */
.navbar .container,
.products-header .container,
.services-header .container,
.about-header .container,
.hero-section .container {
    max-width: 1200px;
}

@media (min-width: 1200px) {
    .navbar .container,
    .products-header .container,
    .services-header .container,
    .about-header .container,
    .hero-section .container {
        max-width: 1200px;
    }
}

/* Add more breathing space to sections */
section {
    padding: 3rem 0;
}

@media (min-width: 992px) {
    section {
        padding: 4rem 0;
    }
}

/* Improve content layout */
.card-body {
    padding: 1.5rem;
}

/* Enhanced featured creations section spacing */
.featured-gallery .row {
    margin-left: -10px;
    margin-right: -10px;
}

.featured-gallery .col-md-6,
.featured-gallery .col-lg-3 {
    padding-left: 10px;
    padding-right: 10px;
}

/* Better spacing for the product gallery */
.product-gallery .row {
    margin-left: -10px;
    margin-right: -10px;
}

.product-gallery .col-md-6,
.product-gallery .col-lg-3 {
    padding-left: 10px;
    padding-right: 10px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add animation delays for smoother cascading effect */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }

/* Initial state for elements - ensure they're visible by default if JS fails */
.no-js .fade-in {
    opacity: 1;
    transform: none;
}

/* Animations for featured creations */
.featured-creation-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.featured-creation-card.fadeIn {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.featured-creations-header h2 {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.featured-creations-header h2:after {
    content: '';
    position: absolute;
    width: 30%;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -8px;
    left: 35%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
}

/* About page image stack */
.image-stack img {
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.image-stack img:hover {
    transform: scale(1.02);
}

/* Ensure proper spacing between stacked images */
.image-stack .mb-3 {
    margin-bottom: 1rem !important;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 0 4rem;
    }
      .hero-center-image {
        max-width: 100%;
        height: auto;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
      .hero-content h1,
    .hero-content p,
    .hero-content .lead {
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.7);
    }
    
    .hero-content .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .hero-content .btn {
        width: 100%;
    }    .navbar {
        padding: 0.5rem 0;
    }

/* Enhanced Color Scheme Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-light);
}

.btn-accent:hover, .btn-accent:focus {
    background-color: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: var(--text-light);
}

.btn-outline-accent {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-accent:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-light);
}

/* Card styling */
.card {
    background-color: var(--card-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-title {
    color: var(--secondary-color);
}

/* Section styling */
.bg-primary-light {
    background-color: var(--light-bg);
}

.bg-primary-medium {
    background-color: var(--medium-bg);
}

.bg-primary-dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.bg-accent {
    background-color: var(--accent-color);
    color: var(--text-light);
}

/* Product Gallery Styles */
.product-gallery {
    min-height: 800px;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--card-bg);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.product-card .text-muted {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.7rem;
}

.product-card .card-body {
    padding: 1rem;
}

.product-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-card .card-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-card .card-footer {
    padding: 0.75rem 1rem;
}

/* Product Filter Controls */
.filter-controls {
    margin-bottom: 1.5rem;
}

.filter-buttons {
    padding: 0.5rem;
    background-color: rgba(248, 249, 250, 0.9);
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: inline-flex;
}

.filter-buttons .btn {
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 100px;
    font-size: 0.95rem;
}

.filter-buttons .btn.active {
    transform: scale(1.05);
}

.filter-buttons .btn:hover {
    transform: translateY(-2px);
}

/* Additional style enhancement for filter buttons */
.filter-buttons .btn-outline-primary {
    background-color: transparent;
    border-width: 1.5px;
}

.filter-buttons .btn-outline-primary:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-color: #0d6efd;
}

.filter-buttons .btn-primary {
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.3);
}

/* Featured Products Styles */
#featured-products {
    background: linear-gradient(145deg, var(--light-bg), var(--medium-bg));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 3rem 0;
}

.featured-product-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.featured-product-card.fadeIn {
    opacity: 1;
    transform: translateY(0);
}

.featured-description {
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

.featured-description:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(transparent, var(--card-bg));
}

/* Modal Styles */
.modal-header {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.modal-body img {
    max-height: 400px;
    object-fit: contain;
    width: 100%;
}

/* Enhanced element styling with new color scheme */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline-primary.active {
    background-color: var(--primary-color);
    color: white;
}

.bg-primary-dark {
    background-color: var(--dark-bg);
}

.bg-primary-light {
    background-color: var(--light-bg);
}

.bg-medium-bg {
    background-color: var(--medium-bg);
}

.text-accent {
    color: var(--accent-color);
}

/* Hero section with new background */
.hero-section {
    background-color: var(--printer-bg-color);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Featured creations styling */
.divider-custom {
    width: 100%;
    max-width: 7rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.divider-custom .divider-custom-line {
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    opacity: 0.3;
    border-radius: 1px;
}

.divider-custom .divider-custom-icon {
    padding: 0 1rem;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.featured-creations-container {
    position: relative;
    z-index: 1;
}

.featured-creations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.featured-creation-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
}

.featured-creation-card.fadeIn {
    opacity: 1;
    transform: translateY(0);
}

.featured-creation-card:hover {
    transform: translateY(-5px);
    z-index: 5;
}

.featured-creation-content {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05), 0 2px 6px rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    position: relative;
    transition: box-shadow 0.3s ease;
}

.featured-creation-card:hover .featured-creation-content {
    box-shadow: 0 8px 15px rgba(0,0,0,0.1), 0 5px 10px rgba(0,0,0,0.08);
}

.featured-creation-image {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.featured-creation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-creation-card:hover .featured-creation-image img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.category-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.featured-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    padding: 0.4rem 0.8rem;
}

.featured-creation-info {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.product-excerpt {
    flex-grow: 1;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
    opacity: 0.9;
}

/* Section wrappers and better defined sections */
.section-wrapper {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.section-wrapper:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Make all sections visually distinct */
section {
    position: relative;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

section:last-child {
    border-bottom: none;
}

.bg-light {
    background-color: #f8f9fa;
}

.bg-medium {
    background-color: var(--medium-bg);
}

/* Category badge for featured creations */
.category-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0 0 5px 0;
}

.featured-creation-info {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-creation-info .product-title {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    font-weight: 600;
}

.featured-creation-info .product-excerpt {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.7rem;
    flex-grow: 1;
}

.featured-creation-info .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    align-self: flex-start;
}

/* Fix image sizing for featured products */
.featured-creation-image {
    position: relative;
    height: 120px;
    overflow: hidden;
}

/* Category Showcase Styling */
.category-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    width: 100%;
}

.category-showcase-card {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 1rem;
}

.category-showcase-card.fadeIn {
    opacity: 1;
    transform: translateY(0);
}

.category-showcase-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.category-showcase-card:hover .category-showcase-content {
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.category-header {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.category-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-showcase-content .card-body {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content */
    text-align: center;
    padding: 0.75rem;
    flex-grow: 1;
}

.category-showcase-content .card-img-container {
    width: 60px;
    height: 60px; /* Much smaller image size - 1/10th */
    margin: 0 auto 1rem;
    position: relative;
    overflow: hidden;
    border-radius: 50%; /* Make it round */
    border: 2px solid rgba(0,0,0,0.1);
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-showcase-card:hover .gallery-card-img {
    transform: scale(1.05);
}

.category-description {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.category-description p {
    flex-grow: 1;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.3;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

/* Media queries for category showcase - match product gallery responsiveness */
@media (min-width: 992px) {
    .category-showcase-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 per row like gallery */
    }
}

@media (max-width: 991px) {
    .category-showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .category-showcase-grid {
        grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
        gap: 0.6rem;
    }
    
    .card-img-container {
        height: 50px;
        width: 50px;
    }
    
    .category-showcase-content .card-body {
        padding: 0.5rem;
    }
    
    .category-description p {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Featured Gallery Styling */
.featured-gallery {
    margin-bottom: 2rem;
}

.featured-category-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.featured-category-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.featured-img {
    height: 200px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
    object-position: center;
    width: 100% !important;
    display: block !important;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.product-card:hover .featured-img,
.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.featured-section {
    position: relative;
    padding: 3rem 0;
}

.product-gallery .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
}

.featured-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 35%, rgba(52, 120, 167, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 44%, rgba(214, 140, 69, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.category-title {
    color: var(--secondary-color);
}

/* Make featured products section narrower */
#featured-products .container {
    max-width: 1000px;
}

@media (min-width: 576px) {
    #featured-products .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    #featured-products .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    #featured-products .container {
        max-width: 920px;
    }
}

@media (min-width: 1200px) {
    #featured-products .container {
        max-width: 1000px;
    }
}

/* Ensure the images maintain a consistent aspect ratio */
.featured-img {
    aspect-ratio: 4/3;
    object-fit: cover;
}