@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600&display=swap');
*,
*::before,
*::after {
    box-sizing: border-box;
}

body, main {
    font-family: 'Inter', sans-serif;
    color: black;
    background: #fcfcfc;
    margin: 0;
}

/* Web Design and Development Hero Section */
.webdesignanddev {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fcfcfc;
    animation: slideUp 0.8s ease-out forwards;
    padding: 15px 20px 60px 20px;
    gap: 10px;
}

.webdesignanddev h1 {
    font-size: 30px;
    line-height: 1.4;
    font-weight: bold;
    color: black;
    margin: 0;
}

.webdesignanddev p {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 300;
    color: #919191;
    margin: 0;
}

.free-benefit {
    width: max-content;
    display: inline-flex;
    background: rgba(255, 215, 0, 0.5);
    border-radius: 99px;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4px 10px;
}

.free-benefit p {
    font-size: 12px;
    line-height: 1.1;
    font-weight: 400;
    color: black;
    margin: 0;
}

.underline-yellow {
    text-decoration: underline 4px #FFD700;
    text-underline-offset: 3px;
}

.webdesignanddev-hero-btn {
    display: flex;
    flex-direction: row;
    padding-top: 10px;
    gap: 20px;
}

.quote-btn {
    display: inline-flex;
    background: black;
    cursor: pointer;
    padding: 10px 20px;
}

.quote-btn a {
    font-size: 12px;
    line-height: 1.1;
    font-weight: 400;
    color: white;
    text-decoration: none;
    margin: 0;
}

.example-btn {
    display: inline-flex;
    background: none;
    cursor: pointer;
    padding: 10px 20px;
}

.example-btn a {
    font-size: 12px;
    line-height: 1.1;
    font-weight: 400;
    color: black;
    text-decoration: underline;
    margin: 0;
}

.quote-btn:hover, .example-btn:hover {
    scale:1.025;
    font-weight: 500;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Target Section */
.webdesignanddev-target {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: none;
    animation: slideUp 0.8s ease-out forwards;
    padding: 0 20px 60px 20px;
    gap: 10px;
}
.webdesignanddev-target-slider {
  width: 100%;
  overflow: hidden;
  background: transparent;
}

.swiper-slide {
  width: 55%; 
  transition: transform 0.3s ease, opacity 0.3s ease;
  border: none;
  border-radius: 16px;
}

/* เมื่อสไลด์อยู่ตรงกลาง (Active) */
.swiper-slide-active {
  opacity: 1;
}

.webdesignanddev-target-slider .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: none;
  border-radius: 16px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes performanceSlide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Service Detail Section */
.webdesignanddev-detail {
    width: 100%;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.8s ease-out forwards;
    padding: 0 20px;
    gap: 20px;
}

.webdesignanddev-detail-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.webdesignanddev-detail-title h2 {
    font-size: 26px;
    line-height: 1.1;
    font-weight: bold;
    margin: 0;
}

.webdesignanddev-detail-title p {
    font-size: 16px;
    line-height: 1.1;
    font-weight: 300;
    color: #919191;
    margin: 0;
}

.webdesignanddev-detail-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-top: 0.1px solid rgba(145, 145, 145, 0.5);
    align-items: start;
    padding: 20px 0;
    gap: 10px;
}

.webdesignanddev-detail-box h3 {
    font-size: 18px;
    line-height: 1.1;
    font-weight: bold;
    cursor: pointer;
    margin: 0;
}

.webdesignanddev-detail-box h3:hover {
    text-decoration: underline;
}

.webdesignanddev-detail-box p {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 300;
    color:#919191;
    margin: 0;
}

.webdesignanddev-detail-box a {
    width: 100%;
    font-size: 10px;
    line-height: 1.5;
    font-weight: 300;
    color:#919191;
    text-decoration: underline;
    cursor: pointer;
    justify-content: center;
    text-align: center;
    margin: 0;
}

.webdesignanddev-detail-box a:hover {
    font-weight: 400;
}

.webdesignanddev-detail-box img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.webdesignanddev-detail-box p,
.webdesignanddev-detail-box img,
.webdesignanddev-detail-box a {
    display: none;
}

.webdesignanddev-detail-box.active p,
.webdesignanddev-detail-box.active img,
.webdesignanddev-detail-box.active a {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Recent Build Section */

.recent-build {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding: 60px 20px 0 20px;
    gap: 10px;
}

.recent-build-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.recent-build-title h2 {
    font-size: 26px;
    line-height: 1.1;
    font-weight: bold;
    margin: 0;
}

.recent-build-title a {
    font-size: 10px;
    line-height: 1.5;
    font-weight: 300;
    color:#919191;
    text-decoration: underline;
    cursor: pointer;
    margin: 0;
}

.recent-build-title a:hover {
    font-weight: 400;
}

.service-slider {
    width: 100%;
    overflow: hidden;
}

.service-slider-track {
    display: flex;
    flex-direction: row;
    width: max-content;
    flex-wrap: nowrap;
    transition: transform 0.5s ease;
    justify-content: start;
    gap: 30px;
}

.service-card {
    width: 75vw;
    max-width: 500px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    flex: 0 0 75vw;
    justify-content: start;
    border: 0.1px solid rgba(145, 145, 145, 0.5);
    border-radius: 4px;
    box-sizing: border-box;
    gap: 10px;
}

.service-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.service-card h4 {
    font-size: 18px;
    line-height: 1.1;
    font-weight: bold;
    padding: 0 0 10px 10px;
    margin: 0;
}

.service-card p {
    font-size: 12px;
    line-height: 1.1;
    font-weight: 300;
    color: #919191;
    padding: 0 0 0 10px;
    margin: 0;
}

/* How a Build Run Section */

.how-a-build {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 60px 20px 0 20px;
    gap: 20px;
}

.how-a-build-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
}

