:root {
    --bg-dark: #020b18;
    --bg-panel: rgba(10, 25, 55, 0.6);
    --panel-border: rgba(180, 195, 225, 0.2);
    --text-main: #ffffff;
    --text-silver: #d0d5de;
    --text-gold: #c19b6c;
    --accent-blue: #1c4587;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('assets/bg.png');
    background-size: cover;
    background-position: center bottom;
    z-index: -2;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2, 11, 24, 0.8) 0%, rgba(2, 11, 24, 0.4) 50%, rgba(2, 11, 24, 0.9) 100%);
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.main-header {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(2, 11, 24, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 155px;
    /* Tinggal sesuaikan angka ini jika dirasa kurang besar/terlalu besar */
    object-fit: contain;
    transition: all 0.3s ease;
    /* Tambahan opsional agar transisi ukurannya halus */
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a {
    font-size: 0.95rem;
    color: var(--text-silver);
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-gold);
    /* Changed from var(--text-main) */
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    text-align: center;
}

.hero-text {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-silver);
}

.hero-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-silver);
}

.hero-divider::before,
.hero-divider::after {
    content: '';
    height: 1px;
    width: 60px;
    background: var(--text-silver);
    opacity: 0.5;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-silver);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

.shield-badge {
    background: linear-gradient(135deg, #1b3a6e 0%, #0d1e3d 100%);
    border: 2px solid #567bb3;
    border-radius: 10px 10px 50% 50% / 10px 10px 40% 40%;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(86, 123, 179, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 240px;
}

.shield-badge span {
    display: block;
    font-family: var(--font-body);
}

.shield-badge .small-text {
    font-size: 1rem;
    letter-spacing: 2px;
}

.shield-badge .large-text {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 4px;
    margin: 5px 0;
}

.shield-badge .medium-text {
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.shield-badge .line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 15px 0;
}

.shield-badge .cert-text {
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.shield-badge i {
    font-size: 1.5rem;
    color: var(--text-silver);
}

.scales-img {
    color: var(--text-silver);
    opacity: 0.9;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

/* Common Panels */
.box-panel {
    background: var(--bg-panel);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    padding: 2rem;
}

.panel-header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.panel-header h2 {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-silver);
}

.line-deco {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Main Grid Layout */
.main-content-section {
    padding: 2rem 0;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

/* Stats */
.stats-panel {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-item i {
    color: var(--text-silver);
    opacity: 0.8;
}

.stat-info h3 {
    font-size: 2.2rem;
    /* Slightly larger to match the bold look */
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-gold);
    display: block;
    /* Changed from flex to native text block */
    white-space: nowrap;
    /* Forces numbers and +/5 to NEVER break to a new line */
    line-height: 1;
    margin-bottom: 5px;
}

.stat-info h3 span {
    font-size: inherit;
    font-weight: inherit;
    vertical-align: baseline;
    /* Guarantees perfect text baseline alignment */
}

.stat-info p {
    font-size: 0.75rem;
    color: var(--text-silver);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Trust Panel */
.trust-panel {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.trust-grid {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--text-silver);
}

.trust-item span {
    font-size: 0.85rem;
    color: var(--text-silver);
}

/* Access Panel */
.access-panel {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.panel-desc {
    text-align: center;
    color: var(--text-silver);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.service-item i {
    color: var(--text-silver);
}

.service-item span {
    font-size: 0.85rem;
    color: var(--text-silver);
}

/* Testimonials Panel */
.testimonials-panel {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote-stars {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-silver);
}

.stars {
    display: flex;
    gap: 2px;
}

/* 5. Gold animated stars (SMOOTH FIX) */
.stars i {
    color: rgba(255, 255, 255, 0.1);
    display: inline-block;
    /* PENTING: Wajib agar scale berjalan sangat mulus */
    transform-origin: center;
    /* Menggunakan cubic-bezier untuk efek transisi membal (bouncy) yang elegan */
    animation: fillStar 0.6s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, color;
    /* Memaksa browser menggunakan GPU (Hardware Acceleration) */
}

/* Jeda animasi yang sedikit lebih rapat agar alirannya lebih natural */
.stars i:nth-child(1) {
    animation-delay: 0.1s;
}

.stars i:nth-child(2) {
    animation-delay: 0.2s;
}

.stars i:nth-child(3) {
    animation-delay: 0.3s;
}

.stars i:nth-child(4) {
    animation-delay: 0.4s;
}

.stars i:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes fillStar {
    0% {
        color: rgba(255, 255, 255, 0.1);
        transform: scale(0.8);
    }

    50% {
        color: var(--text-gold);
        transform: scale(1.25);
        text-shadow: 0 0 12px rgba(193, 155, 108, 0.6);
        /* Tambahan efek cahaya emas saat membesar */
    }

    100% {
        color: var(--text-gold);
        transform: scale(1);
        text-shadow: none;
    }
}


.testimonial-card p {
    font-size: 0.9rem;
    color: var(--text-silver);
    flex-grow: 1;
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.client-info i {
    color: var(--text-silver);
}

.client-info div {
    display: flex;
    flex-direction: column;
}

.client-info strong {
    font-size: 0.85rem;
}

.client-info span {
    font-size: 0.75rem;
    color: var(--text-silver);
}

/* CTA Bar */
.cta-bar {
    padding: 2rem 0 4rem;
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
}

.cta-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cta-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-silver);
}

.cta-icon span {
    font-weight: 600;
    font-size: 1.2rem;
}

.cta-text h2 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.cta-text p {
    font-size: 0.9rem;
    color: var(--text-silver);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn .arrow {
    margin-left: auto;
}

.btn-primary {
    background: #a9b5c2;
    color: #112036;
}

.btn-primary:hover {
    background: #d0d5de;
}

.btn-secondary {
    background: #c3ccd6;
    color: #112036;
}

.btn-secondary:hover {
    background: #d0d5de;
}

.btn-tertiary {
    background: #b5c2d1;
    color: #112036;
}

.btn-tertiary:hover {
    background: #d0d5de;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .stats-panel,
    .trust-panel,
    .access-panel,
    .testimonials-panel {
        grid-column: 1 / 2;
    }

    .trust-panel {
        grid-row: 2 / 3;
    }

    .access-panel {
        grid-row: 3 / 4;
    }

    .testimonials-panel {
        grid-row: 4 / 5;
    }

    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-divider {
        justify-content: center;
    }

    .hero-visual {
        justify-content: center;
    }

    .stats-grid {
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .cta-left {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .shield-badge {
        width: 200px;
        padding: 1.5rem;
    }

    .shield-badge .large-text {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile Nav Styles */
.mobile-nav-active .main-nav {
    display: block;
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background: rgba(2, 11, 24, 0.95);
    padding: 2rem;
    z-index: 100;
}

.mobile-nav-active .main-nav ul {
    flex-direction: column;
    align-items: center;
}

/* Utilities */
.section-padding {
    padding: 4rem 0;
}

.bg-darker {
    background-color: rgba(2, 11, 24, 0.4);
    border-top: 1px solid var(--panel-border);
    border-bottom: 1px solid var(--panel-border);
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.sub-heading {
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--text-silver);
    font-family: var(--font-body);
}

.main-heading {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text-silver);
}

.huge-heading {
    font-size: 3.5rem;
    line-height: 1.2;
    font-family: var(--font-heading);
    color: var(--text-silver);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-silver);
}

.divider-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-silver);
}

.divider-icon::before,
.divider-icon::after {
    content: '';
    height: 1px;
    width: 40px;
    background: var(--text-silver);
    opacity: 0.5;
}

.divider-icon.text-left::before {
    display: none;
}

.divider-icon.text-left::after {
    width: 200px;
}

/* Feature List (Why Choose Us & Partner) */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.feature-icon {
    min-width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-silver);
}

.feature-text h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--text-silver);
    margin: 0;
}

.feature-list-panel {
    background: rgba(10, 25, 55, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
}

.feature-list-panel .feature-item {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-list-panel .feature-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Added Value Panel */
.added-value-panel {
    height: 100%;
}

.value-list {
    display: flex;
    flex-direction: column;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.value-item:last-child {
    border-bottom: none;
}

.value-icon {
    position: relative;
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.value-icon .badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: bold;
    font-family: var(--font-body);
}

.value-icon i {
    opacity: 0.5;
}

.value-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Bottom Bar */
.bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-panel);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
}

.bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 2rem;
    padding-right: 2rem;
}

.bar-left h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.bar-left p {
    font-size: 0.85rem;
    color: var(--text-silver);
    margin: 0;
}

.bar-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.support-text {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.support-text i {
    font-size: 2rem;
    color: var(--text-silver);
}

.support-text strong {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.support-text p {
    font-size: 0.8rem;
    color: var(--text-silver);
    margin: 0;
}

/* Solutions & Partners */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.solution-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.solution-item i {
    color: var(--text-silver);
}

.solution-item span {
    font-size: 0.8rem;
    color: var(--text-silver);
    letter-spacing: 1px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-logo {
    background: #061124;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-silver);
    text-align: center;
    min-height: 80px;
}

/* Expertise List */
.section-title {
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--text-silver);
    text-transform: uppercase;
}

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.expertise-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.expertise-item:last-child {
    border-bottom: none;
}

.expertise-item .icon-box {
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.expertise-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.expertise-item p {
    font-size: 0.85rem;
    color: var(--text-silver);
    margin: 0;
}

/* Footer Features */
.footer-features {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.f-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.f-feature i {
    color: var(--text-silver);
    opacity: 0.8;
}

.f-feature strong {
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.2rem;
}

.f-feature p {
    font-size: 0.75rem;
    color: var(--text-silver);
    margin: 0;
}

/* Cards Grid (Criminal/Civil) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.service-card .card-num {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
}

.service-card .card-num::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.service-card i {
    color: var(--text-silver);
    margin-top: 2rem;
}

.service-card h4 {
    font-size: 0.95rem;
    letter-spacing: 1px;
    line-height: 1.4;
    margin-top: 1rem;
}

.highlight-card {
    border-color: #c19b6c;
    background: linear-gradient(135deg, rgba(193, 155, 108, 0.1) 0%, rgba(193, 155, 108, 0.02) 100%);
}

/* Helper Classes */
.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 2rem;
}

.mt-4 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 3rem;
}

.pt-3 {
    padding-top: 2rem;
}

.pb-3 {
    padding-bottom: 2rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column !important;
}

.flex-row {
    flex-direction: row !important;
}

.gap-1 {
    gap: 0.5rem !important;
}

.gap-2 {
    gap: 1rem !important;
}

.gap-3 {
    gap: 1.5rem !important;
}

.gap-4 {
    gap: 2rem !important;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

.border-top {
    border-top: 1px solid var(--panel-border);
}

.border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.text-sm {
    font-size: 0.85rem;
}

.text-silver {
    color: var(--text-silver);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid #a9b5c2;
    color: #a9b5c2;
}

.btn-outline-primary:hover {
    background: #a9b5c2;
    color: #112036;
}

/* Responsive for Services */
@media (max-width: 1200px) {
    .two-col-grid {
        grid-template-columns: 1fr;
    }

    .bottom-bar {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .bar-left {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-right: 0;
        padding-right: 0;
        padding-bottom: 2rem;
        flex-direction: column;
    }

    .bar-right {
        flex-direction: column;
    }

    .footer-features {
        flex-wrap: wrap;
        justify-content: center;
    }

    .f-feature {
        width: 45%;
    }
}

@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .main-heading {
        font-size: 2.2rem;
    }

    .huge-heading {
        font-size: 2.5rem;
    }

    .f-feature {
        width: 100%;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .value-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Navbar Links Hover Effect (Light and Shine) */
.main-nav a {
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-gold);
    /* Changed background to gold */
    box-shadow: 0 0 10px rgba(193, 155, 108, 0.8), 0 0 20px rgba(193, 155, 108, 0.5);
    /* Changed glow to match gold hex #c19b6c */
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.login-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem !important;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.login-nav-btn:hover,
.login-nav-btn.active {
    background: rgba(193, 155, 108, 0.2);
    border-color: #c19b6c;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(193, 155, 108, 0.5);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.login-nav-btn::after {
    display: none !important;
}

.language-nav-item {
    display: flex;
    align-items: center;
}

.language-selector {
    display: inline-grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 0.45rem;
    min-width: 130px;
    padding: 0.5rem 0.85rem;
    border-radius: 20px;
    background: rgba(28, 69, 135, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector:hover,
.language-selector:focus-within {
    background: rgba(28, 69, 135, 1);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 15px rgba(28, 69, 135, 0.45);
}

.language-selector i {
    font-size: 0.9rem;
    pointer-events: none;
}

.language-selector .fa-chevron-down {
    font-size: 0.7rem;
}

.language-select {
    min-width: 0;
    width: 100%;
    background: transparent;
    border: 0;
    color: #ffffff;
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    appearance: none;
}

.language-select option {
    color: #020b18;
    background: #ffffff;
}

@media (max-width: 992px) {
    .mobile-nav-active .language-nav-item {
        justify-content: center;
        width: 100%;
    }

    .mobile-nav-active .language-selector {
        width: min(220px, 100%);
    }
}

/* Fade-in Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Service Item Links (Hover Light and Shine) */
.service-link {
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid transparent;
}

.service-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1), inset 0 0 10px rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.service-link i {
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

.service-link:hover i {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
}

.service-link span {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.service-link:hover span {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Footer 3-col Grid */
.three-col-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
}

.footer-contact .contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-silver);
    font-size: 0.85rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.contact-item:hover {
    color: #ffffff;
}

.icon-box-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.social-links a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-silver);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #1c4587;
    color: #ffffff;
    transform: translateY(-3px);
}

.hover-white {
    transition: color 0.3s ease;
}

.hover-white:hover {
    color: #fff;
}

/* Modal CSS */
.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.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-panel);
    border: 1px solid var(--panel-border);
    margin: 10% auto;
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    color: var(--text-silver);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #fff;
}

@media (max-width: 992px) {
    .three-col-grid {
        grid-template-columns: 1fr;
    }
}

.service-link-hover {
    transition: all 0.3s ease;
}

.service-link-hover:hover {
    background: rgba(193, 155, 108, 0.2) !important;
    box-shadow: 0 0 20px rgba(193, 155, 108, 0.4), inset 0 0 15px rgba(193, 155, 108, 0.2);
    transform: translateY(-5px);
}

.service-link-hover:hover h4,
.service-link-hover:hover h3,
.service-link-hover:hover p {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    color: #fff;
}

.cards-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.cards-grid-5 .service-card {
    padding: 1.5rem 1rem;
}

@media (max-width: 1200px) {
    .cards-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-grid-5 {
        grid-template-columns: 1fr;
    }
}

/* Emergency Page Styles */
.emergency-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .emergency-grid {
        grid-template-columns: 1fr;
    }
}

.icon-circle {
    width: 70px;
    height: 70px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-silver);
}

.emergency-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .emergency-form .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group i {
    position: absolute;
    left: 1rem;
    color: var(--text-silver);
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    color: var(--text-silver);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.form-control:focus {
    outline: none;
    border-color: #c19b6c;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

select.form-control {
    appearance: none;
}

select.form-control option {
    background: var(--bg-panel);
    color: var(--text-silver);
}

.channel-item {
    word-break: break-word;
}

.channel-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.5rem;
    margin: -0.5rem;
    transition: all 0.3s;
}

/* Styling untuk Gambar Partners */
.partners-image-container {
    width: 100%;
    background: #ffffff;
    /* Memberikan background putih agar menyatu dengan gambar */
    border-radius: 8px;
    /* Ujung yang melengkung agar terlihat elegan */
    padding: 1.5rem;
    /* Jarak antara gambar dan tepi container */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    /* Sedikit bayangan */
}

.partners-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* Redesigned Hero Section Styles */
.hero-text .hero-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-text .hero-mark-logo {
    width: 165px;
    height: 165px;
    filter: invert(1) sepia(1) saturate(7) hue-rotate(340deg) brightness(1.1) drop-shadow(0 0 10px rgba(193, 155, 108, 0.4));
    mix-blend-mode: screen;
    transition: all 0.5s ease;
}

.hero-text .hero-mark-logo:hover {
    transform: translateY(-5px) scale(1.05);
    filter: invert(1) sepia(1) saturate(7) hue-rotate(340deg) brightness(1.1) drop-shadow(0 0 20px rgba(193, 155, 108, 0.7));
}

.hero-text h1.hero-title-main {
    font-size: 2.2rem;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    text-transform: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text h2.hero-title-sub {
    font-size: 2.8rem;
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-gold);
    margin-bottom: 0.8rem;
    line-height: 1.3;
    text-transform: none;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-text h3.hero-title-desc {
    font-size: 1.8rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-silver);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: capitalize;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text .hero-link-container {
    margin-top: 1.5rem;
}

.hero-text .hero-link {
    font-size: 1.4rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: #4a90e2; /* Sleek blue/teal color from the mockup */
    text-decoration: underline;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-text .hero-link:hover {
    color: #5eb5ff;
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(94, 181, 255, 0.5);
}

/* Responsive Overrides for Redesigned Hero */
@media (max-width: 768px) {
    .hero-text .hero-mark-logo {
        width: 110px;
        height: 110px;
    }
    .hero-text h1.hero-title-main {
        font-size: 1.8rem !important;
    }
    .hero-text h2.hero-title-sub {
        font-size: 2.2rem !important;
    }
    .hero-text h3.hero-title-desc {
        font-size: 1.4rem !important;
    }
    .hero-text .hero-link {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-text .hero-mark-logo {
        width: 90px;
        height: 90px;
    }
    .hero-text h1.hero-title-main {
        font-size: 1.5rem !important;
    }
    .hero-text h2.hero-title-sub {
        font-size: 1.8rem !important;
    }
    .hero-text h3.hero-title-desc {
        font-size: 1.2rem !important;
    }
    .hero-text .hero-link {
        font-size: 1.1rem;
    }
}
