@charset "UTF-8";

/* Default page-container (black background, white text) */
.page-container {
    background-color: #000; /* Default background is black */
    color: #fff; /* Default text color is white */
    transition: background-color 0.6s ease, color 0.6s ease; /* Smooth transition for background and text color */
    max-width: 100%;
    padding: 0; /* Remove all padding */
    box-sizing: border-box;
    min-height: 100vh; /* Ensure full viewport height coverage */
}

/* Page container when color-switch is activated (white background, black text) */
.page-container.color-switch {
    background-color: #fff; /* Background changes to white */
    color: #000; /* Text color changes to black */
}

/* Center content vertically and horizontally */
.kaizen-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1500px; /* Limit section width */
    margin: 0 auto; /* Center sections horizontally */
    padding: 0 20px; /* Internal padding */
}

/* Title Styles */
.title {
    font-size: clamp(2rem, 5vw, 7.5rem); /* Responsive font size scaling */
    margin-bottom: 2rem;
    white-space: nowrap; /* Prevent line breaks */
    overflow: hidden; /* Prevent overflow */
    text-overflow: ellipsis; /* Add ellipsis if text overflows */
    text-align: center; /* Center text */
    line-height: 1; /* Ensure consistent text height */
}

/* Responsive adjustments for Title */
@media (max-width: 1200px) {
    .title {
        font-size: clamp(2rem, 4.5vw, 6rem); /* Adjust font size for medium screens */
    }
}

@media (max-width: 900px) {
    .title {
        font-size: clamp(1.5rem, 4vw, 4.5rem); /* Adjust font size for smaller screens */
        padding: 0 10px; /* Add padding to prevent text from touching edges */
    }
    
    .kaizen-col.image-col {
        padding: 0;
        padding-top: 20px;
        padding-bottom:20px;
    }
}

@media (max-width: 600px) {
    .title {
        font-size: clamp(1.25rem, 3.5vw, 3.5rem); /* Adjust font size for very small screens */
        padding: 0 5px; /* Add padding to prevent text from touching edges */
    }
}

/* Default (Desktop/Laptop) */
.kaizen-title {
    color: #ff6600;
    font-size: 2.5em;
}

/* Tablet (768px to 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .kaizen-title {
        font-size: 2em;
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
    .kaizen-title {
        font-size: 1.5em;
    }
}


/* KAIZEN GRID SETTINGS */
.kaizen-group {
    display: grid;
    grid-gap: 10px; /* Add spacing between grid items */
}

.kaizen-grid-1 { 
    grid-template-columns: 1fr; 
    min-height: 800px; 
}
.kaizen-grid-2 { 
    grid-template-columns: repeat(2, 1fr); 
    min-height: 100vh; 
}
.kaizen-grid-3 { 
    grid-template-columns: repeat(3, 1fr); 
    min-height: 800px; 
}
.kaizen-grid-4 { 
    grid-template-columns: repeat(4, 1fr); 
    min-height: 800px; 
}
.kaizen-grid-5 { 
    grid-template-columns: repeat(5, 1fr); 
    min-height: 800px; 
}
.kaizen-grid-6 { 
    grid-template-columns: repeat(6, 1fr); 
    min-height: 800px; 
}

.kaizen-col {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    padding: 20px;
    text-align: center; /* Center text within the column */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .kaizen-grid-2,
    .kaizen-grid-3,
    .kaizen-grid-4,
    .kaizen-grid-5,
    .kaizen-grid-6 {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for medium screens */
    }

    .page-container {
        padding: 15px; /* Adjust padding for smaller screens */
    }
}

@media (max-width: 900px) {
    .kaizen-grid-2,
    .kaizen-grid-3,
    .kaizen-grid-4,
    .kaizen-grid-5,
    .kaizen-grid-6 {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }

    .page-container {
        padding: 0px; /* Adjust padding for even smaller screens */
    }
}

/* Individual Element Animation Class */
.anime {
    opacity: 0;
    transform: translateY(10px); /* Reduced from 20px to 10px */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.anime.fade-in-up {
    opacity: 1;
    transform: translateY(0); /* Changed from -10px to 0 - no upward movement */
}

.anime.fade-out-up {
    opacity: 0;
    transform: translateY(-5px); /* Reduced from 10px to -5px */
}

.anime.fade-in-down {
    opacity: 1;
    transform: translateY(0); /* Changed from 10px to 0 */
}

.anime.fade-out-down {
    opacity: 0;
    transform: translateY(5px); /* Reduced from -10px to 5px */
}

.animeimage {
    opacity: 0;
    transform: translateY(10px); /* Reduced from 20px to 10px */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    max-width: 600px;
    width: 100%;
    height: auto;
}

/* Ensure images inside animeimage containers are responsive */
.animeimage img {
    max-width: 100%;
    height: auto;
    width: 100%;
}

.animeimage.fade-in-up {
    opacity: 1;
    transform: translateY(0); /* Changed from -10px to 0 */
}

.animeimage.fade-out-up {
    opacity: 0;
    transform: translateY(-5px); /* Reduced from 10px to -5px */
}

.animeimage.fade-in-down {
    opacity: 1;
    transform: translateY(0); /* Changed from 10px to 0 */
}

.animeimage.fade-out-down {
    opacity: 0;
    transform: translateY(5px); /* Reduced from -10px to 5px */
}