:root {
    --primary: #0d6efd;
    --dark: #0b132b;
    --light: #f8f9fa;
    --accent: #00d4ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--light);
    color: #333;
    line-height: 1.6;
}

/* ===== HEADER ===== */
header {
    min-height: 100vh;
    /* FULL layar */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertikal tengah */
    align-items: center;
    /* Horizontal tengah */
    background: linear-gradient(rgba(163, 168, 184, 0.75),
            rgba(54, 66, 104, 0.85)),
        url("../img/3.jpeg") center / cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 120px 20px 80px;
}



header h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

header p {
    max-width: 700px;
    margin: 20px auto;
    font-size: 1.3rem;
    opacity: 0.9;
}

header .btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 36px;
    background: var(--accent);
    color: #000;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

header .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ===== SECTION ===== */
html {
    scroll-behavior: smooth;
}

/* ===== MOBILE NAVBAR ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.4s;
}

/* Burger to X animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .navbar ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(11, 19, 43, 0.95);
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .navbar ul li {
        padding: 0px 0;
    }

    .navbar ul.active#navMenu {
        max-height: 400px;
        padding: 1em;
    }

}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 5px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 19, 43, 0.85);
    backdrop-filter: blur(10px);
    z-index: 999;
}

.navbar .logo {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.logo img {
    width: 35px;
}

.logo {
    display: flex;
    align-items: center;
    /* vertikal tengah */
    gap: 10px;
    /* jarak logo & teks */
}

.logo img {
    width: 35px;
    /* sesuaikan ukuran logo */
    height: auto;
}

.logo p {
    margin: 0;
    font-weight: 600;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.navbar ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.navbar ul li a:hover {
    color: var(--accent);
}

section {
    padding: 80px 8%;
}

section h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 50px;
    color: var(--dark);
}

/* ===== ABOUT ===== */
.about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.about img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* ===== SERVICES ===== */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-box {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

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

.service-box i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ===== PROJECTS ===== */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    width: 300px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.project-card .content {
    padding: 25px;
}

/* ===== TECH STACK ===== */
.tech {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.tech img {
    width: 100px;
    height: auto;
    filter: grayscale(20%);
    transition: 0.3s ease;
}

.tech img:hover {
    filter: grayscale(0);
    transform: scale(1.1);
}



.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #444;
    transition: 0.3s ease;
}

.media {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.media img {
    width: 150px;
    height: auto;
    filter: grayscale(20%);
    transition: 0.3s ease;
}

.media img:hover {
    filter: grayscale(0);
    transform: scale(1.1);
}

.media-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #444;
    transition: 0.3s ease;
}

.media-item span {
    margin-top: 8px;
    font-size: 24px;
    font-weight: 500;
}

.media-item img {
    width: 150px;
    height: auto;
    filter: grayscale(20%);
    transition: 0.3s ease;
}

.media-item:hover img {
    filter: grayscale(0);
    transform: scale(1.1);
}

.media-item:hover span {
    color: #000;
}

/* ===== CONTACT ===== */
.contact {
    background: linear-gradient(135deg, var(--dark), #1c2541);
    color: #fff;
    border-radius: 30px;
    padding: 60px;
    text-align: center;
}

.contact h2 {
    color: #fff;
}

.contact p {
    margin: 20px 0 40px;
}

.contact a {
    color: #000;
    background: var(--accent);
    padding: 14px 36px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 30px;
    background: #000;
    color: #aaa;
}

/* ===== PROJECT SLIDER ===== */
.project-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.project-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollProject 40s linear infinite;
}

.project-card {
    min-width: 300px;
}

/* Pause on hover */
.project-slider:hover .project-track {
    animation-play-state: paused;
}

/* Infinite scroll animation */
@keyframes scrollProject {
    from {
        transform: translateX(0);
    }

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