/* ================== GLOBAL & RESET ================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7f7f7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

h1, h2, h3, h4 {
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.bg-white { background-color: #fff; }
.bg-light-gray { background-color: #f4f4f7; }
.footer-bg { background-color: #1a1a1a; color: #fff; }

/* ================== ANIMATION STYLES (FADE-IN) ================== */
.fade-in-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
    will-change: opacity, transform;
}

.fade-in-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-item.portfolio-zoom {
    opacity: 0;
    transform: scale(0.85) rotate(-5deg); /* Mulai dari kecil & miring */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Ini akan menimpa 'transform' dari .fade-in-item.visible */
.fade-in-item.portfolio-zoom.visible {
    opacity: 1;
    transform: scale(1) rotate(0deg); /* Selesai di ukuran normal & lurus */
}

/* ================== HEADER & NAVIGATION ================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s;
    background-color: transparent; 
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#navbar:not(.scrolled) .nav-links a { color: #fff; }
#navbar.scrolled .nav-links a { color: #333; }
#navbar.scrolled .nav-links a:hover { color: #ff6b6b; }


.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* ================== STYLE LOGO GAMBAR BARU ================== */
.logo {
    padding: 10px 0; 
}

.logo-img {
    height: 60px;
    width: auto;
    transition: filter 0.4s ease, opacity 0.4s ease;
    will-change: filter, opacity;
}

#navbar:not(.scrolled) .logo-img {
    opacity: 0; 
}

#navbar.scrolled .logo-img {
    filter: none;
    opacity: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    padding: 10px 0;
}

.menu-icon {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

.menu-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}
#navbar.scrolled .menu-icon svg { color: #333; }

