/* ==========================================================================
   THE OLDE PICKLE FACTORY - CUSTOM CSS
   ========================================================================== */

:root {
    --industrial-dark: #2c3e50;
    --industrial-steel: #546e7a;
    --industrial-light: #eceff1;
    --industrial-accent: #ff6b35;
    --industrial-concrete: #95a5a6;
    --pickle-green: #4CAF50;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
}

/* ==========================================================================
   FEATURED SPACES GALLERY STYLES
   ========================================================================== */

.image-gallery-featured {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.gallery-slide.active {
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.gallery-nav:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

.gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: var(--industrial-accent);
    transform: scale(1.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    padding-top: 80px; /* Account for fixed navbar */
}

/* ==========================================================================
   NAVIGATION STYLES
   ========================================================================== */

.navbar {
    background-color: var(--industrial-dark) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 80px;
}

.navbar-brand {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-light) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--industrial-light) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--industrial-accent) !important;
}

/* ==========================================================================
   HERO SECTION STYLES
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, var(--industrial-dark) 0%, var(--industrial-steel) 100%);
    color: var(--text-light);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

/* Background image with overlay */
.hero.with-background {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.35)),
         url("../images/Aerial-view.jpg");
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

/* Background image with overlay */
.hero.with-background2 {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.35)),
         url("../images/Map.jpg");
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

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

.hero h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero .lead {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ==========================================================================
   SECTION STYLES
   ========================================================================== */

.section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    color: var(--industrial-dark);
    letter-spacing: 1px;
}

.content-section {
    padding: 6rem 0;
}

.content-section.alt-bg {
    background-color: var(--industrial-light);
}

/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */

.btn-industrial {
    background-color: var(--industrial-accent);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 2px;
    text-decoration: none;
    display: inline-block;
}

.btn-industrial:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    color: white;
}

/* ==========================================================================
   CARD STYLES
   ========================================================================== */

.service-card {
    background: white;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--industrial-accent);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--industrial-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--industrial-dark);
}

/* ==========================================================================
   STATS STYLES
   ========================================================================== */

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    text-align: center;
    min-width: 100px;
}

.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--industrial-accent);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--industrial-steel);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.footer {
    background: var(--industrial-steel);
    color: var(--text-light);
    padding: 3rem 0 2rem;
}

.footer h5 {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--industrial-accent);
}

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

.footer li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--industrial-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--industrial-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--industrial-light);
    opacity: 0.8;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .navbar {
        min-height: 70px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .content-section {
        padding: 4rem 0;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   IMAGE EFFECTS FOR THE OLDE PICKLE FACTORY
   ========================================================================== */

/* 1. INDUSTRIAL FRAME EFFECT - Recommended for main content images */
.image-industrial {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.image-industrial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid var(--industrial-accent);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.image-industrial:hover::before {
    opacity: 1;
}

.image-industrial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.image-industrial img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-industrial:hover img {
    transform: scale(1.05);
}

/* 2. HERITAGE POLAROID EFFECT - Great for historical photos */
.image-heritage {
    background: white;
    padding: 15px 15px 45px 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    display: inline-block;
    border-radius: 2px;
}

.image-heritage:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.image-heritage img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(15%);
    transition: filter 0.3s ease;
}

.image-heritage:hover img {
    filter: sepia(0%);
}

.image-heritage::after {
    content: attr(data-caption);
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--industrial-steel);
    text-align: center;
}

/* 3. BLUEPRINT EFFECT - Perfect for facility layouts */
.image-blueprint {
    position: relative;
    border: 2px solid var(--industrial-steel);
    border-radius: 4px;
    background: #f8f9fa;
    padding: 10px;
    transition: all 0.3s ease;
}

.image-blueprint::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px dashed var(--industrial-steel);
    opacity: 0.5;
    border-radius: 2px;
}

.image-blueprint:hover {
    border-color: var(--industrial-accent);
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.image-blueprint img {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.1) brightness(0.95);
    transition: filter 0.3s ease;
}

.image-blueprint:hover img {
    filter: contrast(1.2) brightness(1);
}

/* 4. STEEL PLATE EFFECT - Bold industrial look */
.image-steel {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(45deg, #e0e0e0, #f5f5f5);
    padding: 8px;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.1),
        0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.image-steel::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 8px;
    height: 8px;
    background: var(--industrial-steel);
    border-radius: 50%;
    box-shadow: 
        20px 0 0 var(--industrial-steel),
        0 20px 0 var(--industrial-steel),
        20px 20px 0 var(--industrial-steel);
    opacity: 0.6;
    z-index: 2;
}

.image-steel:hover {
    transform: translateY(-3px);
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.15),
        0 12px 25px rgba(0,0,0,0.15);
}

