@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

:root {
  --green: #00AA13;
  --green-dark: #00880F;
  --deep-black: #121212;
  --font-light: #FFFFFF;
  --font-dark: #333333;
  --bg-light: #D9D9D9;
  --red: #EE2737;
}
html, body {
    scroll-behavior: smooth;
    height: 100%;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
section {
    width: 100%;
    color: var(--font);
}
body {
    background: var(--bg-light);
}
main {
    width: 100%;
    display: flex;
    flex-direction: column;
}
/* nav */
.nav {
    left: 0;
    right: 0;
    top: 0;
    position: fixed;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    z-index: 99;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
.nav .hamburger {
    display: none;
    cursor: pointer;
}
.nav .nav-links .close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    cursor: pointer;
    list-style: none;
    display: none;
}
.nav ul {
    display: flex;
    justify-items: center;
    align-items: center;
    margin-left: auto;
    gap: 2.5rem;
    list-style: none;
}
.nav ul .close-btn:hover {
    background: none;
}
.nav ul li {
    padding: 0.4em 1em;
    border-radius: 12px;
    display: flex;
    justify-items: center;
    align-items: center;
}
.nav ul li a {
   font-weight: bold;
   text-decoration: none;
   color: var(--font-light);
   background: none;
}
.nav .logo {
    height: 1.8rem;
    margin-right: auto;
}
.nav .logo img {
    height: 100%;
}
.nav ul li:hover {
    background: var(--bg-light);
    cursor: pointer;
    transition: all 0.3s ease;
}
.nav ul li:hover a {
    color: var(--deep-black);
}
/* home */
.home {
    width: 100%;
    height: 100vh;
    background: url('img/ojek.jpg') no-repeat center center/cover;
}
.home .main {
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--font-light);
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    text-align: center;
}
.home .main h1 {
    font-size: 7rem;
    font-weight: 700;
    line-height: 1.2;
    font-weight: 700;
    background: linear-gradient(45deg, #AFFF34, #00DD16, var(--green-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.home .main p {
    width: 55rem;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}
.main .buttons {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}
.buttons button {
  text-align: center;
  width: 10rem;
  padding: 1rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.buttons button:nth-child(1) {
  background: var(--green);
  color: var(--font-light);
}
.buttons button:nth-child(1):hover {
  background: var(--green-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 170, 19, 0.4);
}
.buttons button:nth-child(2) {
  background: none;
  color: var(--font-light);
  border: solid 2px var(--font-light);
}
.buttons button:nth-child(2):hover {
  background: var(--font-light);
  color: var(--deep-black);
  transform: translateY(-3px);
}

/* about */
.about {
    background: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    color: var(--font-light);
}
.btn-secondary {
    padding: 0.8rem 1.5rem;
    background: var(--green);
    color: var(--font-light);
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: 0.3s ease;
}
.btn-secondary:hover {
    background: var(--green-dark);
}
.about {
    background: var(--deep-black);
}
.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
}
.about-text, .about-image {
    flex: 1;
}
.about-image {
    max-height: 25rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}
.about-image img {
    width: 100%;
    border-radius: 15px;
}
.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
.about-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--font-light);
}
.about-text p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--font-light);
}
.about-btn {
    color: var(--font-light);
    background: var(--green);
    max-width: 215px;
    text-align: center;
}
.about-btn:hover {
    background: var(--green-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 170, 19, 0.4);
}
/* services */
.services {
    background: var(--deep-black);
    color: var(--bg-light);
    padding: 4rem 2rem;
    padding-top: 0;
    text-align: center;
    position: relative;
    margin-bottom: 3rem;
}
.services .bg {
    position: absolute;
    width: 100%;
    height: 50%;
    background: var(--bg-light);
    bottom: 0;
    border-top-left-radius: 200px;
    border-top-right-radius: 200px;
}
.services h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
}
.service-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.card {
    background: var(--green);
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 61, 0.15);
}
.card-icon {
    width: 7rem;
    height: 7rem;
}
.card-icon img {
    width: 100%;
    height: 100%;
    margin-bottom: 1.5rem;
    mix-blend-mode: color-burn;
}
.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
    color: var(--deep-black);
}
.card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--font-light);
    font-weight: 500;
}
.app-button img {
    height: 50px;
    transition: transform 0.2s ease;
}
.app-button:hover img {
    transform: scale(1.05);
}
/* 3d */
.spin-card {
    padding: 2rem;
    padding-top: 0;
    height: 750px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.spin-card h2 {
    width: 700px;
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}
.spin-card .banner {
  height: 100%;
  width: 100%;
  position: relative;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.spin-card .banner .slider {
    position: absolute;
    background: url('img/product-obj.png');
    background-size: cover;
    width: 250px;
    height: 200px;
    top: 80px;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    animation: autoRun 20s linear infinite;
    z-index: 2;
}
@keyframes autoRun {
    from {
        transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
    }to {
        transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
    }
}
.spin-card .banner .slider .item {
    position: absolute;
    inset: 0 0 0 0;
    border-radius: 15px;
    overflow: hidden;
    transform: 
        rotateY(calc( (var(--position) - 1) * (360/var(--quantity)) * 1deg ))
        translateZ(450px);
}
.spin-card .banner .slider .item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
/* how it work */
.how-it-works {
    background: var(--bg-light);
    color: var(--deep-black);
    padding: 5rem 2rem;
    padding-top: 0;
    text-align: center;
}
.how-it-works h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
}
.steps-container {
    display: flex;
    justify-content: space-evenly;
    gap: 3rem;
    flex-wrap: wrap;
    width: 100%;
}
.step {
    border-radius: 12px;
    padding: 1rem;
    padding-top: 30px;
    max-width: 300px;
    background: var(--deep-black);
    color: var(--font-light);
    position: relative;
}
.step-number {
    width: 60px;
    height: 60px;
    background: var(--green-dark);
    color: var(--font-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem auto;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -110%);
}
.step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--font-light);
}
.step p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--font-light);
}

