/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

:root {
    --primary: #1e2a38;
    --accent: #ffcc00;
    --accent-light: #ffd666;
    --light-bg: #f5f7fa;
    --card-bg: #ffffff;
    --text-dark: #2d3748;
    --text-light: #718096;
    --shadow: rgba(30, 42, 56, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* === RESPONSIVE IMAGES === */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === GENERAL WRAPPER === */
.wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 0;
    transition: var(--transition);
    height: 80px;
    display: block;
}

.navbar.scrolled {
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 70px;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

/* === LOGO SEBAGAI TEKS (Pengganti Gambar) === */
.nav-logo {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    line-height: 1;
}

.nav-logo:hover {
    color: var(--accent);
    transform: scale(1.05);
}

/* === MENU UTAMA === */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--accent);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta .btn {
    padding: 8px 20px;
    font-size: 0.95rem;
    height: fit-content;
    white-space: nowrap;
}

/* === HAMBURGER MENU (MOBILE) === */
.navbar-toggler {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.navbar-toggler span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.navbar-toggler.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-cta-mobile {
    display: none;
}

.nav-cta-desktop {
    display: block;
}

/* === MOBILE MENU === */
@media (max-width: 768px) {
    .navbar-toggler {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        display: flex !important;
        gap: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        gap: 1.5rem;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-menu a {
        color: var(--text-dark);
        font-size: 1.2rem;
        font-weight: 500;
        height: auto;
        padding: 8px 0;
        text-decoration: none;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-cta-mobile {
        display: block;
        margin-top: 2rem;
        width: 100%;
    }

    .nav-cta-mobile .btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 1rem;
    }

    .nav-cta-desktop {
        display: none;
    }

    .nav-logo {
        font-size: 1.25rem;
    }
}

/* === HERO SECTION === */
.hero {
    height: 100vh;
    min-height: 700px;
    background: url('../asets/image/bg.avif') center center;
    background-size: cover;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 42, 56, 0.85), rgba(45, 55, 72, 0.8));
}

.hero-content {
    z-index: 1;
    width: 100%;
    max-width: 800px;
    padding: 2rem 1.5rem;
}

.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--accent-light);
}

.hero p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    text-align: center;
    min-width: 140px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    border: none;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 204, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: #1a2530;
    transform: translateY(-3px);
}

/* === SECTION HEADER - DEFAULT (LATAR TERANG) === */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: block;
    text-align: center;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1rem;
    max-width: 600px;
    margin: 1rem auto 0;
    width: 100%;
}

/* === OVERRIDE UNTUK SECTION DENGAN LATAR GELAP === */
.features .section-header h2,
.contact .section-header h2 {
    color: white;
}

.features .section-header p,
.contact .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

/* === SERVICES SECTION === */
.services {
    padding: 5rem 0;
    background-color: var(--light-bg);
    position: relative;
    width: 100%;
}

.services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    opacity: 0.4;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    width: 100%;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--card-bg);
    padding: 1.8rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 6px 20px var(--shadow);
    text-align: center;
    transition: var(--transition);
    width: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(30, 42, 56, 0.15);
}

.service-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--accent), #e6b800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.4rem;
    color: var(--primary);
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.2);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === FEATURES / STATS SECTION === */
.features {
    padding: 5rem 0;
    background: url('../asets/image/feat.avif') center center;
    background-size: cover;
    background-attachment: scroll;
    position: relative;
    color: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 42, 56, 0.7);
    z-index: 1;
}

.features .wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-top: 2rem;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.8rem;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
    width: 100%;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.3);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* === ABOUT SECTION === */
.about {
    padding: 5rem 0;
    background-color: var(--light-bg);
    width: 100%;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.about-text {
    flex: 1;
    min-width: 280px;
    width: 100%;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
}

.about-image {
    flex: 1;
    min-width: 280px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(30, 42, 56, 0.12);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

.about-image img:hover {
    transform: scale(1.03);
}

/* === VISION & MISSION SECTION === */
.vision-mission {
    padding: 5rem 0;
    background-color: var(--light-bg);
    width: 100%;
}

.vision-mission .section-header {
    margin-bottom: 2.5rem;
}

.vision-mission-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
}

.vision-card,
.mission-card {
    flex: 1;
    min-width: 280px;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 6px 20px var(--shadow);
    width: 100%;
}

.vision-card h3,
.mission-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.mission-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
    width: 100%;
}

.mission-card li {
    margin-bottom: 0.7rem;
    padding-left: 1.3rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.95rem;
}

.mission-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1rem;
}

/* === CTA SECTION === */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary), #2a3a4d);
    text-align: center;
    color: white;
    width: 100%;
}

.cta-section .wrapper {
    max-width: 700px;
    width: 100%;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-section p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* === CONTACT SECTION === */
.contact {
    padding: 5rem 0;
    background: url('../asets/image/feats.avif') center center;
    background-size: cover;
    background-attachment: scroll;
    position: relative;
    color: white;
    width: 100%;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 42, 56, 0.88);
    z-index: 1;
}

.contact .wrapper {
    max-width: 1000px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.contact h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: white;
    text-align: center;
}

.contact p {
    text-align: center;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    width: 100%;
}

.contact-grid {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 280px;
    width: 100%;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
    color: white;
    font-size: 0.95rem;
    width: 100%;
}

.info-item i {
    color: var(--accent);
    font-size: 1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
    width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
}

/* === FOOTER === */
footer {
    background: var(--primary);
    color: #d9d9d9;
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
    width: 100%;
}

footer p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    width: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    width: 100%;
}

.social-links a {
    color: #d9d9d9;
    font-size: 1.3rem;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.social-links a:hover {
    color: var(--accent);
}

/* === RESPONSIVE DESIGN === */

/* Smartphone kecil (320px - 480px) */
@media (max-width: 480px) {
    .nav-menu ul {
        gap: 0.8rem;
    }

    .nav-menu a {
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        min-width: 120px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .nav-logo {
        font-size: 1.15rem;
    }
}

/* Smartphone besar & tablet kecil (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .about-content,
    .vision-mission-content,
    .contact-grid {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Tablet & laptop kecil (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 2.6rem;
    }
}