:root {
 --primary: #f4f6f8;
 --bg: #2c3e50;
}

*{
    margin: 0;
    padding: 0%;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
}
.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.poppins-regular-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: italic;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--primary);

}

/* Navbar */

.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 7%;
    background-color: #34495e;
    border-bottom: 1px solid #2c3e50;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999;
}

.navbar .navbar-logo{
    font-size: 2rem;
    font-weight: bolder;
    color: #fff;
    }

.navbar .navbar-nav a{
    color: #fff;
    display: inline-block;
    font-size: 1.3rem;
    margin: 0 1rem;
}

.navbar .navbar-nav a:hover{
    color: #bdc3c7;
}

.navbar .navbar-nav a::after{
    content: '';  
    padding-bottom: 0.5rem;
    border-bottom: 0.1rem solid var(--primary);
    display: block;
    transform: scaleX(0);
    transition: 0.3s ease;
}

.navbar .navbar-nav a:hover::after{
    border-bottom-color: #bdc3c7;
    transform: scaleX(0.7);
}

.navbar .navbar-extra a{
    color: #fff;
    margin: 0 0.5rem;
}

.navbar .navbar-extra a:hover{
    color: #bdc3c7;
}

#menu{
    display: none;
}

/* Hero */

.hero{
    min-height: 100vh;
    background: url('images/header-bg.jpg') no-repeat center/cover;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 2rem;
}

.hero::after{
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 30%;
    bottom: 0;
    background: linear-gradient(0deg, rgba(44, 62, 80, 1) 8%, rgba(44, 62, 80, 0) 50%);
}

.hero .content{
    padding: 1.4rem 7%;
    max-width: 60rem;
    position: relative;
    z-index: 2;
}

.hero .content h1{
    font-size: 5em;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
    line-height: 1;
}

.hero .content h1 span{
    color: var(--bg);
}

.hero .content p{
    font-size: 1.6rem;
    color: #fff;
    margin-top: 1rem;
    line-height: 1.5;
    font-weight: 100;
    text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
}

.hero .content .cta{
    margin-top: 1rem;
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.4rem;
    color: #fff;
    background-color: var(--bg);
    border-radius: 0.5rem;
    box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
    transition: 0.3s ease-in-out;
}

.hero .content .cta:hover {
    background-color: var(--primary);
    color: var(--bg);
    box-shadow: 0 7px 10px rgba(0, 0, 0, 0.5);
}

/* About */
.about  {
    padding: 7.5rem 7% 1.4rem;
    height: 780px;
}

.about h2{
    color: var(--primary);
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 3%;
}

.about img{
    transition: 0.5s all ease-in-out;
    flex: 1;
    border-radius: 10%;
}

.about .row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap;
}

.about .row .about-img{
    flex: 0 0 auto;
}

.about .row .about-img img{
    max-width: 500px;
    width: 100%;
    height: auto;
}

.about .row .content{
    flex: 1;
    padding: 0 2rem;
}

