/* ================== GOOGLE FONT ================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ================== GLOBAL RESET ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* ================== HEADER ================== */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: #222;
    color: #fff;
}

header img {
    height: 60px;
    border-radius: 10px;
}

header h1 {
    font-size: 28px;
    letter-spacing: 1px;
}

/* ================== SLIDER ================== */
.slider {
    width: 600px;
    height: 350px;
    margin: 50px auto;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slides img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    opacity: 0;
    transform: scale(0.8);
    animation: sliderAnimation 27s infinite;
    transition: transform 1s, opacity 1s;
}

/* Sequential delay for each image */
.slides img:nth-child(1) { animation-delay: 0s; }
.slides img:nth-child(2) { animation-delay: 3s; }
.slides img:nth-child(3) { animation-delay: 6s; }
.slides img:nth-child(4) { animation-delay: 9s; }
.slides img:nth-child(5) { animation-delay: 12s; }
.slides img:nth-child(6) { animation-delay: 15s; }
.slides img:nth-child(7) { animation-delay: 18s; }
.slides img:nth-child(8) { animation-delay: 21s; }
.slides img:nth-child(9) { animation-delay: 24s; }

/* Animation keyframes */
@keyframes sliderAnimation {
    0% { opacity: 0; transform: scale(0.8); }
    5% { opacity: 1; transform: scale(1); }
    25% { opacity: 1; transform: scale(1); }
    30% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 0; transform: scale(0.8); }
}

/* ================== CONTENT SECTION ================== */
.content-section {
    padding: 20px 40px;
    max-width: 1200px;
    margin: auto;
}

/* Description */
.description p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Functions */
.functions {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.functions .column h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2e7d32;
}

.functions .column ul {
    list-style: disc;
    margin-left: 20px;
}

/* Door Types */
.door-types {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.door-types h4 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.door-types ul {
    list-style: square;
    margin-left: 20px;
}

/* Footer Bar */
.footer-bar {
    height: 10px;
    background: #2e7d32;
    margin-top: 50px;
    border-radius: 5px;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 900px) {
    .functions, .door-types {
        flex-direction: column;
    }

    .slider {
        width: 90%;
        height: 250px;
    }
}
