/* =========================
   RESET & GLOBAL
========================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* offset navbar */
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    color: #4A515E;
    line-height: 1.6;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #ffffff;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4em;
    font-weight: bold;

    text-decoration: none;   /* hilangkan underline */
    color: #4A515E;          /* warna tetap */
}

/* pastikan hover juga tidak berubah */
.logo-area:hover {
    text-decoration: none;
    color: #4A515E;
}

/* jaga kalau browser styling <a> aneh */
.logo-area:visited,
.logo-area:active {
    color: #4A515E;
    text-decoration: none;
}


.logo-area img {
    height: 42px;
    width: auto;
}

.brand-text {
    white-space: nowrap;
}

/* MENU */
.menu a {
    margin-left: 22px;
    text-decoration: none;
    color: #4A515E;
    font-size: 1em;
    font-weight: 500;
}

.menu a:hover {
    color: #6C63FF;
}

/* =========================
   NAV MENU DESKTOP
========================= */
.menu {
    display: flex;
    align-items: center;
}

/* =========================
   HERO SECTION
========================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background-image:
        linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
        url("../images/background2.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.hero-content {
    max-width: 1200px;
    margin: auto;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin-bottom: 30px;
    color: #6E7582;
}

.hero-buttons {
    margin-top: 30px;
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: #6C63FF;
    color: #ffffff;
}

.btn.primary:hover {
    background-color: #584FE0;
}

.btn.secondary {
    border: 2px solid #6C63FF;
    color: #6C63FF;
    background: transparent;
}

.btn.secondary:hover {
    background-color: #6C63FF;
    color: #ffffff;
}

/* =========================
   SERVICES SECTION
========================= */
.services {
    padding: 80px 40px;
    background-color: #ffffff;
}

.services h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.service-card {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.service-icon {
    font-size: 2.8em;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3em;
}

.service-card p {
    font-size: 0.95em;
    color: #6E7582;
}

/* =========================
   PORTFOLIO SECTION
========================= */
.portfolio {
    padding: 80px 40px;
    background-color: #f8f8ff;
}

.portfolio h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 8px;
}

.portfolio-subtitle {
    text-align: center;
    color: #6E7582;
    margin-bottom: 50px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.portfolio-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(108, 99, 255, 0.18);
}

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

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    margin-bottom: 8px;
}

.portfolio-info p {
    font-size: 0.95em;
    color: #6E7582;
}

/* =========================
   CONTACT SECTION
========================= */
.contact {
    padding: 80px 40px;
    background: linear-gradient(135deg, #f1f1f5, #ecebff);
    text-align: center;
}

.contact h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.contact-subtitle {
    color: #6E7582;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    font-size: 1.1em;
}

.contact-item a {
    color: #6C63FF;
    font-weight: bold;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}
/* =========================
   MOBILE MENU
========================= */
.menu-toggle {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
   user-select: none;
}

/* MOBILE VIEW */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        color: #4A515E;
    }

    .menu {
        position: absolute;
        top: 70px;
        right: 20px;
        background: #ffffff;
        display: none;
        flex-direction: column;
        width: 200px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
        padding: 15px 0;
    }

    .menu a {
        margin: 0;
        padding: 12px 20px;
    }

    .menu.show {
        display: flex;
        animation: fadeDown 0.3s ease;
    }
}


/* ANIMATION */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