.about .row .content h3{
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about .row .content p{
    font-size: 1.4rem;
    margin: auto;
    line-height: 1.6;
    color: #fff;
}

/* Fitur */
.fitur{
    padding: 7.5rem 7% 1.4rem;
    position: relative;
    height: 900px;
    text-align: center;
    background-color: var(--primary);
}
.fitur h2{
    color: var(--bg);
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 3%;
}
.fitur p{
    color: var(--bg);
    font-size: 1.2rem;
    max-width: 30rem;
    font-weight: 100;
    margin: auto;
    margin-bottom: 1rem;
    line-height: 1.6;
}
.fitur .row {
    margin-top: 2rem;
    gap: 2rem;     
    width: 100%;
    padding: 1rem 0 1rem 2rem;
    box-sizing: border-box;
    align-items: center;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
}
.fitur .row::-webkit-scrollbar {
    height: 8px;
    display: none;
}
.fitur .row::-webkit-scrollbar-thumb {
    background: var(--primary);
     border-radius: 4px;
}
.fitur .row .card {
    text-align: left;         
    border-radius: 10%;
    padding: 1.5rem; 
    flex: 0 0 auto;
    scroll-snap-align: start;
}
.fitur .row .card .btn {
    display: inline-block;
    margin-top: 1rem;
}
.row{
    display: flex;
    width: 90%;
    justify-content: space-between;
}
.card{
    border-radius: 10%;
    width: 280px;
    height: 360px;
    background: #fff;
    display: flex;
    align-items: flex-end;
    padding: 2rem 1rem;
    position: relative;
    transition: 0.5s all ease-in-out;
}
.card:hover,
.about-img img:hover{
    transform: translateY(-10px);
}
.card::before{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(13, 36, 63, 0.3) 0%, rgba(13, 36, 63, 1));
    z-index: 2;
    transition: 0.3s;
    opacity: 0;
    transition: 0.5s all;
}
.card:hover::before{
    opacity: 1;
}
.card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.card .desc{
    position: relative;
    color: #fff;
    z-index: 3;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s all;
}
.card:hover .desc{
    opacity: 1;
    transform: translateY(0);
}
.card .desc h1{
    line-height: 40px;
    margin-bottom: 10px;
}
.card .desc p{
    text-align: left;
    color: #fff;
    font-size: 15px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.card .desc .btn{
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    transition: .4s ease-in-out;
}
.card .desc .btn:hover{
    background: var(--bg);
    color: #fff;
    box-shadow: 0 7px 10px rgba(0, 0, 0, 0.5);
}
.fitur .scroll-controls {
  display: flex;
  justify-content: right;
  gap: 1rem;
  margin-top: 1rem;
}
.scroll-btn {
  background: var(--bg);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  font-size: 20px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.scroll-btn:hover {
  opacity: 1;
}
.fitur .row, .testimoni-row {
  scrollbar-width: none;
  scroll-behavior: smooth;
  cursor: grab;
}

.fitur .row::-webkit-scrollbar {
  display: none;
}

/* Testimoni */
.testimoni {
  padding: 7.5rem 7% 1.4rem;
  background-color: var(--bg);
  height: 800px;
}
.testimoni .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}
.testimoni h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.testimoni p {
  color: #bdc3c7;
  margin-bottom: 2rem;
}
.testimoni-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
}
.testimoni-row::-webkit-scrollbar {
    height: 6px;
}
.testimoni-row::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}
.testimoni-row .testimoni-card {
  flex: 0 0 300px;
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  scroll-snap-align: start;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.testimoni-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}
.testimoni-card h3 {
    color: #000;
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}
.testimoni-card .role {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 1rem;
}
.testimoni-card blockquote {
  font-style: italic;
  color: #333;
  line-height: 1.4;
  margin: 0;
  flex-grow: 1;
}
.testimoni-controls {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 1rem;
  padding-left: 4.5rem;
}
.testimoni .scroll-btn {
    background: var(--primary);
    color: var(--bg);         
}

/* Footer */
footer{
    background-color: #34495e;
    text-align: center;
    padding: 3rem 0;
}

footer .social a{
    margin: 0 0.5rem;
}

footer .social a:hover,
footer .links a:hover{
    color: #bdc3c7;
}

footer .links{
    margin-top: 1.4rem;
    margin-bottom: 1.4rem;
}

footer .links a{
    color: #fff;
    padding: 0.7rem 1rem;
}

footer .credit{
    font-size: 0.8rem;
}

footer .credit a{
    color: var(--primary);
    font-weight: 700;
}

/* Responsive */
/* Desktop */

@media screen and (max-width: 1366px) {
    html {
        font-size: 75%;
    }
}

/* Tablet */

@media screen and (max-width: 1024px) {
    html {
        font-size: 62.5%;
    }

    #menu{
        display: inline-block;
    }

    .navbar .navbar-nav{
        position: absolute;
        top: 100%;
        right: -100%;
        background-color: #fff;
        width: 30rem;
        height: 100vh;
        transition: 0.3s;
    }
    .navbar .navbar-nav.active{
        right: 0;
    }

    .navbar .navbar-nav a{
        color: var(--bg);
        display: block;
        margin: 1.5rem;
        padding: 0.5rem;
        font-size: 2rem;
    }

    .navbar .navbar-nav a::after{
        transform-origin: 0 0;
    }

    .navbar .navbar-nav a:hover:after{
    transform: scaleX(0.2);
    }

    .about .row{
        flex-direction: column;
        flex-wrap: wrap;
    }

    .about .row .about-img img{
        height: 24rem;
        object-fit: cover;
        object-position: center;
    }

    .about .row .content{
        padding: 0;
    }

    .about .row .content h3{
        margin-top: 1rem;
        font-size: 2rem;
    }

    .about .row .content p{
        font-size: 1.6rem;
    }

    .menu p{
        font-size: 1.2rem;
    }

    .layanan .row {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(2 * 250px + 2rem); 
    }

    .layanan .row .card {
    width: 90%;
    text-align: left;         
    border-radius: 12%;      
    padding: 1.5rem;           
    max-width: 350px; 
    margin-bottom: 1.5rem;
    }

    .layanan .scroll-controls {
    display: none;
    }
    
    .testimoni-row {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: hidden;       
    overflow-y: auto;          
    max-height: calc(2 * 300px + 2rem);
    }

    .testimoni-row .testimoni-card {
    width: 90%;        
    max-width: 350px; 
    margin-bottom: 1.5rem;
    }

    .testimoni-controls {
    display: none;
    }
}

/* Mobile */
@media screen and (max-width: 600px) {
    html {
        font-size: 55%;
    }
}