/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3 {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #333;
  padding: 10px 20px;
}

nav .logo {
  display: flex;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

nav .logo img {
  width: 35px;     /* ukuran logo */
  height: auto;
  margin-right: 10px; /* jarak antara logo dan teks */
}

header {
    background: #333;
    color: #fff;
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: #fff;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #f4b400;
}

/* Hamburger styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 25px;
    justify-content: center;
    gap: 6px;
}
.hamburger span {
    display: block;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* Hide checkbox */
.menu-toggle {
    display: none;
}

/* Responsive navbar */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        background: #333;
        flex-direction: column;
        width: 200px;
        gap: 0;
        display: none;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }
    .nav-links li {
        border-bottom: 1px solid #444;
    }
    .nav-links li:last-child {
        border-bottom: none;
    }
    .hamburger {
        display: flex;
    }
    .navbar {
        position: relative;
    }
    /* Show menu when checked */
    .menu-toggle:checked ~ .nav-links {
        display: flex;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url("camp-nou.webp") no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
}

.hero p {
    margin: 20px 0;
    font-size: 1.2rem;
}

.btn {
    display: inline-block;
    background: #f4b400;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    transition: 0.3s;
}

.btn:hover {
    background: #e69500;
}

/* About */
.about, .services, .contact {
    padding: 80px 20px;
    text-align: center;
}

/* Services */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 260px;
}

.card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #333;
    text-align: center;
}

.card p {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(244,180,0,0.95);
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card:hover p {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Contact */
.contact form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact input, .contact textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.contact button {
    cursor: pointer;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 15px 0;
}

/* Animasi fade-in untuk hero */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}
.fade-in.delay {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spasi antar section */
section {
    margin-bottom: 60px;
}
