/* ======================================================================
   home.css
   PURPOSE:
   - Page-specific styles for home.html ONLY
   - Includes: Hero slider, services, product intro, certificate, map
   WARNING:
   - Do NOT use for shared layout (header / footer)
   - Editing this file affects ONLY home page
   ====================================================================== */

/* [SECTION 1] HERO SECTION */
.hero {
    height: 100vh;
    position: relative;
    pointer-events: none;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0px;
}

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

.hero-content h1 {
    font-size: 35px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.highlight {
    color: #c50424;
}

.align-start {
    display: inline-block;
    padding-left: 200px;
    width: 100%;
    box-sizing: border-box;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* [SECTION 2] HERO SLIDER (BACKGROUND IMAGES)
   Controlled by: JavaScript (adds/removes .active)*/
.slides-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* [SECTION 3] HERO PAGINATION DOTS */
.pagination-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.dot.active {
    width: 16px;
    background-color: white;
    border-radius: 10px;
}

/* [SECTION 4] GENERIC SECTION LAYOUT
   Used by:
   - services
   - products
   - certificate
   - map    */
section {
    padding: 80px 50px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #c41e3a;
}

.section-title p {
    color: #666;
    font-size: 16px;
}

/* [SECTION 5] SERVICES SECTION */
.services {
    background: #F5F5F4;
    color: white;
}

.services .section-title h2 {
    color: #c41e3a;
}

.services .section-title p {
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #E2E8F0;
    width: 100%;
    height: 300px;
    padding: 0;
    display: flex;
    overflow: hidden;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: 10px 8px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-out;
}

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

.service-number {
    font-size: 25px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    background-color: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: left;
    align-items: flex-end;
    padding-bottom: 20px;
    padding-left: 10px;
    box-sizing: border-box;
}

.service-card:hover .service-number {
    background-color: rgba(0, 0, 0, 0.2);
    color: rgb(255, 255, 255);
    text-shadow: rgb(0, 0, 0) 0px 0px 5px;
}

/* [SECTION 6] VIEW ALL BUTTON */
.view-all-btn {
    background: #C41E3A;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    margin-top: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
}

.view-all-btn:hover {
    background: #a01828;
}

/* [SECTION 7] PRODUCT INTRO */
.product-intro {
    background: #fffbfb;
    color: black;
}

.product-intro .section-title h2 {
    color: #c41e3a;
}

.product-intro .section-title p {
    color: #666;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.3s;
}

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

.product-image {
    width: 300px;
    height: 300px;
    background: #e0e0e0;
    border-radius: 12px;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.15);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.product-info {
    padding: 15px 5px;
    text-align: left;
}

.product-info h3 {
    color: #333;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.product-category {
    text-align: left;
    padding: 10px 20px 10px 0px;
}
.view-all-container {
    text-align: center;
    margin-top: 30px;
}

/* [SECTION 8] CERTIFICATE & MAP */
.certificate,
.map {
    background: #ffffff;
    text-align: center;
}

.cert-image,
.map-image {
    max-width: 600px;
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.cert-image {
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.certificate .section-title {
    margin-bottom: 0px;
}

.map-image {
    height: 400px;
    background: #e8f4f8;
}

/* =[SECTION 9] MISC / EMBED */
hr {
    border: none;
    border-top: 1px solid #444;
    margin: 20px 0;
}

iframe {
    width: 100%;
    border: none;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* [SECTION 10] RESPONSIVE */
@media (max-width: 1024px) {
    .hero {
        height: 40vh;
    }
    .hero-content h1 {
        font-size: 30px;
    }

    .align-start {
        padding-left: 100px;
    }

    .hero-content p {
        font-size: 16px;
    }

    section {
        padding: 60px 30px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .service-card {
        height: 250px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 35px;
    }

    .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .cert-image,
    .map-image {
        max-width: 90%;
        height: 300px;
    }
    .services-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        padding: 0 40px;
        overflow-x: visible;
    }

    .service-card {
        width: 105%;
        height: 200px;
        aspect-ratio: 1 / 1;
        border-radius: 10px;
        position: relative;
        overflow: hidden;
        transition: transform 0.3s ease;
    }

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

    .service-number {
        font-size: 18px !important;
        font-weight: bold;
        padding: 15px !important;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
        width: 100%;
        height: 100%;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        color: #ffffff;
    }
    .map {
        padding: 40px 10px !important;
    }

    .map iframe {
        width: 100% !important;
        height: 250px !important;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        display: block;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 30vh;
        display: flex;
        align-items: center;
    }

    .hero .hero-content h1 {
        font-size: 22px !important;
        line-height: 0.5;
        margin-top: 50px;
    }

    .hero .hero-content p {
        font-size: 14px !important;
        line-height: 1;
    }

    .hero .hero-content .align-start {
        text-align: center;
        width: 100%;
    }
    .pagination-dots {
        bottom: 10px;
        padding: 5px 10px;
    }
    .dot {
        width: 6px;
        height: 6px;
    }
    .product-intro .section-title h2 {
        font-size: 22px;
        line-height: 1.2;
    }
    .product-info .section-title p {
        font-size: 14px;
    }
    .products-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 15px 20px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .products-grid::-webkit-scrollbar {
        display: none;
    }

    .product-card {
        flex: 0 0 75%;
        width: 75%;
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: transparent;
    }

    .product-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .product-info {
        text-align: center;
        margin-top: 10px;
    }

    .product-info h3 {
        font-size: 15px !important;
        line-height: 1.4;
        color: #333;
        white-space: normal;
    }

    .view-all-container {
        margin-top: 10px !important;
        text-align: center;
    }

    .view-all-btn {
        margin-top: 0;
        padding: 8px 20px;
        font-size: 13px;
    }
    .services .section-title h2 {
            font-size: 22px !important;
            line-height: 1.2;
        }
    .services .section-title p {
            font-size: 14px !important;
        }
    
    .services-grid {
        display: flex;
        overflow-x: auto;
        padding: 10px 20px;
        gap: 15px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .service-card {
        flex: 0 0 70%;
        aspect-ratio: 1 / 1;
        scroll-snap-align: center;
    }

    .service-number {
        font-size: 16px !important;
        padding: 15px !important;
    }

    .services-grid::-webkit-scrollbar {
        display: none;
    }
    .certificate .section-title h2 {
        font-size: 22px;
        line-height: 1.2;
    }
    .certificate .section-title p {
        font-size: 14px;
    }
    .certificate {
        padding: 40px 10px !important;
        text-align: center;
    }

    .certificate img {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        display: block;
        margin: 0 auto
    }

    .map .section-title h2 {
        font-size: 22px;
        line-height: 1.2;
    }
    .map .section-title p {
        font-size: 14px;
    }
    .map {
        padding: 40px 10px !important;
    }

    .map iframe {
        width: 100% !important;
        height: 200px !important;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        display: block;
        margin: 0 auto;
    }
}