/* --- Global Styles & CUTE PALETTE --- */
:root {
    --primary-color: #8E97FD;   /* Lavender Lembut */
    --secondary-color: #FFC3A0; /* Peach Hangat */
    --accent-color: #40E0D0;    /* Turquoise Cerah */
    --bg-light: #FDFBFF;        /* Latar Belakang Putih Keunguan */
    --bg-white: #FFFFFF;
    --text-dark: #575366;       /* Abu-abu Ungu Tua */
    --text-light: #FFFFFF;
    --shadow: 0 8px 25px rgba(142, 151, 253, 0.15);
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    overflow-x: hidden;
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    background-image: radial-gradient(var(--primary-color) 0.5px, transparent 0.5px);
    background-size: 15px 15px;
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--primary-color);
}

section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }

/* --- Header & Navigasi --- */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky; top: 0; z-index: 1000; width: 100%;
}

nav {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
}

.logo {
    display: flex; align-items: center; text-decoration: none;
    color: var(--text-dark); font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700;
}
.logo img {
    height: 40px; margin-right: 12px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.logo:hover img { transform: rotate(-25deg) scale(1.1); }

nav ul { list-style: none; display: flex; align-items: center; gap: 30px; margin: 0; }
nav ul a { text-decoration: none; color: var(--text-dark); font-weight: 500; position: relative; padding-bottom: 5px; }
nav ul a:not(.btn-contact)::after {
    content: ''; position: absolute; width: 0; height: 3px;
    background-color: var(--accent-color); bottom: 0; left: 50%;
    transform: translateX(-50%); transition: width 0.3s ease; border-radius: 2px;
}
nav ul a:hover:not(.btn-contact)::after { width: 100%; }

.btn-contact {
    background-color: var(--primary-color); color: var(--text-light); padding: 10px 20px;
    border-radius: 50px; transition: all 0.3s ease;
}
.btn-contact:hover {
    background-color: #7A84E8; transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 10px rgba(142, 151, 253, 0.5);
}

/* --- Hero Section (UPDATED for Full Screen) --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 20px;
    min-height: 100vh; /* <-- INI KUNCI AJAIBNYA! */
    box-sizing: border-box; /* Memastikan padding tidak membuat overflow */
}
.hero-text { flex: 1; max-width: 50%; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; min-height: 135px; }
.hero-text p { font-size: 1.1rem; margin-bottom: 30px; }

.btn-primary {
    display: inline-block; background: linear-gradient(45deg, var(--secondary-color), #FFDAB9);
    color: var(--text-dark); font-weight: 500; padding: 15px 30px; border-radius: 50px;
    text-decoration: none; box-shadow: 0 4px 15px rgba(255, 195, 160, 0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 195, 160, 0.8);
}

.hero-image { flex: 1; text-align: center; }
.hero-image img { max-width: 70%; height: auto; animation: float 3s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-40px); } 100% { transform: translateY(0px); } }

/* --- Wave Separator --- */
.wave-separator { position: relative; background-color: var(--bg-light); margin-top: -1px; } /* Mencegah garis putih aneh */
.wave-separator svg { position: relative; display: block; width: calc(100% + 1.3px); height: 150px; width: 100%;}
.wave-separator .shape-fill { fill: var(--bg-white); }

/* --- Services Section --- */
.services { text-align: center; background-color: var(--bg-white); }
.services h2 { font-size: 2.5rem; }
.services > p { max-width: 600px; margin: 0 auto 50px auto; }

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Auto layout grid */
    gap: 30px;
    justify-content: center;
}

.card {
    background-color: var(--bg-white); padding: 40px 30px; border-radius: 20px;
    box-shadow: var(--shadow); text-align: center;
    border-bottom: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-12px) rotate(2deg); box-shadow: 0 20px 40px rgba(142, 151, 253, 0.25); }

