/* Front Page Styles */

/* ============================================
   ROOT VARIABLES & BASICS
   ============================================ */
:root {
    --brand-orange: #FF6B00;
    --brand-blue: #007BFF;
    --text-dark: #333;
    --text-body: #0b1611;
    --bg-light: #f9f9f9;
    --border-color: #E0E0E0;
}

.front-page-container {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--text-body);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    margin-top: 0px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

/* Dark Gradient Overlay for Contrast */
.hero-slide {
    /* Ensure image stay within bounds */
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff88;
    -webkit-text-stroke: 1px var(--text-dark);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #87e210;
    font-weight: 200;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background: var(--brand-orange);
    color: #fff;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* ============================================
   ABOUT SECTION (Company Info)
   ============================================ */
.section-padding {
    padding: 80px 20px;
}

/* About Section */
.about-section {
    background-color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background Logo */
.about-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 80%;
    /* Converted from background-image to img tag */
    object-fit: contain;
    /* opacity handled below */
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

.about-section .section-title,
.about-section .about-grid {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    color: var(--brand-blue);
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    text-align: left;
}

.about-text {
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    /* Slightly larger for intro text */
    line-height: 1.8;
    color: #555;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-orange);
    line-height: 1;
    margin-bottom: 5px;
}

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

.cert-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cert-img {
    height: 360px;
    width: auto;
    object-fit: contain;
    border: 1px solid #eee;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background: #fff;
    transition: transform 0.3s ease;
}

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

/* ============================================
   ANIMATION CLASSES
   ============================================ */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays if needed (utility classes) */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}


/* ============================================
   FACTORY & TEAM (Showcase)
   ============================================ */
.showcase-section {
    background: var(--bg-light);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.showcase-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-5px);
}

.showcase-img-wrapper {
    height: 300px;
    overflow: hidden;
}

.showcase-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase-item:hover .showcase-img-wrapper img {
    transform: scale(1.05);
}

.showcase-content {
    padding: 25px;
    text-align: center;
}

.showcase-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-section {
    background: #fff;
}

.categories-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.categories-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-group {
    background: #fff;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.category-group-title {
    font-size: 1.8rem;
    color: var(--brand-orange);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 1;
}

.category-list li {
    margin-bottom: 10px;
    padding-left: 0;
    list-style: none;
}

/* Remove old bullet */
.category-list li::before {
    display: none;
}

/* Block-level link with flexbox for image + text */
.category-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-body);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

/* Category thumbnail */
.category-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Hover effects */
.category-list a:hover {
    background-color: #fff;
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Arrow indicator */
.category-list a::after {
    content: "›";
    position: absolute;
    right: 15px;
    top: 48%;
    /* Visually center */
    transform: translateY(-50%);
    font-size: 1.4rem;
    line-height: 1;
    color: #ddd;
    transition: color 0.3s ease;
}

.category-list a:hover::after {
    color: var(--brand-blue);
}

/* Catalog Button */
.catalog-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 30px;
    background: transparent;
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.catalog-btn:hover {
    background: var(--brand-blue);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER CTA
   ============================================ */
.footer-cta {
    background: var(--brand-blue);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.footer-cta h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.footer-cta .cta-button {
    background: #fff;
    color: var(--brand-blue);
}

.footer-cta .cta-button:hover {
    background: var(--brand-orange);
    color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .showcase-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid,
    .categories-container,
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .category-list {
        columns: 1;
    }

    /* Mobile Certificate Slider */
    .cert-grid {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 20px;
        /* Space for scrollbar */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        /* Align left for scrolling */
    }

    .cert-img {
        height: 250px;
        /* Reduce height slightly for mobile */
        max-width: 80vw;
        flex-shrink: 0;
        scroll-snap-align: center;
    }
}