html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Prompt', sans-serif;
    background: #ffffff;
    color: #333;
    font-weight: 400;
}

/* ===== Navbar ===== */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.navbar-brand {
    font-weight: 600;
    color: #0d6efd;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 600; /* เมนูตัวหนา */
    color: #333;
}

.nav-link:hover {
    color: #0d6efd;
}
/* เพิ่มระยะห่างระหว่างเมนู */
.navbar-nav .nav-item {
    margin-left: 20px; /* เพิ่มช่องว่างด้านซ้ายของแต่ละเมนู ยกเว้นตัวแรก */
}

/* ปรับให้ตัวแรกไม่มี margin ซ้าย */
.navbar-nav .nav-item:first-child {
    margin-left: 0;
}

/* ถ้าต้องการให้เมนูใหญ่ขึ้นและอ่านง่าย */
.navbar-nav .nav-link {
    padding: 0.5rem 0.75rem; /* ปรับ padding ด้านบน/ล่าง และซ้าย/ขวา */
}

/* ===== Hero ===== */
.hero {
/* ใช้สัดส่วนของภาพ 1000x400 = 2.5:1 */
	position: relative;
    aspect-ratio: 1000 / 400; /* คงสัดส่วนภาพโดยอัตโนมัติ */
    width: 100%; /* เต็มความกว้างหน้าจอ */
    background: linear-gradient(
        rgba(13,110,253,0.55),
        rgba(13,110,253,0.55)
    ),
    url("https://via.placeholder.com/1600x900?text=Luxury+IT+Solution");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 20px 0;
}
/* ===== Responsive สำหรับมือถือ ===== */
@media (max-width: 768px) {
    .hero-slide {
        height: auto;     /* สูงอัตโนมัติ */
        min-height: 200px;  /* กำหนดขั้นต่ำเพื่อไม่เล็กเกินไป */
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin: 10px 0;
    }
}
}
/* ===== Section ===== */
section {
    padding: 90px 0;
}

.section-light {
    background: #eaf4ff;
}

.section-title {
    color: #0d6efd;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

/* ===== Card ===== */
.service-box {
    background: #fff;
    border-radius: 15px;
    padding: 35px;
    font-weight: 500;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: 0.4s;
}

.service-box:hover {
    transform: translateY(-8px);
}

/* ===== Fade Animation ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Footer ===== */
footer {
    background: #0d6efd;
    color: #fff;
    font-weight: 400;
    text-align: center;
    padding: 20px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
}
/* ===== Hero Slider ===== */
.hero-slide {
    position: relative;
    width: 100%;
    hight: 100%
    overflow: hidden;
}

.hero-img {
    width: 100%;   /* ย่อ/ขยายตามหน้าจอ */
    height: auto;  /* รักษาสัดส่วนภาพ */
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 2.5rem;
}

.hero-content p {
    font-size: 1.1rem;
}


/* Smooth Fade ตอนเปลี่ยน Slide */

.carousel-item {
    transition: opacity 1.5s ease-in-out;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.hero-img {
        height: 100%;   /* สูงปรับอัตโนมัติ ตามสัดส่วน */
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}