.icon-wrapper {
    margin-bottom: 20px; width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #F3E5F5, #E8EAF6);
    display: inline-flex; align-items: center; justify-content: center;
}
.icon-wrapper svg { width: 40px; height: 40px; color: var(--primary-color); }
.card h4 { font-size: 1.5rem; margin-bottom: 10px; }

/* --- About Section --- */
.about { background-color: var(--bg-light); }
.about-content { display: flex; align-items: center; gap: 50px; }
.about-image { flex: 1; }
.about-image img { max-width: 100%; border-radius: 20px; }
.about-text { flex: 1.2; text-align: left; }
.about-text h3 { font-size: 2.5rem; margin-bottom: 20px; }

/* --- NEW CUTE CONTACT SECTION --- */
.contact-cute { padding-top: 40px; padding-bottom: 40px; }
.contact-container {
    background: linear-gradient(135deg, #F3E5F5, #E8EAF6);
    border: 2px solid var(--bg-white); border-radius: 30px; padding: 30px;
    display: flex; align-items: center; justify-content: center;
    gap: 30px; box-shadow: var(--shadow); flex-wrap: wrap;
}

.contact-character { width: 300px; height: auto; animation: bounce 2s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.contact-text { text-align: left; max-width: 500px; }
.contact-text h2 { font-size: 2.2rem; margin: 0 0 10px 0; }
.contact-text p { margin: 0 0 20px 0; }

/* --- Footer --- */
footer {
    background-color: #F4F0FF; color: var(--text-dark);
    padding: 60px 20px 20px 20px; border-top: 5px solid var(--accent-color);
}
.footer-container {
    max-width: 1200px; margin: 0 auto; display: flex;
    justify-content: space-between; flex-wrap: wrap; gap: 40px; padding-bottom: 40px;
}
.footer-about, .footer-links, .footer-social { flex: 1; min-width: 250px; }
.footer-about a {color: var(--text-dark); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease;}
.footer-about a:hover {color: var(--primary-color);}
.footer-about p { font-size: 0.9rem; line-height: 1.6; margin-top: 15px; }
footer h4 { font-size: 1.2rem; color: var(--text-dark); margin-bottom: 15px; font-weight: 700; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li a {
    text-decoration: none; color: var(--text-dark); margin-bottom: 10px;
    display: inline-block; transition: all 0.3s ease;
}
.footer-links ul li a:hover { color: var(--primary-color); transform: translateX(5px); }
.social-icons { display: flex; gap: 15px; }
.social-icons a {
    text-decoration: none;
    display: inline-flex; width: 40px; height: 40px; background-color: var(--bg-white);
    border-radius: 50%; align-items: center; justify-content: center;
    color: var(--primary-color); box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-icons a:hover {
    transform: translateY(-5px) scale(1.1); background-color: var(--primary-color);
    color: var(--text-light);
}
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #E0D8F5; font-size: 0.9rem; }

/* --- Back to Top & Reveal --- */
#back-to-top-btn {
    display: none; position: fixed; bottom: 20px; right: 30px; z-index: 99;
    border: none; outline: none; background-color: var(--primary-color); color: white;
    cursor: pointer; padding: 10px; width: 40px; height: 40px; border-radius: 50%;
    font-size: 18px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
}
#back-to-top-btn:hover { background-color: #7A84E8; transform: scale(1.1); }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero { flex-direction: column-reverse; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero-text h1 { font-size: 2.8rem; min-height: auto; }
    .about-content { flex-direction: column; }
    .about-text { text-align: center; }
    .service-cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}
@media (max-width: 768px) {
    nav ul { display: none; }
    .hero-text h1 { font-size: 2.2rem; }
    h2, .about-text h3 { font-size: 2rem; }
    section { padding: 60px 20px; }
    .footer-container { flex-direction: column; text-align: center; }
    .social-icons { justify-content: center; }
    .contact-container { text-align: center; }
    .contact-text { text-align: center; }
}