/* partner */
.partner {
    padding: 5rem 2rem;
    padding-top: 0;
    text-align: center;
    background: var(--font-light);
    color: var(--deep-black);
    background: var(--bg-light);
}
.partner h2 {
    font-size: 3rem;
    line-height: 1.3;
}
.partner-subtitle {
    max-width: 600px;
    margin: 1rem auto 3rem auto;
    font-size: 1.1rem;
}
.partner-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.partner-card {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    color: var(--font-light);
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.partner-card:hover {
    transform: scale(1.03);
}
.partner-card.driver {
    background-image: url('img/bg.jpg');
}
.partner-card.merchant {
     background-image: url('img/food.jpg');
}
.partner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.1));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem;
}
.partner-overlay h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.partner-overlay p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.btn-partner {
    padding: 0.8rem 2rem;
    background: var(--green);
    color: var(--font-light);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s ease;
}
.btn-partner:hover {
    background: var(--green-dark);
}

/* cta */
.cta {
    background: linear-gradient(45deg, var(--green), var(--green-dark));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem 2rem;
    color: var(--font-light);
}
.cta h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}
.cta p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}
.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

/* footer */
footer {
    background: var(--deep-black);
    color: var(--font-light);
    padding: 3rem 2rem 0 2rem;
}
.footer-container {
    display: flex;
    justify-content: space-evenly;
    align-items: start;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 3rem;
}
.footer-col {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    min-width: 150px;
    text-align: center;
}
.footer-col h3 {
    color: var(--font-light);
    margin-bottom: 1.5rem;
    position: relative;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 2px;
    background: var(--green);
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.8rem;
}
.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-col a:hover {
    color: var(--green);
}
.social-media a {
    display: block;
    margin-bottom: 0.8rem;
}
.footer-bottom {
    border-top: 1px solid #444;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: #aaa;
}
@media (max-width: 768px) {
    /* nav */
    .nav .hamburger {
        display: flex;
        z-index: 1;
        justify-content: center;
        align-items: center;
    }
    .nav-links {
        position: fixed; 
        top: 0;
        left: 100%; 
        width: 50%; 
        height: 100vh;
        background: var(--deep-black);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem; 
        transition: left 0.3s ease-in-out; 
        z-index: 99;
    }
    .nav .nav-home {
        margin-top: 100px;
    }
    .nav-links.active {
        left: 50%;
    }
    .nav .nav-links .close-btn {
        display: list-item;
        position: absolute;
        top: 1.5rem;
        right: 0.5rem;
        cursor: pointer;
        list-style: none;
    }
    .nav-links li a {
       font-size: 1.5rem;
    }
    /* home */
    .home .main {
        width: 100%;
        display: flex;
        align-items: center;
        justify-items: center;
    }
    .home .main h1 {
        font-size: 4rem;
    }
    .home .main p {
        font-size: 0.7rem;
        width: 95%;
        text-align: center;
    }
    .main .buttons button {
        padding: 0.7rem;
    }
    /* about */
    .about-container {
        flex-direction: column;
    }
    .about-text {
        text-align: center;
    }
    .about-text h2 {
        font-size: 2rem;
    }
    /* 3d */
    .spin-card {
        height: 480px;
    }
    .spin-card h2 {
        width: 100%;
        font-size: 2.5rem;
    }
    .spin-card .banner .slider {
        width: 100px;
        height: 100px;
        top: 40px;
        left: calc(50% - 50px);
    }
    .spin-card .banner .slider .item {
        position: absolute;
        inset: 0 0 0 0;
        border-radius: 15px;
        overflow: hidden;
        transform: 
            rotateY(calc( (var(--position) - 1) * (360/var(--quantity)) * 1deg ))
            translateZ(160px);
    }
    /* services */
    .services .bg {
        height: 40%;
        border-top-left-radius: 70px;
        border-top-right-radius: 70px;
    }
    /* cta */
    .cta-buttons {
        flex-direction: column;
    }
    .cta h2 {
        font-size: 2.5rem !important;
    }
    .cta-buttons {
        flex-direction: column;
    }
    /* footer */
    .footer-container { 
        text-align: center;
        columns: 2;
    }
}