.how-a-build-title h2 {
    font-size: 26px;
    line-height: 1.1;
    font-weight: bold;
    margin: 0;
}

.how-a-build-title p {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 300;
    color: #919191;
    margin: 0;
}

.how-a-build-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
}

.how-a-build-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-bottom: 0.1px solid rgba(145, 145, 145, 0.5);
    justify-content: center;
    align-items: start;
    padding: 10px 0;
    gap: 10px;
}

.how-a-build-box h3 {
    font-size: 18px;
    line-height: 1.1;
    font-weight: bold;
    margin: 0;
}

.how-a-build-box p {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 300;
    color: #919191;
    margin: 0;
}

/* Package Section */
.webdesignanddev-package {
    width: 100%;
    overflow: hidden;
    padding: 60px 0 0 0;
}

.webdesignanddev-package-title {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
    padding: 0 20px;
}

.webdesignanddev-package-title h2 {
    font-size: 26px;
    line-height: 1.1;
    font-weight: bold;
    margin: 0;
}

.webdesignanddev-package-title p {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 300;
    color: #919191;
    margin: 0;
}

.package-slider {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: max-content;
    margin: 40px auto 0;
    transition: transform 0.4s ease;
    touch-action: pan-y;
    cursor: grab;
    gap: 20px;
}

.package-slider.is-dragging {
    cursor: grabbing;
    transition: none;
}

.package-box,
.package-hilight-box {
    flex: 0 0 300px;
    box-sizing: border-box;
}

.package-hilight-box {
    display: flex;
    flex-direction: column;
    color: rgba(252, 252, 252, .5);
    background: black;
    border-radius: 16px;
    padding: 20px;
    gap: 10px;
}

.package-hilight-box h5 {
    font-size: 14px;
    line-height: 1.1;
    font-weight: 400;
    margin: 0;
}

.package-hilight-box h3 {
    font-size: 20px;
    line-height: 1.1;
    font-weight: bold;
    color: white;
    margin: 0;
}

.package-hilight-box > p {
    font-size: 14px;
    line-height: 1.1;
    font-weight: 300;
    padding-bottom: 10px;
    margin: 0;
}

.package-detail {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0;
}

.package-detail-box {
    width: 100%;
    display: flex;
    border-top: 0.1px solid rgba(145, 145, 145, 0.5);
    justify-content: start;
    align-items: center;
    padding: 10px 0;
    margin: 0;
}

.package-detail-box:last-child {
    border-bottom: 0.1px solid rgba(145, 145, 145, 0.5);
}

.package-detail-box p {
    font-size: 12px;
    line-height: 1.1;
    font-weight: 300;
    margin: 0;
}

.package-hilight-btn {
    width: 100%;
    height: 40px;
    display: inline-flex;
    background: #FFD700;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    text-align: center; 
    margin-top: 10px;;
}

.package-hilight-btn a, .package-btn a {
    font-size: 14px;
    line-height: 1.1;
    font-weight: bold;
    text-decoration: none;
    color: black;
    margin: 0;
}

.package-hilight-btn:hover, .package-btn:hover {
    scale: 1.02
}

.package-box {
    display: flex;
    flex-direction: column;
    color: black;
    background: none;
    border-radius: 16px;
    border: 0.5px solid black;
    padding: 20px;
    gap: 10px;
}

.package-box h5 {
    font-size: 14px;
    line-height: 1.1;
    font-weight: 400;
    margin: 0;
}

.package-box h3 {
    font-size: 20px;
    line-height: 1.1;
    font-weight: bold;
    color: black;
    margin: 0;
}

.package-box > p {
    font-size: 14px;
    line-height: 1.1;
    font-weight: 300;
    padding-bottom: 10px;
    margin: 0;
}

.package-btn {
    width: 100%;
    height: 40px;
    display: inline-flex;
    background: none;
    border: 0.5px solid black;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    text-align: center; 
    margin-top: 10px;;
}

/* Animation */

.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
}

.scroll-reveal.is-visible {
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(min-width: 768px) {
/* Web Design and Development Hero Section */
.webdesignanddev {
    padding: 30px;
}

.webdesignanddev h1 {
    font-size: 34px;
}
}

@media(min-width: 1024px) {
/* Web Design and Development Hero Section */
.webdesignanddev {
    padding: 40px;
}
}