.mobile-menu-dropdown {
    display: none;
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 15px;
    text-align: center;
    position: absolute;
    width: 100%;
}
.mobile-menu-dropdown a {
    display: block;
    padding: 10px;
    color: #333;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}
.mobile-menu-dropdown a:last-child { border-bottom: none; }
.btn-mobile {
    margin-top: 10px;
    background: linear-gradient(to right, #ff6b6b, #ff9a85);
    color: #fff !important;
    border-radius: 50px;
    display: block;
    padding: 12px 20px !important;
}

/* ================== BUTTONS (REFACTORED) ================== */

/* Ini adalah class dasar untuk SEMUA tombol */
.btn {
    display: inline-block;
    padding: 15px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s, background-color 0.3s, border-color 0.3s, opacity 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

/* Tombol putih di hero */
.btn-white {
    background-color: #fff;
    color: #ff6b6b;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.btn-white:hover { 
    background-color: #eee; 
    color: #d6336c;
}

/* Tombol outline di hero */
.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    background-color: transparent; /* Pastikan transparan */
}
.btn-outline:hover { 
    background-color: rgba(255, 255, 255, 0.1); 
    color: #f8d070;
    border-color: #f8d070;
}

/* Tombol putih kecil di portfolio */
.btn-white-small {
    background-color: #fff;
    color: #ff6b6b;
    padding: 8px 16px; /* Padding lebih kecil */
    font-size: 14px; /* Font lebih kecil */
    /* Mewarisi radius, font-family, transition, dll dari .btn */
}
.btn-white-small:hover {
    background-color: #eee;
    color: #d6336c; 
}

/* Tombol untuk form di footer */
.btn-primary-form {
    background: linear-gradient(to right, #ff6b6b, #ff9a85);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px; /* Mengganti radius default */
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
    /* Mewarisi font, transition, cursor, dll dari .btn */
}
.btn-primary-form:hover {
    opacity: 0.9;
    background: linear-gradient(to right, #ff9a85, #ff6b6b);
}

/* Utility class untuk tombol full-width */
.btn-full {
    width: 100%;
    padding: 12px;
    border-radius: 5px; /* Mengganti radius default */
}

/* Tombol khusus WhatsApp */
.btn-whatsapp {
    background-color: #25d366;
    color: #fff;
}
.btn-whatsapp:hover { 
    background-color: #128c7e; 
    opacity: 1; /* Pastikan opacity kembali ke 1 saat hover */
}


/* ================== HERO SECTION ================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(img/bg.jpeg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding-top: 150px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-bottom: 50px;
}

.hero-section h1 {
    font-size: 60px;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(to right, #f8d070, #ffd700);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 30px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
}
.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px; 
    background-color: #fff; 
    clip-path: polygon(0 40%, 100% 40%, 100% 100%, 0 100%); 
}


/* ================== GENERAL SECTIONS ================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 36px;
    color: #333;
    margin-top: 10px;
}

.tag-line {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ff6b6b;
}
.tag-pink { color: #d6336c; }
.tag-blue { color: #007bff; }
.tag-red { color: #dc3545; }


/* ================== ABOUT SECTION ================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    color: #666;
    margin-bottom: 30px;
}

.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.value-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.value-item h4 { font-size: 18px; margin-bottom: 5px; color: #333;}
.value-item p { font-size: 14px; color: #666; margin-bottom: 0;}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
}
.icon-orange { background-color: #ffe0b2; }
.icon-pink { background-color: #f8bbd0; }


/* ================== SERVICES SECTION ================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block; 
    background-color: #f4f4f7;
}

.card-body {
    padding: 20px;
}
.card-body h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ff6b6b;
}
.card-body p {
    font-size: 15px;
    color: #666;
    margin-bottom: 15px;
}
.card-body ul {
    list-style: none;
    padding-left: 0;
}
.card-body ul li {
    font-size: 14px;
    color: #333;
    padding-left: 15px;
    position: relative;
}
.card-body ul li:before {
    content: "•";
    color: #ff6b6b;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.cta-banner {
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    color: #fff;
}
.cta-banner h3 {
    font-size: 28px;
    margin-bottom: 10px;
}
.cta-banner p {
    margin-bottom: 25px;
    font-size: 16px;
    opacity: 0.9;
}
.gradient-bg {
    background: linear-gradient(to right, #ff6b6b, #ff9a85);
}


/* ================== PORTFOLIO SECTION ================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 25px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.project-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-item:hover .overlay {
    opacity: 1;
}
.project-item:hover img {
    transform: scale(1.1);
}

.overlay h4 {
    font-size: 20px;
    margin: 5px 0 5px;
}
.overlay p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}
.badge-orange { background-color: #ff6b6b; }
.badge-blue { background-color: #007bff; }
.badge-pink { background-color: #d6336c; }

.open-modal-btn{
    outline: none;
}


/* ================== MODAL (Pop-up) STYLES ================== */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.modal-title {
    color: #3498db;
    margin-bottom: 10px;
    font-size: 1.8em;
}

.modal-subtitle {
    color: #666;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    margin-left: 10px;
}
.close-btn:hover {
    color: #333;
    text-decoration: none;
}

.event-list-modal {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.event-list-modal li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    color: #333;
    position: relative;
    padding-left: 20px;
}

.event-list-modal li:last-child {
    border-bottom: none;
}

.event-list-modal li::before {
    content: "\2022";
    color: #3498db;
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

.modal-scroll{
    display: flex;
    overflow-y: auto;
    max-height: 300px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
/* ================== CONTACT SECTION ================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.contact-info-wrapper {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-form {
    background-color: #fff;
    padding: 0; 
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    max-height: 710px;
    overflow: hidden; 
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.instagram-media{
    background:#FFF; 
    border:0; 
    border-radius:3px; 
    box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); 
    margin:0; 
    max-height: 710px; 
    padding:0; 
    width:100%;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.info-item h4 { 
    font-size: 18px; margin-bottom: 10px; color: #333; 
}

.info-item a, .info-item span { 
    font-size: 15px; color: #666; 
}

.info-item a:hover { 
    color: #ff6b6b; 
} 

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 15px;
}

.icon-orange { background-color: #ffe0b2; }
.icon-blue { background-color: #cfe2ff; }
.icon-pink { background-color: #f8bbd0; }
.icon-red { background-color: #f8d7da; }

.quick-response-banner {
    padding: 25px;
    background-color: #d4edda;
    border: 2px solid #155724;
    border-radius: 10px;
    text-align: center;
}

.quick-response-banner h3 {
    color: #155724;
    margin-bottom: 10px;
}

.quick-response-banner p {
    color: #155724;
    margin-bottom: 15px;
    font-size: 14px;
}


/* ================== FOOTER ================== */
.footer-bg {
    background-color: #1a1a1a; 
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-col p {
    color: #bbb;
    font-size: 14px;
    margin-top: 15px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
}
.footer-col ul li a, .footer-col ul li {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 8px;
    display: block;
}
.footer-col ul li a:hover { color: #ff6b6b; }

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.newsletter-form input {
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    flex-grow: 1;
}

.footer-bottom {
    padding: 20px 0;
}
.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #bbb;
}
.footer-links a {
    margin-left: 20px;
    color: #bbb;
}
.footer-links a:hover { color: #ff6b6b; }


/* ================== MEDIA QUERIES (Responsiveness) ================== */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .menu-icon { display: block; }
    
    .hero-section h1 { font-size: 50px; }
    .hero-stats { grid-template-columns: 1fr; }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid, .portfolio-grid, .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-text { margin-top: 30px; }
    .about-image { order: 2; }
    .value-grid { grid-template-columns: 1fr; }
    .contact-info-wrapper { margin-top: 30px; }
    .info-grid { grid-template-columns: 1fr; }
    .footer-flex { flex-direction: column; gap: 10px; }
}

@media (max-width: 600px) {
    .hero-section h1 { font-size: 36px; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
    .section-padding { padding: 50px 0; }
    .footer-col { text-align: center; }

    .services-grid, .portfolio-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
}