* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body {
    background: #f4f6f9;
    color: #333;
    line-height: 1.6;
}


/* Navbar */

nav {

    background: #07377e;
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav .logo {

    font-size: 22px;
    font-weight: 600;

}

nav ul {

    list-style: none;
    display: flex;

}

nav ul li {

    margin-left: 20px;

}

nav ul li a {

    color: white;
    text-decoration: none;
    font-size: 16px;

}

nav ul li a:hover {

    color: #ffcc00;

}


/* Hero */

.hero {

    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;

}

.hero-slideshow {

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;

}

.hero-slide {

    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    object-fit: cover;
    animation: fadeIn 0.8s;

}

.hero-slide.active {

    display: block;

}

.hero-slide::before {

    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);

}

.hero-content {

    position: relative;
    z-index: 10;

}

.hero h1 {

    font-size: 50px;

}

.hero p {

    font-size: 22px;

    margin: 20px 0;

}

.hero button {

    padding: 12px 30px;
    border: none;
    background: #ffcc00;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;

}

.hero button:hover {

    background: #ffaa00;

}


/* section */

section {

    padding: 80px 40px;

}

.section-title {

    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #0d47a1;

}


/* about */

.about {

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;

}

.slideshow {

    position: relative;
    width: 500px;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

}

.slide {

    width: 100%;
    height: auto;
    display: none;
    border-radius: 10px;
    animation: fadeIn 0.8s;

}

.slide.active {

    display: block;

}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.about img {

    width: 500px;
    max-width: 100%;
    border-radius: 10px;

}

.about-text {

    flex: 1;

}


/* services */

#services {
    background-color: #F5F5DC;
}

.services {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;

}

.card {

    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;

}

.card:hover {

    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

}

.card h3 {

    margin-bottom: 10px;
    color: #0d47a1;

}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* contact */

.contact {

    text-align: center;

}

.contact p {

    font-size: 18px;
    margin: 10px;

}


/* footer */

footer {

    background: #0d47a1;
    color: white;
    text-align: center;
    padding: 20px;

}


/* responsive */

@media(max-width: 1200px) {
    .services {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media(max-width: 768px) {

    .hero h1 {
        font-size: 32px;
    }

    nav {
        flex-direction: column;
        padding: 10px 20px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }

    nav ul li {
        margin: 5px 10px;
    }

    section {
        padding: 60px 20px;
    }

    .about {
        gap: 20px;
    }

    .slideshow {
        width: 100%;
    }

    .about img {
        width: 100%;
    }

    .services {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .card {
        padding: 20px;
    }

}

@media(max-width: 480px) {

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    nav {
        padding: 10px;
    }

    nav .logo {
        font-size: 18px;
    }

    nav ul li {
        margin: 5px;
        font-size: 14px;
    }

    nav ul li a {
        font-size: 14px;
    }

    section {
        padding: 40px 15px;
    }

    .services {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card {
        padding: 15px;
    }

    .card h3 {
        font-size: 18px;
    }

}