.image-steel img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.image-steel:hover img {
    transform: scale(1.02);
}

/* 5. VINTAGE BADGE EFFECT - For awards, certifications, logos */
.image-badge {
    position: relative;
    display: inline-block;
    padding: 20px;
    background: radial-gradient(circle, var(--industrial-light) 0%, #e0e0e0 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 0 3px white,
        0 0 0 6px var(--industrial-accent),
        0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.image-badge:hover {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 
        0 0 0 3px white,
        0 0 0 6px var(--pickle-green),
        0 12px 25px rgba(0,0,0,0.2);
}

.image-badge img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 50%;
}

/* 6. SIMPLE MODERN HOVER - Clean and professional */
.image-modern {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.image-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255,107,53,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modern:hover::after {
    opacity: 1;
}

.image-modern:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.image-modern img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

/* ==========================================================================
   USAGE EXAMPLES & HELPER CLASSES
   ========================================================================== */

/* Caption overlay for any image */
.image-caption {
    position: relative;
}

.image-caption::after {
    content: attr(data-caption);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-caption:hover::after {
    transform: translateY(0);
}

/* Responsive image containers */
.image-container {
    margin-bottom: 2rem;
}

.image-container.small {
    max-width: 300px;
}

.image-container.medium {
    max-width: 500px;
}

.image-container.large {
    max-width: 800px;
}

/* Gallery grid for multiple images */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.image-gallery .image-industrial,
.image-gallery .image-heritage,
.image-gallery .image-modern {
    height: 250px;
}

.image-gallery img {
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   RECOMMENDED USAGE BY CONTENT TYPE
   ========================================================================== */

/*
USAGE GUIDE:

1. .image-industrial - Main facility photos, current building shots
   <div class="image-industrial">
     <img src="facility.jpg" alt="Manufacturing facility">
   </div>

2. .image-heritage - Historical photos from Heinz, Fisher-Price, SIGMA eras
   <div class="image-heritage" data-caption="Heinz Factory 1925">
     <img src="historical.jpg" alt="Historical photo">
   </div>

3. .image-blueprint - Floor plans, site maps, technical drawings
   <div class="image-blueprint">
     <img src="floorplan.jpg" alt="Building layout">
   </div>

4. .image-steel - Heavy industrial equipment, manufacturing machinery
   <div class="image-steel">
     <img src="equipment.jpg" alt="Manufacturing equipment">
   </div>

5. .image-badge - Company logos, certifications, awards
   <div class="image-badge">
     <img src="logo.jpg" alt="Company logo">
   </div>

6. .image-modern - Office spaces, clean modern areas, people at work
   <div class="image-modern">
     <img src="office.jpg" alt="Modern office space">
   </div>
*/


/*CSS for Sliding Gallery*/
<style>
.sliding-gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: white;
    padding: 2rem;
}

.sliding-gallery {
    display: flex;
    animation: slideGallery 80s linear infinite;
    /* Width calculation: 16 slides × (300px + 2rem margin) = approximately 5120px */
    width: 5120px;
}

.gallery-slide-item {
    flex: 0 0 300px; /* Fixed width for each slide */
    margin-right: 2rem;
    position: relative;
}

.gallery-slide-item .image-industrial {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.gallery-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-slide-item:hover img {
    transform: scale(1.05);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-slide-item:hover .slide-caption {
    transform: translateY(0);
}

/* Animation keyframes - moves exactly half the total width for seamless loop */
@keyframes slideGallery {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-2560px); /* Exactly half of total width (5120px ÷ 2) */
    }
}

/* Pause animation when hovering over gallery */
.sliding-gallery-container:hover .sliding-gallery {
    animation-play-state: paused;
}

/* Gallery Controls */
.gallery-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.gallery-control-btn {
    background: rgba(44, 62, 80, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-control-btn:hover {
    background: var(--industrial-accent);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-slide-item {
        flex: 0 0 250px;
        margin-right: 1rem;
    }
    
    .gallery-slide-item .image-industrial {
        height: 200px;
    }
    
    .sliding-gallery-container {
        padding: 1rem;
    }
    
    .sliding-gallery {
        /* Adjust width for mobile: 16 slides × (250px + 1rem margin) = approximately 4256px */
        width: 4256px;
    }
    
    @keyframes slideGallery {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-2128px); /* Half of mobile width */
        }
    }
}

/* Alternative animation speeds */
.gallery-slow {
    animation-duration: 90s !important;
}

.gallery-fast {
    animation-duration: 30s !important;
}

/* Paused state */
.gallery-paused {
    animation-play-state: paused !important;
}
</style>

