/* --- 1. RESET & VARIABLES --- */
:root {
    --primary-bg: #0f172a;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Background Decorations */
body::before,
body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
}

body::before {
    top: -100px;
    left: -100px;
    background: #4f46e5;
}

body::after {
    bottom: -100px;
    right: -100px;
    background: #ec4899;
}

/* --- 2. GLASS UTILITY --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

/* --- 3. LAYOUT --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 4. NAVIGATION --- */
header {
    position: sticky;
    top: 20px;
    z-index: 1000;
    margin-bottom: 40px;
}

nav.glass {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-radius: 50px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 20px;
    /* Sedikit dikurangi agar muat link baru */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- 5. PAGE TRANSITIONS --- */
.page {
    display: none;
    animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 6. COMMON ELEMENTS --- */
h1,
h2,
h3 {
    color: #fff;
    margin-bottom: 15px;
}

p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.section-header {
    text-align: center;
    padding: 40px 0;
}

.section-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero */
/* --- HERO SECTION SPECIFIC LAYOUT --- */
.hero {
    padding-top: 60px;
    padding-bottom: 60px;
    position: relative;
    overflow: visible;
    /* Supaya gambar yang naik ke atas terlihat */
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* 1. Layout Atas: Flexbox untuk memisahkan Kiri dan Kanan */
.hero-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

/* 2. Styling Judul Kiri (H1) */
h1.ex {
  width: 30%;
  font-size: 3rem;
  line-height: 1;
  margin: 0;
  color: #ffffff;
  padding: 40px;
  display: inline-block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 5;
  position: relative;
  border-radius: 20px;
  letter-spacing: -1px;
  font-weight: 900;
  text-transform: uppercase;
}

/* 3. Styling Bagian Kanan (Deskripsi + Tombol) */
.right {
    width: 55%;
    text-align: left;
    padding: 30px 0;
}

.right p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-muted);
}

/* 4. Styling Gambar (Full Width & Menumpuk) */
.hero-image {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-top: -100px;
    position: relative;
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

/* Efek Hover Gambar */
.hero-image:hover img {
    transform: scale(1.02);
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding-bottom: 60px;
}

.feature-card {
    padding: 30px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 1.6rem;
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.feature-icon h3 {
    font-weight: 500;
    line-height: 1.2;
    font-size: 1.3rem;
}

/* About & Stats */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.about-text {
    padding: 40px;
    align-self: center;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Team */
.team-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    padding-bottom: 60px;
}

.team-member {
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: scale(1.03);
}

.team-avatar {
    font-size: 3rem;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.role {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Services */
.services-hero {
    text-align: center;
    padding: 40px;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding-bottom: 60px;
}

.service-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.service-icon {
    font-size: 2rem;
    background: rgba(99, 102, 241, 0.2);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.service-card h3 {
  margin-bottom: 0;
  font-weight: 600;
}

.service-features li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: #e2e8f0;
    font-size: 0.9rem;
    list-style: none;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-form {
    padding: 40px;
}

.contact-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.contact-item p {
  margin-bottom: 0;
}

.contact-item-icon {
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
    margin-top: 5px;
}

.form-control:focus {
    border-color: var(--accent-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.map-placeholder {
    background: rgba(0, 0, 0, 0.2);
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    color: var(--text-muted);
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* --- 7. GALLERY STYLES --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding-bottom: 60px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-category {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 8. FAQ STYLES --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: background 0.3s;
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #fff;
    user-select: none;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    /* Ubah + jadi x */
    color: var(--accent-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
    /* max-height diatur via JS untuk animasi yang pas */
}

/* Footer */
#footer {
    margin-top: auto;
    padding: 40px 0 20px;
}
.footer-content p {
  font-size: 13px;
  opacity: .5;
}
.footer-content {
    text-align: center;
    padding: 15px 30px;
    border-radius: 50px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.copyright a {
    color: var(--accent-color);
}

@media (max-width: 768px) {

    .hero-content {
        flex-direction: column;
        /* Stack vertikal di HP */
        gap: 20px;
    }

    h1.ex {
        width: 100%;
        font-size: 2.5rem;
        padding: 20px;
    }

    .right {
        width: 100%;
        padding-top: 0;
    }

    .hero-image {
        width: 100%;
        /* Reset lebar normal di HP */
        margin-left: 0;
        margin-top: 20px;
        /* Jarak normal di HP, tidak perlu overlap */
        z-index: 1;
    }
    .hero,
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }

    .nav-links {
        display: none;
    }

    /* Mobile menu simplified */
    .menu-toggle {
        display: block;
        color: white;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}