/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2e8b57; /* Ubah warna sesuai identitas brand */
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --muted-text-color: #6c757d;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero .overlay {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero h1, .hero .lead {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Card & Portofolio */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-6px);
}
.project-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

/* Header */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    margin: 0 8px;
    font-weight: 500;
}

/* Floating WhatsApp */
.fab-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}
.fab-wa:hover {
    transform: scale(1.1);
}
.fab-wa i {
    font-size: 30px;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Footer */
footer {
    font-size: 0.9rem;
}

/* Fade-in Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .btn {
        font-size: 1rem;
    }
    .project-img {
        height: 250px;
    }
    .card-body {
        padding: 18px;
    }
    .fab-wa {
        width: 55px;
        height: 55px;
        right: 15px;
        bottom: 15px;
    }
    .fab-wa i {
        font-size: 26px;
    }
    section {
        padding: 60px 0;
    }
    .navbar-collapse {
        background-color: white;
        border-radius: 10px;
        padding: 10px;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: auto;
        padding: 120px 0 80px;
    }
    .navbar-brand img {
        height: 36px;
    }
    .fab-wa {
        width: 50px;
        height: 50px;
    }
    .fab-wa i {
        font-size: 24px;
    }
}