/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Container for consistent spacing */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #6366f1;
}

.nav-logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #6366f1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger menu for mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section with Animated Background */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button:hover {
    background: white;
    color: #6366f1;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Animated Background Elements */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

/* Projects Section */
.projects {
    background: #f8fafc;
}

.project-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.project-header p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Plot Area */
.plot-area {
    height: 400px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
    position: relative;
    overflow: hidden;
}

.plot-area > div {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

.plot-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.plot-controls button {
    background: #6366f1;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plot-controls button:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

/* Video Container */
.video-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.video-container video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
    .video-container::before {
        content: '';
        display: block;
        padding-top: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
    }
    
    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Video Info Section */
.video-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #6366f1;
}

.video-info p {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.video-info p:last-child {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Story Content */
.story-content {
    line-height: 1.8;
    color: #555;
}

.story-content p {
    margin-bottom: 1rem;
}

/* Project Overview */
.project-overview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.overview-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.overview-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Key Metrics */
.key-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111;
}

.metric-label {
    font-size: 1rem;
    color: #000;
    font-weight: 800;
    text-shadow: none;
    opacity: 1;
}

/* Performance Grid */
.performance-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.performance-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.performance-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.performance-description h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.performance-description p {
    color: #666;
    line-height: 1.6;
}

/* Animation Grid */
.animation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.animation-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.animation-gif {
    width: 100%;
    max-width: 500px;
    height: 400px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    background: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.animation-gif:hover {
    transform: scale(1.02);
}

.animation-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Static Plots Grid */
.static-plots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.plot-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.static-plot {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.static-plot:hover {
    transform: scale(1.02);
}

.plot-description h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.plot-description p {
    color: #666;
    line-height: 1.6;
}

/* Technical Details */
.technical-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #6366f1;
}

.tech-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

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

.tech-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    color: #555;
}

.tech-section li:last-child {
    border-bottom: none;
}

.tech-section strong {
    color: #333;
    font-weight: 600;
}

/* About Section */
.about {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1.1rem;
}

.skills h3 {
    margin-bottom: 1rem;
    color: #333;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    background: #f8fafc;
}

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

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
}

.contact-item i {
    color: #6366f1;
    font-size: 1.2rem;
}

.contact-item a {
    color: #333;
    text-decoration: none;
}

.contact-item a:hover {
    color: #6366f1;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .plot-controls {
        flex-direction: column;
        align-items: center;
    }
    
    /* Responsive design for new sections */
    .key-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .performance-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .animation-grid {
        grid-template-columns: 1fr;
    }
    
    .plot-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .technical-details {
        grid-template-columns: 1fr;
    }
    
    .project-overview {
        padding: 2rem 1rem;
    }
    
    .overview-content h3 {
        font-size: 1.8rem;
    }
    
    .overview-content p {
        font-size: 1rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
}

/* Time Savings Summary Styles */
.time-savings-summary {
    background: #f8fafc;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.summary-value {
    font-size: 2rem;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.summary-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.move-time-scenarios {
    margin-top: 2rem;
}

.move-time-scenarios h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.scenario-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.scenario-time {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.scenario-savings {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1e293b;
}

.warehouse-size-breakdown {
    margin-bottom: 2rem;
}

.warehouse-size-breakdown h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

.warehouse-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.warehouse-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.warehouse-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.warehouse-highlight {
    border-color: #6366f1;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.warehouse-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.warehouse-capacity {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.warehouse-savings {
    font-size: 1.2rem;
    font-weight: bold;
    color: #059669;
}

.warehouse-note {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 5px;
}

.summary-note {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
    font-style: italic;
}

.analysis-insight {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    border-radius: 12px;
    border-left: 4px solid #6366f1;
}

.analysis-insight h5 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.insight-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.insight-explanation {
    color: #374151;
    line-height: 1.6;
}

.insight-explanation ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.insight-explanation li {
    margin-bottom: 0.75rem;
}

.insight-metrics {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.metric-item {
    margin-bottom: 1.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.metric-bar {
    background: #e2e8f0;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.bar-small {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 80px;
}

.bar-large {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 80px;
}

.bar-medium {
    background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 60px;
    position: relative;
}

.bar-medium::after {
    content: "20% Utilization";
    position: absolute;
    left: 100%;
    margin-left: 8px;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.insight-conclusion {
    grid-column: 1 / -1;
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #0ea5e9;
}

.insight-conclusion p {
    margin: 0;
    color: #0c4a6e;
    font-weight: 500;
}

/* Time Breakdown Styles */
.time-breakdown {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.time-breakdown h4 {
    color: #f1f5f9;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.breakdown-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breakdown-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 0.25rem;
}

.breakdown-label {
    font-size: 0.9rem;
    opacity: 0.9;
    color: #f1f5f9;
}

/* Warehouse Project Styles */
.project-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.project-nav-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #6366f1;
    background: transparent;
    color: #6366f1;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.project-nav-btn:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

.project-nav-btn.active {
    background: #6366f1;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.warehouse-structure {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.structure-info, .cost-calculation {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #6366f1;
}

.formula-box {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.time-savings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.time-assumption {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.time-assumption h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #f1f5f9;
}

.time-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.time-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.time-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 0.25rem;
}

.time-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-align: center;
}

/* Responsive design for warehouse project */
@media (max-width: 768px) {
    .project-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .project-nav-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .warehouse-structure {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .time-savings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .time-metrics {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .time-metric {
        flex: 1;
        margin: 0 0.25rem;
    }
    
    .breakdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .breakdown-value {
        font-size: 1.2rem;
    }
    
    .breakdown-label {
        font-size: 0.8rem;
    }
    
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .summary-value {
        font-size: 1.5rem;
    }
    
    .scenario-savings {
        font-size: 1rem;
    }
    
    .warehouse-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .warehouse-item {
        padding: 1rem 0.75rem;
    }
    
    .warehouse-name {
        font-size: 1rem;
    }
    
    .warehouse-savings {
        font-size: 1.1rem;
    }
    
    .insight-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .analysis-insight {
        padding: 1rem;
    }
    
    .insight-metrics {
        padding: 1rem;
    }
}

/* New Visualization Styles */
.time-savings-visualizations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.time-viz-item {
    text-align: center;
}

.time-viz-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    background: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.time-viz-image:hover {
    transform: scale(1.02);
}

.time-viz-description h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.time-viz-description p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.business-impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.business-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    background: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.business-description h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.business-description p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.consistency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.consistency-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    background: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.consistency-description h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.consistency-description p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Plot Legend Styles */
.plot-legend {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.plot-legend h5 {
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.plot-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plot-legend li {
    padding: 0.25rem 0;
    color: #475569;
    line-height: 1.5;
    border-bottom: 1px solid #e2e8f0;
}

.plot-legend li:last-child {
    border-bottom: none;
    font-weight: 600;
    color: #1e293b;
    background: #dbeafe;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.plot-legend strong {
    color: #1e293b;
    font-weight: 600;
}

/* Responsive design for new visualization sections */
@media (max-width: 768px) {
    .time-savings-visualizations {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .business-impact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .consistency-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .performance-grid {
        grid-template-columns: 1fr;
    }
    
    .performance-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Utilization Analysis Styles */
.utilization-definition {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid #2196f3;
}

.utilization-definition h4 {
    color: #1565c0;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.utilization-definition p {
    color: #424242;
    line-height: 1.6;
    margin-bottom: 15px;
}

.utilization-definition p strong {
    color: #1565c0;
    font-weight: 600;
}

.definition-examples {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.example-item {
    color: #424242;
    line-height: 1.5;
}

.example-item strong {
    color: #1565c0;
    font-weight: 600;
}

.utilization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.utilization-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.utilization-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.utilization-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-bottom: 1px solid #e9ecef;
    background: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.utilization-description {
    padding: 20px;
}

.utilization-description h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.utilization-description p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 8px;
}

.utilization-description p strong {
    color: #007bff;
    font-weight: 600;
}

/* Utilization Insights */
.utilization-insights {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #28a745;
}

.utilization-insights h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.insight-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.insight-item h5 {
    color: #007bff;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.insight-item p {
    color: #495057;
    line-height: 1.5;
    margin: 0;
}

/* Implementation Guide Styles */
.implementation-guide {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
}

.implementation-guide h5 {
    color: #0369a1;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.guide-item {
    background: white;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 3px solid #0ea5e9;
}

.guide-item h6 {
    color: #0369a1;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.guide-item p {
    color: #374151;
    line-height: 1.5;
    margin-bottom: 8px;
}

.guide-item p strong {
    color: #0369a1;
    font-weight: 600;
}

/* Responsive Design for Utilization Analysis */
@media (max-width: 768px) {
    .utilization-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .utilization-item {
        margin-bottom: 15px;
    }
    
    .utilization-description {
        padding: 15px;
    }
    
    .utilization-insights {
        padding: 20px;
        margin-top: 20px;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .insight-item {
        padding: 15px;
    }
    
    .implementation-guide {
        padding: 15px;
        margin-top: 20px;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .guide-item {
        padding: 15px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
